/**
 * FEPRAFO — Switch de langue (header)
 * Style premium avec drapeaux SVG — VERSION COMPACTE
 */

.fep-lang-switcher {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ================================================================== *
 *  STYLE TOGGLE (FR | NL avec drapeaux) — COMPACT
 * ================================================================== */
.fep-lang-switcher--toggle {
    background: #f4f6f9 !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 100px !important;
    padding: 3px !important;
    gap: 1px !important;
    box-shadow: none !important;
}

.fep-lang-switcher__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #7c8a9e !important;
    text-decoration: none !important;
    border-radius: 100px !important;
    letter-spacing: 0.04em !important;
    transition: all .2s ease !important;
    background: transparent !important;
    border: none !important;
    line-height: 1 !important;
}

.fep-lang-switcher__link:hover {
    color: #0F2A47 !important;
    background: transparent !important;
    text-decoration: none !important;
}

.fep-lang-switcher__link.is-active {
    background: #fff !important;
    color: #0F2A47 !important;
    box-shadow: 0 1px 3px rgba(15,42,71,0.12) !important;
}

.fep-lang-switcher__link.is-active:hover {
    color: #0F2A47 !important;
    background: #fff !important;
}

/* Drapeau SVG (rectangle arrondi) — plus petit */
.fep-lang-switcher__flag-svg {
    display: inline-block !important;
    width: 17px !important;
    height: 11px !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06) !important;
    background: white !important;
}

.fep-lang-switcher__flag-svg svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.fep-lang-switcher__code {
    display: inline-block !important;
    line-height: 1 !important;
}

/* ================================================================== *
 *  STYLE DROPDOWN
 * ================================================================== */
.fep-lang-switcher--dropdown {
    position: relative !important;
}

.fep-lang-switcher__trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 14px 7px 8px !important;
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    border: 1.5px solid #eef2f7 !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    color: #1c1e21 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    letter-spacing: 0.05em !important;
    transition: all .2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.fep-lang-switcher__trigger:hover {
    border-color: #4A8BC2 !important;
    box-shadow: 0 4px 14px rgba(74,139,194,.18) !important;
    background: white !important;
}

.fep-lang-switcher__trigger .fep-lang-switcher__flag-svg {
    width: 22px !important;
    height: 16px !important;
}

.fep-lang-switcher__chevron {
    color: #94a3b8;
    transition: transform .2s ease;
    margin-left: 2px;
}
.fep-lang-switcher--dropdown.is-open .fep-lang-switcher__chevron {
    transform: rotate(180deg);
    color: #4A8BC2;
}

.fep-lang-switcher__menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    min-width: 200px !important;
    background: white !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.04) !important;
    padding: 6px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s ease;
    z-index: 200 !important;
}
.fep-lang-switcher--dropdown.is-open .fep-lang-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fep-lang-switcher__menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all .15s ease !important;
}
.fep-lang-switcher__menu-item:hover {
    background: #f8fafc !important;
    color: #2C5F8D !important;
}

.fep-lang-switcher__menu-flag {
    display: inline-block !important;
    width: 24px !important;
    height: 18px !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08) !important;
    background: white !important;
}
.fep-lang-switcher__menu-flag svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.fep-lang-switcher__menu-label {
    flex: 1;
}

.fep-lang-switcher__menu-check {
    color: #7CB342;
    font-weight: 800;
}

/* ================================================================== *
 *  RESPONSIVE
 * ================================================================== */
@media (max-width: 500px) {
    .fep-lang-switcher__link {
        padding: 5px 8px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    .fep-lang-switcher__flag-svg {
        width: 16px !important;
        height: 11px !important;
    }
}