/* =====================================================================
   LE CARNET DE VINCENT — Design system "dessiné à la main"
   vincentflibustier.com/kids
   Vanilla CSS. Aucune dépendance. Tout est fait au crayon.
   ===================================================================== */

/* ---------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------- */
:root {
  /* Papiers */
  --papier:      #FCF8EE;
  --papier-2:    #F5EEDD;
  --papier-3:    #EFE5CE;
  --kraft:       #E0C093;
  --kraft-fonce: #C9A473;

  /* Encre / mine de crayon (jamais de noir pur) */
  --mine:        #2B2723;
  --mine-2:      #5C544B;
  --mine-3:      #8B8177;

  /* Crayons de couleur */
  --rouge:       #E14B3B;
  --orange:      #EF8A26;
  --jaune:       #F5C33B;
  --vert:        #3E9E6E;
  --bleu:        #3B7FC4;
  --violet:      #8763C4;
  --rose:        #EA6C9E;
  --turquoise:   #37A9A0;

  /* Teintes "coloriage" (fond de composants — contraste garanti avec --mine) */
  --rouge-t:     #FBDCD7;
  --orange-t:    #FCE5CB;
  --jaune-t:     #FDF0C8;
  --vert-t:      #D7EEE2;
  --bleu-t:      #D8E8F7;
  --violet-t:    #E5DCF4;
  --rose-t:      #FBDCE9;
  --turquoise-t: #D3EDEB;

  /* Typo */
  --f-titre: "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;
  --f-note:  "Caveat", "Segoe Script", cursive;
  --f-texte: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-xxl: clamp(2.6rem, 8vw, 5rem);
  --t-xl:  clamp(2rem, 5.2vw, 3.2rem);
  --t-l:   clamp(1.5rem, 3.4vw, 2.1rem);
  --t-m:   clamp(1.15rem, 2vw, 1.35rem);
  --t-s:   1.02rem;

  /* Rythme */
  --gap:   clamp(1rem, 3vw, 2rem);
  --pad-section: clamp(2.5rem, 7vw, 5.5rem);
  --max: 1180px;

  /* Ombres "papier collé" */
  --ombre-papier: 2px 3px 0 rgba(43,39,35,.13), 5px 8px 16px rgba(43,39,35,.10);
  --ombre-sticker: 1px 2px 0 rgba(43,39,35,.18), 3px 5px 9px rgba(43,39,35,.14);
  --ombre-leve: 3px 5px 0 rgba(43,39,35,.14), 10px 16px 26px rgba(43,39,35,.16);

  --ease-crayon: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-texte);
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
  line-height: 1.65;
  color: var(--mine);
  background-color: var(--papier);
  background-image:
    /* grain de papier */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    /* légère ombre chaude dans les coins */
    radial-gradient(120% 90% at 50% 0%, #FFFDF7 0%, var(--papier) 45%, var(--papier-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------------------------------------------------------------
   3. TYPOGRAPHIE
   --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .005em;
  text-wrap: balance;
}
h1 { font-size: var(--t-xxl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); }
h4 { font-size: var(--t-m); }

p { text-wrap: pretty; }
p + p { margin-top: .8em; }

/* Le texte long reste en Nunito : lisible, arrondi, jamais manuscrit. */
.texte-long { max-width: 62ch; }
.texte-long p { margin-bottom: .9em; }

/* Annotation manuscrite (jamais pour du texte long) */
.note {
  font-family: var(--f-note);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  color: var(--bleu);
  transform: rotate(-2.2deg);
  display: inline-block;
}
.note--rouge  { color: var(--rouge); }
.note--vert   { color: var(--vert); }
.note--violet { color: var(--violet); }

