/*
 * Vitrine de Tremplin (montremplin.app) : HTML et CSS, mobile d'abord, un seul script (assets/site.js) pour les
 * animations de l'accueil.
 *
 * Charte : partie 37 du CdC et web/src/styles/tokens.css. Aucune autre couleur ni police n'est permise
 * (contrôlé par scripts/check.mjs). Polices auto-hébergées : Poppins (OFL) et Permanent Marker (Apache 2.0).
 *
 * Contrastes vérifiés (AA) :
 *   jaune #EFFC24 sur encre #0D0D0D 17,6:1 ; blanc sur encre 19,4:1 ; gris #A9A9B2 sur encre 8,4:1,
 *   sur surface #1C1C21 7,4:1 ; encre sur jaune 17,6:1 ; encre sur #F3F3F1 18:1 ; gris #55555C sur #F3F3F1
 *   6,7:1, sur blanc 7,3:1 ; blanc sur violet #7457F0 4,8:1 (bulles de prof, cf. DECISIONS E04) ;
 *   vert #1FBF5F sur surface 6,9:1 ; encre sur vert 9,4:1 ; encre sur rouge #FF4F40 6,2:1 ;
 *   contour #6B6B75 sur encre 3,7:1 (WCAG 1.4.11).
 */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Permanent Marker';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/permanent-marker-latin-400-normal.woff2') format('woff2');
}

:root {
  /* Partie 37 */
  --yellow: #EFFC24;
  --ink: #0D0D0D;
  --surface: #1C1C21;
  --surface-2: #2A2A31;
  --muted: #A9A9B2;
  --violet: #7B5CFF;
  --red: #FF4F40;
  --green: #1FBF5F;
  --parent-bg: #F3F3F1;
  /* Compléments de web/src/styles/tokens.css */
  --white: #FFFFFF;
  --parent-line: #E2E2DE;
  --parent-chip-line: #D9D9D4;
  --parent-muted: #55555C;
  --violet-deep: #7457F0;
  --line-strong: #6B6B75;
  --flame: #FF8A00;

  --font-text: 'Poppins', system-ui, sans-serif;
  --font-accent: 'Permanent Marker', 'Poppins', cursive;

  --radius-card: 18px;
  --radius-button: 16px;
  --radius-chip: 20px;
  --radius-sticker: 8px;

  --gutter: 1rem;
  --section-y: 3.5rem;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--ink);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 9vw, 4.2rem);
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--yellow);
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

sup {
  font-size: 0.65em;
  line-height: 0;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.light :focus-visible,
.band :focus-visible,
.doc :focus-visible {
  outline-color: var(--ink);
}

.app-card :focus-visible,
.light .app-card :focus-visible {
  outline-color: var(--yellow);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sticker);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ boutons, stickers, puces */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0 1.5rem;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
}

.light .btn-primary,
.doc .btn-primary {
  border-color: var(--ink);
}

.light .btn-primary:hover {
  background: var(--ink);
  color: var(--yellow);
}

.app-card .btn-primary,
.light .app-card .btn-primary {
  border-color: var(--yellow);
}

.app-card .btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--white);
}

.light .btn-secondary {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-small {
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.95rem;
}

.btn-ink {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

.btn-ink:hover {
  background: var(--surface);
  border-color: var(--surface);
}

.btn-ink-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ink-outline:hover {
  background: var(--ink);
  color: var(--yellow);
}

.sticker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sticker);
  box-shadow: 0 0 0 2px var(--yellow);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 1rem;
  line-height: 1.3;
  transform: rotate(-3deg);
}

