#header-nav-section {
    position: absolute;
    width: 100%;
    background-color: rgba(252, 241, 233, 0.51) !important;
}
/*header-nav*/
#header-nav-section .row-header{
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}


#header-menu {
    padding-top: 25px !important;
    padding-right: 10% !important;
    padding-bottom: 25px !important;
    padding-left: 10% !important;
    margin-right: 0px !important;
    margin-left: 0px !important;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 2560px;
}

nav#header-nav {
    display: flex;
    width: 100%;
    justify-content: center;
}

ul#menu-principal {
    display: flex;
    -webkit-box-align: stretch;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    gap: 30px;
}
#menu-principal li a {
    font-family: 'Kodchasan',  sans-serif;
    font-size: 18px;
    color: #912915 !important;
    text-align: center;
}
#menu-principal li a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    position: relative;
    bottom: -5px;
    background:  #912915 ;
    transition: width .3s;
}
#menu-principal li a:hover::after {
    width: 100%;
}

#image-header-nav.home {
    position: absolute !important;
}

#main-header.header-big #image-header-nav.home {
    position: relative !important;
}
#main-header.header-big.scrolled #image-header-nav.home {
    position: absolute !important;
}

/*header*/
div#logo-column a{
    display: block;
}

div#nav-bar-menu {
    width: 100%;
}

#main-header.header-home{
    #header-nav-section{
        background-color: transparent !important;
        .row-header {
            backdrop-filter: none;
        }
    }

    #header-menu {
        padding-top: 3% !important;
        padding-right: 10% !important;
        padding-bottom: 3% !important;
    }
    #header-nav-section::after{
        display: none;
        transition: none;
    }
    nav#header-nav {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    div#logo-column {
    width: 0;
    }
}

/* ========================================
   MENU BURGER - STYLES
   ======================================== */

/* Bouton burger - caché par défaut (desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    color: #333; /* Couleur par défaut, à adapter selon ton thème */
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

/* Animation du burger vers X */
.mobile-menu-toggle.active .burger-line-top {
    transform: translate(-5px, 4px) rotate(45deg);
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active .burger-line-middle {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle.active .burger-line-bottom {
    transform: translate(-5px, -5px) rotate(-45deg);
    transition: transform 0.3s ease;
}

.burger-line {
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 980px) {
    /* Afficher le bouton burger en mobile */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    /* Navigation mobile cachée par défaut */
    nav#header-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Caché à droite */
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 80px; /* Espace pour le header */

        display: none;
        justify-content: center;
        align-items: center;

    }

    /* Menu ouvert */
    #header-nav.menu-open {
        right: 0;
        display: flex;
    }

    /* Overlay sombre derrière le menu */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.menu-mobile-open::before {
        opacity: 1;
        visibility: visible;
    }

    /* Bloquer le scroll du body quand menu ouvert */
    body.menu-mobile-open {
        overflow: hidden;
    }

    /* Style du menu mobile */
    #menu-principal {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #menu-principal li {
        border-bottom: 1px solid #f0f0f0;
    }

    #menu-principal a {
        display: block;
        padding: 15px 25px;
        color: #333;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    #menu-principal a:hover {
        background-color: #f5f5f5;
    }

    /* Sous-menus si tu en as */
    #menu-principal .sub-menu {
        display: none;
        padding-left: 0;
        list-style: none;
    }

    #menu-principal li.menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 0.8em;
        margin-left: 5px;
    }

    #menu-principal .sub-menu a {
        padding-left: 40px;
        background-color: #f9f9f9;
    }
}

/* ========================================
   DESKTOP - Garder le comportement actuel
   ======================================== */

@media (min-width: 981px) {
    /* Le menu reste comme avant en desktop */
    #header-nav {
        /* Tes styles desktop existants */
    }
}