/* Sélecteur de langue (posé par tools/build-i18n.mjs) et polices des pages en chinois simplifié */
.langs { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.bar nav.langs { display: flex; gap: 14px; }
.langs a { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; opacity: .72; border-bottom: 0; }
.langs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.langs a[aria-current] { opacity: 1; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .langs { gap: 10px; font-size: 13px; } }

/* Chinois : la police latine d'abord (chiffres, noms propres), Noto Serif SC pour les caractères */
html:lang(zh-Hans) {
  --font-display: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-text: "Lora", "Noto Serif SC", serif;
  --disp: "Cormorant Garamond", "Noto Serif SC", serif;
  --text: "Lora", "Noto Serif SC", serif;
  line-break: strict;
}
html:lang(zh-Hans) body { letter-spacing: 0; }
html:lang(zh-Hans) [lang="zh-Hans"], html:lang(zh-Hans) .hanzi { font-family: "Noto Serif SC", serif; }
/* Accueil sur tablette et téléphone : le sélecteur va dans le menu ouvert, sous le bouton */
.nav.is-open .nav__actions .langs { justify-content: center; order: 2; }
/* Écran étroit : codes courts (FR, EN, 中文) ; le nom complet reste lu par les lecteurs d'écran */
.langs a { white-space: nowrap; }
.langs__short { display: none; }
@media (max-width: 640px) {
  .langs__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .langs__short { display: inline; }
  .bar .back { white-space: nowrap; font-size: 14px; }
}
