/* ==========================================================
   HEADER — variantes linguistiques compactes
   ========================================================== */

.header-region-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
}

.header-region-button {
    width: 30px;
    min-width: 30px;
    height: 32px;

    display: inline-grid;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;

    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.82);

    font: inherit;
    font-size: 13px;

    cursor: pointer;
}

.header-region-button:hover,
.header-region-button[aria-expanded="true"] {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.20);
}

.header-region-menu {
    position: absolute;
    z-index: 500;

    top: calc(100% + 9px);
    right: 0;

    width: min(330px, calc(100vw - 24px));

    display: none;

    padding: 15px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 15px;

    background: #0b1c30;

    box-shadow:
        0 22px 60px rgba(0,0,0,.38);
}

.header-region-menu.open {
    display: block;
}

.header-region-title {
    margin-bottom: 10px;

    color: rgba(255,255,255,.48);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.header-region-menu select {
    width: 100%;
    min-height: 42px;

    padding: 0 11px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;

    background: #10263e;
    color: #f4f7fb;

    font: inherit;
    font-size: 12px;
}

/* Feedback du bouton Partager */
.share-feedback {
    position: fixed;
    z-index: 1000;

    left: 50%;
    bottom: 80px;

    transform: translateX(-50%) translateY(10px);

    padding: 9px 14px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    background: rgba(8,20,35,.96);
    color: #f4f7fb;

    font-size: 12px;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.share-feedback.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 700px) {
    .header-region-button {
        width: 28px;
        min-width: 28px;
        height: 30px;
    }

    .header-region-menu {
        position: fixed;

        top: 62px;
        left: 10px;
        right: 10px;

        width: auto;
    }
}

/* Langue + variante dans un seul sélecteur */

.unified-language-select {
    min-height: 34px;

    padding: 0 30px 0 12px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.92);

    color-scheme: dark;

    appearance: none;
    -moz-appearance: none;

    background-color: #04101f;
    color: #ffffff;

    font: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.unified-language-select:hover {
    background: rgba(255,255,255,.08);
}

.unified-language-select option {
    background-color: #04101f !important;
    color: #ffffff !important;
}

@media (max-width: 700px) {
    .unified-language-select {
        max-width: 130px;
        min-height: 32px;
        padding-left: 10px;
        font-size: 10px;
    }
}

/* CUSTOM_LANGUAGE_MENU_V1_START */

.custom-language-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.custom-language-menu-button {
    position: relative;

    min-height: 34px;

    padding: 0 30px 0 12px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    background: #04101f;
    color: #ffffff;

    font: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.custom-language-menu-button::after {
    content: "▾";

    position: absolute;

    right: 11px;
    top: 50%;

    transform: translateY(-52%);

    opacity: .72;
}

.custom-language-menu-button:hover,
.custom-language-menu-button:focus-visible {
    background: #0b1a2b;

    outline: none;

    border-color: rgba(255,255,255,.22);
}

.custom-language-menu-list {
    position: absolute;

    top: calc(100% + 7px);
    right: 0;

    z-index: 1000;

    min-width: 150px;

    padding: 6px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;

    background: #04101f;

    box-shadow:
        0 14px 35px
        rgba(0,0,0,.38);
}

.custom-language-menu-list[hidden] {
    display: none;
}

.custom-language-menu-item {
    display: block;

    width: 100%;

    padding: 8px 10px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #ffffff;

    font: inherit;
    font-size: 12px;

    text-align: left;

    cursor: pointer;
}

.custom-language-menu-item:hover,
.custom-language-menu-item:focus-visible {
    background: rgba(255,255,255,.09);

    outline: none;
}

.custom-language-menu-item.is-active {
    background: rgba(255,255,255,.13);
}

@media (max-width: 700px) {
    .custom-language-menu-button {
        min-height: 32px;
        max-width: 130px;

        padding-left: 10px;

        font-size: 10px;
    }

    .custom-language-menu-list {
        min-width: 135px;
    }
}

/* CUSTOM_LANGUAGE_MENU_V1_END */