/* Mot surligné au fluo (tracé irrégulier) */
.fluo {
  background-image: linear-gradient(100deg,
      transparent 1%, var(--jaune-t) 3%, var(--jaune) 8%,
      var(--jaune) 92%, var(--jaune-t) 97%, transparent 99%);
  background-repeat: no-repeat;
  background-size: 100% .62em;
  background-position: 0 .68em;
  padding: 0 .12em;
  border-radius: .2em;
}
.fluo--vert { background-image: linear-gradient(100deg, transparent 1%, var(--vert-t) 4%, var(--vert-t) 96%, transparent 99%); }
.fluo--rose { background-image: linear-gradient(100deg, transparent 1%, var(--rose-t) 4%, var(--rose-t) 96%, transparent 99%); }

/* Mot barré (rature d'enfant) */
.rature { text-decoration: line-through wavy var(--rouge) .1em; text-decoration-skip-ink: none; opacity: .72; }

/* Souligné tracé main */
.souligne {
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 20 2, 34 9, 52 5 S 88 2, 118 6' fill='none' stroke='%23E14B3B' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% .38em;
  background-position: 0 100%;
  padding-bottom: .18em;
}

/* ---------------------------------------------------------------
   4. LAYOUT
   --------------------------------------------------------------- */
.enveloppe { width: min(100% - 2.2rem, var(--max)); margin-inline: auto; }
.section { padding-block: var(--pad-section); position: relative; }
.section--serree { padding-block: clamp(1.8rem, 4vw, 3rem); }

.pile { display: grid; gap: var(--gap); }
.grille { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.centre { text-align: center; }
.centre .texte-long { margin-inline: auto; }

.rang { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.rang--centre { justify-content: center; }

/* Bande de papier kraft (section « adultes ») */
.bande-kraft {
  background-color: var(--kraft);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23k)' opacity='.16'/%3E%3C/svg%3E");
  color: #34291B;
  position: relative;
}
.bande-kraft h2, .bande-kraft h3 { color: #2C2216; }
/* bords déchirés */
.bande-kraft::before, .bande-kraft::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: var(--papier);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0h400v6c-14 3-22-3-36 0s-20 5-34 2-24-5-38-2-22 5-36 3-24-6-38-3-20 6-34 3-24-5-38-2-22 4-36 1-24-4-38-1-24 5-32 3z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0h400v6c-14 3-22-3-36 0s-20 5-34 2-24-5-38-2-22 5-36 3-24-6-38-3-20 6-34 3-24-5-38-2-22 4-36 1-24-4-38-1-24 5-32 3z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.bande-kraft::before { top: -1px; }
.bande-kraft::after  { bottom: -1px; transform: scaleY(-1); }

/* Fond « feuille de cahier » optionnel */
.cahier {
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(59,127,196,.16) 31px 32px),
    linear-gradient(to right, transparent 0 46px, rgba(225,75,59,.22) 46px 47px, transparent 47px);
}

/* ---------------------------------------------------------------
   5. LE MOTEUR CRAYON (SVG injecté par crayon.js)
   --------------------------------------------------------------- */
[data-crayon] { position: relative; }
[data-crayon] > .crayon-svg {
  position: absolute; inset: -10px;
  width: calc(100% + 20px); height: calc(100% + 20px);
  overflow: visible; pointer-events: none; z-index: 0;
}
[data-crayon] > *:not(.crayon-svg) { position: relative; z-index: 1; }

/* Repli si JS indisponible : bordure douce, le site reste utilisable */
.no-js [data-crayon],
[data-crayon]:not(.crayon-pret) {
  border: 2.5px solid var(--mine);
  border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px;
}
.crayon-pret { border: 0 !important; }

/* ---------------------------------------------------------------
   6. BOUTONS
   --------------------------------------------------------------- */
.btn {
  --btn-teinte: var(--jaune-t);
  --btn-trait: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-titre);
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.1;
  color: var(--mine);
  padding: .78em 1.5em;
  min-height: 52px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease-crayon), filter .16s ease;
  transform: rotate(var(--tilt, -.7deg));
  touch-action: manipulation;
}
.btn:hover  { transform: rotate(var(--tilt, -.7deg)) translateY(-3px) scale(1.025); }
.btn:active { transform: rotate(var(--tilt, -.7deg)) translateY(1px) scale(.985); }

