#page-container #main-header{
    background-color: transparent;
    box-shadow: none;
}
#page-container #main-header.et-fixed-header{
    background: rgba(2, 20, 17, 0.64);
    backdrop-filter: blur(10px);
}

.et_fixed_nav.et_show_nav #page-container {
    padding-top: 104px;
}

#header-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 80%;
    max-width: 1730px;
        margin: auto;
        padding: 30px 0;
        transition: all 0.3s ease-in-out;

        #menu-principal{
            display: flex;
            flex-direction: row;
            gap: 20px;
            a{
                color: #BBFEF1;
                font-weight: 700;
            }
            .current-menu-item a{
                color: #fff;
            }
        }

}

.et-fixed-header #header-menu{
    padding: 10px 0;
}

/* ===================== MEGA MENU ===================== */

/* Parent item wrapper */
.mega-menu-item {
    position: relative;
}

.mega-menu-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-menu-chevron {
    transition: transform 0.3s ease;
}

.mega-menu-item:hover .mega-menu-chevron,
.mega-menu-item.active .mega-menu-chevron {
    transform: rotate(180deg);
}

/* Dropdown container */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.mega-menu-item:hover .mega-menu-dropdown,
.mega-menu-item.active .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Grid des cartes */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #0a1219;
    border-radius: 8px;
    padding: 20px;
    width: 70vw;
    max-width: 1300px;
}

/* Carte individuelle */
.mega-menu-card {
    background: #04221D;
    border: 1px solid #BBFEF1;
    border-radius: 4px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

/* Icône */
.mega-menu-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
}

.mega-menu-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Titre */
.mega-menu-card-title {
    color: #BBFEF1;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Description */
.mega-menu-card-description {
    color: #BBFEF1;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Bouton */
.mega-menu-card-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    border: 1px solid #BBFEF1;
    border-radius: 50px;
    color: #04221D!important;
    background-color: #BBFEF1;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: fit-content;
}

.mega-menu-card-btn:hover {
    background-color: #0a1219;
    color: #BBFEF1 !important;

}

/* ===================== HEADER RIGHT (lang + search) ===================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===================== LANGUAGE SWITCHER ===================== */

.lang-switcher {
    position: relative;
}

.lang-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(187, 254, 241, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: #BBFEF1;
    transition: border-color 0.3s ease;
}

.lang-switcher-toggle:hover {
    border-color: #BBFEF1;
}

.lang-switcher-toggle img {
    border-radius: 2px;
}

.lang-chevron {
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #0a1219;
    border: 1px solid rgba(187, 254, 241, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    min-width: 140px;
}

.lang-switcher.open .lang-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lang-switcher-dropdown li {
    list-style: none;
}

.lang-switcher-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.lang-switcher-dropdown li a:hover {
    background: rgba(187, 254, 241, 0.1);
}

.lang-switcher-dropdown li a img {
    border-radius: 2px;
}

/* ===================== BURGER TOGGLE ===================== */

.burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #BBFEF1;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===================== MOBILE OVERLAY ===================== */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #0a1219;
    z-index: 99999;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    opacity: 1;
}

.mobile-menu-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
}

.mobile-menu-overlay-header .logo-site img {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #BBFEF1;
    cursor: pointer;
    padding: 8px;
}

/* Mobile nav list */
.mobile-nav {
    flex: 1;
    padding: 20px 30px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid rgba(187, 254, 241, 0.1);
}

.mobile-nav-list > li > a {
    display: block;
    padding: 18px 0;
    color: #BBFEF1;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list > li.current-menu-item > a {
    color: #fff;
}

/* Mega menu in mobile = accordion */
.mobile-nav-list .mega-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-list .mega-menu-dropdown {
    position: static;
    transform: none;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-nav-list .mega-menu-item.active .mega-menu-dropdown {
    max-height: 2000px;
}

.mobile-nav-list .mega-menu-grid {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    max-width: none;
    padding: 0 0 18px;
    background: transparent;
    border-radius: 0;
}

.mobile-nav-list .mega-menu-card {
    padding: 20px;
}

/* Mobile footer */
.mobile-menu-footer {
    padding: 20px 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid rgba(187, 254, 241, 0.1);
}

.mobile-lang-switcher {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
}

.mobile-lang-switcher li {
    list-style: none;
}

.mobile-lang-switcher li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #BBFEF1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid rgba(187, 254, 241, 0.3);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.mobile-lang-switcher li.current-lang a {
    color: #fff;
    border-color: #BBFEF1;
}

.mobile-lang-switcher li a img {
    border-radius: 2px;
}

/* Body lock */
body.mobile-menu-open {
    overflow: hidden;
}

/* ===================== RESPONSIVE ===================== */


@media (max-width: 1200px) {
    /* Show burger, hide desktop nav */
    .burger-toggle {
        display: flex;
    }

    #header-nav {
        display: none;
    }

    /* Show overlay when open */
    .mobile-menu-overlay {
        display: flex;
    }

    .mobile-menu-overlay:not(.open) {
        pointer-events: none;
    }

    /* Adjust header for mobile */
    #header-menu {
        width: 90%;
        padding: 15px 0;
    }

    .et_fixed_nav.et_show_nav #page-container {
        padding-top: 80px;
    }
    .mobile-nav-list .mega-menu-card {
        padding: 20px;
        width: 25%;
    }
}

@media screen and (max-width: 900px) {
    .mobile-nav-list .mega-menu-grid{
        flex-wrap: wrap;
    }

    .mobile-nav-list .mega-menu-card {
        width: 49%;
    }
}
@media screen and (max-width: 660px) {
    .mobile-nav-list .mega-menu-grid{
        flex-wrap: wrap;
    }

    .mobile-nav-list .mega-menu-card {
        width: 100%;
    }
}