/* =====================================================================
   LilouMélo · maquette premium
   ===================================================================== */
/* Police Fredoka (licence SIL OFL 1.1, voir fonts/Fredoka-LICENCE-OFL.txt), hébergée avec le site */
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }
:root {
  --prune: #2b0f2e;
  --prune-2: #3d1640;
  --encre: #3a1838;
  --creme: #fff6ea;
  --creme-2: #ffeedd;
  --soleil: #ffb81c;
  --orange: #ff8a1f;
  --rose: #ff2e7e;
  --rose-2: #ff7fb0;
  --menthe: #7fe8c6;
  --ciel: #64d6ec;
  --lilas: #b598ff;
  --plan: #eaf4ff;
  --titre: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --texte: "Avenir Next", "Avenir", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ressort: cubic-bezier(.34, 1.56, .64, 1);
  --doux: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 500 1.0625rem/1.6 var(--texte); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.charge { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--rose); color: #fff; }
h1, h2, h3 { font-family: var(--titre); margin: 0; letter-spacing: -.02em; line-height: .95; }

/* ---------- Grain + progression ---------- */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-5%,4%)} 40%{transform:translate(3%,-6%)} 60%{transform:translate(-4%,2%)} 80%{transform:translate(6%,5%)} 100%{transform:translate(0,0)} }
.progression { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; }
.progression span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--soleil), var(--rose), var(--lilas)); }

/* ---------- Curseur ---------- */
.curseur, .curseur-point { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; border-radius: 50%; display: none; }
.a-souris .curseur, .a-souris .curseur-point { display: grid; }
.curseur { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1.5px solid var(--rose); place-items: center;
  transition: width .35s var(--doux), height .35s var(--doux), margin .35s var(--doux), background .3s, border-color .3s; }
.curseur-point { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--rose); }
.curseur__texte { font: 800 .8rem/1 var(--titre); color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.curseur.lien { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255, 46, 126, .12); }
.curseur.lecture { width: 110px; height: 110px; margin: -55px 0 0 -55px; background: var(--rose); border-color: var(--rose); }
.curseur.lecture .curseur__texte { opacity: 1; }
.curseur.lecture + .curseur-point { opacity: 0; }
.a-souris, .a-souris a, .a-souris button { cursor: none; }
.lecture-en-cours .curseur, .lecture-en-cours .curseur-point { display: none !important; }
.lecture-en-cours .lecteur, .lecture-en-cours .lecteur button { cursor: auto; }
.lecture-en-cours .lecteur__fermer { cursor: pointer; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 95; background: var(--prune); color: #fff; display: grid; place-items: center;
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1); }
.intro__vague { position: absolute; top: 100%; left: 0; width: 100%; height: 160px; fill: var(--prune); }
.intro.fini { transform: translateY(calc(-100% - 170px)); }
.intro__centre { display: grid; justify-items: center; gap: 18px; }
.intro__tete { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 20px 60px rgba(255, 46, 126, .35);
  animation: rebond 1s var(--ressort) infinite alternate; }
@keyframes rebond { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-16px) scale(.97, 1.03); } }
.intro__mot { font: 700 clamp(2.4rem, 6vw, 4rem)/1 var(--titre); letter-spacing: -.02em; }
.intro__mot .l { display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg); animation: lettre .7s var(--ressort) forwards; animation-delay: calc(var(--i) * .06s + .15s); }
.intro__mot .l:nth-child(n+6) { color: var(--rose-2); }
.intro__mot .l:nth-child(-n+5) { color: var(--soleil); }
@keyframes lettre { to { opacity: 1; transform: none; } }
.intro__barre { width: 200px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.intro__barre span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--soleil), var(--rose)); border-radius: inherit; }
.intro__compteur { font: 600 .8rem var(--mono); letter-spacing: .2em; opacity: .6; }

/* ---------- En-tête ---------- */
.entete { position: fixed; top: 18px; left: 50%; z-index: 70; transform: translateX(-50%); width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 10px 10px 14px;
  border-radius: 999px; background: rgba(255, 249, 240, .62); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 40px rgba(58, 24, 56, .08); transition: transform .6s var(--doux), opacity .4s; }
.entete.cache { transform: translate(-50%, -140%); }
.entete__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem/1 var(--titre); color: var(--orange); }
.entete__logo b { color: var(--rose); font-weight: inherit; }
.entete__logo img { width: 40px; height: 40px; border-radius: 50%; }
.entete__nav { display: flex; gap: 30px; }
.entete__nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
[data-souligne] { position: relative; }
[data-souligne]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--rose); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--doux); }
[data-souligne]:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- Boutons ---------- */
.bouton { --fond: var(--encre); --txt: #fff; --survol: var(--rose); position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 18px 30px; border-radius: 999px; background: var(--fond); color: var(--txt); text-decoration: none; font: 700 1.05rem/1 var(--titre); letter-spacing: .01em;
  transition: transform .5s var(--doux), color .4s; will-change: transform; border: 0; }
.bouton__rond { position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; border-radius: 50%; background: var(--survol);
  transform: translate(-50%, -50%); transition: width .6s var(--doux), height .6s var(--doux); }
.bouton:hover .bouton__rond { width: 340px; height: 340px; }
.bouton__fleche { transition: transform .4s var(--doux); }
.bouton:hover .bouton__fleche { transform: translateX(5px); }
.bouton--petit { padding: 13px 22px; font-size: .95rem; }
.bouton--rose { --fond: var(--rose); --survol: var(--encre); box-shadow: 0 14px 34px rgba(255, 46, 126, .35); }
.bouton--fantome { --fond: transparent; --txt: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.bouton--fantome:hover { color: #fff; }
.bouton--clair { --fond: #fff; --txt: var(--prune); --survol: var(--soleil); }
.bouton--jaune { --fond: var(--soleil); --txt: var(--prune); --survol: #fff; font-size: 1.2rem; padding: 22px 38px; box-shadow: 0 18px 50px rgba(255, 184, 28, .35); }
.bouton--inactif { cursor: default; }

/* ---------- Étiquettes et titres ---------- */
.etiquette { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 600 .75rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--rose); }
.etiquette::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.etiquette--clair { color: var(--soleil); }
.pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(255,46,126,.6); animation: pouls 2s infinite; }
.heros .etiquette::before { display: none; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(255,46,126,0); } 100% { box-shadow: 0 0 0 0 rgba(255,46,126,0); } }
.titre-section { font-size: clamp(2.8rem, 7vw, 6.2rem); font-weight: 700; }
.titre-section--clair { color: #fff; }
[data-lettres-section] .mot { display: inline-block; white-space: nowrap; }
[data-lettres-section] .l { display: inline-block; transform: translateY(105%) rotate(6deg); opacity: 0; transition: transform .9s var(--ressort), opacity .5s; transition-delay: calc(var(--i) * .03s); }
.vu [data-lettres-section] .l, [data-lettres-section].vu .l { transform: none; opacity: 1; }
[data-lettres-section] .mot { overflow: hidden; padding: .06em 0 .1em; margin-bottom: -.1em; vertical-align: top; }

/* Apparitions génériques */
.apparait { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--doux), transform 1s var(--doux); transition-delay: var(--d, 0s); }
.pret .heros .apparait, .reveler.vu { opacity: 1; transform: none; }
.reveler { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--doux), transform 1.1s var(--doux); transition-delay: var(--d, 0s); }