.btn--geant { font-size: clamp(1.4rem, 3.4vw, 2rem); padding: .8em 1.7em; min-height: 68px; }
.btn--petit { font-size: 1.02rem; padding: .55em 1.1em; min-height: 44px; }

.btn--rouge  { --btn-teinte: var(--rouge-t);  --btn-trait: var(--rouge); }
.btn--vert   { --btn-teinte: var(--vert-t);   --btn-trait: var(--vert); }
.btn--bleu   { --btn-teinte: var(--bleu-t);   --btn-trait: var(--bleu); }
.btn--violet { --btn-teinte: var(--violet-t); --btn-trait: var(--violet); }
.btn--rose   { --btn-teinte: var(--rose-t);   --btn-trait: var(--rose); }
.btn--blanc  { --btn-teinte: #FFFDF6;         --btn-trait: var(--mine-2); }

.btn__emoji { font-size: 1.25em; line-height: 1; }

/* ---------------------------------------------------------------
   7. CARTES / PAPIERS
   --------------------------------------------------------------- */
.carte {
  --carte-teinte: #FFFDF6;
  --carte-trait: var(--mine);
  background: transparent;
  padding: clamp(1.2rem, 2.6vw, 1.9rem);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .2s var(--ease-crayon), filter .2s ease;
}
.carte--bleu   { --carte-teinte: var(--bleu-t);   --carte-trait: var(--bleu); }
.carte--vert   { --carte-teinte: var(--vert-t);   --carte-trait: var(--vert); }
.carte--jaune  { --carte-teinte: var(--jaune-t);  --carte-trait: var(--orange); }
.carte--rose   { --carte-teinte: var(--rose-t);   --carte-trait: var(--rose); }
.carte--violet { --carte-teinte: var(--violet-t); --carte-trait: var(--violet); }
.carte--rouge  { --carte-teinte: var(--rouge-t);  --carte-trait: var(--rouge); }
.carte--turquoise { --carte-teinte: var(--turquoise-t); --carte-trait: var(--turquoise); }

a.carte, .carte--clic { text-decoration: none; display: block; cursor: pointer; }
a.carte:hover, .carte--clic:hover { transform: rotate(var(--tilt, 0deg)) translateY(-5px) scale(1.015); }

/* Papier découpé aux ciseaux (contour irrégulier via clip-path) */
.decoupe {
  clip-path: polygon(
    1% 3%, 12% 0.6%, 26% 2.4%, 39% 0.4%, 53% 2.2%, 67% 0.5%, 81% 2.6%, 93% 0.8%, 99.4% 3.4%,
    98.6% 15%, 99.5% 28%, 98.4% 41%, 99.4% 55%, 98.5% 68%, 99.3% 82%, 98.2% 96.6%,
    86% 99.4%, 72% 97.4%, 58% 99.5%, 44% 97.6%, 30% 99.4%, 16% 97.5%, 3% 99.2%,
    0.7% 86%, 1.6% 72%, 0.5% 58%, 1.5% 44%, 0.6% 30%, 1.4% 16%
  );
  filter: drop-shadow(2px 3px 0 rgba(43,39,35,.10)) drop-shadow(4px 7px 10px rgba(43,39,35,.14));
}

/* Polaroid / photo collée */
.polaroid {
  background: #FFFDF6;
  padding: 14px 14px 52px;
  box-shadow: var(--ombre-papier);
  transform: rotate(var(--tilt, -2.4deg));
  position: relative;
  max-width: 320px;
}
.polaroid img, .polaroid svg { width: 100%; border-radius: 2px; }
.polaroid figcaption {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  font-family: var(--f-note); font-size: 1.35rem; line-height: 1.1;
  color: var(--mine-2); text-align: center;
}

/* Scotch / adhésif */
.scotch {
  position: absolute; width: 96px; height: 30px;
  background: rgba(246,222,150,.62);
  border-left: 2px dashed rgba(255,255,255,.5);
  border-right: 2px dashed rgba(255,255,255,.5);
  box-shadow: 0 1px 3px rgba(43,39,35,.16);
  top: -14px; left: 50%; translate: -50% 0; rotate: -4deg;
  z-index: 3;
}
.scotch--gauche { left: 8%; translate: 0 0; rotate: -22deg; }
.scotch--droite { left: auto; right: 8%; translate: 0 0; rotate: 17deg; }

/* Étiquette / badge d'âge */
.etiquette {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-titre); font-size: .98rem; line-height: 1;
  padding: .42em .8em;
  background: var(--papier-3);
  color: var(--mine);
  border-radius: 999px 12px 999px 14px;
  box-shadow: inset 0 0 0 2px var(--mine);
  rotate: -1.6deg;
}
.etiquette--vert  { background: var(--vert-t);  box-shadow: inset 0 0 0 2px var(--vert); }
.etiquette--bleu  { background: var(--bleu-t);  box-shadow: inset 0 0 0 2px var(--bleu); }
.etiquette--rose  { background: var(--rose-t);  box-shadow: inset 0 0 0 2px var(--rose); }
.etiquette--jaune { background: var(--jaune-t); box-shadow: inset 0 0 0 2px var(--orange); }

