/* KOMPA-196 : page d'accueil qui défile (première ouverture seulement). Calque plein écran devant l'écran adulte ; le bouton reste en bas.
   Narration : la scène (#lpScene, la chambre du jeu) reste épinglée pendant que les textes défilent ; chaque texte pose data-k (0 à 6)
   et la scène change par transitions (marche partout). Quand le navigateur connaît animation-timeline, la caméra, l'horloge et les plans
   du haut suivent en plus le défilement au pixel près. prefers-reduced-motion : tout est visible, rien ne bouge.
   Téléphone : scène en haut, texte dessous. Grand écran (768 px et plus) : texte à gauche, scène à droite, contenu large.
   Positions de la scène en % de sa largeur (scène 4:3). Texte >= 15 px, bouton >= 44 px.
   Fond plein écran par moment (#lpFond : un calque par moment qui apparaît en fondu par-dessus le précédent,
   data-c sur #landing : h ouverture, 0 à 6 la journée, t confiance, e fin) ; couleurs du texte par moment (contraste >= 4.5:1 mesuré).
   Version C : rien ne se touche ; bulles en nuage (pensée : bord festonné, petits ronds au lieu d'une pointe) ; animaux habillés ;
   armoire (data-o : la tenue essayée) et cahier de stickers ; œuf qui éclot à l'ouverture ; le lapin sautille d'un moment à l'autre ;
   les 9 animaux de la fin bougent chacun à leur rythme ; sortie par un cercle qui part du bouton (.lp-exit). */
