﻿/* NavBar Styles */
.site-header-bottom-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: antiquewhite;
    z-index: 1000;
}

.site-header-inside {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centre verticalement les éléments */
    padding: 0.5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

#branding {
    display: flex;
    align-items: center;
}

.identity {
    margin-right: 1rem;
}

.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    height: 50px;
}

#site-text {
    color: antiquewhite;
}

#site-title {
    margin: 0;
    border: none;
    outline: none;
    box-shadow: none;
}

    #site-title a {
        color: antiquewhite;
        text-decoration: none;
    }

#site-description {
    font-size: 0.875rem;
}

.menu-burger {
    display: none;
}

.hamburger {
    background: none;
    border: none;
    color: antiquewhite;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    position: relative; /* Utilisez relative pour maintenir l'alignement avec le contenu environnant */
    margin-left: auto; /* Garde le bouton à droite */
    align-self: center; /* Assure que le bouton est centré verticalement dans l'en-tête */
}

    .hamburger span {
        display: block;
        height: 2px;
        width: 24px;
        background: antiquewhite;
    }

/* Navigation Styles */
#access {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

#top-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin: 0 1.5rem;
}

.nav-link {
    color: antiquewhite;
    font-size : 1.2rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

    .nav-link:hover {
        background-color: #575757;
    }

@media (max-width: 768px) {
    .menu-burger {
        display: block; /* Affiche le bouton hamburger sur les petits écrans */
        z-index: 1001; /* Assure que le bouton est au-dessus du menu */
    }

    #access {
        display: none; /* Masque le menu par défaut */
    }

        #access.open {
            display: block;
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background-color: rgba(51, 51, 51, 0.95); /* Ajoute un fond semi-transparent */
            z-index: 999; /* Assure que le menu est au-dessus de tout */
            padding-top: 80px; /* Ajoute de l'espace en haut pour ne pas chevaucher le bouton hamburger */
        }

    #top-nav.open {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .nav-link {
        padding: 1rem; /* Augmente l'espacement entre les liens */
        width: 100%;
        text-align: center;
        font-size: 1.5rem;
    }

    .menu-item {
        margin: 1.5rem;
    }

}