/* --- Styles pour le menu desktop (PC) --- */
.menu-desktop {
    background-color: #FFFBE7;
    padding: 25px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 13px;
    list-style: none;
}

.menu-desktop img {
    width: 100%;
    height: 41px;
}

.menu-desktop li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-align: center;
}
.menu-desktop li,
.menu-desktop img {
    transition: transform 0.3s ease-out;
}
.menu-desktop li:hover,
.menu-desktop img:hover {
    transform: scale(1.3); /* Agrandit l'élément */
}

/* Réduction des autres éléments */
.menu-desktop:hover li:not(:hover),
.menu-desktop:hover img:not(:hover) {
    transform: scale(0.85);
}

/* --- Menu burger (mobile) --- */
.menu-mobile {
    display: none; /* Caché par défaut */
}

/* --- Styles du menu latéral (mobile) --- */
.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFBE7;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 10;

}

.sidenav.active {
    transform: translateY(0);
}

.sidenav ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.sidenav ul li {
    margin: 20px 0;
}

.sidenav ul li a {
    font-size: 24px;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

/* --- Icône burger --- */
.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-icon span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: black;
    transition: 0.3s;
}

/* --- Bouton pour fermer le menu --- */
.sidenav .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    cursor: pointer;
}

/* --- Responsive pour Mobile --- */
@media (max-width: 768px) {
    /* Cache le menu classique */
    .menu-desktop {
        display: none;
    }

    /* Affiche le menu burger */
    .menu-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 81%;
        padding: 37px;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #FFFBE7;
        z-index: 10; /* Plus élevé que le titre */
    }

    .menu-mobile img {
        height: 23px; /* Taille du logo */
    }
}