.landing{--lp-bg:#FF9EC4;--t1:#3B1430;--t2:#5A1F48;--acc:#B0245E;--da:.3;position:fixed;inset:0;z-index:60;background:var(--lp-bg);color:var(--t1);display:flex;flex-direction:column;timeline-scope:--lpPage}
.landing:focus{outline:none}
.landing[hidden]{display:none}
.lp-scroll{position:relative;z-index:1;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.lp-wrap{max-width:560px;margin:0 auto;padding:0 16px}
.landing h1,.landing h2{text-wrap:balance}
.landing h1{font-size:54px;line-height:1}
.landing h2{font-size:32px;line-height:1.08}
.lp-nom{color:var(--t1);text-shadow:0 4px 0 rgba(255,255,255,.75)}
.lp-lead{margin:0;font-size:18px;line-height:1.4;color:var(--t2);text-wrap:balance;max-width:32ch}
.lp-kick{margin:0;display:inline-block;font-family:var(--font-display);font-weight:600;font-size:15px;letter-spacing:.04em;text-transform:uppercase;color:var(--acc);background:#fff;border-radius:99px;padding:4px 12px;box-shadow:0 3px 0 rgba(0,0,0,.12)}
.lp-hint{margin:6px 0 0;display:flex;flex-direction:column;align-items:center;font-size:15px;color:var(--t2)}

/* ---------- le fond plein écran : un calque par moment, le nouveau apparaît par-dessus l'ancien (jamais de saut) ---------- */
.lp-fond{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.lp-fond>i{position:absolute;inset:0;opacity:0;z-index:0;transition:opacity .9s ease .9s;
  background:radial-gradient(115% 62% at 8% 100%,var(--b1),transparent 72%),radial-gradient(85% 55% at 100% 28%,var(--b2),transparent 70%),var(--b)}
.lp-fond>i[data-c="h"]{--b:#FF9EC4;--b1:#FFD1E3;--b2:#FFB86B}
.lp-fond>i[data-c="0"]{--b:#FFC796;--b1:#FFE3A3;--b2:#FFAE8A}
.lp-fond>i[data-c="1"]{--b:#FFD95A;--b1:#FFF0A8;--b2:#FFB84D}
.lp-fond>i[data-c="2"]{--b:#3FD0D4;--b1:#9AF0EC;--b2:#2FBCD8}
.lp-fond>i[data-c="3"]{--b:#D88BFF;--b1:#FF9BD6;--b2:#B87BFF}
.lp-fond>i[data-c="4"]{--b:#FFA05C;--b1:#FFC68A;--b2:#FF8A5C}
.lp-fond>i[data-c="5"]{--b:#8EE6B8;--b1:#C8F7DA;--b2:#5FD6A4}
.lp-fond>i[data-c="6"]{--b:#1E2160;--b1:#3A2F86;--b2:#141640}
.lp-fond>i[data-c="t"]{--b:#BEE6FF;--b1:#E6F6FF;--b2:#9FD8FF}
.lp-fond>i[data-c="e"]{--b:#4A30B5;--b1:#5E3FCF;--b2:#3A2496}
.landing[data-c="h"] .lp-fond>i[data-c="h"],.landing[data-c="0"] .lp-fond>i[data-c="0"],.landing[data-c="1"] .lp-fond>i[data-c="1"],
.landing[data-c="2"] .lp-fond>i[data-c="2"],.landing[data-c="3"] .lp-fond>i[data-c="3"],.landing[data-c="4"] .lp-fond>i[data-c="4"],
.landing[data-c="5"] .lp-fond>i[data-c="5"],.landing[data-c="6"] .lp-fond>i[data-c="6"],.landing[data-c="t"] .lp-fond>i[data-c="t"],
.landing[data-c="e"] .lp-fond>i[data-c="e"]{opacity:1;z-index:1;transition-delay:0s}
/* couleurs du texte par moment (texte >= 4.5:1 sur le fond, bulles blanches comprises) */
.landing[data-c="0"]{--t1:#4A2414;--t2:#6B3420;--acc:#B04A10}
.landing[data-c="1"]{--t1:#4A3300;--t2:#5E4000;--acc:#A3530A}
.landing[data-c="2"]{--t1:#04262E;--t2:#062F38;--acc:#0A6B80}
.landing[data-c="3"]{--t1:#2D0B47;--t2:#3A1259;--acc:#8A2BC4;--da:.25}
.landing[data-c="4"]{--t1:#40180A;--t2:#4F200E;--acc:#B23A12;--da:.25}
.landing[data-c="5"]{--t1:#0E3A28;--t2:#144A33;--acc:#16794E}
.landing[data-c="6"]{--t1:#FFFFFF;--t2:#E6E3FF;--acc:#3A2F86;--da:.08}
.landing[data-c="t"]{--t1:#10324A;--t2:#1B4460;--acc:#1F6A9E;--da:.35}
.landing[data-c="e"]{--t1:#FFFFFF;--t2:#F1EBFF;--acc:#5B3FD0;--da:.08}
/* bulles douces et paillettes qui flottent ; elles glissent avec le défilement quand le navigateur sait le faire */
.lp-deco{position:absolute;left:0;right:0;top:0;height:150%;z-index:2;opacity:var(--da);transition:opacity .9s}
.lp-deco b{position:absolute;border-radius:50%;background:radial-gradient(circle at 36% 32%,#fff,rgba(255,255,255,.55) 45%,rgba(255,255,255,0) 70%);animation:lpDrift 11s ease-in-out infinite alternate}
.lp-deco b:nth-child(1){left:-6%;top:6%;width:150px;height:150px}
.lp-deco b:nth-child(2){left:78%;top:3%;width:90px;height:90px;animation-duration:13s;animation-delay:-4s}
.lp-deco b:nth-child(3){left:12%;top:30%;width:14px;height:14px;border-radius:2px;transform:rotate(45deg);background:#fff;animation-name:lpGlitter;animation-duration:3s}
.lp-deco b:nth-child(4){left:84%;top:24%;width:180px;height:180px;animation-duration:15s;animation-delay:-7s}
.lp-deco b:nth-child(5){left:60%;top:44%;width:60px;height:60px;animation-delay:-2s}
.lp-deco b:nth-child(6){left:-4%;top:52%;width:120px;height:120px;animation-duration:12s;animation-delay:-9s}
.lp-deco b:nth-child(7){left:70%;top:15%;width:12px;height:12px;border-radius:2px;transform:rotate(45deg);background:#fff;animation-name:lpGlitter;animation-duration:2.4s;animation-delay:-1s}
.lp-deco b:nth-child(8){left:30%;top:66%;width:200px;height:200px;animation-duration:14s;animation-delay:-3s}
.lp-deco b:nth-child(9){left:88%;top:58%;width:16px;height:16px;border-radius:2px;transform:rotate(45deg);background:#fff;animation-name:lpGlitter;animation-duration:3.4s;animation-delay:-2s}
/* la nuit : des étoiles qui scintillent */
.lp-stars{position:absolute;inset:0;z-index:2;opacity:0;transition:opacity .9s}
.landing[data-c="6"] .lp-stars{opacity:1}
.lp-stars b{position:absolute;width:4px;height:4px;border-radius:50%;background:#FFF6D6;box-shadow:0 0 6px 1px rgba(255,240,190,.7)}
.landing[data-c="6"] .lp-stars b{animation:lpStar 2.6s ease-in-out infinite}
.lp-stars b:nth-child(1){left:6%;top:4%}.lp-stars b:nth-child(2){left:22%;top:12%;animation-delay:-.7s}.lp-stars b:nth-child(3){left:91%;top:7%;animation-delay:-1.4s}
.lp-stars b:nth-child(4){left:4%;top:46%;animation-delay:-2s;width:3px;height:3px}.lp-stars b:nth-child(5){left:95%;top:40%;animation-delay:-.4s}
.lp-stars b:nth-child(6){left:8%;top:72%;animation-delay:-1.1s}.lp-stars b:nth-child(7){left:93%;top:78%;animation-delay:-1.8s;width:5px;height:5px}
.lp-stars b:nth-child(8){left:50%;top:2%;animation-delay:-2.3s;width:3px;height:3px}.lp-stars b:nth-child(9){left:76%;top:90%;animation-delay:-.9s}.lp-stars b:nth-child(10){left:30%;top:94%;animation-delay:-1.6s}
.lp-hint svg{animation:lpNod 1.6s ease-in-out infinite}


/* ---------- ouverture : le titre et cinq animaux habillés sur trois plans ; le lapin sort d'un œuf ---------- */
.lp-hero{overflow:hidden}
.lp-hero-in{min-height:var(--lpA,calc(100svh - 80px));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding-top:calc(16px + env(safe-area-inset-top,0px));padding-bottom:16px}
/* téléphone : bulles, animal, nom, réponse, puis « Faites défiler » (le bloc texte s'efface pour ranger tout dans une colonne) */
.lp-hero-txt{display:contents}
.lp-bulles{order:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;max-width:340px}
.lp-bulles .lp-bulle-2{align-self:flex-end}
.lp-hero-art{order:2;position:relative;aspect-ratio:1;width:min(84vw,calc(var(--lpA,480px) - 300px),400px);flex:none}
.lp-hero h1{order:3}.lp-rep{order:4}.lp-hero .lp-hint{order:5}
.lp-rep span{display:block}
/* les accroches : des nuages de pensée de l'enfant (texte foncé sur blanc). Bord festonné : deux rangées de petits ronds (haut et bas,
   répartis sans en couper un) ; à la place d'une pointe, deux petits ronds qui descendent vers l'enfant. Le relief suit toute la forme (drop-shadow). */
.lp-bulle{position:relative;isolation:isolate;margin:7px 0 17px;display:inline-block;max-width:calc(100% - 12px);font-family:var(--font-display);font-weight:600;font-size:18px;line-height:1.25;color:#3A2440;background:#fff;border-radius:999px;padding:8px 20px;filter:drop-shadow(0 3px 0 rgba(40,20,60,.14));text-wrap:balance;text-align:left}
.lp-bulle::before{content:"";position:absolute;z-index:-1;left:12px;right:12px;top:-6px;bottom:-6px;
  background-image:radial-gradient(circle,#fff 6.5px,transparent 7px),radial-gradient(circle,#fff 6.5px,transparent 7px);
  background-size:17px 14px;background-position:top,bottom;background-repeat:space no-repeat}
.lp-bulle::after{content:"";position:absolute;left:20px;bottom:-14px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:-9px 8px 0 -2px #fff}
.lp-bulle-2::after{left:auto;right:20px;box-shadow:9px 8px 0 -2px #fff}
.lp-bulle.lp-r{transform:translateY(14px) scale(.85);transform-origin:20% 100%}
.lp-bulle.lp-r.in{transform:none}
.lp-hl{position:absolute;inset:0}
.lp-hp{position:absolute;aspect-ratio:1;border-radius:50%;background:var(--tint,#FFD3E0);padding:6%;box-shadow:0 8px 0 rgba(74,58,82,.08);animation:lpFloat 4.4s ease-in-out infinite}
.lp-hp svg,.lp-food svg,.lp-spark svg{width:100%;height:100%;display:block}
.lp-hp svg{animation:bob 1.3s ease-in-out infinite}
.lp-h0{left:20%;top:12%;width:60%;padding:7%;animation-duration:5.2s}
.lp-h1{left:0;top:2%;width:28%;animation-delay:-1.2s}
.lp-h2{right:0;top:7%;width:26%;animation-delay:-2.6s}
.lp-hl-back .lp-hp{filter:saturate(.85);opacity:.92}
.lp-h3{left:0;bottom:0;width:31%;animation-delay:-.6s}
.lp-h4{right:1%;bottom:3%;width:29%;animation-delay:-3.1s}
.lp-food{position:absolute;width:13%;aspect-ratio:1;animation:lpFloat 3.6s ease-in-out infinite}
.lp-food1{left:38%;bottom:-1%;animation-delay:-1s}
.lp-food2{right:30%;top:1%;width:11%}
.lp-spark{position:absolute;left:34%;top:4%;width:7%;aspect-ratio:1;animation:lpTwinkle 2.4s ease-in-out infinite}
.lp-spark2{left:auto;right:12%;top:42%;animation-delay:-1.2s}
.lp-h0 .earL,.lp-h0 .earR{transform-box:fill-box;transform-origin:50% 100%;animation:earL 2.6s ease-in-out infinite}
.lp-h0 .earR{animation-name:earR;animation-delay:.3s}
.lp-h0 .hmouth{opacity:0;animation:hmouth 3.2s steps(1) infinite}
/* l'œuf : il tremble, la coquille s'ouvre en deux, le lapin habillé saute dehors dans une pluie de confettis (vers 2,3 s, fini avant 3 s) */
.lp-nait{width:100%;height:100%;transform-origin:50% 90%;opacity:0}
.lp-hero-art.in .lp-nait{animation:lpNait .55s cubic-bezier(.3,1.6,.5,1) 2.25s both}
.lp-oeuf{position:absolute;left:31%;top:22%;width:38%;aspect-ratio:60/76;transform-origin:50% 100%}
.lp-hp .lp-oeuf svg{position:absolute;inset:0;width:100%;height:100%;animation:none;overflow:visible}
.lp-hero-art.in .lp-oeuf{animation:lpWobble .3s ease-in-out 1.65s 2}
.lp-hero-art.in .lp-oeuf-h{animation:lpCoqH .7s cubic-bezier(.2,.7,.4,1) 2.25s forwards}
.lp-hero-art.in .lp-oeuf-b{animation:lpCoqB .6s ease-in 2.3s forwards}
.lp-confettis{position:absolute;left:50%;top:48%;width:0;height:0}
.lp-confettis i{position:absolute;left:-4px;top:-6px;width:8px;height:12px;border-radius:2px;background:#FF7FA3;opacity:0}
.lp-hero-art.in .lp-confettis i{animation:lpConf .9s cubic-bezier(.2,.8,.4,1) 2.28s forwards}
.lp-confettis i:nth-child(1){--dx:-120px;--dy:-90px;--r:200deg}
.lp-confettis i:nth-child(2){--dx:-70px;--dy:-130px;--r:-160deg;background:#FFD24D}
.lp-confettis i:nth-child(3){--dx:-10px;--dy:-150px;--r:250deg;background:#5BB8F5}
.lp-confettis i:nth-child(4){--dx:60px;--dy:-135px;--r:-220deg;background:#7ED3C0}
.lp-confettis i:nth-child(5){--dx:115px;--dy:-95px;--r:180deg;background:#B79CED}
.lp-confettis i:nth-child(6){--dx:140px;--dy:-30px;--r:-200deg;background:#FFD24D}
.lp-confettis i:nth-child(7){--dx:-140px;--dy:-20px;--r:230deg;background:#7ED3C0}
.lp-confettis i:nth-child(8){--dx:-95px;--dy:50px;--r:-180deg;background:#5BB8F5}
.lp-confettis i:nth-child(9){--dx:100px;--dy:45px;--r:210deg}
.lp-confettis i:nth-child(10){--dx:20px;--dy:-80px;--r:-240deg;background:#FF8A5C}

/* ---------- la journée : scène épinglée + textes ---------- */
.lp-stage{position:sticky;top:0;z-index:2;padding-top:10px}
.lp-scene{--p:0;position:relative;margin:0 auto;width:min(100%,calc(var(--lpA,480px) * .56 * 4 / 3));aspect-ratio:4/3;border-radius:26px;overflow:hidden;background:var(--wall);box-shadow:0 12px 24px rgba(40,20,60,.18),0 0 0 4px #fff;container-type:inline-size;isolation:isolate}
.lp-steps{position:relative;z-index:1;padding-bottom:calc(var(--lpA,480px) * .3)}
.lp-step{min-height:max(210px,calc(var(--lpA,480px) - var(--lpS,260px)));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:22px 4px;opacity:.3;transition:opacity .45s}
.lp-step.on{opacity:1}
.lp-step.past{opacity:0}

.lp-scene>div{position:absolute;pointer-events:none}
.lp-scene svg{display:block;width:100%;height:100%}
.lp-bg{inset:0;z-index:0;transform:translateX(calc((.5 - var(--p)) * 4%)) scale(1.06);transition:transform 1.1s cubic-bezier(.3,.8,.3,1)}
.lp-room{position:absolute;inset:0}
.lp-sky{opacity:0;transition:opacity 1s}
.lp-beam,.lp-roomdim{opacity:0;transition:opacity 1s}
/* horloge du jour : un soleil qui devient lune, de gauche à droite */
.lp-clock{left:52%;width:42%;top:4%;height:7%;z-index:1;border-radius:99px;background:rgba(255,255,255,.55)}
.lp-clock::before{content:"";position:absolute;left:8%;right:8%;top:calc(50% - 1px);border-top:2px dashed rgba(74,58,82,.25)}
.lp-run{position:absolute;left:0;top:0;bottom:0;width:87.5%;transform:translateX(calc((var(--p) - 1) * 100%));transition:transform 1s cubic-bezier(.3,.8,.3,1)}
.lp-run b{position:absolute;left:100%;top:8%;height:84%;aspect-ratio:1;border-radius:50%;transition:opacity .6s}
.lp-sun{background:#FFD36E;box-shadow:0 0 0 3px rgba(255,224,138,.55)}
.lp-moon{background:radial-gradient(circle at 70% 35%,transparent 42%,#FFF3C4 44%);opacity:0}

/* l'animal : un seul cadre qui se déplace (il sautille en traversant), deux calques d'habits en fondu, une ombre au sol */
.lp-pw{left:50%;bottom:6%;width:34%;aspect-ratio:1;z-index:3;transform-origin:50% 100%;transform:translate(calc(-50% + var(--x,0%)),var(--y,0%)) scale(var(--s,1));transition:transform .9s cubic-bezier(.4,.1,.3,1)}
.lp-pi{position:absolute;inset:0;transform-origin:50% 100%;animation:bob 1.4s ease-in-out infinite}
.lp-m{position:absolute;inset:0;opacity:0;transition:opacity .35s}
.lp-m.on{opacity:1}
.lp-ombre{position:absolute;left:20%;right:20%;bottom:-3%;height:9%;border-radius:50%;background:rgba(60,30,80,.2);transition:opacity .5s}
[data-k="2"] .lp-ombre,[data-k="6"] .lp-ombre{opacity:0}
#lpScene .lp-pw.lp-saute .lp-pi{animation:lpHops .9s ease-in-out}
#lpScene .lp-pw.lp-saute .lp-ombre{animation:lpOmbre .9s ease-in-out}
#lpScene .lp-pi.lp-essaie{animation:lpEssaie .45s ease-out}
.lp-scene .eye,.lp-hl-back .eye,.lp-hl-front .eye{animation:none}   /* un seul clin d’œil à la fois : celui du grand lapin */

/* accessoires de chaque moment : cachés hors de leur moment */
.lp-p{opacity:0;z-index:4;transition:opacity .5s,transform .7s cubic-bezier(.3,1.3,.5,1)}
.lp-tubb,.lp-bedb,.lp-spot{z-index:2}
.lp-bedf{z-index:6}.lp-glow{z-index:7}.lp-lamp{z-index:7}.lp-zz{z-index:8}
.lp-dark{inset:0;z-index:1;opacity:0;transition:opacity 1s;background:radial-gradient(circle at 50% 70%,rgba(20,18,60,0) 30%,rgba(20,18,60,.38))}
/* repas et cuisine : la table, la carotte qui monte à la bouche toute seule, cookies et gâteau de la cuisine */
.lp-table{left:15%;bottom:2%;width:70%;aspect-ratio:112/24;transform:translateY(40%)}
.lp-plate{left:36.25%;bottom:11.6%;width:27.5%;aspect-ratio:44/14;transform:translateY(60%)}
.lp-dish{left:42.5%;bottom:14%;width:15%;aspect-ratio:1;transform:translateY(-160%) scale(.7);transition-delay:.25s}
.lp-cook{bottom:12%;aspect-ratio:96/76;transform:translateY(40%) scale(.5)}
.lp-cook1{left:13%;width:17%;transition-delay:.4s}.lp-cook2{left:70%;bottom:12.5%;width:16%;aspect-ratio:64/60;transition-delay:.6s}
.lp-hearts{left:56%;bottom:46%;width:16%;aspect-ratio:3/4}
.lp-hearts svg{position:absolute;width:44%;height:auto;bottom:0;left:0;opacity:0}
.lp-hearts svg:nth-child(2){left:44%}.lp-hearts svg:nth-child(3){left:20%}
/* bain */
.lp-tubb,.lp-tubf{left:12%;bottom:-2%;width:76%;aspect-ratio:100/40;transform:translateY(30%)}
.lp-duck{left:70%;bottom:25%;width:9%;aspect-ratio:18/16;transform:translateY(80%)}
.lp-bubs{left:16%;bottom:24%;width:68%;height:60%}
.lp-bubs i{position:absolute;bottom:0;width:13%;aspect-ratio:1;opacity:0}
.lp-bubs i:nth-child(1){left:2%}.lp-bubs i:nth-child(2){left:80%;width:16%}.lp-bubs i:nth-child(3){left:14%;width:10%}
/* armoire : une lumière douce sous le lapin, les habits rangés de chaque côté (trois à gauche, trois à droite) (l'habit essayé s'allume), des paillettes à chaque essayage */
.lp-spot{left:20%;bottom:0;width:60%;aspect-ratio:1.5;background:radial-gradient(ellipse 50% 70% at 50% 100%,rgba(255,244,214,.85),rgba(255,244,214,0) 100%)}
.lp-rack{left:4%;right:4%;top:19%;bottom:7%;display:grid;grid-template-rows:repeat(3,1fr);grid-auto-flow:column;justify-content:space-between;align-items:center;transform:scale(.85)}
.lp-chip{width:12.5cqw;height:12.5cqw;border-radius:50%;background:rgba(255,255,255,.55);display:grid;place-items:center;box-shadow:0 2px 0 rgba(74,58,82,.15);transition:transform .3s cubic-bezier(.3,1.6,.5,1),background .3s,box-shadow .3s}
.lp-scene .lp-chip svg{width:70%;height:70%}
.lp-scene[data-o="0"] .lp-chip:nth-child(1),.lp-scene[data-o="1"] .lp-chip:nth-child(2),.lp-scene[data-o="2"] .lp-chip:nth-child(3),
.lp-scene[data-o="3"] .lp-chip:nth-child(4),.lp-scene[data-o="4"] .lp-chip:nth-child(5),.lp-scene[data-o="5"] .lp-chip:nth-child(6){background:#fff;transform:scale(1.2);box-shadow:0 0 0 3px #FFC93C,0 3px 0 rgba(74,58,82,.2)}
.lp-glints{left:22%;bottom:42%;width:56%;height:46%}
.lp-glints svg{position:absolute;width:12%;height:auto;opacity:0}
.lp-glints svg:nth-child(1){left:0;top:30%}.lp-glints svg:nth-child(2){left:86%;top:6%}.lp-glints svg:nth-child(3){left:76%;top:72%}
/* cahier de stickers : une page lignée à spirale, six stickers qui se collent un à un avec un rebond */
.lp-cahier{left:5%;top:15%;width:58%;height:80%;transform:translateY(14%) rotate(-6deg)}
.lp-page{position:absolute;inset:0;box-sizing:border-box;border-radius:10px;background:#FFFDF6 repeating-linear-gradient(transparent 0 calc(16.6% - 2px),#D6E6F5 calc(16.6% - 2px) 16.6%);box-shadow:0 4px 0 rgba(74,58,82,.2);padding:7% 6% 7% 17%;display:grid;grid-template-columns:repeat(3,1fr);gap:7% 8%;align-content:center}
.lp-page::before{content:"";position:absolute;left:3%;top:5%;bottom:5%;width:8%;background:radial-gradient(circle,#B9A6DE 42%,transparent 48%) 50% 0/100% 16.6% repeat-y}
.lp-stk{position:relative;aspect-ratio:1;box-sizing:border-box;background:#fff;border-radius:22%;padding:13%;box-shadow:0 2px 0 rgba(74,58,82,.22),0 0 0 2px #fff;transform:rotate(var(--r,0deg));opacity:0}
.lp-stk:nth-child(1){--r:-8deg}.lp-stk:nth-child(2){--r:6deg}.lp-stk:nth-child(3){--r:-4deg}.lp-stk:nth-child(4){--r:9deg}.lp-stk:nth-child(5){--r:-7deg}.lp-stk:nth-child(6){--r:5deg}
.lp-stk svg{display:block;width:100%;height:100%}
/* devoirs : des cartes qui se remplissent */
.lp-cards-ex{left:46%;width:51%;top:14%;height:81%;display:flex;flex-direction:column;justify-content:space-between;transform:translateX(30%)}
.lp-ex{height:30%;box-sizing:border-box;background:#fff;text-align:left;color:var(--ink);border-radius:14px;box-shadow:0 3px 0 rgba(74,58,82,.12);padding:0 7%;display:flex;flex-direction:column;justify-content:center;gap:2px;opacity:0;transform:translateX(20%);transition:opacity .4s,transform .5s cubic-bezier(.3,1.3,.5,1)}
.lp-ex:nth-child(2){transition-delay:.12s}.lp-ex:nth-child(3){transition-delay:.24s}
.lp-ex small{font-size:15px;font-size:max(15px,3.4cqw);line-height:1.1;font-weight:600;color:var(--ink-soft)}
.lp-ex span{font-family:var(--font-display);font-weight:600;font-size:17px;font-size:max(17px,5cqw);line-height:1.15;white-space:nowrap}
.lp-ex b{display:inline-block;min-width:.7em;text-align:center;color:transparent;border-bottom:3px dashed #C9B8E8;line-height:1}
.lp-star{left:20%;bottom:60%;width:8%;aspect-ratio:1;transform:scale(.2)}
/* nuit */
.lp-bedb,.lp-bedf{left:25.1%;bottom:4%;width:49.8%;aspect-ratio:96/80}
.lp-bedf{transform:translateY(25%)}
.lp-lamp{left:70.2%;bottom:4%;width:10.4%;aspect-ratio:20/44}
.lp-glow{left:50.5%;bottom:-7%;width:49.8%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(255,220,140,.62),rgba(255,200,120,.22) 42%,transparent 68%)}
.lp-zz{left:52%;bottom:30%;width:16%;height:30%}
.lp-z{position:absolute;left:0;bottom:0;width:32%;aspect-ratio:1;opacity:0}
.lp-z:nth-child(2){left:46%;bottom:38%;width:26%}.lp-z:nth-child(3){left:88%;bottom:76%;width:22%}

/* ---------- les sept moments : 0 matin, 1 repas, 2 bain, 3 armoire, 4 stickers, 5 devoirs, 6 nuit ---------- */
.lp-scene[data-k="1"]{--p:.17}.lp-scene[data-k="2"]{--p:.33}.lp-scene[data-k="3"]{--p:.5}.lp-scene[data-k="4"]{--p:.67}.lp-scene[data-k="5"]{--p:.83}.lp-scene[data-k="6"]{--p:1}
[data-k="0"] .lp-sky-dawn,[data-k="1"] .lp-sky-day,[data-k="2"] .lp-sky-day,[data-k="3"] .lp-sky-day,[data-k="4"] .lp-sky-day,[data-k="5"] .lp-sky-dusk,[data-k="6"] .lp-sky-night{opacity:1}
[data-k="0"] .lp-beam,[data-k="1"] .lp-beam,[data-k="2"] .lp-beam{opacity:.24}
[data-k="5"] .lp-roomdim{opacity:.12}[data-k="6"] .lp-roomdim{opacity:.4}
[data-k="6"] .lp-sun{opacity:0}[data-k="6"] .lp-moon{opacity:1}
[data-k="0"] .lp-m.on{animation:scnStretch 1.4s ease-in-out .2s}
.lp-scene[data-k="1"] .lp-pw{--y:-17%;--s:.92}
.lp-scene[data-k="2"] .lp-pw{--y:-40%;--s:.9}
.lp-scene[data-k="3"] .lp-pw{--s:1.08}
.lp-scene[data-k="4"] .lp-pw{--x:86%;--s:.86}
.lp-scene[data-k="5"] .lp-pw{--x:-80%;--s:.9}
.lp-scene[data-k="6"] .lp-pw{--x:-15.3%;--y:-4.7%;--s:.82}
[data-k="6"] .lp-pi{animation:scnBreath 4s ease-in-out infinite}
[data-k="1"] .lp-table,[data-k="1"] .lp-plate,[data-k="1"] .lp-dish,[data-k="1"] .lp-cook,[data-k="1"] .lp-hearts,
[data-k="2"] .lp-tubb,[data-k="2"] .lp-tubf,[data-k="2"] .lp-duck,[data-k="2"] .lp-bubs,
[data-k="3"] .lp-spot,[data-k="3"] .lp-rack,[data-k="3"] .lp-glints,[data-k="4"] .lp-cahier,[data-k="5"] .lp-cards-ex,[data-k="5"] .lp-star,
[data-k="6"] .lp-bedb,[data-k="6"] .lp-bedf,[data-k="6"] .lp-glow,[data-k="6"] .lp-lamp,[data-k="6"] .lp-zz,[data-k="6"] .lp-dark{opacity:1;transform:none}
[data-k="1"] .lp-dish{animation:lpBite 3s cubic-bezier(.3,.8,.4,1) 1.2s infinite}
[data-k="1"] .lp-hearts svg{animation:lpRise 2.4s ease-out .8s infinite}
.lp-hearts svg:nth-child(2){animation-delay:1.6s!important}.lp-hearts svg:nth-child(3){animation-delay:2.4s!important}
[data-k="2"] .lp-duck{animation:lpBob 1.6s ease-in-out .6s infinite}
[data-k="2"] .lp-bubs i{animation:lpBulle 3.2s ease-in infinite}
[data-k="2"] .lp-bubs i:nth-child(2){animation-delay:-1.1s;animation-duration:3.8s}[data-k="2"] .lp-bubs i:nth-child(3){animation-delay:-2.2s;animation-duration:2.9s}
[data-k="3"] .lp-glints svg{animation:lpTwinkle 1.8s ease-in-out infinite}
[data-k="3"] .lp-glints svg:nth-child(2){animation-delay:-.6s}[data-k="3"] .lp-glints svg:nth-child(3){animation-delay:-1.2s}
#lpScene .lp-glints.lp-flash svg{animation:lpFlash .7s ease-out}
[data-k="4"] .lp-stk{animation:lpColle .6s cubic-bezier(.3,1.5,.5,1) both;animation-delay:calc(.45s + var(--i) * .42s)}
[data-k="5"] .lp-ex{opacity:1;transform:none}
[data-k="5"] .lp-ex b{animation:lpFill .45s ease-out both}
[data-k="5"] .lp-ex:nth-child(1) b{animation-delay:.7s}[data-k="5"] .lp-ex:nth-child(2) b{animation-delay:1.3s}[data-k="5"] .lp-ex:nth-child(3) b{animation-delay:1.9s}
[data-k="5"] .lp-star{animation:lpPop 3s both}
[data-k="6"] .lp-glow{animation:scnGlow 4s ease-in-out infinite alternate}
[data-k="6"] .lp-z{animation:lpZ 3.6s ease-in infinite}
[data-k="6"] .lp-z:nth-child(2){animation-delay:1.2s}[data-k="6"] .lp-z:nth-child(3){animation-delay:2.4s}


/* ---------- confiance ---------- */
.lp-trust{padding:56px 0 40px;text-align:center}
.lp-trust .lp-lead{max-width:44ch}
.lp-trust .lp-wrap{display:flex;flex-direction:column;align-items:center;gap:12px}
.lp-cards{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:12px;width:100%;text-align:left}
.lp-cards li{display:flex;gap:14px;align-items:center;color:var(--ink);font-size:18px;line-height:1.3;background:#fff;border-radius:20px;padding:14px 16px;box-shadow:0 3px 0 var(--line);text-wrap:balance}
.lp-cards svg{flex:none;box-sizing:content-box;width:30px;height:30px;padding:9px;border-radius:50%;background:#FFE3EC;fill:none;stroke:var(--pink-deep);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- prêt ? ---------- */
.lp-end{padding:40px 0 28px}
.lp-end-in{display:flex;flex-direction:column;align-items:center;text-align:center;gap:22px}
.lp-end-txt{display:flex;flex-direction:column;align-items:center;gap:10px}
.lp-zoo-col{display:flex;flex-direction:column;align-items:center;width:100%}
.lp-zoo{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 12px;width:100%;max-width:min(340px,calc((var(--lpA,480px) - 120px) * .8))}
.lp-zoo figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.lp-zoo figure>div{position:relative;width:100%;aspect-ratio:1;border-radius:50%;background:var(--tint);padding:8%;box-sizing:border-box;box-shadow:0 0 0 3px rgba(255,255,255,.85)}
/* chacun sa petite vie : un mouvement, une durée et un décalage différents (9 dessins qui bougent, transform seulement),
   à l'arrêt tant que l'animal n'est pas apparu ; trois petites étincelles en plus */
.lp-zoo svg{width:100%;height:100%;display:block;transform-origin:50% 92%;animation:var(--za,lpZHop) var(--zd,2s) ease-in-out var(--zl,0s) infinite}
.lp-zoo figure:not(.in) svg{animation-play-state:paused}
.lp-zoo figure:nth-child(1){--za:lpZHop;--zd:1.5s;--zl:0s}
.lp-zoo figure:nth-child(2){--za:lpZWiggle;--zd:2.2s;--zl:-.4s}
.lp-zoo figure:nth-child(3){--za:lpZSway;--zd:2.8s;--zl:-1.1s}
.lp-zoo figure:nth-child(4){--za:lpZSquash;--zd:1.8s;--zl:-.6s}
.lp-zoo figure:nth-child(5){--za:lpZDance;--zd:2.5s;--zl:-1.7s}
.lp-zoo figure:nth-child(6){--za:lpZPeek;--zd:3.3s;--zl:-.9s}
.lp-zoo figure:nth-child(7){--za:lpZHop;--zd:1.9s;--zl:-1.3s}
.lp-zoo figure:nth-child(8){--za:lpZTurn;--zd:4.2s;--zl:-2s}
.lp-zoo figure:nth-child(9){--za:lpZWiggle;--zd:1.6s;--zl:-.2s}
.lp-zoo figure:nth-child(3n+2)>div::after{content:"";position:absolute;right:2%;top:2%;width:16%;aspect-ratio:1;background:#fff;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:lpTwinkle 1.7s ease-in-out infinite}
.lp-zoo figure:nth-child(5)>div::after{animation-duration:2.3s;animation-delay:-.8s;left:4%;right:auto}
.lp-zoo figure:nth-child(8)>div::after{animation-duration:1.3s;animation-delay:-.4s}
.lp-zoo figcaption{font-family:var(--font-display);font-weight:600;font-size:16px}

.lp-bar{flex:none;padding:10px 24px calc(12px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center;position:relative;z-index:3}
.lp-bar .primary{width:100%;max-width:432px;min-height:52px;font-size:20px;box-shadow:0 0 0 3px #fff,0 6px 14px rgba(40,20,60,.25)}

/* apparitions au défilement : chaque élément monte et apparaît, l'un après l'autre (--i) */
.lp-r{opacity:0;transform:translateY(28px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1),color .6s;transition-delay:calc(var(--i,0) * 110ms)}
.lp-zoo figcaption{transition:color .6s}
.lp-r.in{opacity:1;transform:none}


@keyframes lpNod{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
@keyframes lpFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5%)}}
@keyframes lpTwinkle{0%,100%{opacity:.2;transform:scale(.6)}50%{opacity:1;transform:scale(1)}}
@keyframes lpRise{0%{opacity:0;transform:translateY(0) scale(.5)}20%{opacity:1}100%{opacity:0;transform:translateY(-140%) scale(1.1)}}
@keyframes lpBob{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-12%) rotate(4deg)}}
@keyframes lpBulle{0%{opacity:0;transform:translateY(0) scale(.6)}15%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateY(-330%) scale(1.1)}}
@keyframes lpDrift{from{transform:translate(0,0)}to{transform:translate(18px,-26px)}}
@keyframes lpGlitter{0%,100%{opacity:.2;transform:rotate(45deg) scale(.5)}50%{opacity:1;transform:rotate(45deg) scale(1.1)}}
@keyframes lpStar{0%,100%{opacity:.25;transform:scale(.6)}50%{opacity:1;transform:scale(1.3)}}
@keyframes lpGlisse{from{transform:translateY(0)}to{transform:translateY(-30%)}}
@keyframes lpFill{from{color:transparent;transform:scale(.3)}to{color:#2E9E5B;transform:none;border-color:transparent}}
@keyframes lpPop{0%,66%{opacity:0;transform:scale(.2)}76%{opacity:1;transform:scale(1.3)}86%,100%{opacity:1;transform:none}}
@keyframes lpZ{0%{opacity:0;transform:translateY(20%)}30%{opacity:1}100%{opacity:0;transform:translateY(-60%)}}
@keyframes lpBite{0%,10%{transform:none;opacity:1}35%{transform:translateY(-55%) scale(.9)}50%{transform:translateY(-55%) scale(.25);opacity:0}80%{transform:scale(.3);opacity:0}100%{transform:none;opacity:1}}
@keyframes lpHops{0%,100%{transform:none}8%{transform:scale(1.06,.94)}20%{transform:translateY(-16%) scale(.95,1.05)}34%{transform:scale(1.05,.95)}48%{transform:translateY(-16%) scale(.95,1.05)}62%{transform:scale(1.05,.95)}76%{transform:translateY(-12%) scale(.97,1.03)}90%{transform:scale(1.04,.96)}}
@keyframes lpOmbre{0%,8%,34%,62%,90%,100%{transform:none}20%,48%{transform:scale(.6);opacity:.6}76%{transform:scale(.7)}}
@keyframes lpEssaie{0%{transform:scale(1.1,.88)}45%{transform:scale(.94,1.08)}100%{transform:none}}
@keyframes lpFlash{0%{opacity:0;transform:scale(.3) rotate(0)}40%{opacity:1;transform:scale(1.5) rotate(45deg)}100%{opacity:0;transform:scale(.6) rotate(90deg)}}
@keyframes lpColle{0%{opacity:0;transform:translateY(-40%) scale(1.8) rotate(calc(var(--r) * -2))}55%{opacity:1;transform:scale(.86) rotate(var(--r))}75%{transform:scale(1.07) rotate(var(--r))}100%{opacity:1;transform:rotate(var(--r))}}
@keyframes lpNait{0%{opacity:0;transform:translateY(25%) scale(.2)}40%{opacity:1}100%{opacity:1;transform:none}}
@keyframes lpWobble{0%,100%{transform:rotate(0)}25%{transform:rotate(-9deg)}75%{transform:rotate(9deg)}}
@keyframes lpCoqH{0%{transform:none;opacity:1}100%{transform:translate(-45%,-110%) rotate(-50deg);opacity:0}}
@keyframes lpCoqB{0%{transform:none;opacity:1}100%{transform:translateY(40%) scale(.8);opacity:0}}
@keyframes lpConf{0%{opacity:1;transform:translate(0,0) rotate(0) scale(.5)}70%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r)) scale(1)}}
/* les 9 animaux de la fin */
@keyframes lpZHop{0%,60%,100%{transform:none}12%{transform:scale(1.07,.93)}30%{transform:translateY(-14%) scale(.95,1.05)}48%{transform:scale(1.04,.96)}}
@keyframes lpZWiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}
@keyframes lpZSway{0%,100%{transform:translateX(-3%) rotate(-5deg)}50%{transform:translateX(3%) rotate(5deg)}}
@keyframes lpZSquash{0%,100%{transform:none}40%{transform:scale(1.08,.92)}60%{transform:scale(.94,1.07)}}
@keyframes lpZDance{0%,100%{transform:none}20%{transform:translateX(-6%) rotate(-6deg)}40%{transform:translateY(-7%)}60%{transform:translateX(6%) rotate(6deg)}80%{transform:translateY(-7%)}}
@keyframes lpZPeek{0%,55%,100%{transform:none}67%{transform:translateY(-13%) rotate(-5deg)}79%{transform:translateY(-13%) rotate(5deg)}90%{transform:none}}
@keyframes lpZTurn{0%,42%,100%{transform:scaleX(1)}48%,90%{transform:scaleX(-1)}}
/* défilement lié (Chrome, Safari 26, ...) : la chambre glisse derrière l'animal, l'horloge avance au pixel près, les plans du haut s'éloignent à des vitesses différentes */
@keyframes lpCam{from{transform:translateX(2%) scale(1.06)}to{transform:translateX(-2%) scale(1.06)}}
@keyframes lpRun{from{transform:translateX(-100%)}to{transform:none}}
@keyframes lpBack{to{transform:translateY(-14%)}}
@keyframes lpMid{to{transform:translateY(-30%) scale(.86)}}
@keyframes lpFore{to{transform:translateY(-62%)}}
@supports (animation-timeline:view()){
  .lp-hero{view-timeline:--lpHero block}
  .lp-day{view-timeline:--lpDay block}
  .lp-hl{animation:linear both;animation-timeline:--lpHero;animation-range:cover 50% cover 100%}
  .lp-hl-back{animation-name:lpBack}.lp-hl-mid{animation-name:lpMid}.lp-hl-front{animation-name:lpFore}
  .lp-bg,.lp-run{animation:linear both;animation-timeline:--lpDay;animation-range:contain 0% contain 100%}
  .lp-bg{animation-name:lpCam}.lp-run{animation-name:lpRun}
  .lp-scroll{scroll-timeline:--lpPage block}
  .lp-deco{animation:lpGlisse linear both;animation-timeline:--lpPage}
}

/* ---------- « Allons-y » : un cercle part du bouton et emporte la page vers l'écran des classes ---------- */
.lp-exit{position:fixed;z-index:70;border-radius:50%;pointer-events:none;transform:scale(.02);background:radial-gradient(circle,#FF9EC4 68%,#FFB8D3 90%,#FFD1E3)}
.lp-exit-sp{position:fixed;z-index:71;width:24px;height:24px;pointer-events:none}
.lp-exit-sp svg{display:block;width:100%;height:100%}

/* ---------- grand écran : deux colonnes, contenu large ---------- */
@media (min-width:768px){
  .lp-wrap{max-width:1280px;padding:0 clamp(24px,4vw,64px)}
  .landing h1{font-size:clamp(64px,7.5vw,116px)}
  .landing h2{font-size:clamp(36px,3.6vw,56px)}
  .lp-lead{font-size:clamp(18px,1.5vw,22px)}
  .lp-big{font-size:clamp(20px,1.9vw,27px)}
  .lp-kick{font-size:clamp(15px,1.1vw,17px)}
  .lp-hero-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;text-align:left;gap:clamp(24px,4vw,64px)}
  .lp-hero-txt{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
  .lp-bulles{max-width:440px;gap:8px}
  .lp-bulle{font-size:clamp(18px,1.6vw,24px);padding:10px 20px}
  .lp-hint{align-items:flex-start;flex-direction:row;gap:8px}
  .lp-hero-art{order:0;justify-self:center;width:min(100%,calc(var(--lpA,700px) - 72px),600px)}
  .lp-day-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,64px)}
  .lp-stage{grid-column:2;grid-row:1;align-self:start;height:var(--lpA,calc(100svh - 80px));display:flex;align-items:center;padding:0;background:none}
  .lp-stage::after{display:none}
  .lp-scene{width:min(100%,calc((var(--lpA,700px) - 64px) * 4 / 3));border-radius:34px}
  .lp-steps{grid-column:1;grid-row:1}
  .lp-step{min-height:var(--lpA,calc(100svh - 80px));align-items:flex-start;text-align:left;gap:16px;padding:0}
  .lp-trust{padding:96px 0 72px}
  .lp-trust .lp-wrap{gap:16px}
  .lp-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
  .lp-cards li{font-size:clamp(18px,1.4vw,21px);padding:20px 22px}
  .lp-end{padding:48px 0 56px}
  .lp-end-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;text-align:left;gap:clamp(24px,4vw,64px)}
  .lp-end-txt{align-items:flex-start;gap:16px}
  .lp-zoo-col{justify-self:center;max-width:min(460px,calc((var(--lpA,700px) - 190px) * .85));align-items:flex-start}
  .lp-zoo{max-width:none;gap:12px 16px}
  .lp-zoo figcaption{font-size:18px}
  .lp-bar .primary{max-width:360px}
}
@media (min-width:1024px){
  .lp-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
  .lp-cards li{flex-direction:column;align-items:flex-start;padding:24px}
  .lp-cards svg{width:36px;height:36px;padding:11px}
}
/* téléphone court : on serre */
@media (max-width:767px) and (max-height:600px){
  .landing h1{font-size:46px}.landing h2{font-size:28px}.lp-lead{font-size:17px}.lp-bulle{font-size:17px;padding:7px 18px}
  .lp-hero-in{gap:8px}
  .lp-step{gap:8px;padding:16px 4px}
}
@media (prefers-reduced-motion:reduce){
  .lp-r,.lp-bulle.lp-r{opacity:1;transform:none;transition:none}
  .lp-step{opacity:1;transition:none}
  .landing *,.landing *::before,.landing *::after{animation:none!important;transition:none!important}
  .lp-bg{transform:scale(1.06)}
  .lp-nait{opacity:1}.lp-oeuf,.lp-confettis{display:none}
  [data-k="5"] .lp-ex b{color:#2E9E5B;border-color:transparent}[data-k="5"] .lp-star{opacity:1;transform:none}
  [data-k="1"] .lp-hearts svg:first-child,[data-k="3"] .lp-glints svg,[data-k="6"] .lp-z,[data-k="2"] .lp-bubs i,[data-k="4"] .lp-stk{opacity:1}
  .lp-fond>i,.lp-deco,.lp-stars{transition:none!important}
}
