/* Scoringames — tokens générés depuis tokens.json. Thème par défaut : nuit. */

:root, [data-theme="nuit"] {
  --fond: oklch(0.15 0.015 285);
  --surface: oklch(0.21 0.02 285);
  --encre: oklch(0.97 0.035 102);
  --encre-douce: oklch(0.80 0.025 100);
  --creme: oklch(0.97 0.035 102);
  --nuit: oklch(0.15 0.015 285);
  --rose: oklch(0.67 0.21 8);
  --orange: oklch(0.72 0.17 50);
  --ambre: oklch(0.82 0.16 78);
  --vert: oklch(0.76 0.12 160);
  --bleu: oklch(0.75 0.12 225);
  --rose-profond: oklch(0.52 0.19 8);
  --orange-profond: oklch(0.55 0.15 45);
  --ambre-profond: oklch(0.55 0.11 70);
  --vert-profond: oklch(0.50 0.10 160);
  --bleu-profond: oklch(0.50 0.09 232);
  --accent: var(--rose);
  --score: var(--ambre);
}

[data-theme="jour"] {
  --fond: oklch(0.97 0.035 102);
  --surface: oklch(0.93 0.045 100);
  --encre: oklch(0.15 0.015 285);
  --encre-douce: oklch(0.45 0.02 285);
  --accent: var(--rose-profond);
  --score: var(--ambre-profond);
}

:root {
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-texte: "Figtree", system-ui, sans-serif;
  --font-chiffres: "JetBrains Mono", ui-monospace, monospace;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-safe-haut: 250px;
  --space-safe-bas: 340px;
  --radius-de: 20%;
  --radius-sm: 12px;
  --radius-lg: 40px;
  --radius-pill: 9999px;
}

/* Styles de texte */
.story-geant {
  font-family: var(--font-display);
  font-size: 240px;
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -6px;
}
.story-titre {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -3px;
}
.story-sous-titre {
  font-family: var(--font-texte);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 600;
}
.story-mention {
  font-family: var(--font-texte);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
}
.story-chiffre {
  font-family: var(--font-chiffres);
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
}
.titre-1 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}
.titre-2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}
.corps {
  font-family: var(--font-texte);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
.legende {
  font-family: var(--font-texte);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}
.score-ecran {
  font-family: var(--font-chiffres);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

/* Bouton « remonter » commun (partials/_haut_de_page.html.twig) : rond, en bas à droite, au-dessus du contenu */
.haut-de-page { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid oklch(0.40 0.02 285 / 0.6); background: var(--surface); color: var(--encre); box-shadow: 0 8px 24px oklch(0 0 0 / 0.4); transition: background .15s; }
.haut-de-page:hover { background: var(--fond); }
.haut-de-page:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.haut-de-page[hidden] { display: none; }
/* Au-dessus de la barre de validation collée en bas des formulaires */
body:has(.pied-fixe) .haut-de-page { bottom: 96px; }
@media (min-width: 861px) { .haut-de-page { right: 20px; bottom: 20px; } }
