/* Jeu Grandi — feuille de style unique */

:root {
  color-scheme: light;
  --plum: #3d2a5c;
  --plum-soft: #5d4a7e;
  --cream: #fffaf3;
  --paper: #ffffff;
  --lav: #ece4fb;
  --lav-deep: #b9a6e8;
  --pink: #ff9cc2;
  --pink-deep: #c2386f;
  --pink-text: #b02a63;   /* rose lisible en petit texte (contraste 5,2 sur fond rose pâle) */
  --blue: #8cc4ff;
  --blue-deep: #2f6fc0;
  --mint: #8fdcbb;
  --mint-deep: #23845c;
  --sun: #ffd45c;
  --sun-deep: #8a5a00;
  --night: #1d1638;

  --sky: linear-gradient(180deg, #b9a6e8 0%, #e6b3d9 45%, #ffd3c2 80%, #ffe9c7 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(61, 42, 92, .14);
  --shadow-lg: 0 24px 60px rgba(61, 42, 92, .22);
  --font-title: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--plum);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* ---------- Boutons « bonbon » (repris des boutons du jeu) ---------- */
.btn {
  --b: var(--pink-deep);
  --b-dark: #8f2350;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-title); font-weight: 700; font-size: 1.15rem;
  color: #fff; text-decoration: none; cursor: pointer;
  background: var(--b);
  border: 3px solid var(--plum);
  border-radius: 999px;
  padding: .6em 1.4em .5em;
  box-shadow: 0 6px 0 var(--b-dark), inset 0 3px 0 rgba(255,255,255,.35);
  transition: transform .12s, box-shadow .12s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--b-dark), inset 0 3px 0 rgba(255,255,255,.35); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--b-dark), inset 0 3px 0 rgba(255,255,255,.35); }
.btn--blue { --b: var(--blue-deep); --b-dark: #1c467d; }
.btn--mint { --b: var(--mint-deep); --b-dark: #145238; }
.btn--ghost { --b: var(--paper); --b-dark: var(--lav-deep); color: var(--plum); }
.btn--small { font-size: 1rem; padding: .45em 1.1em .4em; min-height: 44px; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(61,42,92,.08);
}
.header__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); font-family: var(--font-title); font-weight: 800; font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__img { height: 56px; width: auto; flex: none; display: block; }
.logo b { color: var(--pink-deep); font-weight: 800; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--plum); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--lav); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { background: var(--b); }
.hud { display: flex; align-items: center; gap: 8px; }
.hud__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-title); font-weight: 700; font-size: .95rem;
  background: var(--paper); border: 2px solid var(--plum); border-radius: 999px;
  padding: 2px 12px 0 8px; min-height: 34px; white-space: nowrap;
}
.hud__pill img { width: 22px; height: 22px; object-fit: contain; }
.hud__pill.is-bump { animation: bump .5s; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; background: var(--cream); padding: 12px var(--gutter) 20px; border-bottom: 2px solid rgba(61,42,92,.1); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { justify-content: center; margin-top: 6px; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 2px solid var(--plum); border-radius: 12px; background: var(--paper); cursor: pointer; color: var(--plum); }
  .hud { margin-left: 0; }
}
@media (max-width: 520px) {
  .logo { font-size: 1.3rem; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__img { height: 42px; }
  .hud__pill--lvl { display: none; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--sky);
  padding: clamp(20px, 3.5vw, 44px) 0 clamp(150px, 18vw, 220px);
  isolation: isolate;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.7); border: 2px solid var(--plum);
  border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: .95rem; margin-bottom: 18px;
}
.hero h1 { color: var(--plum); }
.hero h1 .hl { color: var(--pink-deep); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .1em; height: .16em; z-index: -1;
  background: var(--sun); border-radius: 999px; opacity: .85;
}
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34ch; font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__stage { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero__unicorn { position: absolute; inset: 18% 0 auto 0; width: 92%; margin: auto; animation: fly 4s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(61,42,92,.18)); }
.bubble {
  position: absolute; display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; color: #fff; font-size: 2rem;
  border: 3px solid var(--plum); box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), inset 0 4px 0 rgba(255,255,255,.45);
  animation: float 5s ease-in-out infinite;
}
.bubble--a { width: 74px; height: 74px; border-radius: 22px; background: var(--blue-deep); left: 2%; top: 4%; }
.bubble--b { width: 70px; height: 70px; border-radius: 50%; background: var(--pink-deep); right: 4%; top: 0; animation-delay: -1.5s; }
.bubble--c { width: 0; height: 0; border: 0; box-shadow: none; right: 12%; bottom: 8%; animation-delay: -3s; }
.bubble--c svg { width: 84px; height: 76px; }
.bubble--d { width: 66px; height: 66px; border-radius: 16px; background: var(--mint-deep); left: 8%; bottom: 6%; transform: rotate(45deg); animation-name: float-rot; animation-delay: -2.2s; }
.bubble--d span { transform: rotate(-45deg); }