/* ---------------------------------------------------------------
   8. AUTOCOLLANTS & DOODLES
   --------------------------------------------------------------- */
.sticker {
  position: absolute; z-index: 4; pointer-events: none;
  filter: drop-shadow(1px 2px 0 rgba(43,39,35,.16)) drop-shadow(2px 4px 5px rgba(43,39,35,.13));
  animation: sticker-pose .5s var(--ease-crayon) backwards;
}
@keyframes sticker-pose { from { opacity: 0; transform: scale(.4) rotate(-25deg); } }

.doodle { position: absolute; pointer-events: none; opacity: .9; z-index: 0; }

/* Tracé qui se dessine à l'apparition */
.trace-anim path, .trace-anim line, .trace-anim circle, .trace-anim polyline {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}
.trace-anim.vu path, .trace-anim.vu line, .trace-anim.vu circle, .trace-anim.vu polyline {
  animation: tracer 1.05s ease forwards;
}
@keyframes tracer { to { stroke-dashoffset: 0; } }

/* Apparition douce au scroll */
.apparait { opacity: 0; transform: translateY(22px) rotate(-.6deg); transition: opacity .5s ease, transform .5s var(--ease-crayon); }
.apparait.vu { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   9. EN-TÊTE & NAVIGATION « CLASSEUR À INTERCALAIRES »
   --------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252,248,238,.93);
  backdrop-filter: blur(6px);
  border-bottom: 0;
}
.entete::after {
  content: ""; display: block; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'%3E%3Cpath d='M1 4.6C40 2.2 70 6.4 112 3.8s70 3.6 110 1.2 78-3.4 116-.4' fill='none' stroke='%232B2723' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center/400px 8px;
  opacity: .55;
}
.entete__inner { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: .55rem 0; }

.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 40px; height: 40px; }
.logo__txt { font-family: var(--f-titre); font-size: 1.32rem; line-height: 1; }
.logo__txt small { display: block; font-family: var(--f-note); font-size: .96rem; color: var(--mine-3); }

