#site-header {
    padding: 30px 40px;
    background: #f2ede8CC;
    transition: all .6s ease-in;
}
#headerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}
#logo img {
    width: auto;
    max-height: 90px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrolled #site-header {
    /* background: rgba(137, 77, 80, .5); */
    background: #f2ede8E6;
    padding: 10px 40px;
}
.scrolled #logo img {
    max-height: 50px;
}
body {
    padding-top: 123px;
    transition: padding-top .5s ease-in-out;
}
body.scrolled {
    margin-top: 0;
}

@media (min-width: 992px) {
    #site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: unset;
        z-index: 3;
    }
}
@media (min-width: 1300px) {
    #site-header #headerContent {
        width: 1240px;
    }
}
@media (min-width: 1700px) {
    #site-header #headerContent {
        width: 1600px;
    }
}

#headerNavs {
    display: flex;
    justify-content: end;
}
#main-nav ul, #lang-nav ul {
    height: 100%;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
#main-nav ul {
    gap: 2rem;
}
#lang-nav ul {
    gap: 1rem;
    margin-left: 2rem;
}

#main-nav li {
    position: relative;
}

#main-nav a {
    font-family: var(--e-global-typography-text-font-family), sans-serif;
    color: var(--e-global-color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
}

#main-nav .menu-item-has-children {
    position: relative;
}

#main-nav .menu-item-has-children > a {
    padding-right: 30px;
}

#main-nav .menu-item-has-children .submenu-toggle {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 10;
}

#main-nav .menu-item-has-children .submenu-toggle:hover {
    color: #333;
}

#main-nav .menu-item-has-children .submenu-toggle::before {
    content: "▾";
}

/* Soulignement pour l'item actif */
#main-nav .current-menu-item > a,
#main-nav .current-page-ancestor > a {
    position: relative;
    font-weight: bold;
}

#main-nav .current-menu-item > a::before,
#main-nav .current-page-ancestor > a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--e-global-color-primary);
}

/* Sous-menus - CORRECTION pour le hover */
#main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, margin-top 0.3s ease;
}

#main-nav .menu-item-has-children:hover > .sub-menu,
#main-nav .submenu-open > .sub-menu {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0;
    height: auto;
}

#main-nav .sub-menu li {
     width: 100%;
}

#main-nav .sub-menu a {
    padding: 12px 20px;
    color: #666;
    white-space: nowrap;
}

#main-nav .sub-menu a:hover {
    background: #f5f5f5;
    color: #333;
}

/* Bouton burger (caché par défaut) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}