.clouds { position: absolute; inset: auto 0 -2px 0; height: clamp(120px, 16vw, 200px); z-index: -1; pointer-events: none; }
.clouds svg { width: 100%; height: 100%; display: block; }
.star { position: absolute; color: #fff; z-index: -1; animation: twinkle 3s ease-in-out infinite; pointer-events: none; }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__stage { max-width: 320px; order: -1; }
  .bubble { transform: scale(.8); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--lav { background: var(--lav); }
.section--night { background: var(--night); color: #f3edff; }
.section--night h2, .section--night h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: 1rem;
  color: var(--pink-text); background: #ffe3ee; border-radius: 999px; padding: 4px 14px 2px; margin-bottom: 14px;
}
.section--night .eyebrow { background: rgba(255,156,194,.16); color: var(--pink); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p { font-size: 1.15rem; color: var(--plum-soft); }
.section--night .section__head p { color: #d7cdf0; }

/* ---------- Bandeau des jeux ---------- */
#jeux { padding-top: clamp(24px, 4vw, 48px); }
.games__bar { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.games__arrows { display: flex; gap: 10px; margin-bottom: 40px; }
.arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--plum);
  background: var(--paper); color: var(--plum); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--lav-deep); transition: transform .12s;
}
.arrow:hover { transform: translateY(-2px); }
.arrow:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lav-deep); }
.arrow:disabled { opacity: .35; cursor: default; transform: none; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 86vw);
  gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 34px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--lav-deep) transparent;
  overscroll-behavior-x: contain;
}
.card {
  scroll-snap-align: start; position: relative;
  background: var(--paper); border: 3px solid var(--plum); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--lav-deep);
  display: flex; flex-direction: column; overflow: hidden;
  transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s;
  text-decoration: none; color: inherit;
}
.card:hover { box-shadow: 0 14px 0 var(--lav-deep), var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16/10; background: var(--lav); border-bottom: 3px solid var(--plum); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.age {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-title); font-weight: 800; font-size: 1rem; line-height: 1;
  background: var(--sun); color: var(--plum); border: 3px solid var(--plum); border-radius: 999px;
  padding: 7px 12px 4px; box-shadow: 0 3px 0 var(--plum);
}
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.55rem; }
.card__body p { margin: 0; color: var(--plum-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { font-weight: 800; font-size: .88rem; padding: 4px 12px; border-radius: 999px; background: var(--lav); color: var(--plum); }
.chip--pink { background: #ffe0ec; } .chip--blue { background: #dcecff; } .chip--mint { background: #d8f5e7; } .chip--sun { background: #fff0c4; }
.card__go { margin-top: auto; font-family: var(--font-title); font-weight: 700; color: var(--pink-deep); display: inline-flex; align-items: center; gap: 6px; }
.card:hover .card__go svg { transform: translateX(4px); }
.card__go svg { transition: transform .2s; }
.card--yours { background: repeating-linear-gradient(-45deg, #fff, #fff 14px, #fff6fa 14px, #fff6fa 28px); border-style: dashed; }
.card--yours .card__media { display: grid; place-items: center; background: transparent; border-bottom-style: dashed; }
.card--yours .mystery { font-family: var(--font-title); font-weight: 800; font-size: 6rem; color: var(--lav-deep); line-height: 1; animation: float 4s ease-in-out infinite; }

/* ---------- Apprendre en jouant ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat {
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px 24px 22px;
}
.stat__num { font-family: var(--font-title); font-weight: 800; font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; color: var(--sun); display: block; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .5em; font-weight: 700; margin-left: .1em; }
.stat:nth-child(2) .stat__num { color: var(--pink); }
.stat:nth-child(3) .stat__num { color: var(--mint); }
.stat p { color: #e4dcf7; }
.stat cite { font-style: normal; font-size: .85rem; color: #b9addb; }
.stat cite a { color: #cbbcf5; }
.pillars { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { background: var(--paper); color: var(--plum); border-radius: var(--radius-sm); padding: 20px; border: 3px solid var(--plum); }
.pillar__ico { width: 72px; height: 72px; margin: 0 auto 12px; display: grid; place-items: center; }
.pillar__ico svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 0 rgba(61,42,92,.18)); }
.pillar:hover .pillar__ico svg { animation: bump .5s; }
.pillar h3 { color: var(--plum); font-size: 1.2rem; margin-bottom: .3em; text-align: center; }
.pillar p { margin: 0; font-size: .97rem; color: var(--plum-soft); }
.pillars__intro { margin-top: 56px; margin-bottom: -36px; font-size: 1.1rem; color: #d7cdf0; max-width: 680px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; } .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Carte des niveaux ---------- */
.levels { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; counter-reset: lvl; }
.levels::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 46px; height: 0;
  border-top: 5px dashed var(--lav-deep); z-index: 0;
}
.level { position: relative; z-index: 1; text-align: center; }
.level__node {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; border: 4px solid var(--plum);
  font-family: var(--font-title); font-weight: 800; font-size: 2.2rem; color: #fff;
  box-shadow: 0 6px 0 var(--plum), inset 0 -8px 0 rgba(0,0,0,.12), inset 0 5px 0 rgba(255,255,255,.4);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.level:nth-child(1) .level__node { background: var(--pink-deep); }
.level:nth-child(2) .level__node { background: var(--blue-deep); }
.level:nth-child(3) .level__node { background: var(--mint-deep); }
.level:nth-child(4) .level__node { background: var(--sun); color: var(--plum); }
.level:hover .level__node { transform: translateY(-6px) rotate(-4deg); }
.level__tag { font-family: var(--font-title); font-weight: 700; color: var(--pink-deep); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.level h3 { margin: .2em 0 .35em; }
.level p { color: var(--plum-soft); font-size: 1rem; margin: 0; }
@media (max-width: 820px) {
  .levels { grid-template-columns: 1fr; gap: 28px; }
  .levels::before { left: 46px; right: auto; top: 20px; bottom: 20px; height: auto; border-top: 0; border-left: 5px dashed var(--lav-deep); }
  .level { display: grid; grid-template-columns: 92px 1fr; gap: 18px; text-align: left; align-items: center; }
  .level__node { margin: 0; }
}

/* ---------- Qui suis-je ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__card {
  position: relative; background: var(--sky); border: 3px solid var(--plum); border-radius: 28px;
  aspect-ratio: 4/5; overflow: hidden; box-shadow: 0 10px 0 var(--lav-deep);
}
.about__card img { position: absolute; }
.about__card .about__photo { position: absolute; width: 64%; left: 18%; top: 24%; border-radius: 50%; border: 5px solid var(--plum); box-shadow: 0 0 0 8px #fff, 0 10px 0 8px var(--lav-deep); }
.about__card .a1 { width: 30%; left: 2%; top: 3%; animation: float 5s ease-in-out infinite; }
.about__card .a2 { width: 30%; right: 1%; top: 8%; animation: float 5s ease-in-out infinite -2s; }
.about__card .a3 { width: 30%; left: 3%; bottom: 3%; animation: float 5s ease-in-out infinite -3.5s; }
.about__card .a4 { width: 28%; right: 3%; bottom: 4%; animation: float 5s ease-in-out infinite -1s; }
.about__quote { font-family: var(--font-title); font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.25; color: var(--pink-deep); margin: 0 0 20px; }
.about__sign { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about__card { max-width: 340px; aspect-ratio: 1; } }

/* ---------- Formulaire « quête » ---------- */
.quest { background: var(--paper); border: 3px solid var(--plum); border-radius: 28px; box-shadow: 0 10px 0 var(--lav-deep); padding: clamp(22px, 4vw, 44px); max-width: 860px; margin: 0 auto; scroll-margin-top: calc(var(--header-h) + 16px); }
.quest__steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; }
.quest__steps li { flex: 1; text-align: center; font-weight: 800; font-size: .92rem; color: var(--plum-soft); }
.quest__steps li::before {
  content: ""; display: block; height: 12px; border-radius: 999px; background: var(--lav); margin-bottom: 8px; border: 2px solid var(--plum);
  transition: background .3s;
}
.quest__steps li.is-done::before { background: var(--mint-deep); }
.quest__steps li.is-current::before { background: linear-gradient(90deg, var(--pink), var(--sun)); }
.quest__steps li.is-current { color: var(--plum); }
.js .step { display: none; }
.js .step.is-active { display: block; animation: pop-in .35s ease; }
.step + .step { margin-top: 28px; }
.js .step + .step { margin-top: 0; }
.step legend { font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; padding: 0; margin-bottom: 4px; }
.step__hint { color: var(--plum-soft); margin-bottom: 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { margin-bottom: 20px; }
.field > label, .field__label { display: block; font-weight: 800; margin-bottom: 8px; }
.field__opt { font-weight: 600; color: var(--plum-soft); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--plum); background: var(--cream);
  border: 2px solid var(--lav-deep); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
input:focus, select:focus, textarea:focus { border-color: var(--plum); outline: 3px solid rgba(47,111,192,.35); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
.ages { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 8px 16px; border-radius: 999px; border: 2px solid var(--lav-deep); background: var(--cream);
  font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; user-select: none;
}
.pick:hover span { border-color: var(--plum); }
.pick input:checked + span { background: var(--plum); color: #fff; border-color: var(--plum); transform: translateY(-2px); box-shadow: 0 3px 0 var(--pink-deep); }
.pick input:focus-visible + span { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Autocollants posés sur la table ---------- */
.table {
  --wood: #f6dcb6; --wood-deep: #dcb98a;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 2px;
  padding: 20px 10px 24px; border-radius: 22px; border: 3px solid var(--wood-deep);
  background:
    repeating-linear-gradient(90deg, transparent 0 138px, rgba(150, 105, 55, .12) 138px 140px),
    linear-gradient(180deg, #fbe8cc, var(--wood));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 6px 0 var(--wood-deep);
}
.sticker { position: relative; display: block; rotate: var(--r, 0deg); }
.sticker input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.sticker__box {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: var(--w, 130px); padding: 6px 6px 5px; border-radius: 18px;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .15s;
}
.sticker__box img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 3px 0 rgba(120, 80, 40, .25)) drop-shadow(0 8px 8px rgba(120, 80, 40, .18));
  transition: filter .15s;
}
.sticker__nom {
  font-weight: 800; font-size: .88rem; line-height: 1.15; text-align: center; color: var(--plum);
  padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .88);
  border: 2px solid transparent; transition: background .15s, color .15s;
}
.sticker:hover .sticker__box { transform: translateY(-5px) scale(1.07) rotate(-2deg); background: rgba(255, 255, 255, .45); }
.sticker:hover img { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 14px var(--pink)); }
.sticker input:checked + .sticker__box { transform: translateY(-6px) scale(1.1); background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 3px var(--pink-deep); }
.sticker input:checked + .sticker__box img { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 8px 8px rgba(120, 80, 40, .25)); }
.sticker input:checked + .sticker__box .sticker__nom { background: var(--plum); color: #fff; }
.sticker input:checked + .sticker__box::after {
  content: "✓"; position: absolute; right: -4px; top: -6px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--mint-deep); color: #fff; font-weight: 900; line-height: 28px; text-align: center; border: 2px solid #fff;
}
.sticker input:focus-visible + .sticker__box { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.table .sticker:nth-child(1) { --w: 150px; --r: -5deg; }
.table .sticker:nth-child(2) { --w: 126px; --r: 4deg; }
.table .sticker:nth-child(3) { --w: 142px; --r: -3deg; }
.table .sticker:nth-child(4) { --w: 128px; --r: 6deg; }
.table .sticker:nth-child(5) { --w: 138px; --r: -7deg; }
.table .sticker:nth-child(6) { --w: 156px; --r: 3deg; }
.table .sticker:nth-child(7) { --w: 130px; --r: -4deg; }
.table .sticker:nth-child(8) { --w: 142px; --r: 5deg; }
.table .sticker:nth-child(9) { --w: 132px; --r: -2deg; }
@media (max-width: 560px) { .sticker__box { width: calc(var(--w, 130px) * .74); } .sticker__nom { font-size: .8rem; } }
.js .field--autre:not(.is-open) { display: none; }

/* ---------- Toise : l'âge se choisit sur le mur ---------- */
.toise { --h: 45%; display: none; justify-items: center; gap: 12px; }
.toise__wall {
  position: relative; width: min(100%, 640px); aspect-ratio: 16 / 9; overflow: hidden; cursor: ns-resize;
  border-radius: 20px; border: 3px solid var(--plum); box-shadow: 0 8px 0 var(--lav-deep);
  background: #fff3e0 url("../img/mur.webp") center / cover;
}
.toise__wall img { position: absolute; display: block; filter: drop-shadow(0 3px 3px rgba(61, 42, 92, .22)); user-select: none; -webkit-user-drag: none; }
.toise__regle { right: 5%; bottom: 7%; height: 74%; width: auto; }
.toise__enfant { left: 22%; bottom: 7%; height: var(--h); width: auto; transition: height .45s cubic-bezier(.34, 1.56, .64, 1); }
.toise__marque { position: absolute; left: 4%; width: 76%; top: calc(93% - var(--h)); transition: top .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; pointer-events: none; }
.toise__marque .toise__trait { left: 0; top: 0; width: 100%; height: auto; transform: translateY(-96%); }
.toise:not(.is-set) .toise__marque { opacity: .35; }
.toise__bar { display: flex; align-items: center; gap: 12px; width: min(100%, 420px); }
.toise__bar button { flex: none; }
.toise__bar button {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--plum); background: var(--cream); color: var(--plum);
  font: 800 1.5rem/1 var(--font-title); cursor: pointer; box-shadow: 0 3px 0 var(--lav-deep);
}
.toise__bar button:hover { background: var(--sun); }
.toise__bar button:active { transform: translateY(2px); box-shadow: none; }
.toise__age { flex: 1; min-width: 0; text-align: center; font: 800 1.15rem var(--font-title); padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--lav-deep); }
.toise.is-set .toise__age { border-color: var(--plum); background: var(--sun); }
.toise:focus-within .toise__wall { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.js .ages--toise { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ages--toise { margin-top: 10px; }
.js .toise { display: grid; }
@media (prefers-reduced-motion: reduce) {
  .sticker__box, .toise__enfant, .toise__marque { transition: none; }
  .sticker:hover .sticker__box, .sticker input:checked + .sticker__box { transform: none; }
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--plum-soft); }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--pink-deep); }
.quest__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.quest__nav .btn[hidden] { display: none; }
.quest__nav [data-fwd], .quest__nav [data-send] { margin-left: auto; }
.no-js-submit { margin-top: 24px; }
.js .no-js-submit { display: none; }
.form-error { color: var(--pink-deep); font-weight: 800; margin: 10px 0 0; }
.form-error:empty { margin: 0; }
.hp { display: none; }
.quest__promise { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 22px; font-weight: 700; color: var(--plum-soft); }
.quest__promise span::before { content: "✓ "; color: var(--mint-deep); font-weight: 900; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--paper); border: 3px solid var(--plum); border-radius: var(--radius-sm); box-shadow: 0 5px 0 var(--lav-deep); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 16px 22px; position: relative;
  font-family: var(--font-title); font-weight: 700; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--sun); border: 2px solid var(--plum);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--plum-soft); }