/* Onglets d'intercalaires (desktop) */
.onglets { display: none; gap: .3rem; align-items: flex-end; }
.onglet {
  font-family: var(--f-titre); font-size: 1.12rem; line-height: 1;
  padding: .62em 1.05em .55em;
  text-decoration: none; color: var(--mine);
  background: var(--papier-2);
  border-radius: 14px 16px 0 0;
  box-shadow: inset 0 0 0 2.2px var(--mine-2);
  position: relative; top: 3px;
  transition: transform .15s var(--ease-crayon), background .15s;
  rotate: var(--tilt, -.8deg);
}
.onglet:nth-child(2n) { rotate: .9deg; }
.onglet:hover { transform: translateY(-4px); background: var(--jaune-t); }
.onglet[aria-current="page"] { background: var(--jaune); top: 0; box-shadow: inset 0 0 0 2.6px var(--mine); }

.entete__outils { display: flex; gap: .4rem; align-items: center; }
.outil {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: inset 0 0 0 2.2px var(--mine-2);
  background: var(--papier-2);
  transition: transform .15s var(--ease-crayon), background .15s;
}
.outil:hover { transform: rotate(-8deg) scale(1.08); background: var(--jaune-t); }
.outil[aria-pressed="true"] { background: var(--vert-t); box-shadow: inset 0 0 0 2.6px var(--vert); }

/* Bouton menu mobile */
.burger { display: grid; }
@media (min-width: 900px) {
  .onglets { display: flex; }
  .burger { display: none; }
}

/* Panneau menu mobile = feuille pliée */
.menu-feuille {
  position: fixed; inset: 0; z-index: 90;
  background: var(--papier);
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(59,127,196,.14) 39px 40px);
  display: grid; align-content: start; gap: .5rem;
  padding: 1.2rem;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .34s var(--ease-crayon);
}
.menu-feuille[data-ouvert="true"] { transform: none; }
.menu-feuille a {
  font-family: var(--f-titre); font-size: clamp(1.7rem, 7vw, 2.4rem);
  text-decoration: none; padding: .45em .3em;
  display: flex; align-items: center; gap: .7rem;
  border-bottom: 2.5px dashed rgba(43,39,35,.22);
}
.menu-feuille a:active { background: var(--jaune-t); }
.menu-feuille__fermer { justify-self: end; }

/* ---------------------------------------------------------------
   10. HERO
   --------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 7vw, 5rem); overflow: hidden; }
.hero__grille { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 880px) { .hero__grille { grid-template-columns: 1.15fr .85fr; } }

.hero h1 { position: relative; }
.hero h1 .mot { display: inline-block; transition: transform .25s var(--ease-crayon), color .25s; }
.hero h1 .mot:hover { transform: translateY(-8px) rotate(-5deg) scale(1.06); color: var(--rouge); }

.hero__accroche { font-size: var(--t-m); max-width: 46ch; margin-top: .9rem; }

/* ---------------------------------------------------------------
   11. JEUX — coque commune
   --------------------------------------------------------------- */
.jeu { --jeu-teinte: var(--bleu-t); }
.jeu__barre {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem;
  justify-content: space-between; margin-bottom: 1.4rem;
}
.jeu__progression { display: flex; gap: .32rem; align-items: center; flex-wrap: wrap; }
.pastille {
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 2.4px var(--mine-3);
  background: transparent; transition: background .25s, transform .25s var(--ease-crayon);
}
.pastille[data-etat="bon"]  { background: var(--vert); box-shadow: inset 0 0 0 2.4px var(--vert); transform: scale(1.15); }
.pastille[data-etat="rate"] { background: var(--rouge-t); box-shadow: inset 0 0 0 2.4px var(--rouge); }
.pastille[data-etat="actif"]{ background: var(--jaune); box-shadow: inset 0 0 0 2.4px var(--orange); transform: scale(1.25); }

.jeu__score { font-family: var(--f-titre); font-size: 1.35rem; display: flex; align-items: center; gap: .4rem; }

.jeu__scene { min-height: 340px; position: relative; }

