/* QUIZR — site public (SITE-LEGAL-001). Tokens repris de quizr-app/src/theme/tokens.ts ; police : Onest (self-hostée). */
@font-face { font-family: Onest; src: url('/fonts/Onest-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Onest; src: url('/fonts/Onest-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: Onest; src: url('/fonts/Onest-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --background: #151618; --inset: #101113; --surface: #171b21; --surface-pressed: #2b2e33;
  --border: #34373d; --border-strong: #484c54;
  --text: #f5f5f2; --cream: #f2eee5; --secondary: #b4b7be; --muted: #777c86;
  --coral: #ff6b61; --coral-deep: #d9564c;
  --radius: 12px; --gutter: 20px; --measure: 680px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--background); color: var(--text);
  font-family: Onest, system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 500; font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--coral); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: absolute; left: var(--gutter); top: -100px; padding: 10px 14px; background: var(--cream); color: var(--background); font-weight: 800; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* En-tête (pages internes) : le wordmark QUIZR seul. */
.site-header { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter) 8px; }
.signature { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.signature .word { width: auto; height: 32px; }

main { flex: 1 0 auto; width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 18px var(--gutter) 56px; }
.eyebrow { margin: 20px 0 6px; color: var(--coral); font-weight: 800; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 6px; color: var(--cream); font-weight: 900; font-size: clamp(1.75rem, 6.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h2 { margin: 2.1em 0 .45em; color: var(--cream); font-weight: 800; font-size: 1.3rem; line-height: 1.3; text-wrap: balance; }
p { margin: 0 0 1em; color: var(--text); }
.meta { color: var(--muted); font-size: .95rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0 0 .5em; padding-left: .2em; }
li::marker { color: var(--coral); font-weight: 800; }
strong { font-weight: 800; color: var(--cream); }
.lead { color: var(--secondary); font-size: 1.125rem; }

/* Boutons : surface neutre (comme les lignes de Paramètres) ou corail plat pour l'action principale. */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; text-decoration: none; transition: transform 75ms ease-out, background-color 120ms ease-out; }
.btn:hover { background: var(--surface-pressed); color: var(--text); }
.btn:active { transform: translateY(1px) scale(.99); background: var(--surface-pressed); }
.btn--primary { background: var(--coral); border-color: var(--coral); color: var(--background); box-shadow: 0 4px 0 var(--coral-deep); margin-bottom: 4px; }
.btn--primary:hover { background: #ff7c73; color: var(--background); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coral-deep); background: var(--coral); }

.panel { margin: 1.4em 0; padding: 18px 18px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel > :first-child { margin-top: 0; }
.panel h2 { margin-top: 0; font-size: 1.15rem; }
.note { color: var(--secondary); font-size: .975rem; }
.mail { font-weight: 800; word-break: break-word; }

/* Pied de page commun */
.site-footer { flex-shrink: 0; width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter) calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
.site-footer a { color: var(--secondary); }
.site-footer a:hover { color: var(--cream); }
.site-footer p { margin: 0; color: var(--muted); }

@media (min-width: 720px) {
  body { font-size: 1.125rem; }
  .site-header { padding-top: 32px; }
  main { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Mentions légales : champs à compléter (⚠️) bien visibles. */
.todo { padding: 1px 8px; border: 1px dashed var(--coral); border-radius: 6px; background: rgba(255, 107, 97, .12); color: var(--cream); font-weight: 800; }
