/* =============================================
   LANG SWITCH — bouton FR / EN dans le footer
   Hérite la couleur du parent (currentColor) pour l'état inactif,
   et utilise le orange de la marque pour l'état actif → toujours
   parfaitement lisible, peu importe le fond.
   ============================================= */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 1em;
    font-family: 'RMMono', monospace;
    font-size: 0.78rem;
    line-height: 1;
    user-select: none;
}

.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4em;
    padding: 0.5em 0.85em;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 2px;
    color: inherit;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
    opacity: 1;
    outline: none;
}

/* État ACTIF : fond orange brand, texte blanc, bordure orange.
   Toujours lisible — pas de blend mode, pas d'invert. */
.lang-switch__btn.is-active {
    opacity: 1;
    background-color: #EB6A26;
    border-color: #EB6A26;
    color: #ffffff !important;
    cursor: default;
}

.lang-switch__btn.is-active .lang-switch__label {
    color: inherit;
}

.lang-switch__sep {
    opacity: 0.3;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .lang-switch {
        font-size: 0.85rem;
        margin-top: 1.25em;
    }
    .lang-switch__btn {
        padding: 0.55em 0.95em;
    }
}