.light .sticker,
.band .sticker {
  box-shadow: none;
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.light .kicker {
  color: var(--parent-muted);
}

.lead {
  max-width: 40rem;
  font-size: 1.1rem;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.light .note {
  color: var(--parent-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: var(--radius-chip);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.chip-on {
  background: var(--yellow);
  color: var(--ink);
}

.chip-red {
  background: var(--red);
  color: var(--ink);
}

.chip-green {
  background: var(--green);
  color: var(--ink);
}

.chip-violet {
  background: var(--violet-deep);
  color: var(--white);
}

/* ------------------------------------------------------------------ en-tête collant */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  padding: 0.5rem 0;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--surface-2);
  box-shadow: 0 12px 30px -20px var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}

.logo img {
  width: 112px;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-cta .btn-small {
  min-height: 40px;
  padding: 0 0.85rem;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ sections */

section {
  padding: var(--section-y) 0;
}

.light {
  background: var(--parent-bg);
  color: var(--ink);
}

.light a {
  color: var(--ink);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-head .sticker {
  margin-top: 1rem;
}

/* Apparition au défilement (seulement avec le script) */

.has-js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.has-js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ premier écran */

.hero {
  position: relative;
  padding-top: 1.5rem;
  overflow: hidden;
}

.hero h1 mark {
  padding: 0 0.12em;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  white-space: nowrap;
}

.hero .lead {
  color: var(--white);
}

.hero-by {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: -0.25rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-by img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.cta-row .btn {
  flex: 1 1 14rem;
}

/* La ronde : Mme Sève au centre, les huit autres profs flottent autour (parallaxe au défilement et à la souris). */

.ronde {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 3.5rem auto 0;
}

.ronde-center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 54%;
  width: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ronde-seve {
  width: 100%;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  box-shadow: 0 0 0 10px var(--surface);
}

.bubble-hero {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 150%;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  line-height: 1.3;
  transform: translateX(-42%) rotate(-2deg);
  animation: bob 4s ease-in-out infinite alternate;
}

.floater {
  position: absolute;
  width: 24%;
  will-change: transform;
  filter: drop-shadow(0 12px 16px var(--ink));
  animation: bob 3.6s ease-in-out infinite alternate;
}

.floater.f1 { left: 2%; top: 6%; width: 27%; animation-delay: -0.4s; }
.floater.f2 { left: 78%; top: 4%; width: 20%; animation-delay: -1.1s; }
.floater.f3 { left: 72%; top: 56%; width: 27%; animation-delay: -2s; }
.floater.f4 { left: 2%; top: 60%; width: 25%; animation-delay: -0.8s; }
.floater.f5 { left: 26%; top: 2%; width: 18%; animation-delay: -2.6s; }
.floater.f6 { left: 0%; top: 33%; width: 23%; animation-delay: -1.6s; }
.floater.f7 { left: 78%; top: 30%; width: 24%; animation-delay: -3s; }
.floater.f8 { left: 40%; top: 74%; width: 25%; animation-delay: -2.2s; }

@keyframes bob {
  from { translate: 0 0; }
  to { translate: 0 -9px; }
}

/* ------------------------------------------------------------------ bandeau défilant */

.marquee {
  overflow: hidden;
  padding: 0.6rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  padding: 0 1.2rem;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  white-space: nowrap;
}

.marquee-track span::after {
  content: '✦';
  margin-left: 2.4rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------ cartes « comme dans l'app » */

.app-card {
  position: relative;
  width: min(100%, 430px);
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-2);
  background: var(--surface);
  color: var(--white);
  box-shadow: 0 24px 50px -30px var(--ink);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
}

.card-who {
  flex: 1;
  font-weight: 700;
  line-height: 1.2;
}

.card-who span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.progress-pill {
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.card-question {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.card-answer {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.card-answer s {
  color: var(--red);
  margin-right: 0.6rem;
}

.card-answer strong {
  color: var(--green);
}

.card-why {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.notion-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.9rem;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.stars i {
  font-style: normal;
  color: var(--line-strong);
  transition: color 0.3s ease;
}

.stars i::before {
  content: '★';
}

.stars b {
  margin-left: 0.4rem;
  color: var(--muted);
  font-weight: 400;
}

.stars[data-stars='1'] i:nth-child(-n + 1),
.stars[data-stars='2'] i:nth-child(-n + 2),
.stars[data-stars='3'] i:nth-child(-n + 3),
.stars[data-stars='4'] i:nth-child(-n + 4),
.stars[data-stars='5'] i:nth-child(-n + 5) {
  color: var(--yellow);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-hint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.card-result {
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 2px solid var(--green);
}

.card-result p {
  margin: 0;
  font-size: 0.95rem;
}

.card-result-title {
  color: var(--green);
  font-family: var(--font-accent);
  font-size: 1.2rem;
}

.app-card[data-state='checking']::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.55rem;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
  transform-origin: left;
  animation: fill 1.1s ease-in-out forwards;
}

@keyframes fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Le carnet : M. Pi « oups » tant que l'erreur est là, « fier » une fois vaincue. */

.widget {
  position: relative;
}

.carnet-widget {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
}

.widget-figure {
  position: relative;
  width: 120px;
  aspect-ratio: 230 / 258;
  margin: -1.5rem 0 0 auto;
}

.widget-figure img {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.widget-figure .pi-fier {
  opacity: 0;
  transform: scale(0.8) rotate(8deg);
}

.carnet-widget[data-state='done'] .pi-oups {
  opacity: 0;
  transform: scale(0.8) rotate(-8deg);
}

.carnet-widget[data-state='done'] .pi-fier {
  opacity: 1;
  transform: none;
}

/* L'interro */

.options {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 0.25rem;
}

.option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 2px solid var(--surface-2);
  background: var(--surface-2);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option:hover:not(:disabled) {
  border-color: var(--yellow);
}

.option:disabled {
  cursor: default;
}

.option.is-right {
  border-color: var(--green);
  background: var(--surface);
}

.option::after {
  margin-left: auto;
}

.option.is-right::after {
  content: '✓ Juste';
  color: var(--green);
  font-size: 0.9rem;
}

.option.is-wrong {
  border-color: var(--red);
  background: var(--surface);
  animation: shake 0.4s ease;
}

.option.is-wrong::after {
  content: '✕';
  color: var(--red);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.feedback {
  margin-top: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: var(--surface-2);
  animation: pop 0.3s ease;
}

.feedback p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.feedback-title {
  font-family: var(--font-accent);
  font-size: 1.2rem;
}

.quiz-widget[data-state='right'] .feedback-title {
  color: var(--green);
}

.quiz-widget[data-state='wrong'] .feedback-title {
  color: var(--red);
}

.feedback-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.feedback .btn {
  margin-top: 0.25rem;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* La conversation */

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 230px;
}

.bubble {
  max-width: 88%;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.bubble-prof {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--violet-deep);
  color: var(--white);
}

.bubble-me {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--yellow);
  color: var(--ink);
}

.has-js .chat-log [data-msg] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.has-js .chat-log [data-msg].is-shown {
  opacity: 1;
  transform: none;
}

.bubble-typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 0.9rem;
}

.bubble-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  animation: typing 1s ease-in-out infinite;
}

.bubble-typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-input .btn-small {
  min-height: 38px;
  border-radius: 999px;
}

.widget-prof {
  display: none;
}

/* ------------------------------------------------------------------ comment ça marche */

.steps {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.step-num {
  margin: 0 0 0.25rem;
  color: var(--yellow);
  font-family: var(--font-accent);
  font-size: 2.6rem;
  line-height: 1;
}

.step-text h3 {
  font-size: 1.5rem;
}

.step-text > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.also {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.also h3 {
  margin-bottom: 0.75rem;
}

.also ul {
  display: grid;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding-left: 1.2rem;
}

/* Cadres de téléphone (captures réelles de l'app, 390 px de large, 2x) */

.phone {
  width: min(100%, 260px);
  margin: 0 auto;
  padding: 0;
  border: 8px solid var(--surface-2);
  border-radius: 38px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px var(--ink);
  overflow: hidden;
  will-change: transform;
}

.light .phone {
  border-color: var(--ink);
  box-shadow: 0 30px 60px -36px var(--parent-muted);
}

.phone img {
  width: 100%;
}

.phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0 0;
}

.phone-row .phone + .phone {
  margin-top: 0;
}

.phone-caption {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ------------------------------------------------------------------ carnet d'erreurs, parents : deux colonnes */

.split {
  display: grid;
  gap: 2rem;
}

.points {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding-left: 1.1rem;
  border-left: 4px solid var(--yellow);
}

.points h3 {
  margin-bottom: 0.25rem;
}

.points p {
  margin: 0;
  color: var(--muted);
}

.light .points p {
  color: var(--parent-muted);
}

.mini-points {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.mini-points li {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--parent-line);
  font-size: 0.95rem;
}

.jeu .mini-points li,
section:not(.light) .mini-points li {
  background: var(--surface);
  border-color: var(--surface-2);
  color: var(--white);
}

/* ------------------------------------------------------------------ la fiche */

/* La vraie fiche PDF, posée comme une feuille sur le bureau, avec des étiquettes. */

.paper {
  position: relative;
  margin: 0;
  padding: 1.5rem 0.5rem 0;
}

.paper-sheet {
  display: block;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 2px 0 var(--parent-line), 0 30px 60px -30px var(--parent-muted);
  transform: rotate(1.2deg);
  transition: transform 0.4s ease;
}

.paper-sheet:hover {
  transform: rotate(0deg) scale(1.01);
}

.paper-sheet img {
  width: 100%;
  border-radius: 6px;
}

.paper figcaption {
  margin-top: 1.25rem;
  color: var(--parent-muted);
  font-size: 0.95rem;
  text-align: center;
}

.paper figcaption a {
  font-weight: 700;
}

.pin {
  position: absolute;
  z-index: 2;
  padding: 0.2rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sticker);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
}

/* Sur les lignes de titres de la fiche (Définition, Règle, À savoir par cœur, Piège), dont la droite est vide. */
.pin-1 { right: -0.5rem; top: 20.5%; transform: rotate(3deg); }
.pin-2 { right: -0.5rem; top: 33%; transform: rotate(-3deg); }
.pin-3 { right: -0.5rem; top: 45%; transform: rotate(3deg); }
.pin-4 { right: -0.5rem; top: 72.5%; transform: rotate(-3deg); }

.has-js .reveal .pin {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}

.has-js .reveal.is-in .pin {
  opacity: 1;
  translate: 0 0;
}

.has-js .reveal.is-in .pin-2 { transition-delay: 0.2s; }
.has-js .reveal.is-in .pin-3 { transition-delay: 0.4s; }
.has-js .reveal.is-in .pin-4 { transition-delay: 0.6s; }

/* Les profs sont des IA : encadré de transparence. */

.ai-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0 0 2rem;
  padding: 1.25rem;
  border-radius: var(--radius-card);
  border: 2px solid var(--violet);
  background: var(--surface);
}

.ai-note h3 {
  margin-bottom: 0.4rem;
}

.ai-note p:last-child {
  margin: 0;
  color: var(--muted);
}

.ai-badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 14px;
  background: var(--violet-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

.site-footer .footer-ai {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ les profs */

.profs {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prof {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.25rem 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.prof:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}

.prof .avatar {
  grid-row: span 4;
  transition: transform 0.3s ease;
}

.prof:hover .avatar {
  transform: rotate(-6deg) scale(1.05);
}

.prof > h3,
.prof > p {
  grid-column: 2;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
}

.prof h3 {
  margin-bottom: 0;
}

.prof .subject {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.prof .tagline {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.prof .catch {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  transform: rotate(-1.5deg);
  transform-origin: left;
}

.profs .prof:nth-child(2).reveal { transition-delay: 0.08s; }
.profs .prof:nth-child(3).reveal { transition-delay: 0.16s; }
.profs .prof:nth-child(5).reveal { transition-delay: 0.08s; }
.profs .prof:nth-child(6).reveal { transition-delay: 0.16s; }
.profs .prof:nth-child(8).reveal { transition-delay: 0.08s; }
.profs .prof:nth-child(9).reveal { transition-delay: 0.16s; }

/* ------------------------------------------------------------------ le jeu de Caius : scène en parallaxe */

.jeu {
  padding: 0 0 var(--section-y);
  background: var(--ink);
}

.scene {
  --p: 0;
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 6px solid var(--ink);
}

.layer {
  position: absolute;
  left: 0;
  right: 0;
  background-repeat: repeat-x;
  will-change: background-position;
}

.layer-sky {
  inset: 0;
  background-image: url('img/jeu-ciel-crepuscule-1400.webp');
  background-size: cover;
  background-position: center bottom;
}

.layer-far {
  bottom: 110px;
  height: 190px;
  background-image: url('img/jeu-ville-lointaine-1400.webp');
  background-size: auto 100%;
  background-position: left bottom;
}

.layer-mid {
  bottom: 70px;
  height: 230px;
  background-image: url('img/jeu-ruines-1400.webp');
  background-size: auto 100%;
  background-position: left bottom;
}

.layer-front {
  bottom: -14px;
  height: 240px;
  background-image: url('img/jeu-sol-1400.webp');
  background-size: auto 100%;
  background-position: left bottom;
}

.scene-item {
  position: absolute;
  will-change: transform;
}

.scene .colonne {
  left: 58%;
  bottom: 78px;
  width: 180px;
}

.scene .arc {
  right: -2%;
  bottom: 80px;
  width: 150px;
  opacity: 0.95;
}

.scene .oie {
  left: 78%;
  bottom: 82px;
  width: 70px;
  animation: oie 6s ease-in-out infinite alternate;
}

@keyframes oie {
  from { transform: translateX(0) scaleX(1); }
  45% { transform: translateX(-90px) scaleX(1); }
  55% { transform: translateX(-90px) scaleX(-1); }
  to { transform: translateX(0) scaleX(-1); }
}

.scene .parchemin {
  width: 48px;
  animation: bob 1.8s ease-in-out infinite alternate;
}

.scene .p1 { left: 36%; bottom: 190px; animation-delay: -0.3s; }
.scene .p2 { left: 63%; bottom: 236px; width: 44px; animation-delay: -0.9s; }
.scene .p3 { left: 88%; bottom: 200px; width: 40px; animation-delay: -1.4s; }

.scene .caius {
  left: 8%;
  bottom: 86px;
  width: 150px;
  transform: translateX(calc(var(--p) * 38vw));
  transition: transform 0.1s linear;
}

.jeu-text {
  padding-top: 2.5rem;
}

/* Salle de jeux : rangée d'affiches qui défile au doigt (téléphone), en grille sur grand écran. */

.games-scroller {
  margin: 0 calc(-1 * var(--gutter)) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.games {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 280px);
  gap: 0.9rem;
  margin: 0;
  padding: 0.25rem var(--gutter) 1rem;
  list-style: none;
}

.game {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-2);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.game:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  border-color: var(--yellow);
}

.game img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-name {
  margin: 0.7rem 0.9rem 0.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.game-meta {
  margin: 0 0.9rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.game-meta span {
  display: block;
  color: var(--yellow);
  font-weight: 700;
}

.reveal.is-in .game {
  animation: pop 0.45s ease both;
}

.reveal.is-in .game:nth-child(2) { animation-delay: 0.04s; }
.reveal.is-in .game:nth-child(3) { animation-delay: 0.08s; }
.reveal.is-in .game:nth-child(4) { animation-delay: 0.12s; }
.reveal.is-in .game:nth-child(5) { animation-delay: 0.16s; }
.reveal.is-in .game:nth-child(6) { animation-delay: 0.2s; }
.reveal.is-in .game:nth-child(7) { animation-delay: 0.24s; }
.reveal.is-in .game:nth-child(8) { animation-delay: 0.28s; }

/* BD et histoires */

.stories {
  align-items: start;
}

.covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.covers img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 30px -18px var(--parent-muted);
  transition: transform 0.3s ease;
}

.covers li:nth-child(odd) img { transform: rotate(-2deg); }
.covers li:nth-child(even) img { transform: rotate(2deg); }
.covers li img:hover { transform: rotate(0deg) scale(1.04); }

.stories-note {
  margin: 0;
  color: var(--parent-muted);
  font-size: 0.95rem;
}

.video-card {
  margin: 0;
  padding: 0.75rem;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--white);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--surface);
}

.video-card figcaption {
  margin: 0.75rem 0.25rem 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-card figcaption strong {
  color: var(--yellow);
}

/* Avatars */

.avatars-card {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--parent-line);
  background: var(--white);
}

.avatars-card h3 {
  margin-bottom: 0.4rem;
}

.avatars-card p:last-child {
  margin: 0;
  color: var(--parent-muted);
  font-size: 0.95rem;
}

.avatars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.avatars img {
  width: 100%;
  max-width: 80px;
  margin-inline: auto;
  border-radius: 50%;
  border: 3px solid var(--ink);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatars li:nth-child(-n + 3) img {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--ink);
}

.avatars img:hover {
  transform: scale(1.12) rotate(-4deg);
}

/* ------------------------------------------------------------------ résultats et récompenses */

.results-grid {
  display: grid;
  gap: 1rem;
}

.result-card {
  padding: 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--parent-line);
  background: var(--white);
}

.result-card > p:last-child {
  margin-bottom: 0;
  color: var(--parent-muted);
  font-size: 0.95rem;
}

.result-label {
  margin: 0 0 0.5rem;
  color: var(--parent-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crowns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.crowns img {
  width: 48px;
}

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.25;
}

.badges li {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}

.badges img {
  width: 60px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.6);
}

.reveal.is-in .badges img,
html:not(.has-js) .badges img {
  transform: none;
}

.reveal.is-in .badges li:nth-child(2) img { transition-delay: 0.1s; }
.reveal.is-in .badges li:nth-child(3) img { transition-delay: 0.2s; }
.reveal.is-in .badges li:nth-child(4) img { transition-delay: 0.3s; }
.reveal.is-in .badges li:nth-child(5) img { transition-delay: 0.4s; }
.reveal.is-in .badges li:nth-child(6) img { transition-delay: 0.5s; }

.levels {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.levels li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  align-items: center;
  gap: 0.6rem;
}

.levels i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s ease;
}

.levels li[data-level='1'] i { width: 20%; }
.levels li[data-level='2'] i { width: 40%; }
.levels li[data-level='3'] i { width: 60%; }
.levels li[data-level='4'] i { width: 80%; }
.levels li[data-level='5'] i { width: 100%; background: var(--yellow); outline: 2px solid var(--ink); }

.reveal.is-in .levels i,
html:not(.has-js) .levels i {
  transform: none;
}

.reveal.is-in .levels li:nth-child(2) i { transition-delay: 0.1s; }
.reveal.is-in .levels li:nth-child(3) i { transition-delay: 0.2s; }
.reveal.is-in .levels li:nth-child(4) i { transition-delay: 0.3s; }
.reveal.is-in .levels li:nth-child(5) i { transition-delay: 0.4s; }

/* ------------------------------------------------------------------ parents */

.dashboard-wrap {
  position: relative;
}

.dashboard {
  padding: 1.25rem;
  border-radius: var(--radius-card);
  background: var(--parent-bg);
  color: var(--ink);
  border: 1px solid var(--parent-line);
  font-size: 0.95rem;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dashboard-head strong {
  font-size: 1.1rem;
}

.tag {
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-chip);
  border: 1px solid var(--parent-chip-line);
  color: var(--parent-muted);
  font-size: 0.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 0.6rem 0.5rem;
  border-radius: 12px;
  background: var(--white);
  text-align: center;
  font-size: 0.8rem;
  color: var(--parent-muted);
}

.stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
}

.alert-card {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border-left: 4px solid var(--red);
  background: var(--white);
}

.goal-card {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: var(--white);
}

.goal-card .note {
  display: block;
  margin-top: 0.3rem;
}

.progress {
  height: 10px;
  margin-top: 0.5rem;
  border-radius: 5px;
  background: var(--parent-line);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: 5px;
  background: var(--ink);
}

.grade-card {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border-left: 4px solid var(--green);
  background: var(--white);
}

.dashboard-prof {
  display: none;
}

.private {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 2px solid var(--yellow);
}

.private h3 {
  color: var(--yellow);
}

.private p {
  margin: 0;
}

/* Parents : l'objectif qui se remplit, et la boucle suivre → encourager → revenir → fêter. */

.encourage {
  align-items: center;
}

.goal-demo {
  position: relative;
}

.goal-app {
  width: min(100%, 400px);
}

.goal-from {
  color: var(--muted);
  font-size: 0.85rem;
}

.goal-title {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.goal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.goal-days li::before {
  content: '';
  display: block;
  aspect-ratio: 1;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.goal-days li.is-off::before {
  border-style: dashed;
  background: transparent;
}

.goal-days li.is-done::before {
  border-color: var(--yellow);
  background: var(--yellow);
  transform: scale(1.08);
}

.goal-days li.is-done {
  color: var(--white);
  font-weight: 700;
}

.goal-count {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.goal-count strong {
  color: var(--yellow);
}

.goal-prizes {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.95rem;
}

.goal-prizes p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.goal-prizes img {
  width: 24px;
}

.goal-word {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 16px 16px 16px 4px;
  background: var(--violet-deep);
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 1.15rem;
}

.goal-word span {
  display: block;
  font-family: var(--font-text);
  font-size: 0.8rem;
  opacity: 0.85;
}

.goal-done {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 2px solid var(--yellow);
  animation: pop 0.35s ease;
}

.goal-done p {
  margin: 0;
  font-size: 0.95rem;
}

.goal-done-title {
  color: var(--yellow);
  font-family: var(--font-accent);
  font-size: 1.3rem;
}

.goal-prof {
  display: none;
}

.loop {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: loop;
}

.loop li {
  position: relative;
  padding-left: 3.2rem;
  counter-increment: loop;
}

.loop li::before {
  content: counter(loop);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 1.15rem;
}

.loop li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 2.6rem;
  bottom: -0.9rem;
  width: 2px;
  background: var(--line-strong);
}

.loop h3 {
  margin-bottom: 0.25rem;
}

.loop p {
  margin: 0;
  color: var(--muted);
}

.mini-points-dark li strong {
  color: var(--yellow);
}

/* ------------------------------------------------------------------ sécurité */

.trust {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.trust li {
  padding: 1.25rem;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--parent-line);
}

.trust p {
  margin: 0;
  color: var(--parent-muted);
  font-size: 0.95rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
}

.icon svg {
  width: 24px;
  height: 24px;
}

.more {
  margin: 0;
}

.more a {
  font-weight: 700;
}

/* ------------------------------------------------------------------ offres */

.plans {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--surface-2);
}

.plan-featured {
  border: 2px solid var(--yellow);
}

.plan .sticker {
  align-self: flex-start;
  margin-top: -2.4rem;
  font-size: 0.95rem;
}

.plan h3 {
  margin-bottom: 0.15rem;
  font-size: 1.4rem;
}

.plan .for {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.price small {
  font-size: 1rem;
  font-weight: 400;
}

.price-alt {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
}

.plan ul {
  flex: 1;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
}

.plan .btn {
  width: 100%;
}

.fine {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.fine strong {
  color: var(--white);
}

/* ------------------------------------------------------------------ FAQ */

.faq {
  display: grid;
  gap: 0.5rem;
}

.faq details {
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--parent-line);
}

.faq summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--parent-muted);
}

.faq-figure {
  display: none;
}

/* ------------------------------------------------------------------ appel final, pied de page */

.band {
  background: var(--yellow);
  color: var(--ink);
}

.band .wrap {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.band p {
  max-width: 36rem;
}

.band .cta-row {
  margin-bottom: 0;
}

.band img {
  width: 180px;
  justify-self: center;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--surface-2);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}

.site-footer .brand {
  margin-bottom: 0.25rem;
  color: var(--yellow);
  font-family: var(--font-accent);
  font-size: 1.5rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer p {
  margin: 0;
}

/* ------------------------------------------------------------------ pages légales (mentions, confidentialité, CGU) */

.doc {
  padding: 2rem 0 3.5rem;
  background: var(--parent-bg);
  color: var(--ink);
}

.doc .wrap {
  max-width: 46rem;
}

.doc a {
  color: var(--ink);
}

.doc h1 {
  font-size: clamp(1.9rem, 7vw, 2.6rem);
}

.doc h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
}

.doc h3 {
  margin-top: 1.5rem;
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

.draft {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--yellow);
  color: var(--ink);
}

.draft strong {
  display: block;
  font-size: 1.1rem;
}

.draft p {
  margin: 0.25rem 0 0;
}

.todo {
  padding: 0 0.35rem;
  border: 2px dashed var(--parent-muted);
  border-radius: var(--radius-sticker);
  background: var(--white);
}

.updated {
  color: var(--parent-muted);
  font-size: 0.92rem;
}

.kids {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--white);
}

.kids h2 {
  margin-top: 0;
  color: var(--yellow);
}

.kids ul {
  margin: 0;
}

.table-wrap {
  margin-bottom: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}

th,
td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--parent-line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--ink);
  color: var(--yellow);
}

caption {
  padding: 0.5rem 0;
  color: var(--parent-muted);
  font-size: 0.85rem;
  text-align: left;
}

/* ------------------------------------------------------------------ écrans plus larges */


/* ------------------------------------------------------------------ écrans moyens et larges */

@media (min-width: 720px) {
  :root {
    --gutter: 1.5rem;
    --section-y: 5rem;
    --header-h: 72px;
  }

  body {
    font-size: 1.0625rem;
  }

  .logo img {
    width: 150px;
  }

  .header-cta .btn-small {
    min-height: 44px;
    padding: 0 1.1rem;
    font-size: 0.95rem;
  }

  .step {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .step:nth-child(even) .step-text {
    order: 2;
  }

  .widget {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: end;
    gap: 0.5rem;
  }

  .widget-prof {
    display: block;
    width: 120px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 10px 14px var(--ink));
  }

  .carnet-widget {
    grid-template-columns: 1fr 130px;
  }

  .widget-figure {
    width: 130px;
    margin: 0;
  }

  .phone {
    width: min(100%, 280px);
  }

  .phone-row .phone:nth-child(2) {
    margin-bottom: 3rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .mini-points,
  .trust,
  .results-grid,
  .plans,
  .fine {
    grid-template-columns: repeat(3, 1fr);
  }

  .jeu .mini-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .avatars-card {
    grid-template-columns: 1.2fr 1fr;
  }

  .plans {
    align-items: stretch;
  }

  .also ul {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }

  .profs {
    grid-template-columns: repeat(3, 1fr);
  }

  .prof {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 1.5rem;
  }

  .prof > h3,
  .prof > p {
    grid-column: 1;
  }

  .prof .avatar {
    grid-row: auto;
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }

  .scene {
    height: 460px;
  }

  .layer-far {
    bottom: 150px;
    height: 240px;
  }

  .layer-mid {
    bottom: 100px;
    height: 300px;
  }

  .layer-front {
    bottom: -20px;
    height: 320px;
  }

  .scene .colonne {
    left: 50%;
    bottom: 110px;
    width: 260px;
  }

  .scene .arc {
    right: 2%;
    bottom: 112px;
    width: 220px;
  }

  .scene .oie {
    left: 74%;
    bottom: 116px;
    width: 100px;
  }

  .scene .parchemin {
    width: 64px;
  }

  .scene .p1 { left: 34%; bottom: 290px; }
  .scene .p2 { left: 57%; bottom: 350px; width: 58px; }
  .scene .p3 { left: 86%; bottom: 300px; width: 54px; }

  .scene .caius {
    left: 6%;
    bottom: 120px;
    width: 220px;
  }

  .goal-demo {
    display: grid;
    grid-template-columns: 1fr 130px;
    align-items: end;
    gap: 0.5rem;
  }

  .goal-prof {
    display: block;
    width: 130px;
    filter: drop-shadow(0 10px 14px var(--ink));
  }

  .dashboard-prof {
    display: block;
    position: absolute;
    right: -40px;
    bottom: -30px;
    width: 130px;
    filter: drop-shadow(0 10px 14px var(--ink));
  }

  .band .wrap {
    grid-template-columns: 1fr auto;
  }

  .band img {
    width: 220px;
  }

  .site-footer .wrap {
    grid-template-columns: 1.2fr 2fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .site-nav {
    display: block;
  }

  .games-scroller {
    margin: 0;
    overflow: visible;
  }

  .games {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.25rem 0 1rem;
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
  }

  .ronde {
    margin-top: 0;
  }

  .faq-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 3rem;
    align-items: start;
  }

  .faq-figure {
    display: block;
    position: relative;
    margin: 0;
    padding-top: 1rem;
  }

  .faq-figure::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--yellow);
  }

  .faq-figure img {
    position: relative;
    width: 100%;
  }
}

@media (max-width: 719px) {
  .site-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sticker,
  .prof .catch {
    transform: none;
  }

  .has-js .reveal,
  .has-js .reveal .stagger,
  .has-js .reveal .pin,
  .has-js .chat-log [data-msg] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .badges img,
  .levels i {
    transform: none;
    transition: none;
  }

  .reveal.is-in .game,
  .floater,
  .bubble-hero,
  .marquee-track,
  .scene .oie,
  .scene .parchemin,
  .bubble-typing i,
  .option.is-wrong {
    animation: none;
  }

  .scene .caius {
    transform: none;
    transition: none;
  }

  .btn,
  .prof,
  .prof .avatar,
  .paper-sheet {
    transition: none;
  }

  .has-js .reveal .pin {
    translate: none;
  }
}
