/* ════════════════════════════════════════════════════════
   SY GROUP — SÉLECTEUR LANGUE · Style Air France
   Fichier partagé — inclus depuis les 3 sites :
   sygroup-ci.com / /travels/ / /insurances/
   ════════════════════════════════════════════════════════ */

/* ══ Bouton déclencheur (header dark — travels, insurances) ══ */
.lang-globe-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    border: 1.5px solid rgba(201,168,76,0.45);
    background: transparent;
    color: rgba(255,255,255,0.88);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}
.lang-globe-btn:hover,
.lang-globe-btn:focus-visible {
    border-color: #C9A84C;
    color: #C9A84C;
    outline: none;
}
.lang-globe-ico {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ══ Variante light (header blanc — site principal) ══ */
.lang-globe-btn.lang-btn-light {
    border-color: rgba(212,175,122,0.3);
    color: #1A1A1A;
}
.lang-globe-btn.lang-btn-light:hover,
.lang-globe-btn.lang-btn-light:focus-visible {
    border-color: #D4AF7A;
    color: #D4AF7A;
}

/* ══ Overlay plein écran ══ */
.lang-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 12, 28, 0.88);
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lang-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ══ Carte modale ══ */
.lang-modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: clamp(28px, 5vw, 48px);
    width: min(480px, 100%);
    position: relative;
    box-shadow:
        0 40px 100px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.04);
    transform: translateY(28px) scale(0.96);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lang-modal-overlay.open .lang-modal-card {
    transform: translateY(0) scale(1);
}

/* ══ Bouton fermer ══ */
.lang-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: background 0.18s ease, color 0.18s ease;
}
.lang-modal-close:hover { background: #E5E7EB; color: #1A1A1A; }
.lang-modal-close svg { width: 18px; height: 18px; }

/* ══ En-tête modal ══ */
.lang-modal-head { text-align: center; margin-bottom: 28px; }
.lang-modal-globe-ico {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: #D4AF7A;
    display: block;
}
.lang-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    font-family: 'Playfair Display', 'Cormorant Garamond', 'Montserrat', Georgia, serif;
}
.lang-modal-sub {
    font-size: 0.76rem;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.5;
}

/* ══ Grille 2 langues ══ */
.lang-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

/* ══ Carte langue ══ */
.lmo-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    background: #F9FAFB;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    font-family: inherit;
}
.lmo-btn:hover {
    border-color: #D4AF7A;
    background: rgba(212,175,122,0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,175,122,0.18);
}
.lmo-btn.lmo-active {
    border-color: #D4AF7A;
    background: rgba(212,175,122,0.08);
}
.lmo-btn:focus-visible { outline: 2px solid #D4AF7A; outline-offset: 3px; border-radius: 14px; }

/* Badge ✓ actif */
.lmo-check {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #D4AF7A;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}
.lmo-btn.lmo-active .lmo-check { display: flex; }
.lmo-check svg { width: 11px; height: 11px; }

.lmo-flag   { font-size: 2.8rem; line-height: 1; }
.lmo-name   { font-size: 1rem; font-weight: 700; color: #111827; letter-spacing: -0.01em; }
.lmo-region { font-size: 0.65rem; color: #9CA3AF; text-transform: uppercase; letter-spacing: 1px; }

/* ══ Note bas de modale ══ */
.lang-modal-note {
    text-align: center;
    font-size: 0.62rem;
    color: #D1D5DB;
    border-top: 1px solid #F3F4F6;
    padding-top: 16px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* ══ Toggle pill FR | EN (header blanc corporate) ══ */
.lang-toggle-pill {
    display: flex;
    align-items: center;
    border: 1px solid #E8E6E0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: 30px;
    flex-shrink: 0;
}
.ltp-btn {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #6B6B6B;
    background: transparent;
    border: none;
    padding: 0 11px;
    height: 100%;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}
.ltp-btn.ltp-active {
    background: #1C1C1C;
    color: #fff;
}
.ltp-btn:hover:not(.ltp-active) {
    background: #F5F5F3;
    color: #1C1C1C;
}
.ltp-sep {
    width: 1px;
    height: 14px;
    background: #E8E6E0;
    flex-shrink: 0;
}

/* ══ Mobile ══ */
@media (max-width: 380px) {
    .lang-modal-grid { grid-template-columns: 1fr; }
    .lmo-btn {
        flex-direction: row;
        text-align: left;
        padding: 16px;
        gap: 16px;
    }
    .lmo-flag { font-size: 2.2rem; }
    .lmo-check { top: 50%; transform: translateY(-50%); right: 14px; }
}