/* Message de réaction */
.reaction {
  font-family: var(--f-titre); font-size: clamp(1.3rem, 3vw, 1.8rem);
  display: flex; align-items: flex-start; gap: .6rem;
  padding: 1rem 1.2rem; margin-top: 1rem;
}
.reaction p { font-family: var(--f-texte); font-size: 1.02rem; line-height: 1.55; margin-top: .25rem; }
.reaction--bon  { --carte-teinte: var(--vert-t);  --carte-trait: var(--vert); }
.reaction--rate { --carte-teinte: var(--rouge-t); --carte-trait: var(--rouge); }
.reaction__emoji { font-size: 2rem; line-height: 1; }

/* Grosses zones cliquables enfants */
.choix-geants { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 1.4rem; }
.choix-geants .btn { width: 100%; flex-direction: column; gap: .2rem; padding: 1.1em .6em; }
.choix-geants .btn span:first-child { font-size: 2.4rem; }
@media (max-width: 420px) { .choix-geants { grid-template-columns: 1fr; } }

/* Carte de jeu (l'info à juger) */
.carte-info {
  --carte-teinte: #FFFDF6;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
  min-height: 220px;
  display: grid; align-content: center; gap: .9rem;
  animation: carte-entre .38s var(--ease-crayon);
}
@keyframes carte-entre { from { opacity: 0; transform: translateY(18px) rotate(2deg) scale(.96); } }
.carte-info__visuel { font-size: clamp(3rem, 11vw, 4.6rem); line-height: 1; }
.carte-info__texte { font-family: var(--f-titre); font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.22; }

/* Écran de fin */
.bilan { text-align: center; display: grid; gap: 1rem; justify-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
.bilan__etoiles { display: flex; gap: .3rem; justify-content: center; }
.bilan__etoiles svg { width: 54px; height: 54px; animation: pop .45s var(--ease-crayon) backwards; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } }

/* Étagère à autocollants (récompenses) */
.collection { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.collection__item {
  width: 92px; text-align: center; font-family: var(--f-note); font-size: 1.05rem; line-height: 1.1;
  opacity: .3; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .3s var(--ease-crayon);
}
.collection__item[data-gagne="oui"] { opacity: 1; filter: none; transform: rotate(-4deg); }
.collection__item svg { width: 66px; height: 66px; margin-inline: auto; }

/* Glisser-déposer */
.zone-depot {
  min-height: 132px; padding: .9rem;
  display: flex; flex-wrap: wrap; gap: .5rem; align-content: flex-start;
  transition: background .18s, transform .18s var(--ease-crayon);
}
.zone-depot[data-survol="true"] { transform: scale(1.03) rotate(-.8deg); }
.zone-depot__titre { font-family: var(--f-titre); font-size: 1.16rem; width: 100%; margin-bottom: .3rem; }

.jeton {
  font-family: var(--f-texte); font-size: .99rem; line-height: 1.3;
  padding: .6rem .85rem; cursor: grab;
  background: #FFFDF6;
  box-shadow: inset 0 0 0 2.4px var(--mine-2), var(--ombre-sticker);
  border-radius: 14px 18px 12px 16px / 16px 12px 18px 14px;
  rotate: var(--tilt, -1deg);
  transition: transform .16s var(--ease-crayon), box-shadow .16s;
  touch-action: none;
  user-select: none;
}
.jeton:hover { transform: translateY(-3px) scale(1.03); }
.jeton[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--bleu), 0 0 0 6px var(--bleu-t); transform: scale(1.05); }
.jeton[data-place="bon"]  { box-shadow: inset 0 0 0 2.6px var(--vert); background: var(--vert-t); cursor: default; }
.jeton[data-place="rate"] { box-shadow: inset 0 0 0 2.6px var(--rouge); background: var(--rouge-t); }
.jeton.saisi { opacity: .45; }

