.ae-offcanvas-top {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 0 20px 12px;
}

.ae-offcanvas-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-ae-anthracite);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ae-offcanvas-close:hover,
.ae-offcanvas-close:focus {
    color: var(--color-ae-gold);
    text-decoration: none;
}

.ae-universe-switch-wrap {
    width: 100%;
    padding: 20px 8px 40px;
    box-sizing: border-box;
}

.ae-universe-switch {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 4px;
    border-radius: 16px;
    background: rgba(40, 40, 45, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    overflow: hidden;
}

.ae-universe-switch__link {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ae-universe-switch__link:not(.is-active) {
    color: rgba(255, 255, 255, 0.96);
    background: transparent;
}

.ae-universe-switch__link:not(.is-active):hover,
.ae-universe-switch__link:not(.is-active):focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.ae-universe-switch__link.is-active {
    background: rgba(200, 163, 112, 0.72);
    color: var(--color-ae-anthracite);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ae-universe-switch__link.is-active:hover,
.ae-universe-switch__link.is-active:focus {
    color: var(--color-ae-anthracite);
    background: rgba(200, 163, 112, 0.88);
    text-decoration: none;
}

.ae-universe-switch__link.is-active {
    background: var(--color-ae-gold);
    color: var(--color-ae-anthracite);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ae-universe-switch__link.is-active:hover,
.ae-universe-switch__link.is-active:focus {
    color: var(--color-ae-anthracite);
    text-decoration: none;
}

@media (max-width: 767px) {
    .ae-universe-switch-wrap {
        padding: 8px 6px 35px;
    }

    .ae-universe-switch__link {
        min-height: 50px;
        padding: 12px 14px;
        font-size: 15px;
    }
}

.ae-universe-switch__link.is-active {
    background: var(--color-ae-gold);
    color: var(--color-ae-anthracite);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ae-universe-switch__link.is-active:hover,
.ae-universe-switch__link.is-active:focus {
    color: var(--color-ae-anthracite);
    text-decoration: none;
}

/* Très important : éviter que l'ancien comportement "haut / bas" reste actif */
.offcanvas-menu_wrapper .offcanvas-body.style-02 .inner-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 10px;
}

.offcanvas-menu_wrapper .offcanvas-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 0 0 auto;
}

/* Le menu doit suivre immédiatement le switch */
.offcanvas-menu_wrapper .offcanvas-menu_area {
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
}

/* Mobile */
.mobile-menu_wrapper .inner-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: 100dvh !important;
    padding-top: 10px;
}

.mobile-menu_wrapper .ae-offcanvas-top {
    padding: 0 20px 12px;
}

.mobile-menu_wrapper .ae-offcanvas-close {
    color: var(--color-ae-anthracite);
}

.mobile-menu_wrapper .ae-universe-switch-wrap {
    width: 100%;
    padding: 0 12px 14px;
    box-sizing: border-box;
}

.mobile-menu_wrapper .offcanvas-menu_area {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}