/* ---------- CTA final + pied de page ---------- */
.final { text-align: center; background: var(--sky); position: relative; overflow: hidden; }
.final h2 { max-width: 18ch; margin-inline: auto; }
.footer { background: var(--night); color: #cfc4ea; padding: 48px 0 32px; font-size: .95rem; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer .logo { color: #fff; }
.footer .logo b { color: var(--pink); }
.footer a { color: #fff; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Œufs cachés ---------- */
.egg {
  position: absolute; z-index: 5; width: 54px; height: 54px; padding: 0; border: 0; background: none; cursor: pointer;
  animation: wobble 3.2s ease-in-out infinite; transform-origin: 50% 90%;
}
.egg img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(61,42,92,.25)); }
.egg:hover { animation-duration: .6s; }
.egg.is-found { pointer-events: none; animation: egg-found .7s forwards; }
.sparkle { position: fixed; z-index: 90; pointer-events: none; width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Bulles d'info (niveau, œuf) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, calc(100% + 32px));
  background: var(--plum); color: #fff; border: 3px solid #fff; border-radius: 999px;
  padding: 10px 22px 8px; font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .2s, visibility 0s .4s; white-space: nowrap; max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- Éclosion ---------- */
.hatch { border: 0; padding: 0; background: transparent; max-width: min(440px, calc(100vw - 32px)); width: 100%; }
.hatch::backdrop { background: rgba(29, 22, 56, .6); backdrop-filter: blur(3px); }
.hatch__box { background: var(--sky); border: 4px solid var(--plum); border-radius: 30px; padding: 30px 26px 26px; text-align: center; color: var(--plum); }
.hatch__stage { height: 220px; display: grid; place-items: center; position: relative; }
.hatch__egg { width: 150px; animation: shake .5s ease-in-out 3; }
.hatch__creature { width: 190px; position: absolute; opacity: 0; transform: scale(.3); }
.hatch.is-open .hatch__egg { animation: shake .45s ease-in-out 3, vanish .3s 1.4s forwards; }
.hatch.is-open .hatch__creature { animation: appear .6s 1.55s cubic-bezier(.34,1.56,.64,1) forwards; }
.hatch h2 { font-size: 1.9rem; margin: 10px 0 6px; }
.hatch p { margin-bottom: 18px; font-weight: 600; }

/* ---------- Pages d'étude de cas ---------- */
.case-hero { background: var(--sky); padding: 48px 0 0; overflow: hidden; }
.case-hero--night { background: linear-gradient(180deg, #1d1638 0%, #3a2470 100%); color: #fff; }
.case-hero--night h1, .case-hero--night .crumbs a { color: #fff; }
.crumbs { font-weight: 700; margin-bottom: 18px; }
.crumbs a { color: var(--plum); }
.case-hero__lead { font-size: 1.25rem; font-weight: 600; max-width: 46ch; }
.case-hero--night .case-hero__lead { color: #e2d9fa; }
.case-shot { margin-top: 36px; border: 4px solid var(--plum); border-bottom: 0; border-radius: 26px 26px 0 0; overflow: hidden; background: var(--plum); }
.case-shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -1px; }
.sheet__item { background: var(--paper); border: 3px solid var(--plum); border-radius: var(--radius-sm); padding: 18px; }
.sheet__item dt { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pink-deep); margin-bottom: 6px; }
.sheet__item dd { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
@media (max-width: 820px) { .sheet { grid-template-columns: 1fr 1fr; } }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cols--flip > :first-child { order: 2; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } .cols--flip > :first-child { order: 0; } }
.shot { border: 3px solid var(--plum); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 0 var(--lav-deep); background: var(--plum); }
.shot img { width: 100%; }
.shot figcaption { background: var(--paper); padding: 10px 16px; font-size: .92rem; font-weight: 700; color: var(--plum-soft); border-top: 3px solid var(--plum); }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit { background: var(--paper); border: 3px solid var(--plum); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 0 var(--lav-deep); }
.benefit h3 { display: flex; align-items: center; gap: 10px; }
.benefit h3 .dot { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--plum); flex: none; }
.benefit p { margin: 0; color: var(--plum-soft); }
@media (max-width: 720px) { .benefits { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.home-note { background: #fff0c4; border: 3px solid var(--plum); border-radius: var(--radius); padding: 26px; font-size: 1.1rem; box-shadow: 0 6px 0 #e9c766; }
.home-note strong { font-family: var(--font-title); font-size: 1.3rem; display: block; margin-bottom: 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }

/* ---------- Animations ---------- */
@keyframes fly { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-rot { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translate(-8px,-8px); } }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes wobble { 0%,80%,100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes egg-found { 30% { transform: scale(1.4) rotate(-10deg); } 100% { transform: scale(0) rotate(30deg); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.25); } }
@keyframes shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes vanish { to { transform: scale(1.6); opacity: 0; } }
@keyframes appear { to { opacity: 1; transform: scale(1); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hatch.is-open .hatch__egg { opacity: 0; }
  .hatch.is-open .hatch__creature { opacity: 1; transform: none; }
}

/* ---------- Héros : licorne du jeu et pièces à attraper ---------- */
.unicorn { position: absolute; left: 20%; top: 30%; width: 60%; aspect-ratio: 288 / 188; animation: fly 4s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(61,42,92,.18)); }
/* Licorne actuelle du jeu : 32 images, un battement complet en 0,7 s comme dans le jeu */
.unicorn__sprite { width: 100%; height: 100%; background: url("../img/licorne-vol-32.webp") 0 0 / 3200% 100% no-repeat; animation: flap .7s steps(32) infinite; }
@keyframes flap { to { background-position: 103.2258% 0; } }
.piece { position: absolute; width: 19%; height: auto; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(61,42,92,.18)); }
.piece--1 { left: 0; top: 2%; }
.piece--2 { right: 2%; top: 0; width: 21%; animation-delay: -1.2s; }
.piece--3 { left: 40%; top: -4%; width: 16%; animation-delay: -2.4s; }
.piece--4 { right: 0; bottom: 14%; animation-delay: -3.1s; }
.piece--5 { left: 4%; bottom: 8%; width: 20%; animation-delay: -.6s; }
.piece--6 { left: 46%; bottom: 0; width: 15%; animation-delay: -1.9s; }

/* ---------- Pages de jeu : vidéo et décor ---------- */
.case-shot video { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--plum); }
.case-hero--stage { background: linear-gradient(180deg, rgba(20,15,46,.88), rgba(29,22,56,.72)), url("../img/rythme-scene.webp") center / cover; }
.moves { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.moves li { display: flex; align-items: center; gap: 14px; }
.moves img { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 4px 4px rgba(61,42,92,.25)); }

.rights-note { margin: 28px 0 -26px; text-align: right; font-size: .88rem; font-weight: 700; color: #cfc4ea; font-style: italic; }
.footer__copy { margin: 0; }
.field__hint { margin: 6px 0 0; font-size: .88rem; color: var(--plum-soft); }