/* =====================================================================
   1. Héros
   ===================================================================== */
.heros { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2vw;
  padding: 130px max(5vw, 24px) 120px; overflow: hidden; }
.heros__fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 70% 40%, #fff 0%, var(--creme) 55%, var(--creme-2) 100%); }
.tache { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: flotte 18s ease-in-out infinite alternate; }
.tache--1 { width: 46vw; height: 46vw; left: 48%; top: -12%; background: #ffd27a; }
.tache--2 { width: 34vw; height: 34vw; left: 70%; top: 45%; background: #ff9cc4; animation-delay: -6s; }
.tache--3 { width: 30vw; height: 30vw; left: -8%; top: 55%; background: #a6f0d8; animation-delay: -3s; }
.tache--4 { width: 22vw; height: 22vw; left: 30%; top: 70%; background: #cdb8ff; animation-delay: -9s; }
@keyframes flotte { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, -3vw) scale(1.12); } 100% { transform: translate(-3vw, 2vw) scale(.94); } }

.heros__titre { font-size: clamp(3.2rem, 7.4vw, 7.6rem); font-weight: 700; color: var(--encre); margin-bottom: 30px; }
.heros__titre .ligne { display: block; overflow: hidden; padding: .04em 0 .12em; margin-bottom: -.12em; }
.heros__titre .ligne > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.2s var(--doux); }
.heros__titre .ligne:nth-child(2) > span { transition-delay: .12s; }
.heros__titre .ligne:nth-child(3) > span { transition-delay: .24s; }
.pret .heros__titre .ligne > span { transform: none; }
.heros__titre em { position: relative; font-style: normal; color: var(--rose); display: inline-block; }
.gribouille { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .28em; overflow: visible; }
.gribouille path { fill: none; stroke: var(--soleil); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1s var(--doux) 1.1s; }
.pret .gribouille path { stroke-dashoffset: 0; }
.heros__intro { max-width: 30em; font-size: 1.15rem; color: #6c4a66; margin: 0 0 36px; }
.heros__boutons { display: flex; flex-wrap: wrap; gap: 14px; }

/* Scène 3D */
.scene { position: relative; aspect-ratio: 1; width: min(100%, 640px); justify-self: center; perspective: 1000px; }
.scene > * { position: absolute; will-change: transform; }
.scene__disque { inset: 12%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe08a 0%, var(--soleil) 35%, var(--orange) 70%, #ff5e62 100%);
  box-shadow: inset -30px -40px 80px rgba(176, 40, 90, .35), inset 20px 20px 60px rgba(255,255,255,.5), 0 50px 100px rgba(255, 120, 60, .35);
  opacity: 0; transform: scale(.6); transition: opacity 1s, transform 1.4s var(--ressort) .2s; }
.pret .scene__disque { opacity: 1; transform: none; }
.scene__anneau { inset: 0; width: 100%; height: 100%; overflow: visible; animation: tourne 40s linear infinite; }
.scene__anneau text { font: 700 15px var(--mono); letter-spacing: 6px; fill: var(--encre); opacity: .55; }
@keyframes tourne { to { transform: rotate(360deg); } }
.scene__perso { left: 18%; right: 18%; top: 2%; bottom: 4%; display: grid; justify-items: center; align-items: end; }
.scene__lilou { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 40px rgba(58, 24, 56, .25));
  transform-origin: 50% 100%; opacity: 0; transform: translateY(40%) scale(.7); transition: opacity .6s .5s, transform 1.4s var(--ressort) .5s; }
.pret .scene__lilou { opacity: 1; transform: none; animation: respire 4s ease-in-out 2s infinite; }
@keyframes respire { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.scene__ombre { position: absolute; bottom: -2%; width: 46%; height: 6%; border-radius: 50%; background: radial-gradient(rgba(58,24,56,.35), transparent 70%); animation: ombre 4s ease-in-out 2s infinite; }
@keyframes ombre { 50% { transform: scale(.82); opacity: .7; } }
.objet { opacity: 0; transition: opacity 1s 1s; }
.pret .objet { opacity: 1; }
.objet--sphere1 { width: 15%; aspect-ratio: 1; left: 2%; top: 18%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 6%, #ff9cc4 22%, var(--rose) 60%, #b3135a 100%); box-shadow: 0 25px 40px rgba(255,46,126,.3); }
.objet--sphere2 { width: 9%; aspect-ratio: 1; right: 6%; top: 10%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 6%, #b9f5e2 22%, var(--menthe) 55%, #1fa585 100%); box-shadow: 0 18px 30px rgba(31,165,133,.3); }
.objet--anneau { width: 20%; aspect-ratio: 1; right: -2%; bottom: 20%; border-radius: 50%; background: radial-gradient(circle, transparent 38%, #d7c6ff 40%, var(--lilas) 55%, #7c4dff 68%, transparent 70%);
  filter: drop-shadow(0 20px 30px rgba(124, 77, 255, .3)); transform: rotateX(55deg); }
.objet--etoile { width: 11%; left: 14%; bottom: 10%; }
.objet--etoile svg { fill: var(--soleil); filter: drop-shadow(0 10px 18px rgba(255,184,28,.5)); animation: tourne 12s linear infinite; }
.objet--note { width: 8%; right: 14%; top: 40%; }
.objet--note svg { fill: var(--rose); filter: drop-shadow(0 10px 14px rgba(255,46,126,.35)); }
.objet--pilule { width: 16%; height: 6%; left: 4%; top: 58%; border-radius: 999px; background: linear-gradient(180deg, #9be9ff, var(--ciel) 50%, #239ab8); box-shadow: inset 0 4px 6px rgba(255,255,255,.6), 0 16px 26px rgba(35,154,184,.3); }
.bulle-heros { left: 66%; top: 15%; padding: 14px 24px; border-radius: 26px 26px 26px 6px; background: #fff; font: 700 1.45rem var(--titre); color: var(--encre); box-shadow: 0 16px 40px rgba(58,24,56,.15); white-space: nowrap;
  opacity: 0; transform: scale(.4) rotate(-10deg); transform-origin: 0 100%; transition: opacity .3s 2.1s, transform .7s var(--ressort) 2.1s; }
.pret .bulle-heros { opacity: 1; transform: rotate(-4deg); }

.heros__bas { position: absolute; left: max(5vw, 24px); right: max(5vw, 24px); bottom: 34px; display: flex; justify-content: space-between; align-items: center; }
.defiler { display: flex; align-items: center; gap: 12px; font: 600 .72rem var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.defiler__trait { width: 1.5px; height: 44px; background: rgba(58,24,56,.15); position: relative; overflow: hidden; }
.defiler__trait::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--rose); animation: descend 1.8s var(--doux) infinite; }
@keyframes descend { to { top: 100%; } }
.chiffres { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; font: 600 .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.chiffres b { display: block; font: 700 1.9rem/1 var(--titre); letter-spacing: 0; color: var(--rose); margin-bottom: 4px; }

/* =====================================================================
   2. Rubans
   ===================================================================== */
.rubans { position: relative; height: 240px; margin: -40px 0; z-index: 3; overflow: hidden; pointer-events: none; }
.ruban { position: absolute; left: -5%; width: 110%; top: 50%; padding: 18px 0; overflow: hidden; }
.ruban--rose { background: var(--rose); transform: translateY(-50%) rotate(-4deg); box-shadow: 0 20px 50px rgba(255,46,126,.3); z-index: 2; }
.ruban--orange { background: var(--prune); transform: translateY(-50%) rotate(3deg); }
.ruban__piste { display: flex; width: max-content; white-space: nowrap; font: 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--titre); color: #fff; will-change: transform; }
.ruban--orange .ruban__piste { color: var(--soleil); }
.ruban__piste span { padding: 0 .6em; display: inline-flex; align-items: center; gap: 1.2em; }
.ruban__piste i { font-style: normal; color: var(--soleil); font-size: .7em; }
.ruban--orange .ruban__piste i { color: var(--rose-2); }

/* =====================================================================
   3. Monde
   ===================================================================== */
.monde { position: relative; height: 260vh; background: var(--creme); }
.monde__colle { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.monde__cadre { position: absolute; width: 100vw; height: 100vh; height: 100svh; overflow: hidden; will-change: clip-path;
  clip-path: inset(var(--it, 22%) var(--il, 24%) var(--it, 22%) var(--il, 24%) round var(--ir, 40px)); }
.monde__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--is, 1.25)); will-change: transform; }
.monde__flou { display: none; }
/* Écran en hauteur (téléphone) : la bannière entière, sur un fond flouté d'elle-même */
@media (max-aspect-ratio: 1/1) {
  .monde__flou { display: block; object-fit: fill !important; filter: blur(24px) saturate(1.25); transform: scale(1.15) !important; }
  .monde__cadre .monde__img { inset: auto; left: -25%; width: 150%; max-width: none; top: 16%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transform-origin: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
  .monde__voile { background: linear-gradient(180deg, rgba(43,15,46,0) 40%, rgba(43,15,46,.85) 78%); }
  .monde__texte { padding-bottom: 9vh; }
  .monde__titre { font-size: clamp(2.1rem, 9.5vw, 3rem); }
  .monde__titre .m { opacity: .35; }
}
.monde__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,15,46,0) 30%, rgba(43,15,46,.75) 100%); opacity: var(--vo, 0); }
.monde__texte { position: relative; z-index: 2; align-self: end; width: min(1100px, 90vw); padding-bottom: 12vh; color: #fff; opacity: var(--to, 0); transform: translateY(calc((1 - var(--to, 0)) * 40px)); }
.monde__titre { font-size: clamp(2.4rem, 6vw, 5.6rem); font-weight: 700; text-shadow: 0 4px 40px rgba(43,15,46,.4); }
.monde__titre .m { display: inline-block; opacity: .15; transition: opacity .3s; }
.monde__titre .m.on { opacity: 1; }

/* =====================================================================
   4. Clips
   ===================================================================== */
.clips { position: relative; background: var(--prune); color: #fff; }
.clips::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 10%, rgba(255,46,126,.25), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(255,184,28,.15), transparent 70%); pointer-events: none; }
.clips__colle { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 5vh; overflow: hidden; }
.clips__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 0 max(5vw, 24px); }
.clips__compteur { font: 600 .9rem var(--mono); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; width: 180px; }
.clips__compteur b { font: 700 3rem/1 var(--titre); color: var(--soleil); }
.clips__barre { flex-basis: 100%; height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.clips__barre span { display: block; height: 100%; width: 100%; transform-origin: 0; transform: scaleX(0); background: linear-gradient(90deg, var(--soleil), var(--rose)); }
.clips__piste { display: flex; gap: 32px; padding: 0 max(5vw, 24px); width: max-content; will-change: transform; }
.carte { --c1: #ffb347; --c2: #ff7eb3; position: relative; flex: 0 0 auto; width: clamp(300px, 34vw, 480px); border: 0; padding: 0; background: none; color: inherit; text-align: left; font: inherit;
  perspective: 900px; cursor: pointer; }
.carte__inner { position: relative; border-radius: 30px; overflow: hidden; transform-style: preserve-3d; transition: transform .6s var(--doux), box-shadow .6s;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: 0 30px 60px rgba(0,0,0,.35); background: var(--prune-2); }
.carte:hover .carte__inner { box-shadow: 0 50px 90px rgba(0,0,0,.5); }
.carte__visuel { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 45%), linear-gradient(150deg, var(--c1), var(--c2)); }
.carte__visuel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%); opacity: 0; transition: opacity .4s; mix-blend-mode: overlay; }
.carte:hover .carte__visuel::after { opacity: 1; }
.carte__rayons { position: absolute; inset: -40%; background: repeating-conic-gradient(rgba(255,255,255,.14) 0 10deg, transparent 10deg 20deg); animation: tourne 30s linear infinite; }
.carte__ico { position: absolute; width: 34%; right: 8%; top: 10%; color: rgba(255,255,255,.9); transform: translateZ(40px) rotate(8deg); transition: transform .8s var(--ressort); }
.carte:hover .carte__ico { transform: translateZ(60px) rotate(-6deg) scale(1.1); }
.carte__ico svg { width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.2)); }
.carte__perso { position: absolute; left: 50%; bottom: -6%; width: 62%; transform: translateX(-50%); transition: transform .8s var(--ressort); filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }
.carte:hover .carte__perso { transform: translateX(-50%) translateY(-6%) rotate(-3deg); }
.carte__mini { position: absolute; left: 0; top: -17%; width: 100%; height: 134%; object-fit: cover; transition: transform 1s var(--doux); }
.carte:hover .carte__mini { transform: scale(1.06); }
.carte__badge { position: absolute; left: 20px; top: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--rose); font: 700 .8rem var(--titre); letter-spacing: .02em; }
.carte__num { position: absolute; left: 18px; bottom: 8px; font: 700 7rem/1 var(--titre); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.55); }
.carte__infos { padding: 22px 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.carte__titre { font: 700 1.45rem/1.1 var(--titre); }
.carte__ep { display: block; font: 600 .7rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--soleil); margin-bottom: 8px; }
.carte__play { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--rose); transition: transform .5s var(--ressort), background .3s, color .3s; }
.carte__play svg { width: 18px; margin-left: 3px; }
.carte:hover .carte__play { transform: scale(1.15) rotate(-8deg); background: var(--rose); color: #fff; }
.carte--fin .carte__inner { background: transparent; box-shadow: none; border: 2px dashed rgba(255,255,255,.25); height: 100%; display: grid; place-items: center; text-align: center; padding: 40px; }
.carte--fin h3 { font-size: 2.2rem; margin-bottom: 18px; }
.carte--fin p { color: rgba(255,255,255,.65); margin: 0 0 24px; }

/* =====================================================================
   5. Fiche personnage
   ===================================================================== */
.fiche { position: relative; background: var(--plan); padding: 140px max(5vw, 24px) 100px; overflow: hidden; }
.fiche__grille { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(70, 130, 220, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 130, 220, .12) 1px, transparent 1px),
    linear-gradient(rgba(70, 130, 220, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 130, 220, .06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%); }
.fiche__entete { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.fiche__entete .etiquette { grid-column: 1 / -1; margin: 0; }
.fiche__cartouche { display: grid; grid-template-columns: repeat(2, auto); border: 1.5px solid #3b6fc4; font: 600 .68rem var(--mono); letter-spacing: .14em; color: #3b6fc4; }
.fiche__cartouche span { padding: 8px 14px; border: .75px solid rgba(59,111,196,.5); }
.fiche__plan { position: relative; max-width: 1200px; margin: 0 auto; aspect-ratio: 10 / 7; }
.fiche__traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trait { fill: none; stroke: #3b6fc4; stroke-width: 1.5; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.4s var(--doux); vector-effect: non-scaling-stroke; }
.point { fill: var(--rose); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ressort); }
.fiche__plan.vu .trait { stroke-dashoffset: 0; }
.fiche__plan.vu .point { transform: scale(1); }
.fiche__plan.vu .trait:nth-child(2), .fiche__plan.vu .point:nth-of-type(2) { transition-delay: .2s; }
.fiche__plan.vu .trait:nth-child(3), .fiche__plan.vu .point:nth-of-type(3) { transition-delay: .4s; }
.fiche__plan.vu .trait:nth-child(4), .fiche__plan.vu .point:nth-of-type(4) { transition-delay: .6s; }
.fiche__perso { position: absolute; left: 50%; top: 3%; bottom: 0; width: 46%; transform: translateX(-50%); border: 0; padding: 0; background: none; cursor: pointer; display: grid; justify-items: center; align-items: end; }
.fiche__perso img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; position: relative; z-index: 1; transform-origin: 50% 100%; transition: transform .5s var(--ressort); filter: drop-shadow(0 30px 40px rgba(30, 60, 120, .2)); }
.fiche__perso:hover img { transform: scale(1.03) rotate(-1.5deg); }
.fiche__perso.rit img { animation: rire .9s var(--ressort); }
@keyframes rire { 0% { transform: scale(1); } 20% { transform: scale(1.08, .9); } 40% { transform: scale(.94, 1.08) translateY(-8%); } 60% { transform: rotate(-5deg) translateY(-3%); } 80% { transform: rotate(4deg); } 100% { transform: none; } }
.fiche__socle { position: absolute; bottom: -3%; width: 78%; height: 11%; border-radius: 50%; border: 1.5px dashed #3b6fc4; background: radial-gradient(ellipse, rgba(59,111,196,.12), transparent 70%); }
.fiche__bulle { position: absolute; z-index: 2; top: 4%; right: -16%; padding: 14px 20px; border-radius: 24px 24px 24px 6px; background: var(--rose); color: #fff; font: 700 1.15rem var(--titre); white-space: nowrap;
  opacity: 0; transform: scale(.3) rotate(-12deg); transform-origin: 0 100%; transition: opacity .2s, transform .6s var(--ressort); pointer-events: none; }
.fiche__perso.rit .fiche__bulle { opacity: 1; transform: rotate(-4deg); }
.fiche__cotation { position: absolute; left: 77%; top: 6%; bottom: 0; width: 1px; border-left: 1.5px solid #3b6fc4; }
.fiche__cotation::before, .fiche__cotation::after { content: ""; position: absolute; left: -9px; width: 16px; border-top: 1.5px solid #3b6fc4; }
.fiche__cotation::before { top: 0; } .fiche__cotation::after { bottom: 0; }
.fiche__cotation span { position: absolute; top: 50%; left: 10px; transform: rotate(90deg) translateX(-50%); transform-origin: 0 0; white-space: nowrap; font: 600 .66rem var(--mono); letter-spacing: .14em; color: #3b6fc4; text-transform: uppercase; }
.note-fiche { position: absolute; width: 20%; min-width: 180px; font-size: .95rem; color: #2f4b7a; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--doux), transform .8s var(--doux); }
.note-fiche b { display: block; font: 700 1.5rem/1.1 var(--titre); color: var(--encre); margin-bottom: 4px; }
.note-fiche b::before { content: "— "; color: var(--rose); }
.fiche__plan.vu .note-fiche { opacity: 1; transform: none; }
.note-fiche--1 { left: 0; top: 3%; transition-delay: .5s; }
.note-fiche--2 { right: 0; top: 23%; text-align: right; transition-delay: .7s; }
.note-fiche--3 { left: 0; top: 50%; transition-delay: .9s; }
.note-fiche--4 { right: 0; top: 70%; text-align: right; transition-delay: 1.1s; }
.fiche__aide { position: relative; text-align: center; margin: 30px 0 0; font: 600 .72rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #3b6fc4; }

/* =====================================================================
   6. Atelier
   ===================================================================== */
.atelier { position: relative; padding: 150px max(5vw, 24px) 160px; background: var(--creme); overflow: hidden; }
.atelier__tete { max-width: 1200px; margin: 0 auto 80px; }
.etapes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.etapes__fil { position: absolute; left: 0; top: 54px; width: 100%; height: 60px; overflow: visible; z-index: 0; }
.etapes__fil path { fill: none; stroke: var(--rose); stroke-width: 2.5; stroke-dasharray: 8 10; opacity: .35; }
.etape { position: relative; z-index: 1; padding: 34px 28px 36px; border-radius: 30px; background: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 50px rgba(58,24,56,.07);
  transition: transform .6s var(--doux), box-shadow .6s; }
.etape:hover { transform: translateY(-10px); box-shadow: 0 34px 70px rgba(58,24,56,.13); }
.etape:nth-child(odd) { margin-top: 50px; }
.etape__num { position: absolute; right: 22px; top: 14px; font: 700 4rem/1 var(--titre); color: transparent; -webkit-text-stroke: 1.5px var(--c); opacity: .5; }
.etape__ico { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--c); margin-bottom: 26px; box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .6s var(--ressort); }
.etape:hover .etape__ico { transform: rotate(-10deg) scale(1.08); }
.etape__ico svg { width: 42px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s var(--doux) .3s; }
.etape.vu .etape__ico svg { stroke-dashoffset: 0; }
.etape h3 { font-size: 1.6rem; line-height: 1.1; margin-bottom: 12px; }
.etape p { margin: 0; color: #74566f; font-size: .98rem; }

/* =====================================================================
   7. Boutique
   ===================================================================== */
.boutique { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 4vw; padding: 140px max(5vw, 24px); background: var(--prune); color: #fff; overflow: hidden; }
.boutique::before { content: ""; position: absolute; width: 70vw; height: 70vw; right: -20vw; top: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(181,152,255,.3), transparent 60%); }
.boutique__texte { position: relative; }
.boutique__intro { color: rgba(255,255,255,.72); font-size: 1.15rem; max-width: 28em; margin: 26px 0 34px; }
.vitrine { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; perspective: 1200px; }
.socle { position: relative; display: grid; justify-items: center; padding-top: 40px; }
.socle--haut { margin-bottom: 60px; }
.produit { width: 78%; aspect-ratio: 1; display: grid; place-items: center; animation: leve 5s ease-in-out infinite; animation-delay: var(--d); transform: rotate(var(--r)); }
.produit svg { width: 100%; filter: drop-shadow(0 24px 24px rgba(0,0,0,.35)); }
.produit--peluche img { width: 86%; border-radius: 50%; box-shadow: 0 24px 40px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,.08); }
@keyframes leve { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
.socle__plateau { width: 100%; height: 34px; margin-top: 18px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #6b2c66, #3d1640 70%); box-shadow: 0 16px 30px rgba(0,0,0,.4), inset 0 4px 10px rgba(255,255,255,.15); }
.socle__nom { margin-top: 16px; font: 600 .72rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--soleil); }

/* =====================================================================
   8. Fin + pied
   ===================================================================== */
.fin { position: relative; text-align: center; padding: 160px 24px 0; background: radial-gradient(80% 60% at 50% 100%, #5a1f55, var(--prune) 70%); color: #fff; overflow: hidden; }
.fin .etiquette { justify-content: center; }
.fin__titre { font-size: clamp(3.4rem, 10vw, 9.5rem); font-weight: 700; margin: 10px 0 50px; }
.fin__titre span:last-of-type { color: var(--soleil); }
.fin__lilou { width: min(360px, 60vw); margin: 70px auto 0; transform: translateY(32%); transition: transform 1s var(--ressort); }
.fin:hover .fin__lilou { transform: translateY(12%); }
.pied { background: #1d0920; color: rgba(255,255,255,.6); padding: 40px max(5vw, 24px) 30px; overflow: hidden; }
.pied__marque { font: 700 clamp(4rem, 19vw, 19rem)/.8 var(--titre); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.18); text-align: center; white-space: nowrap; transition: color .8s; }
.pied__marque:hover { color: var(--rose); -webkit-text-stroke-color: var(--rose); }
.pied__bas { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; font-size: .85rem; }
.pied__bas p { margin: 0; }

/* ---------- Lecteur ---------- */
.lecteur { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; background: rgba(29, 9, 32, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fondu .4s; }
.lecteur[hidden] { display: none; }
@keyframes fondu { from { opacity: 0; } }
.lecteur__cadre { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: zoomIn .7s var(--ressort); }
@keyframes zoomIn { from { transform: scale(.8) translateY(40px); opacity: 0; } }
.lecteur__cadre iframe { width: 100%; height: 100%; border: 0; }
.lecteur__vide { height: 100%; display: grid; place-items: center; text-align: center; padding: 30px; background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff; font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--titre); }
.lecteur__vide img { width: 140px; margin: 0 auto 20px; animation: respire 3s ease-in-out infinite; }
.lecteur__fermer { position: absolute; top: 24px; right: 24px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; color: var(--encre); font-size: 1.2rem; cursor: pointer; transition: transform .4s var(--ressort); }
.lecteur__fermer:hover { transform: rotate(90deg) scale(1.1); }

/* Confettis */
.confetti { position: fixed; z-index: 99; pointer-events: none; width: 10px; height: 14px; border-radius: 3px; }

/* =====================================================================
   Tablette et mobile
   ===================================================================== */
@media (max-width: 980px) {
  .entete__nav { display: none; }
  .heros { grid-template-columns: 1fr; padding-top: 110px; text-align: left; gap: 0; }
  .scene { width: min(88vw, 520px); margin-top: 20px; order: -1; }
  .heros__bas { position: static; margin-top: 40px; }
  .defiler { display: none; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .etapes__fil { display: none; }
  .etape:nth-child(odd) { margin-top: 0; }
  .boutique { grid-template-columns: 1fr; }
  .fiche__plan { aspect-ratio: auto; display: grid; gap: 18px; }
  .fiche__traits, .fiche__cotation { display: none; }
  .fiche__perso { position: relative; left: auto; top: auto; transform: none; width: min(80vw, 420px); height: 62vh; max-height: 520px; justify-self: center; }
  .fiche__bulle { right: -4%; }
  .note-fiche { position: static; width: auto; text-align: left !important; padding: 16px 20px; background: rgba(255,255,255,.7); border-radius: 18px; border: 1px solid rgba(59,111,196,.25); }
  .fiche__entete { grid-template-columns: 1fr; }
  .fiche__cartouche { justify-self: start; }
}
@media (max-width: 640px) {
  .entete { top: 10px; }
  .entete__logo span { display: none; }
  .heros__titre { font-size: clamp(2.8rem, 13vw, 4rem); }
  .heros__intro { font-size: 1.02rem; }
  .heros { min-height: 0; padding-bottom: 40px; }
  .bulle-heros { left: 60%; top: 10%; font-size: 1.05rem; padding: 10px 16px; }
  .chiffres { gap: 22px; }
  .rubans { height: 170px; }
  .etapes { grid-template-columns: 1fr; }
  .clips__compteur { display: none; }
  .vitrine { gap: 8px; }
  .boutique, .atelier, .fiche { padding-top: 100px; padding-bottom: 100px; }
}
/* Écran tactile : les clips défilent au doigt, sans épinglage */
@media (hover: none), (max-width: 760px) {
  .clips { height: auto !important; padding: 100px 0; }
  .clips__colle { position: static; height: auto; }
  .clips__piste { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; transform: none !important; scrollbar-width: none; }
  .clips__piste::-webkit-scrollbar { display: none; }
  .carte { scroll-snap-align: center; width: min(80vw, 380px); }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
}

/* =====================================================================
   Les jeux
   ===================================================================== */
.jeux { position: relative; padding: 140px max(5vw, 16px) 140px; background: linear-gradient(180deg, #3d1640, var(--prune)); color: #fff; overflow: hidden; }
.jeux::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 30% at 15% 20%, rgba(255,184,28,.18), transparent 70%), radial-gradient(40% 40% at 90% 80%, rgba(127,232,198,.15), transparent 70%); }
.jeux__tete { position: relative; max-width: 1100px; margin: 0 auto 40px; }
.jeux__intro { color: rgba(255,255,255,.7); font-size: 1.15rem; margin: 20px 0 0; max-width: 30em; }
.jeux__choix { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto 22px; }
.choix { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 24px; border: 2px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  color: #fff; font: 700 1.15rem/1.1 var(--titre); text-align: left; cursor: pointer; transition: transform .4s var(--ressort), background .3s, border-color .3s; touch-action: manipulation; }
.choix:hover { transform: translateY(-4px); }
.choix__ico { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: rgba(255,255,255,.1); transition: transform .5s var(--ressort), background .3s; }
.choix.actif { background: var(--c); border-color: var(--c); box-shadow: 0 16px 40px color-mix(in srgb, var(--c) 45%, transparent); }
.choix.actif .choix__ico { background: rgba(255,255,255,.25); transform: rotate(-8deg) scale(1.08); }

.plateau { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 34px; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, #c8f7e6 0 30%, transparent 31%), linear-gradient(180deg, #8fe3f5 0%, #c9f1ff 55%, #fff3dc 100%);
  box-shadow: 0 40px 100px rgba(0,0,0,.45), inset 0 0 0 4px rgba(255,255,255,.4); color: var(--encre); user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.plateau__barre { position: absolute; z-index: 5; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.plateau__consigne { padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.85); font: 700 1.05rem var(--titre); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.plateau__score { margin-left: auto; padding: 8px 18px; border-radius: 999px; background: var(--encre); color: #fff; font: 700 1.3rem var(--titre); }
.etoile-score { color: var(--soleil); display: inline-block; }
.plateau__score.gagne .etoile-score { animation: etoileGagne .6s var(--ressort); }
@keyframes etoileGagne { 50% { transform: scale(1.8) rotate(25deg); } }
.plateau__son { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 1.25rem; cursor: pointer; }

.jeu { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity .4s, transform .5s var(--doux), visibility 0s .4s; }
.jeu.actif { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s var(--doux); }
.jeu__bravo { position: absolute; left: 50%; top: 40%; z-index: 4; transform: translate(-50%, -50%) scale(0); font: 700 clamp(2.4rem, 8vw, 5rem)/1 var(--titre); color: var(--rose);
  -webkit-text-stroke: 3px #fff; paint-order: stroke fill; text-shadow: 0 10px 30px rgba(255,46,126,.3); pointer-events: none; }
.jeu__bravo.on { animation: bravo 1.4s var(--ressort); }
@keyframes bravo { 0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); } 25% { transform: translate(-50%, -50%) scale(1.15) rotate(4deg); } 75% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(.9); opacity: 0; } }

/* Jeu 1 : notes */
.jeu__ciel { position: absolute; inset: 0; z-index: 2; }
.jeu__lilou { position: absolute; z-index: 1; left: 50%; bottom: -3%; height: 62%; transform: translateX(-50%); transform-origin: 50% 100%; pointer-events: none; filter: drop-shadow(0 20px 20px rgba(0,0,0,.15)); }
.jeu__lilou.danse { animation: danse .6s var(--ressort); }
@keyframes danse { 0% { transform: translateX(-50%); } 30% { transform: translateX(-50%) scale(1.06, .92); } 60% { transform: translateX(-50%) translateY(-12%) rotate(-6deg); } 100% { transform: translateX(-50%); } }
.jeu__lilou.saute { animation: saute 1s var(--ressort); }
@keyframes saute { 30% { transform: translateX(-50%) scale(1.1, .85); } 55% { transform: translateX(-50%) translateY(-30%) rotate(8deg); } 80% { transform: translateX(-50%) translateY(0) scale(.95, 1.05); } }
.bulle-note { position: absolute; width: clamp(64px, 11vw, 96px); aspect-ratio: 1; margin: calc(clamp(64px, 11vw, 96px) / -2) 0 0 calc(clamp(64px, 11vw, 96px) / -2); border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.35) 22%, transparent 45%), radial-gradient(circle, var(--c) 0 62%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--c) 40%, transparent), inset 0 -6px 12px rgba(0,0,0,.12); display: grid; place-items: center; color: #fff; font: 700 2rem/1 var(--titre); touch-action: manipulation; }
.bulle-note span { pointer-events: none; text-shadow: 0 2px 4px rgba(0,0,0,.2); }
.bulle-note.eclate { animation: eclate .35s ease-out forwards; pointer-events: none; }
@keyframes eclate { to { transform: scale(1.7); opacity: 0; filter: blur(2px); } }
.etincelle { position: absolute; z-index: 3; width: 12px; height: 12px; border-radius: 50%; pointer-events: none; }

/* Jeu 2 : habille */
.jeu--habille { display: grid; grid-template-columns: 1fr auto; grid-template-rows: minmax(0, 1fr); align-items: end; padding: 70px 24px 0; }
.mannequin { position: relative; height: 96%; max-width: 100%; aspect-ratio: 612 / 823; justify-self: center; }
.mannequin img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 20px 20px rgba(0,0,0,.15)); }
.mannequin.content img { animation: danse .6s var(--ressort); }
.acc { position: absolute; opacity: 0; transform: translateY(-60%) scale(.3) rotate(-20deg); transition: opacity .25s, transform .7s var(--ressort); pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); }
.acc.porte { opacity: 1; transform: var(--pose, none); }
.acc--chapeau { width: 26%; left: 46%; top: -13%; --pose: rotate(12deg); }
.acc--couronne { width: 30%; left: 40%; top: -2%; --pose: rotate(-6deg); }
.acc--lunettes { width: 42%; left: 34%; top: 26%; --pose: rotate(-6deg); }
.acc--noeud { width: 26%; left: 47%; top: 54%; --pose: rotate(-4deg); }
.acc--fleur { width: 15%; left: 22%; top: 14%; --pose: rotate(-12deg); }
.garde-robe { display: grid; gap: 12px; align-self: center; padding-right: 8px; }
.garde-robe button { width: clamp(62px, 9vw, 84px); aspect-ratio: 1; border-radius: 24px; border: 3px solid #fff; background: rgba(255,255,255,.75); font-size: clamp(1.9rem, 4vw, 2.6rem); cursor: pointer;
  box-shadow: 0 10px 20px rgba(58,24,56,.12); transition: transform .4s var(--ressort), background .2s, border-color .2s; touch-action: manipulation; }
.garde-robe button:active { transform: scale(.9); }
.garde-robe button[aria-pressed="true"] { background: var(--soleil); border-color: var(--orange); transform: rotate(-6deg) scale(1.05); }

/* Jeu 3 : coucou */
.cachettes { position: absolute; inset: 70px 4% 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3%; }
.cachette { position: relative; height: 70%; display: grid; align-items: end; overflow: hidden; }
.buisson { position: relative; z-index: 2; width: 100%; height: auto; display: block; fill: #3fcf8e; filter: drop-shadow(0 -4px 0 #6fe3ad); pointer-events: none; }
.cachette:nth-child(2) .buisson { fill: #34b87d; }
.cacheur { position: absolute; z-index: 1; left: 12%; right: 12%; bottom: 0; border: 0; padding: 0; background: none; cursor: pointer; transform: translateY(12%); transition: transform .45s var(--ressort); touch-action: manipulation; }
.cacheur.sort { transform: translateY(-72%); }
.cacheur.trouve { transform: translateY(-82%) rotate(-6deg) scale(1.06); }
.cacheur__tete { display: block; width: 100%; aspect-ratio: 612 / 460; background: url(../img/lilou.png) top center / 100% auto no-repeat; }

@media (max-width: 760px) {
  .jeux { padding-top: 100px; padding-bottom: 100px; }
  .jeux__choix { gap: 8px; }
  .choix { flex-direction: column; text-align: center; gap: 8px; padding: 12px 6px; font-size: .95rem; border-radius: 20px; }
  .choix__ico { width: 48px; height: 48px; font-size: 1.6rem; }
  .plateau { aspect-ratio: 3 / 4.2; border-radius: 26px; }
  .plateau__consigne { font-size: .88rem; padding: 8px 12px; }
  .plateau__score { font-size: 1.1rem; padding: 6px 12px; }
  .plateau__barre { flex-wrap: wrap; }
  .jeu--habille { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 96px 12px 16px; align-items: stretch; gap: 12px; }
  .mannequin { height: 100%; width: auto; align-self: end; }
  .garde-robe { grid-template-columns: repeat(5, 1fr); align-self: auto; padding: 0; }
  .garde-robe button { width: 100%; border-radius: 18px; }
  .cachettes { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; inset: 96px 4% 0; }
  .cachette:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: 50%; }
  .cachette { height: 100%; }
}

/* =====================================================================
   Jeux · version 2 (écrans de départ, niveaux, vestiaire, décors)
   ===================================================================== */
.plateau__niveau { padding: 8px 14px; border-radius: 999px; background: var(--soleil); color: var(--encre); font: 700 1rem var(--titre); }
.plateau__niveau.monte { animation: etoileGagne .7s var(--ressort); }
.ecran { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 20px; background: rgba(43, 15, 46, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .35s; }
.ecran[hidden] { display: grid !important; opacity: 0; pointer-events: none; }
.ecran__carte { width: min(420px, 100%); padding: 30px 26px; border-radius: 30px; background: #fff; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.3); animation: zoomIn .6s var(--ressort); }
.ecran__titre { margin: 0 0 10px; font: 700 clamp(1.8rem, 6vw, 2.4rem)/1.05 var(--titre); color: var(--rose); }
.ecran__texte { margin: 0 0 12px; color: #6c4a66; }
.ecran__record { margin: 0 0 20px; font: 700 1.1rem var(--titre); color: var(--encre); min-height: 1.2em; }
.ecran__bouton { font-size: 1.3rem; padding: 20px 40px; }
.bulle-note.or { --c: #ffc21c; box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 0 30px rgba(255,194,28,.9); animation: brille .8s ease-in-out infinite alternate; }
@keyframes brille { to { filter: brightness(1.2); } }
.bulle-note.echappee { animation: echappee .6s ease-in-out 3; }
@keyframes echappee { 50% { box-shadow: 0 0 0 10px rgba(255,46,126,.6); } }
.jeu__lilou.triste { animation: triste .8s ease-in-out; filter: saturate(.6) drop-shadow(0 20px 20px rgba(0,0,0,.15)); }
@keyframes triste { 20% { transform: translateX(-52%) rotate(-4deg); } 40% { transform: translateX(-48%) rotate(4deg); } 60% { transform: translateX(-52%) rotate(-3deg); } 100% { transform: translateX(-50%); } }

/* Habille */
.jeu--habille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); grid-template-rows: minmax(0, 1fr); gap: 16px; align-items: end; padding: 70px 18px 0; }
.decor { position: absolute; inset: 0; z-index: 0; transition: opacity .6s; pointer-events: none; overflow: hidden; }
.jeu--habille[data-decor="nuit"] .decor { background: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 20%, #fff, transparent), radial-gradient(3px 3px at 40% 12%, #fff8c4, transparent), radial-gradient(2px 2px at 85% 45%, #fff, transparent), radial-gradient(2px 2px at 10% 60%, #fff, transparent), radial-gradient(circle at 82% 18%, #fff6c9 0 5%, transparent 5.5%), linear-gradient(180deg, #1b1446, #3b2a7a 60%, #6a4fb0); }
.jeu--habille[data-decor="plage"] .decor { background: radial-gradient(circle at 80% 18%, #fff3a8 0 7%, transparent 7.5%), linear-gradient(180deg, #7fd8f5 0 52%, #2fb0d4 52% 58%, #57c6e3 58% 64%, #ffe2a8 64%); }
.jeu--habille[data-decor="neige"] .decor { background: radial-gradient(circle, #fff 0 2px, transparent 3px) 0 0 / 40px 40px, radial-gradient(circle, #fff 0 1.5px, transparent 2.5px) 20px 10px / 30px 30px, linear-gradient(180deg, #b8dcff, #e8f4ff 70%, #fff); animation: neige 6s linear infinite; }
@keyframes neige { to { background-position: 0 400px, 20px 310px, 0 0; } }
.jeu--habille[data-decor="fete"] .decor { background: radial-gradient(circle at 15% 70%, #ffd84d 0 6px, transparent 7px), radial-gradient(circle at 75% 60%, #7fe8c6 0 6px, transparent 7px), radial-gradient(circle at 40% 85%, #ff2e7e 0 5px, transparent 6px), radial-gradient(circle at 90% 85%, #b598ff 0 6px, transparent 7px),
  conic-gradient(from 135deg at 50% 0, #ff2e7e 0 90deg, transparent 0) 0 60px / 60px 50px repeat-x, linear-gradient(180deg, #ffd6ea, #fff1c9); }
.jeu--habille .mannequin { z-index: 1; height: 98%; }
.mannequin__arriere, .mannequin__avant { position: absolute; inset: 0; pointer-events: none; }
.mannequin__arriere { z-index: 0; } .mannequin img { position: relative; z-index: 1; } .mannequin__avant { z-index: 2; }
.acc { position: absolute; display: block; height: auto; }
.acc svg { display: block; width: 100%; height: auto; overflow: visible; }
.vestiaire { position: relative; z-index: 3; align-self: center; display: grid; gap: 12px; padding: 14px; margin-bottom: 18px; border-radius: 26px; background: rgba(255,255,255,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(58,24,56,.14); }
.rayons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rayon { aspect-ratio: 1; border: 0; border-radius: 14px; background: rgba(58,24,56,.06); font-size: 1.4rem; cursor: pointer; transition: background .2s, transform .3s var(--ressort); touch-action: manipulation; }
.rayon.actif { background: var(--encre); transform: translateY(-3px); }
.cintres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cintre { position: relative; aspect-ratio: 1; border: 3px solid transparent; border-radius: 18px; background: #fff; font-size: 2rem; cursor: pointer; box-shadow: 0 6px 14px rgba(58,24,56,.08); transition: transform .35s var(--ressort), border-color .2s, background .2s; touch-action: manipulation; }
.cintre:active { transform: scale(.9); }
.cintre[aria-pressed="true"] { border-color: var(--orange); background: #fff2d6; transform: rotate(-5deg) scale(1.04); }
.cintre[aria-pressed="true"]::after { content: "✓"; position: absolute; right: -6px; top: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 .85rem/24px var(--texte); }
.vestiaire__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-bouton { padding: 10px 4px; border: 0; border-radius: 14px; background: var(--encre); color: #fff; font: 700 .85rem var(--titre); cursor: pointer; touch-action: manipulation; transition: transform .3s var(--ressort); }
.mini-bouton:active { transform: scale(.92); }
.flash { position: absolute; inset: 0; z-index: 7; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.mannequin.pose { animation: pose 1.2s var(--ressort); }
@keyframes pose { 20% { transform: scale(.96); } 45% { transform: scale(1.04) rotate(-2deg); } 100% { transform: none; } }

/* Coucou : faux amis */
.cacheur__intrus { position: absolute; inset: 0; display: none; place-items: center; font-size: clamp(3rem, 10vw, 5rem); line-height: 1; padding-top: 10%; }
.cacheur.intrus .cacheur__tete { visibility: hidden; }
.cacheur.intrus .cacheur__intrus { display: grid; }
.cacheur.oups { transform: translateY(-72%) rotate(8deg) !important; }

@media (max-width: 760px) {
  .jeu--habille { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 96px 10px 10px; gap: 8px; }
  .jeu--habille .mannequin { height: 100%; }
  .vestiaire { margin: 0; padding: 10px; gap: 8px; border-radius: 22px; }
  .rayon { font-size: 1.2rem; border-radius: 12px; }
  .cintres { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; padding: 8px 4px 4px; scrollbar-width: none; }
  .cintres::-webkit-scrollbar { display: none; }
  .cintre { font-size: 1.8rem; }
  .plateau { aspect-ratio: 3 / 4.6; }
}
.jeu__bravo { width: 92%; text-align: center; font-size: clamp(2rem, 7vw, 4.4rem); }

/* Cœurs, surnom, classement */
.plateau__coeurs { display: inline-flex; gap: 2px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: 1.1rem; line-height: 1; }
.plateau__coeurs i { font-style: normal; display: inline-block; transition: transform .4s var(--ressort), filter .3s, opacity .3s; }
.plateau__coeurs i.perdu { filter: grayscale(1); opacity: .35; transform: scale(.75); }
.plateau__coeurs i.casse { animation: casse .7s ease-in-out; }
@keyframes casse { 20% { transform: scale(1.6) rotate(-15deg); } 40% { transform: scale(1.3) rotate(15deg); } 100% { transform: scale(.75); } }
.ecran__carte { max-height: 100%; overflow-y: auto; }
.ecran__boutons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.ecran__classement { padding: 14px 18px; font-size: 1rem; }
.pseudo { display: grid; justify-items: center; gap: 8px; margin: 0 0 16px; padding: 14px; border-radius: 20px; background: #fff4e0; }
.pseudo[hidden] { display: none; }
.pseudo__titre { font: 600 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a0708f; }
.pseudo__ligne { display: flex; align-items: center; gap: 8px; font: 700 1.25rem var(--titre); color: var(--encre); }
.pseudo__des { width: 42px; height: 42px; border-radius: 12px; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 10px rgba(58,24,56,.1); transition: transform .4s var(--ressort); }
.pseudo__des:active { transform: rotate(180deg) scale(.9); }
.pseudo__envoyer { padding: 12px 18px; font-size: 1rem; background: var(--orange); }
.pseudo__envoyer:disabled { opacity: .5; }
.pseudo__msg { font: 700 .95rem var(--titre); color: var(--vert, #13a89e); min-height: 1.2em; }
.pseudo__msg.ko { color: #c0392b; }
.podium { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; display: grid; gap: 4px; }
.podium[hidden] { display: none; }
.podium li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; background: #faf3ff; font: 600 .95rem var(--titre); color: var(--encre); }
.podium li b { font-family: var(--titre); }
.podium li .rang { font: 700 1rem var(--titre); color: #a0708f; }
.podium li:nth-child(1) { background: #fff1b8; } .podium li:nth-child(1) .rang { color: #e08a00; }
.podium li:nth-child(2) { background: #eef1f6; } .podium li:nth-child(3) { background: #ffe6d4; }
.podium li.moi { outline: 3px solid var(--rose); }
.podium__vide { text-align: center; color: #a0708f; font-weight: 600; }
.podium__titre { margin: 0 0 8px; font: 700 1.3rem var(--titre); color: var(--encre); }

/* ---------- Actualités sur l'accueil ---------- */
.actus-accueil { position: relative; padding: 130px max(5vw, 20px) 120px; background: var(--creme); }
.actus-accueil__tete { max-width: 1200px; margin: 0 auto 50px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.actus-accueil__grille { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.actu-mini { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; animation: monteActu .9s var(--doux) both; animation-delay: var(--d); }
@keyframes monteActu { from { opacity: 0; transform: translateY(40px); } }
.actu-mini__img { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.6), transparent 50%), linear-gradient(135deg, #ffd27a, #ff9cc4); box-shadow: 0 20px 50px rgba(58,24,56,.12); }
.actu-mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--doux); }
.actu-mini__img .actu-mini__lilou { object-fit: contain; object-position: bottom; transform: translateY(12%); }
.actu-mini:hover .actu-mini__img img { transform: scale(1.06) rotate(-1deg); }
.actu-mini__meta { font: 600 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-top: 6px; }
.actu-mini__titre { font: 700 1.5rem/1.15 var(--titre); }
@media (max-width: 860px) { .actus-accueil__grille { grid-template-columns: 1fr; } .actu-mini__img { aspect-ratio: 16 / 10; } }
