/* AppriZ, site vitrine. Palette et polices reprises du jeu (Game/Shell/Tokens.swift). */

@font-face { font-family: "Epilogue"; src: url("/fonts/epilogue-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("/fonts/epilogue-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Marelle"; src: url("/fonts/Marelle-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --papier: #fcfaf0;
  --creme: #f5f0e0;
  --foret: #1c4d3d;
  --sous-bois: #00362a;
  --miel: #e8a633;
  --miel-fonce: #b87500;
  --terracotta: #fc7f4f;
  --terracotta-fonce: #b9461d;
  --bois: #cca873;
  --bois-fonce: #8c6b38;
  --prairie: #a9cf62;
  --prairie-claire: #e5f0c9;
  --encre: #17392e;
  --texte: #2f4a40;

  --titre: "Epilogue", "Avenir Next", system-ui, sans-serif;
  --corps: "Nunito Sans", "Avenir Next", system-ui, sans-serif;
  --cursive: "Marelle", "Snell Roundhand", cursive;

  --rayon: 22px;
  --ombre: 0 2px 0 rgba(0, 54, 42, 0.12), 0 14px 30px -18px rgba(0, 54, 42, 0.45);
  --large: min(1160px, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font: 400 1.0625rem/1.65 var(--corps);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--foret); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--terracotta-fonce); }
:focus-visible { outline: 3px solid var(--terracotta-fonce); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--large); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--foret); color: var(--papier); padding: 0.6rem 1rem; border-radius: 12px; }
.skip:focus { top: 1rem; }

/* La cursive : le geste que l'enfant apprend devient la signature du site. */
.cursive { font-family: var(--cursive); font-weight: 400; letter-spacing: 0; line-height: 1; }
.ecrit {
  display: inline-block;
  color: var(--terracotta-fonce);
  padding: 0 0.12em 0.08em 0.04em;
  clip-path: inset(-20% 100% -30% 0);
}
.js .ecrit.is-visible, .ecrit.sans-anim { animation: ecrire 1.6s cubic-bezier(.55, .1, .35, 1) forwards; }
@keyframes ecrire { to { clip-path: inset(-20% -5% -30% 0); } }
html:not(.js) .ecrit { clip-path: none; }

/* ---------------------------------------------------------------- en-tête */
.entete {
  position: absolute; inset: 0 0 auto; z-index: 20;
  padding: 1rem 0;
}
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marque { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--encre); font: 800 1.55rem/1 var(--titre); letter-spacing: -0.03em; }
.marque img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--ombre); }
.marque b { color: var(--terracotta-fonce); }
.nav { display: flex; gap: 0.3rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; font-size: 0.98rem; color: var(--encre); padding: 0.5rem 0.8rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(252, 250, 240, 0.85); color: var(--foret); }
.menu-bouton { display: none; }