/* Zones d'image à cliquer (jeu du détail) */
.scene-image { position: relative; max-width: 720px; margin-inline: auto; }
.scene-image svg { width: 100%; height: auto; }
.point-chaud {
  position: absolute; transform: translate(-50%, -50%);
  border-radius: 50%; background: transparent; cursor: crosshair;
  box-shadow: none; transition: box-shadow .2s;
}
.point-chaud:focus-visible { box-shadow: 0 0 0 4px var(--bleu); }
.point-chaud[data-trouve="true"] {
  box-shadow: inset 0 0 0 4px var(--vert), 0 0 0 5px rgba(62,158,110,.28);
  background: rgba(62,158,110,.14);
  cursor: default;
  animation: pop .4s var(--ease-crayon);
}

/* ---------------------------------------------------------------
   12. LE COIN DES GRANDS
   --------------------------------------------------------------- */
.grands { font-family: var(--f-texte); }
.grands h2 { font-family: var(--f-titre); }
.grands .texte-long { font-size: 1.04rem; }

.liste-crayon { list-style: none; padding: 0; display: grid; gap: .55rem; }
.liste-crayon li { display: flex; gap: .6rem; align-items: flex-start; }
.liste-crayon li::before { content: "✓"; font-family: var(--f-titre); color: var(--vert); font-size: 1.3rem; line-height: 1.1; flex-shrink: 0; }

/* ---------------------------------------------------------------
   13. PIED DE PAGE
   --------------------------------------------------------------- */
.pied { padding-block: clamp(2rem, 5vw, 3.4rem) 2rem; position: relative; }
.pied__grille { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pied h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.pied a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pied ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.pied__mention { margin-top: 1.8rem; font-size: .92rem; color: var(--mine-2); text-align: center; }

/* ---------------------------------------------------------------
   14. ACCESSIBILITÉ
   --------------------------------------------------------------- */
.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--jaune); color: var(--mine); padding: .8rem 1.2rem;
  font-family: var(--f-titre); border-radius: 0 0 14px 0;
}
.saut-contenu:focus { left: 0; }

:focus-visible {
  outline: 3.5px solid var(--bleu);
  outline-offset: 3px;
  border-radius: 6px;
}

.lecture-seule-ecran {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Mode « lecture facile » : typo hyper lisible, plus grand, sans inclinaison */
body[data-lecture="facile"] {
  --f-titre: "Atkinson Hyperlegible", "Nunito", system-ui, sans-serif;
  --f-note:  "Atkinson Hyperlegible", "Nunito", system-ui, sans-serif;
  --f-texte: "Atkinson Hyperlegible", "Nunito", system-ui, sans-serif;
  font-size: 1.16rem;
  line-height: 1.8;
  background-image: none;
  background-color: #FFFDF7;
}
body[data-lecture="facile"] * { letter-spacing: .012em; word-spacing: .06em; }
body[data-lecture="facile"] .carte,
body[data-lecture="facile"] .btn,
body[data-lecture="facile"] .jeton,
body[data-lecture="facile"] .onglet,
body[data-lecture="facile"] .polaroid,
body[data-lecture="facile"] .etiquette { transform: none !important; rotate: 0deg !important; }
body[data-lecture="facile"] .sticker,
body[data-lecture="facile"] .doodle { display: none; }
body[data-lecture="facile"] .note { transform: none; color: var(--mine); }
body[data-lecture="facile"] .decoupe { clip-path: none; }

/* Respect du réglage système */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .apparait { opacity: 1; transform: none; }
}

/* Contraste renforcé */
@media (prefers-contrast: more) {
  :root { --mine: #14110E; --mine-2: #332D27; }
  body { background-image: none; background-color: #FFFEF9; }
}

/* ---------------------------------------------------------------
   15. IMPRESSION (diplôme + affiche des réflexes)
   --------------------------------------------------------------- */
@media print {
  .entete, .pied, .menu-feuille, .btn, .sticker, .no-print { display: none !important; }
  body { background: #fff; }
  .a-imprimer { break-inside: avoid; page-break-inside: avoid; }
}

/* ---------------------------------------------------------------
   16. PETITS UTILITAIRES
   --------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.2rem; }
.plein { width: 100%; }
.rel { position: relative; }
