* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --main-color: #587494;
    --second-color: #e9f6fc;
    --hover-color : #112c3d;
}

/*css pour header footer et la plupart des pages*/

main {
    min-height: 100vh;
    font-family: "Roboto", sans-serif;
    margin-top: 150px;

}

/* footer */
#pied-de-page {
    background-color: var(--main-color);
    color: #fff;
    padding: 2rem 0;
    font-family: "Open Sans", sans-serif;
}

#pied-de-page a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

#pied-de-page a:hover {
    color: var(--hover-color);
}

#pied-de-page li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-navigation,
.footer-address,
.footer-contact-form,
.footer-social{
    flex: 1;
    max-width: calc(50% - 2rem);
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.footer-columns h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 5px;
}

.footer-contact-form button {
    padding: 0.5rem 1rem;
    background-color: #007ac8;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.footer-contact-form button:hover {
    background-color: var(--hover-color);
}

.footer-social img {
    transition: transform 0.3s;
	  width : 40px;
	  height: 40px;
}

.footer-social img:hover {
    transform: scale(1.2);
}


.footer-bottom {
    text-align: center;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin-bottom: 1rem;
}

.l_reseaux {
    display: flex;
    justify-content: center;
}

.l_reseaux img {
    width: 40px;
    margin-top: 1rem;
    margin-right: 0.5rem;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.l_reseaux img:hover {
    filter: drop-shadow(0 0 10px rgba(194, 203, 210, 0.5));
}




/*header*/

#logo-header {
    filter: invert();
    width: 100px;
	height: auto;
    margin: 1rem 1rem 1rem 3rem;
}

#en-tete {
    background-color: var(--main-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: "Open Sans", sans-serif;
}

#en-tete a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
}

#en-tete a:hover {
    color: var(--hover-color);
}

#en-tete ul {
    list-style: none;
    display: inline-flex;
}

#en-tete li {
    margin-left: 1rem;
}

.header-search form {
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.header-search input[type="search"] {
    margin-right: 0.5rem;
    width: 200px;
    padding: 0.75rem 1rem;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    background-color: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, width 0.3s ease; /* Ajouté la transition pour la largeur */
}

.header-search input[type="search"]:focus { /* Ajouté la règle pour l'animation de la searchbar */
    width: 400px;
}

.header-search input[type="search"]::placeholder {
    color: #8d8c8c;
}


.header-search button[type="submit"] {
    margin-right: 1rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #09588a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-search button[type="submit"]:hover {
    background-color: var(--hover-color);
}

/*NOUVEAU CODE POUR LE HEADER*/

#en-tete {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-logo img {
    width: 100px;
    transition: transform 0.3s;
}

.header-logo:hover img {
    transform: scale(1.1);
}

.menu ul li a {
    position: relative;
}

.menu ul li a::before {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: right;
}

.menu ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.fa-search {
    cursor: pointer;
}


.show-input {
    width: 200px;
}

/*main*/
.presentation {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.presentation h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-family: Montserrat, serif;
}

.presentation p {
    margin-bottom: 20px;
}

.presentation a {
    color: #007bff;
    text-decoration: none;
}

.presentation a:hover {
    text-decoration: underline;
}

main .container {
    display: grid;
    grid-template-columns:4fr 1fr;
    grid-gap: 1rem;
    justify-content: center;
}




.content {
    padding: 1rem;
}


/* Aside Right */
.aside-right {
    width: 100%;
    max-width: 300px;
    background-color: var(--second-color);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}
@media screen and (max-width: 768px) {
    .aside-right {
        width: 100%;
        max-width: none;
        position: static;
    }
}

#lien-asideCard {
    text-decoration: none;
}

.recent-projects {
    display: flex;
    flex-direction: column;
}

.recent-projects h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.project-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-decoration: none;
}

.project-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 6px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-card img {
    height: 30px;
    width: 30px;
    margin-right: 1rem;
}

div.project-card:hover {
    transform: scale(1.1);
}

/* Smooth scrolling for the aside-right */
.aside-right {
    scroll-behavior: smooth;
}




/*Elements particuliers*/
.highlight {
    color: #F66947;
    font-weight: bold;
}

.active {
    background-color: #a78b6b;
    border-radius: 5px;
    padding: 4px;
    font-weight: bold;

}



.recent-projects {
    margin-bottom: 20px;
}


/* Media queries */

@media (max-width: 768px) {
    /* Header */
    #en-tete {
        flex-direction: column;
        padding: 1rem;
    }

    #logo-header {
        margin: 1rem;
        width: 50px;
    }

    .header-search {
        display: none;
    }

    .header-search input[type="search"] {
        width: 100%;
    }

    .header-search input[type="search"]:focus {
        width: 100%;
    }

    /* Footer */
    .footer-columns {
        flex-direction: column;
    }

    .footer-navigation,
    .footer-address,
    .footer-contact-form,
    .footer-social {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    main .container {
        grid-template-columns: 1fr;
    }

    .presentation {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Adjustments for even smaller screens (phones etc.) */
    .presentation h1 {
        font-size: 2em;
    }

    main .container {
        grid-template-columns: 1fr;
    }
    .presentation {
        font-size: 14px;
    }

}
