/* ── Screen reader only ── */
.lang-switcher-wrap .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Wrapper global — reset des règles nav héritées ── */
.single #content .post-content .lang-switcher-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 30px 0;
    /* Neutralise float: right et position: relative hérités du sélecteur nav global */
    float: none;
    position: static;
    text-align: left;
    padding: 0;
    /* Assure que le switcher reste dans le flux au-dessus du contenu */
    width: 100%;
}

/* ── Globe : cercle indépendant ── */
.single #content .post-content .lang-switcher__globe {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.12),
        -3px -3px 7px rgba(255, 255, 255, 0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    flex-shrink: 0;
}

/* ── Pill container ── */
.single #content .post-content .lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 6px 8px;
    background: #f0f0f0;
    border: none;
    border-radius: 999px;
    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.10),
        inset -3px -3px 6px rgba(255, 255, 255, 0.85);
    list-style: none;
}

/* ── List items ── */
.single #content .post-content .lang-switcher li {
    display: contents;
}

/* ── Items ── */
.single #content .post-content .lang-switcher__item,
.single #content .post-content .lang-switcher__item:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'VistaSlabOT-Bold', serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 10px 22px;
    background: transparent;
    color: #aaaaaa;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
    white-space: nowrap;
    border: none;
    outline: none;
}

/* Focus visible clavier — WCAG 2.4.7 */
.single #content .post-content .lang-switcher__item:focus-visible {
    outline: 2px solid #003662;
    outline-offset: 2px;
    border-radius: 999px;
}

/* Séparateur entre deux items inactifs adjacents */
.single #content .post-content .lang-switcher__item:not(.current) + .lang-switcher__item:not(.current) {
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.single #content .post-content .lang-switcher__item:hover,
.single #content .post-content .lang-switcher__item:visited:hover {
    color: #343434;
}

/* ── Item actif ── */
.single #content .post-content .lang-switcher__item.current,
.single #content .post-content .lang-switcher__item.current:visited {
    background: #ffffff;
    box-shadow:
        3px 3px 7px rgba(0, 0, 0, 0.12),
        -2px -2px 5px rgba(255, 255, 255, 0.95);
    color: #003662;
    cursor: default;
    pointer-events: none;
    border: none;
}