@media (max-width: 860px) {
  .menu-bouton {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 0; border-radius: 16px; background: var(--papier); color: var(--encre); box-shadow: var(--ombre); cursor: pointer;
  }
  .nav {
    position: absolute; top: 4.6rem; right: 1.25rem; left: 1.25rem; flex-direction: column; align-items: stretch;
    background: var(--papier); padding: 0.6rem; border-radius: var(--rayon); box-shadow: var(--ombre);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 1rem; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: max(100svh, 720px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(#fde9b8, #fdf4dc 55%, #e7f0cd);
}
.plan { position: absolute; pointer-events: none; will-change: translate; }
.plan img { width: 100%; height: 100%; object-fit: cover; }
.plan-ciel { inset: 0; z-index: -4; }
.plan-ciel img { object-position: center 30%; }
.plan-collines {
  --l: max(108vw, 1300px);
  width: var(--l); aspect-ratio: 3 / 1; bottom: -9%;
  left: clamp(calc(100vw - var(--l)), calc(50vw - 0.33 * var(--l)), 0px);
  z-index: -2;
}
.plan-collines > img { object-fit: fill; }
/* Le haut de l'image coupe la cime des arbres à plat : on l'efface en fondu dans le ciel. */
.plan-collines > img { -webkit-mask-image: linear-gradient(transparent 0, #000 16%); mask-image: linear-gradient(transparent 0, #000 16%); }
.plan-gauche { left: -3%; bottom: -3%; width: min(30vw, 380px); aspect-ratio: 3 / 4; z-index: 2; }
.plan-droite { right: -3%; bottom: -3%; width: min(28vw, 360px); aspect-ratio: 3 / 4; z-index: 2; }
.plan-gauche img, .plan-droite img { object-fit: contain; object-position: bottom; -webkit-mask-image: linear-gradient(transparent 0, #000 14%); mask-image: linear-gradient(transparent 0, #000 14%); }

/* Entrée « livre animé » : chaque plan se dresse depuis le bas, du plus loin au plus proche. */
.js .plan-collines, .js .plan-gauche, .js .plan-droite {
  animation: dresser 1.1s cubic-bezier(.2, .9, .25, 1.15) both;
  transform-origin: 50% 100%;
}
.js .plan-collines { animation-delay: 0.15s; }
.js .plan-gauche { animation-delay: 0.55s; }
.js .plan-droite { animation-delay: 0.7s; }
@keyframes dresser {
  from { transform: perspective(900px) rotateX(78deg) translateY(30px); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 1; }
}

.hero-texte {
  position: relative; z-index: 5;
  width: var(--large); margin-inline: auto;
  padding-top: clamp(6.5rem, 13vh, 8.5rem);
  text-align: center;
}
.etiquette {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--papier); color: var(--foret);
  font-weight: 700; font-size: 0.92rem;
  padding: 0.45rem 0.95rem; border-radius: 999px; box-shadow: var(--ombre);
}
.etiquette i { width: 8px; height: 8px; border-radius: 50%; background: var(--prairie); box-shadow: 0 0 0 3px rgba(169, 207, 98, 0.35); }
.hero h1 {
  font-size: clamp(2.3rem, 4.9vw, 4.3rem);
  font-weight: 800;
  margin: 1rem auto 0.5rem;
  max-width: 17ch;
  text-wrap: balance;
}
.hero h1 .cursive { font-size: 1.32em; display: inline-block; vertical-align: -0.08em; }
.hero .promesse { font-size: clamp(1.08rem, 1.6vw, 1.28rem); max-width: 36rem; margin: 0 auto 1.6rem; color: var(--encre); }

/* Apple demande autour du badge un espace libre d’au moins un quart de sa hauteur (52 px, donc 13 px). */
.store { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.badge-apple { display: inline-block; padding: 0; line-height: 0; }
.badge-apple img { height: 52px; width: auto; }
.bientot {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.95rem; color: var(--sous-bois);
  background: var(--miel); padding: 0.5rem 0.9rem; border-radius: 999px;
}
.bientot::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sous-bois); animation: pouls 1.8s ease-in-out infinite; }
@keyframes pouls { 50% { transform: scale(0.55); opacity: 0.5; } }
[data-sortie="publiee"] .bientot { display: none; }

/* Les lieux numérotés posés sur le chemin des collines, et Théo qui les parcourt.
   Le SVG partage le repère 2400 x 800 de l'image : les pastilles restent sur le chemin à toute taille. */
.lieux { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lieu circle { fill: var(--papier); stroke: var(--foret); stroke-width: 6; }
.lieu text { font: 800 34px var(--titre); fill: var(--foret); text-anchor: middle; dominant-baseline: central; }
.js .lieu { opacity: 0; animation: allumer 0.5s cubic-bezier(.3, 1.6, .5, 1) forwards; transform-box: fill-box; transform-origin: center; }
.js .lieu:nth-of-type(1) { animation-delay: 1.3s; }
.js .lieu:nth-of-type(2) { animation-delay: 1.6s; }
.js .lieu:nth-of-type(3) { animation-delay: 1.9s; }
.js .lieu:nth-of-type(4) { animation-delay: 2.2s; }
@keyframes allumer { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

.marcheur { position: absolute; left: 37.6%; bottom: 25.5%; width: 5.6%; transform: translateX(-50%); }
.marcheur img { width: 100%; height: auto; filter: drop-shadow(0 10px 8px rgba(0, 54, 42, 0.25)); }
.js .marcheur { animation: marcher 3.2s 1.2s cubic-bezier(.45, .05, .4, 1) both; }
.js .marcheur img { animation: sautiller 3.4s 4.6s ease-in-out infinite; }
/* Du lieu 1 au lieu 2, par petits bonds, comme Théo sur la carte du jeu. */
@keyframes marcher {
  0% { left: 17.5%; bottom: 10%; opacity: 0; }
  10% { opacity: 1; }
  25% { left: 22%; bottom: 15%; }
  32% { left: 24%; bottom: 13.5%; }
  55% { left: 29%; bottom: 19%; }
  62% { left: 31%; bottom: 18%; }
  70% { left: 35.4%; bottom: 23%; }
  100% { left: 37.6%; bottom: 25.5%; }
}

.habitant { position: absolute; z-index: 3; right: 18%; bottom: 5%; height: clamp(150px, 24vh, 240px); }
.habitant img { height: 100%; width: auto; filter: drop-shadow(0 10px 8px rgba(0, 54, 42, 0.25)); animation: sautiller 3.8s 3s ease-in-out infinite; }
.js .habitant { animation: dresser 1.1s 1.5s cubic-bezier(.2, .9, .25, 1.15) both; transform-origin: 50% 100%; }
@keyframes sautiller {
  0%, 70%, 100% { transform: translateY(0) rotate(0); }
  78% { transform: translateY(-14px) rotate(-2deg); }
  86% { transform: translateY(0) rotate(1deg); }
}

/* Lucioles-lettres : le mini-jeu des lucioles du jeu, mis en lumière. */
.lucioles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.luciole {
  position: absolute; display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  font: 400 1.5rem/1 var(--cursive); color: var(--sous-bois);
  background: radial-gradient(circle, #fff7d6 0 38%, rgba(232, 166, 51, 0.55) 60%, rgba(232, 166, 51, 0) 72%);
  animation: voler var(--d, 9s) var(--r, 0s) ease-in-out infinite alternate;
  opacity: 0.95;
}
@keyframes voler {
  0% { transform: translate(0, 0) scale(0.9); }
  33% { transform: translate(var(--x1, 30px), var(--y1, -40px)) scale(1.05); }
  66% { transform: translate(var(--x2, -20px), var(--y2, -80px)) scale(0.95); }
  100% { transform: translate(var(--x3, 25px), var(--y3, -30px)) scale(1); }
}

@media (max-width: 720px) {
  .hero { min-height: 960px; }
  .plan-collines { --l: 1150px; }
  .marcheur { width: 5%; }
  .luciole { width: 1.9rem; height: 1.9rem; font-size: 1.2rem; opacity: 0.7; }
  .luciole:nth-child(2), .luciole:nth-child(5), .luciole:nth-child(6) { display: none; }
  .plan-gauche { width: 46vw; left: -14%; }
  .plan-droite { width: 44vw; right: -14%; }
  .habitant { height: 130px; right: 2%; }
  .plan-collines { bottom: -1%; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.panneau {
  display: inline-block; position: relative;
  font: 800 0.95rem/1 var(--titre); letter-spacing: 0.02em; text-transform: none;
  color: #3d2a0c; background: var(--bois);
  padding: 0.65rem 1.1rem 0.6rem; border-radius: 10px 14px 12px 9px;
  box-shadow: inset 0 -4px 0 var(--bois-fonce), 0 6px 0 -2px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.2rem; transform: rotate(-1.5deg);
}
.panneau::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 18px; margin-left: -5px;
  background: var(--bois-fonce); border-radius: 0 0 3px 3px; z-index: -1;
}
.intro { font-size: 1.15rem; max-width: 40rem; color: var(--encre); }

/* Ce que l'enfant apprend : quatre clairières. */
.apprend { background: var(--papier); }
.apprend-tete { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.apprend-tete p { margin: 0; }
.clairieres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.clairiere {
  position: relative; background: var(--prairie-claire); border-radius: 44% 56% 40% 60% / 18% 20% 16% 22%;
  padding: 2rem 1.4rem 1.6rem; box-shadow: inset 0 -6px 0 rgba(28, 77, 61, 0.08);
}
.clairiere:nth-child(2) { background: #fbe6c4; border-radius: 56% 44% 60% 40% / 20% 16% 22% 18%; }
.clairiere:nth-child(3) { background: #dcefe4; border-radius: 40% 60% 46% 54% / 16% 22% 18% 20%; }
.clairiere:nth-child(4) { background: #fde1d3; border-radius: 60% 40% 52% 48% / 22% 18% 20% 16%; }
.clairiere .mot { font-size: clamp(2.6rem, 4.2vw, 3.4rem); color: var(--foret); display: block; margin-bottom: 0.8rem; min-height: 1.1em; }
.clairiere img { position: absolute; top: -1.4rem; right: 1rem; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(0, 54, 42, 0.18)); }
.clairiere ul { margin: 0; padding: 0; list-style: none; font-size: 0.98rem; }
.clairiere li { padding-left: 1.1rem; position: relative; margin-bottom: 0.35rem; }
.clairiere li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--foret); opacity: 0.5; }
.aussi { margin-top: 1.6rem; font-size: 0.98rem; }
.trois-ecritures { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: baseline; margin-top: 2.6rem; padding: 1.4rem 1.6rem; border-radius: var(--rayon); background: var(--creme); }
.trois-ecritures strong { font-family: var(--titre); color: var(--encre); margin-right: 0.4rem; }
.trois-ecritures span { font-size: 1.9rem; color: var(--foret); padding: 0 0.6rem; border-left: 2px dashed rgba(28, 77, 61, 0.25); }
.trois-ecritures span:first-of-type { border-left: 0; }
.trois-ecritures .cursive { font-size: 2.3rem; }
.trois-ecritures .rond { font-family: ui-rounded, "SF Pro Rounded", var(--corps); font-weight: 700; }

/* Comment se joue une partie : un vrai déroulé, donc des étapes numérotées. */
.partie { background: linear-gradient(180deg, var(--papier), #eef5dc 30%, #e1edc4); overflow: hidden; }
.partie-grille { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.carte {
  position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 3 / 4; max-width: 460px;
  box-shadow: 0 30px 60px -30px rgba(0, 54, 42, 0.6); border: 10px solid var(--papier); transform: rotate(-2deg);
}
.carte > img { width: 100%; height: 100%; object-fit: cover; }
.carte .pion { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--papier); border: 4px solid var(--foret); font: 800 1.25rem var(--titre); color: var(--foret); box-shadow: 0 6px 0 rgba(0, 54, 42, 0.25); }
.carte .pion.ici { background: var(--miel); }
.carte > .perso { position: absolute; width: 17%; height: auto; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0, 54, 42, 0.3)); }
.etapes { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.etapes li::before {
  content: counter(etape); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--papier); border: 4px solid var(--foret); font: 800 1.3rem var(--titre); color: var(--foret);
}
.etapes h3 { margin: 0.35rem 0 0.3rem; }
.etapes p { margin: 0; }

/* Les habitants de la forêt. */
.habitants { background: #e1edc4; padding-bottom: 0; }
.colline-parade {
  position: relative; margin-top: 2.5rem; padding: 0 0 2.2rem;
  background: radial-gradient(120% 90% at 50% 100%, var(--prairie) 0 60%, transparent 61%);
}
.parade { display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: clamp(0.3rem, 0.9vw, 1rem); padding: 0 1rem; }
.parade figure { margin: 0; text-align: center; }
.parade img { height: clamp(84px, 8.2vw, 128px); width: auto; margin: 0 auto; transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1); }
.parade figure:hover img, .parade figure:focus-within img { transform: translateY(-12px) rotate(-3deg); }
.parade figcaption { font: 700 0.85rem var(--titre); color: var(--sous-bois); margin-top: 0.3rem; }
.parade .vedette img { height: clamp(112px, 11vw, 172px); }
.parade .vedette figcaption { font-size: 1rem; }

/* Confiance : la forêt de nuit, le hibou veille. */
.confiance { background: var(--sous-bois); color: #d9e6dc; overflow: hidden; }
.confiance::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(2px 2px at 12% 18%, #fff7d6 50%, transparent 51%),
    radial-gradient(2px 2px at 32% 8%, #fff7d6 50%, transparent 51%),
    radial-gradient(3px 3px at 58% 14%, var(--miel) 50%, transparent 51%),
    radial-gradient(2px 2px at 76% 22%, #fff7d6 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 9%, #fff7d6 50%, transparent 51%),
    radial-gradient(3px 3px at 8% 70%, var(--miel) 50%, transparent 51%);
  opacity: 0.8;
}
.confiance h2, .confiance h3 { color: #fffbea; }
.confiance .intro { color: #e8f0e6; }
.confiance a { color: #ffd98f; }
.confiance-grille { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.hibou { max-width: 420px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
.engagements { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.engagements li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 18px; padding: 1rem 1.1rem; }
.engagements svg { width: 2.6rem; height: 2.6rem; color: var(--miel); }
.engagements strong { display: block; color: #fffbea; font-family: var(--titre); font-size: 1.08rem; margin-bottom: 0.15rem; }
.engagements p { margin: 0; font-size: 0.98rem; }

.minuteur { margin-top: 2.6rem; background: var(--papier); color: var(--texte); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); position: relative; }
.minuteur h3 { color: var(--encre); margin-bottom: 0.3rem; }
.minuteur > p { margin-bottom: 1rem; }
.duree { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1rem; padding: 0; border: 0; }
.duree legend, .mode legend { font: 700 0.9rem var(--titre); color: var(--encre); margin-bottom: 0.5rem; padding: 0; }
.duree label, .mode label { cursor: pointer; }
.duree input, .mode input { position: absolute; opacity: 0; pointer-events: none; }
.duree span, .mode span { display: inline-block; padding: 0.55rem 0.95rem; border-radius: 999px; background: var(--creme); font-weight: 700; font-size: 0.95rem; color: var(--encre); border: 2px solid transparent; }
.duree input:checked + span, .mode input:checked + span { background: var(--foret); color: var(--papier); }
.duree input:focus-visible + span, .mode input:focus-visible + span { border-color: var(--terracotta-fonce); }
.mode { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1rem; padding: 0; border: 0; }
.mode[hidden] { display: none; }
.verdict { margin: 0; padding: 1rem 1.1rem; background: var(--prairie-claire); border-radius: 16px; font-weight: 700; color: var(--encre); }

/* FAQ */
.questions { max-width: 820px; }
.questions details { border-bottom: 2px dashed rgba(28, 77, 61, 0.2); }
.questions summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.6rem 1.2rem 0; position: relative;
  font: 700 1.15rem/1.35 var(--titre); color: var(--encre);
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: ""; position: absolute; right: 0.2rem; top: 50%; width: 1.6rem; height: 1.6rem; margin-top: -0.8rem; border-radius: 50%;
  background: var(--miel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2300362a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat;
  transition: transform 0.25s ease;
}
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details > div { padding: 0 0 1.3rem; }
.questions details > div p:last-child { margin-bottom: 0; }

/* Appel final */
.depart { text-align: center; background: linear-gradient(180deg, var(--papier), #fde9b8); overflow: hidden; }
.depart h2 { max-width: 16ch; margin-inline: auto; }
.depart .cursive { color: var(--terracotta-fonce); font-size: 1.25em; }
.depart p { max-width: 34rem; margin-inline: auto; }
.depart .store { margin: 1.2rem 0 1.4rem; }
.depart-persos { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; margin-top: 2.5rem; }
.depart-persos img { height: 150px; width: auto; }

/* ---------------------------------------------------------------- pages intérieures */
.page-tete { padding: 8.5rem 0 3rem; background: linear-gradient(180deg, #fde9b8, var(--papier)); position: relative; overflow: hidden; }
.page-tete h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; max-width: 18ch; }
.page-tete .intro { margin: 0; }
.page-tete .deco { position: absolute; right: max(1rem, 6vw); bottom: -10px; height: 170px; width: auto; }
.fil { font-size: 0.92rem; margin-bottom: 1rem; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fil li + li::before { content: "›"; margin-right: 0.4rem; color: var(--bois-fonce); }
.texte-legal { max-width: 780px; padding: 2rem 0 5rem; }
.texte-legal h2 { font-size: 1.6rem; margin-top: 2.6rem; }
.texte-legal h3 { margin-top: 1.6rem; }
.texte-legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.4rem; margin: 0 0 1rem; }
.texte-legal dt { font-weight: 700; color: var(--encre); }
.texte-legal dd { margin: 0; }
.texte-legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: 0.97rem; }
.texte-legal th, .texte-legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.6rem; border-bottom: 1px solid rgba(28, 77, 61, 0.15); }
.texte-legal th { font-family: var(--titre); color: var(--encre); }
.encadre { background: var(--prairie-claire); border-radius: var(--rayon); padding: 1.2rem 1.4rem; margin: 1.4rem 0; color: var(--encre); }
.date-maj { font-size: 0.92rem; color: #6b4f22; }
@media (max-width: 640px) { .texte-legal dl { grid-template-columns: 1fr; } .texte-legal dd { margin-bottom: 0.6rem; } .page-tete .deco { height: 110px; opacity: 0.9; } }

/* Assistance */
.aide-grille { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: 2rem 0 5rem; }
.formulaire { background: var(--creme); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); position: sticky; top: 1.5rem; }
.formulaire h2 { font-size: 1.7rem; }
.champ { margin-bottom: 1rem; }
.champ label { display: block; font-weight: 700; color: var(--encre); margin-bottom: 0.35rem; font-size: 0.97rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--encre); background: var(--papier);
  border: 2px solid rgba(28, 77, 61, 0.25); border-radius: 14px; padding: 0.75rem 0.9rem; min-height: 48px;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--foret); box-shadow: 0 0 0 4px rgba(28, 77, 61, 0.15); }
.compteur { font-size: 0.85rem; color: #6b4f22; text-align: right; margin-top: 0.25rem; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-donnees { font-size: 0.9rem; background: var(--papier); border-radius: 14px; padding: 0.8rem 1rem; margin: 0 0 1rem; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px;
  font: 800 1.05rem var(--titre); color: var(--papier); background: var(--foret);
  border: 0; border-radius: 18px; padding: 0.85rem 1.5rem; cursor: pointer; text-decoration: none;
  box-shadow: 0 5px 0 var(--sous-bois); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.bouton:hover { color: var(--papier); background: #245d4a; }
.bouton:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sous-bois); }
.bouton[disabled] { opacity: 0.55; cursor: not-allowed; }
.statut { margin: 1rem 0 0; font-weight: 700; color: var(--encre); min-height: 1.5em; }
.statut.erreur { color: var(--terracotta-fonce); }

/* ---------------------------------------------------------------- pied */
.pied { background: var(--foret); color: #d9e6dc; padding: 3.5rem 0 2rem; position: relative; }
.pied::before {
  content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 30px;
  background: radial-gradient(30px 30px at 30px 30px, var(--foret) 98%, transparent) 0 0 / 60px 30px repeat-x;
}
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pied .marque { color: #fffbea; }
.pied .marque b { color: var(--miel); }
.pied h2 { font-size: 1rem; color: #fffbea; margin-bottom: 0.8rem; letter-spacing: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 0.45rem; }
.pied a { color: #fffbea; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: var(--miel); }
.pied .petit { font-size: 0.88rem; color: #b9cfc2; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; }
.origine { display: inline-flex; align-items: center; gap: 0.45rem; }

/* 404 */
.perdu { text-align: center; padding: 8rem 0 5rem; min-height: 80vh; background: linear-gradient(180deg, #fde9b8, var(--papier)); }
.perdu img { width: min(320px, 70vw); margin: 0 auto 1rem; }

/* Révélations au défilement */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .clairieres { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .apprend-tete, .partie-grille, .confiance-grille, .aide-grille { grid-template-columns: 1fr; }
  .carte { margin: 0 auto; }
  .hibou { max-width: 280px; }
  .formulaire { position: static; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .clairieres { grid-template-columns: 1fr; }
  .depart-persos img { height: 110px; }
}

/* Mouvement réduit : la scène est complète et immobile. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ecrit { clip-path: none; }
  .js .lieu { opacity: 1; }
  .lucioles { display: none; }
}
