body {
    font-family: "Source Serif 4", serif;
    margin: 0;
    padding: 0;
    background-color: #fdf7f4;
    color: #505050;
}

main {
    max-width: 1500px;
    min-width: none;
    margin: auto;
}

header {
    text-align: center;
    padding-bottom: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
    margin: auto;
    height: 60px;
}

.nav-container {
    background-color: #f8d7da;
    padding: 10px 0;
    width: 100%;
    /*transition: transform 0.4s ease-in-out, top 0.4s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;*/
}

/*
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}*/

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 1.25rem;
    padding-left: 10px;
    padding-right: 10px;
    transition: color 0.3s ease-in-out;
}

/* Animation au survol */
.nav-links a::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    background: #a94442;
    transition: width 0.3s ease-in-out;
    position: absolute;
    left: 0;
    bottom: -5px;
}

/* Au survol */
.nav-links a:hover {
    color: #a94442;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Quand le lien est actif */
.nav-links a.active {
    color: #a94442;
}

.nav-links a.active::after {
    width: 100%;
}



/* Barre de recherche */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 25px;
    padding: 5px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.search-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.search-form {
    display: flex;
    align-items: center;
}

#site-search {
    background-color: none;
    border: none;
    outline: none;
    font-size: 0.9rem;
    border-radius: 20px;
    width: 100%;
    min-width: 250px;
    max-width: 350px;
    margin-bottom: 0px;
    box-sizing: border-box;
    padding: 10px;
}

.search-button {
    background: none;
    border: none;
    padding: 5px 10px;
    margin-left: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.search-button:hover {
    background: transparent;
}


.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

.logo {
    width: auto;
    height: 50px;
}

.titre {
    padding-bottom: 10px;
    margin: 0px;
    margin-top: 55px;
    font-family: "Alex Brush", serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.right-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*Style pour masquer des éléments visuellement mais les rendre accessibles aux lecteurs d'écran*/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.burger-menu {
    display: none;
    /* Masqué par défaut (visible uniquement sur mobile) */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #505050;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* MOBILE */
@media screen and (max-width: 700px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        position: relative;
    }

    .burger-menu {
        display: flex;
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #f8d7da;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .logo {
        width: auto;
        height: 40px;
    }

    .titre {
        font-size: 1.2rem;
    }

    .search-container {
        width: 100%;
        padding: 5px 10px;
        box-sizing: border-box;
    }
    
    #site-search {
        min-width: 0;
        width: 100%;
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .search-button {
        padding: 5px 10px;
        font-size: 1.2rem;
    }
    
}