
/* FR / EN — sélecteur de langue commun */
.language-switch {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    color: var(--text-soft, #8e7ca3);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1;
}
.language-switch a {
    color: inherit;
    text-decoration: none;
    opacity: .58;
    transition: opacity 160ms ease, color 160ms ease;
}
.language-switch a:hover,
.language-switch a:focus-visible {
    opacity: 1;
    color: var(--text, #332b39);
}
.language-switch a[aria-current="page"] {
    color: var(--text, #332b39);
    opacity: 1;
    font-weight: 900;
}
.language-switch__separator { opacity: .32; }
html[data-theme="dark"] .language-switch a:hover,
html[data-theme="dark"] .language-switch a:focus-visible,
html[data-theme="dark"] .language-switch a[aria-current="page"] { color: #fff; }

/* Accueil : navigation centrée, actions complètement à droite. */
.home-site-header .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}
.home-site-header .brand { justify-self: start; }
.home-site-header .main-nav { justify-self: center; }
.home-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
}
.home-header-actions .language-switch { margin-left: 8px; }

/* Pages produits / légale : la langue reste le dernier élément à droite. */
.csgo-header-actions .language-switch,
.mz-header-actions .language-switch,
.legal-header-actions .language-switch { margin-left: 8px; }

@media (max-width: 1050px) {
    .home-site-header .header-inner {
        display: flex;
        gap: 12px;
    }
    .home-site-header .brand { margin-right: auto; }
    .home-header-actions { margin-left: auto; gap: 10px; }
}
@media (max-width: 560px) {
    .language-switch { gap: 4px; font-size: .66rem; letter-spacing: .03em; }
    .home-header-actions { gap: 7px; }
    .home-header-actions .language-switch,
    .csgo-header-actions .language-switch,
    .mz-header-actions .language-switch,
    .legal-header-actions .language-switch { margin-left: 2px; }
}

/* =========================================================
   V122 — LANGUE AU BORD DROIT DU HEADER
   Sur grands écrans, le sélecteur FR / EN est détaché du groupe
   jour/nuit et placé presque contre le bord de la fenêtre.
   ========================================================= */
@media (min-width: 1400px) {
    .home-site-header .language-switch,
    .csgo-header .language-switch,
    .mz-topbar .language-switch,
    .legal-site-header .language-switch {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0 !important;
        z-index: 3;
    }
}
