/* Content Pro, jetons des écrans de l'app (offre, retour de paiement, hub, consentement, ajout de passkey).
   Couche de la maison Another Framework (skill jetons-famille, couches/maison.css) : clair par défaut, sombre selon le
   système. Accent unique : l'ardoise (#3f5566 en clair, #9fb3c4 en sombre), réservé au signe, aux liens et à la
   sélection ; jamais pour un état. Les teintes de données (--music, --sfx, --caps) restent celles du montage.
   Plan d'origine : docs/design/2026-10-22_plan_design.md. */
:root {
  --bg: #ffffff; --bg-2: #f7f7f8; --line: #ebebeb; --line-2: #dcdcdf;
  --text: #171717; --text-2: #5e5e5e; --text-3: #62626c; --bar: #7e7e88; --beat: #ececef;
  --img: #171717; --music: #0b63c9; --sfx: #8a5a00; --caps: #9b3f78; --hit: #000000;
  --refus: #9f4502; --niveau: #bb8105; --direct: #1a84b6;
  --ardoise: #3f5566; --ardoise-rgb: 63 85 102; --signe-dos: #7f7f7f;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pixel: "Geist Pixel", "Geist Mono", ui-monospace, monospace;
  --ease-productive: cubic-bezier(0.2, 0, 0.38, 0.9);
  --ease-expressive: cubic-bezier(0.4, 0.14, 0.3, 1);
  --sixteenth: 125ms; /* une double croche à 120 BPM */
  --r-pill: 999px; --r-panel: 8px; --r-notice: 12px; --r-win: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #0c0c0e; --line: #1f1f22; --line-2: #2e2e33;
    --text: #ededed; --text-2: #a1a1a1; --text-3: #8a8a93; --bar: #6e6e78; --beat: #2a2a2e;
    --img: #ededed; --music: #56b4e9; --sfx: #e69f00; --caps: #cc79a7; --hit: #ffffff;
    --refus: #a84800; --niveau: #c18505; --direct: #3c9cd0;
    --ardoise: #9fb3c4; --ardoise-rgb: 159 179 196; --signe-dos: #828282;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #0c0c0e; --line: #1f1f22; --line-2: #2e2e33;
  --text: #ededed; --text-2: #a1a1a1; --text-3: #8a8a93; --bar: #6e6e78; --beat: #2a2a2e;
  --img: #ededed; --music: #56b4e9; --sfx: #e69f00; --caps: #cc79a7; --hit: #ffffff;
  --refus: #a84800; --niveau: #c18505; --direct: #3c9cd0;
  --ardoise: #9fb3c4; --ardoise-rgb: 159 179 196; --signe-dos: #828282;
  color-scheme: dark;
}

/* Signe Content Pro (« la pile vue de face », version simplifiée sous 24 px) : le dos en gris, la face à l'ardoise. */
.signe { display: block; width: 20px; height: 20px; flex: none; }
.signe .dos { fill: var(--signe-dos); }
.signe .face { fill: var(--ardoise); }
::selection { background: rgb(var(--ardoise-rgb) / 0.28); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hit); outline-offset: 2px; border-radius: 4px; }

/* valeurs mesurées : chiffres tabulaires (Geist, C3) ; la virgule décimale française reste serrée, contrairement au mono */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background-color 150ms var(--ease-productive), border-color 150ms var(--ease-productive);
}
.btn:hover { background: var(--bg-2); border-color: var(--bar); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: var(--text-2); border-color: var(--text-2); }
.btn svg { width: 16px; height: 16px; }

/* verdicts : forme + mot + valeur + cause (jamais la couleur seule) */
.glyph { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.glyph.held { background: var(--text); }
.glyph.gap { border: 2px solid var(--text); background: transparent; }
.glyph.info { border-radius: 2px; background: var(--text-3); }

.kbd {
  font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--line-2); color: var(--text-2);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
