/* PolyglotCards — page d'attente. Feuille unique, aucune dépendance externe. */

:root {
  color-scheme: light dark;

  --bg: #f7f5f2;
  --text: #1b1d21;
  --text-muted: #52565c;
  --border: #e2ddd6;
  --mark-red: #c8102e;
  --mark-blue: #003da5;
  --mark-teal: #0f9d58;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --text: #f2f0ec;
    --text-muted: #b7bcc4;
    --border: #2a2d33;
    /* Variantes légèrement éclaircies : les teintes de marque, trop sombres
       sur fond sombre, tomberaient sous le contraste lisible. */
    --mark-red: #ff5a72;
    --mark-blue: #6ea8fe;
    --mark-teal: #3ddc97;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.page {
  width: 100%;
  max-width: 32rem;
  text-align: center;
}

.mark {
  width: clamp(3rem, 10vw, 4rem);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
}

.lede {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin: 0 0 0.4rem;
}

.soon {
  color: var(--text-muted);
  margin: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  width: 3rem;
  margin: 2rem auto;
}

/* Repère de structure pour les technologies d'assistance uniquement : les
   deux blocs de langue n'ont pas besoin d'un titre visible sur une page
   aussi courte, mais un lecteur d'écran bénéficie de savoir où l'un finit
   et où l'autre commence. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang {
  margin: 0 0 0.4rem;
}

/* Un seul champ visuel par langue : pas de bascule dépendante du script,
   les deux blocs sont toujours présents et navigables au clavier comme au
   lecteur d'écran (chacun porte son propre attribut lang). */
section[lang] :is(.lede, .soon) {
  margin-inline: auto;
}
