/* Un jour, un métier — Tim & Noisette — STOQ Family */
:root{
  --nuit:#16285b; --rouge:#e8323f; --orange:#f5923a; --ciel:#9fd1fb; --creme:#fdf5e8; --noisette:#8b4a22;
  --blanc:#fffdf8; --jaune:#ffc93c; --vert:#3fae6a; --bleu:#2f86d6;
  --ombre:0 10px 30px rgba(22,40,91,.12); --rayon:26px;
  --titre:"Baloo 2","Fredoka","Trebuchet MS","Comic Sans MS",system-ui,sans-serif;
  --texte:"Nunito","Segoe UI",system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--texte);font-size:18px;line-height:1.6;color:var(--nuit);
  background:var(--creme) radial-gradient(circle at 12% 8%,#fff 0,transparent 40%);}
img{max-width:100%;display:block}
a{color:var(--bleu)}
h1,h2,h3{font-family:var(--titre);line-height:1.1;margin:0 0 .5em;font-weight:800}
h1{font-size:clamp(2.2rem,5vw,3.6rem)} h2{font-size:clamp(1.8rem,3.5vw,2.6rem)} h3{font-size:1.4rem}
p{margin:0 0 1em}
.wrap{width:min(1120px,92%);margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:var(--nuit);color:#fff;padding:.6em 1em;z-index:99}
.skip:focus{left:8px;top:8px}
:focus-visible{outline:4px solid var(--orange);outline-offset:3px;border-radius:8px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(253,245,232,.92);backdrop-filter:blur(8px);border-bottom:3px solid rgba(22,40,91,.06)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem 0}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--nuit);font-family:var(--titre);font-weight:800;line-height:1}
.brand img{width:46px;height:46px;border-radius:50%;object-fit:cover;object-position:50% 25%;border:3px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.15)}
.brand small{display:block;font-size:.72rem;font-weight:700;color:var(--rouge);letter-spacing:.04em}
.brand span{font-size:1.15rem}
.nav ul{list-style:none;display:flex;gap:.3rem;margin:0;padding:0;flex-wrap:wrap}
.nav a{display:block;padding:.45em .95em;border-radius:999px;text-decoration:none;color:var(--nuit);font-weight:800;font-size:.98rem}
.nav a:hover{background:var(--ciel)}
.nav a[aria-current="page"]{background:var(--rouge);color:#fff}
.burger{display:none;background:var(--nuit);color:#fff;border:0;border-radius:14px;font:800 1rem var(--titre);padding:.5em 1em;cursor:pointer}
@media(max-width:820px){
  .burger{display:block}
  .nav{position:absolute;left:0;right:0;top:100%;background:var(--creme);border-bottom:3px solid rgba(22,40,91,.08);display:none;padding:.6rem 4%}
  .nav.open{display:block}
  .nav ul{flex-direction:column}
}

/* Wordmark */
.wordmark{font-family:var(--titre);font-weight:800;line-height:.95;margin:0;text-align:inherit}
.wordmark .l1{display:block;color:var(--nuit);font-size:1em}
.wordmark .l2{display:block;font-size:1.25em;letter-spacing:.01em}
.wordmark .l2 span:nth-child(5n+1){color:var(--rouge)}.wordmark .l2 span:nth-child(5n+2){color:var(--orange)}
.wordmark .l2 span:nth-child(5n+3){color:var(--bleu)}.wordmark .l2 span:nth-child(5n+4){color:var(--nuit)}.wordmark .l2 span:nth-child(5n){color:var(--vert)}
.ruban{display:inline-block;background:var(--rouge);color:#fff;font-family:var(--titre);font-weight:800;padding:.2em 1em .3em;border-radius:18px;box-shadow:0 5px 0 #b61f2b;transform:rotate(-1.5deg)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5em;font:800 1.05rem var(--titre);padding:.7em 1.5em;border-radius:999px;border:0;text-decoration:none;cursor:pointer;transition:transform .15s,box-shadow .15s;color:#fff;background:var(--rouge);box-shadow:0 5px 0 #b61f2b}
.btn:hover{transform:translateY(-2px)} .btn:active{transform:translateY(3px);box-shadow:0 2px 0 #b61f2b}
.btn.bleu{background:var(--bleu);box-shadow:0 5px 0 #1f5fa0}.btn.orange{background:var(--orange);box-shadow:0 5px 0 #c26a1a}
.btn.nuit{background:var(--nuit);box-shadow:0 5px 0 #0a1636}.btn.clair{background:#fff;color:var(--nuit);box-shadow:0 5px 0 #d9cdb8}
.btn[disabled]{opacity:.45;cursor:not-allowed}

/* Hero */
.hero{position:relative;overflow:hidden;padding:3.5rem 0 4rem;background:linear-gradient(180deg,#e7f3ff 0,var(--creme) 100%)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:2.5rem;align-items:center}
.hero .wordmark{font-size:clamp(2.6rem,6.5vw,5rem);margin-bottom:.25em}
.hero p.lead{font-size:1.3rem;max-width:34ch;margin:1.2em 0 1.6em}
.hero-pic{position:relative}
.hero-pic img{border-radius:42% 58% 55% 45%/50% 45% 55% 50%;border:8px solid #fff;box-shadow:var(--ombre);aspect-ratio:1/.95;object-fit:cover;animation:flotte 7s ease-in-out infinite}
.star{position:absolute;color:var(--jaune);font-size:2.2rem;animation:scint 3s infinite;filter:drop-shadow(0 2px 0 rgba(0,0,0,.12))}
.star.s1{top:-4%;right:6%}.star.s2{bottom:6%;left:-3%;font-size:1.6rem;animation-delay:.8s}.star.s3{top:30%;right:-4%;font-size:1.4rem;animation-delay:1.6s}
@keyframes flotte{50%{transform:translateY(-10px) rotate(1deg)}} @keyframes scint{50%{transform:scale(1.25) rotate(12deg);opacity:.75}}
.cloud{position:absolute;background:#fff;border-radius:999px;opacity:.85}
.cloud::before,.cloud::after{content:"";position:absolute;background:#fff;border-radius:50%}
.cloud.c1{width:150px;height:44px;left:3%;top:10%}.cloud.c1::before{width:60px;height:60px;left:20px;top:-28px}.cloud.c1::after{width:46px;height:46px;left:76px;top:-20px}
.cloud.c2{width:120px;height:36px;right:42%;bottom:8%}.cloud.c2::before{width:50px;height:50px;left:16px;top:-24px}.cloud.c2::after{width:36px;height:36px;left:60px;top:-14px}
@media(max-width:820px){.hero .wrap{grid-template-columns:1fr;text-align:center}.hero p.lead{margin-inline:auto}.hero-pic{max-width:420px;margin-inline:auto}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

/* Sections */
section{padding:4rem 0}
.sec-titre{text-align:center;max-width:46rem;margin:0 auto 2.5rem}
.sec-titre p{font-size:1.15rem}
.pastille{display:inline-block;background:var(--ciel);color:var(--nuit);font:800 .85rem var(--titre);padding:.25em 1em;border-radius:999px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:.8rem}
.bande{background:#fff;border-block:3px dashed rgba(22,40,91,.1)}
.bande-ciel{background:linear-gradient(180deg,#d9edff,#eaf5ff)}
.bande-nuit{background:var(--nuit);color:#fff}.bande-nuit .pastille{background:var(--jaune)}

/* Cards livres */
.livres{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:2rem}
.livre{background:#fff;border-radius:var(--rayon);box-shadow:var(--ombre);padding:1.2rem 1.2rem 1.6rem;text-align:center;display:flex;flex-direction:column;transition:transform .2s}
.livre:hover{transform:translateY(-6px) rotate(-.6deg)}
.livre .couv{border-radius:14px;overflow:hidden;box-shadow:6px 8px 0 rgba(22,40,91,.14);margin:.4rem auto 1.4rem;width:82%;background:#eee}
.livre .couv img{width:100%;aspect-ratio:900/937;object-fit:cover}
.livre h3{margin-bottom:.2em}.livre p{flex:1}
.livre .actions{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center}
.livre.bientot{background:repeating-linear-gradient(45deg,#fff 0 18px,#fff8ec 18px 36px);border:4px dashed var(--orange);box-shadow:none}
.livre.bientot .couv{background:var(--ciel);display:grid;place-items:center;aspect-ratio:900/937;box-shadow:none;font:800 6rem var(--titre);color:#fff;text-shadow:0 5px 0 var(--bleu)}
.badge{display:inline-block;background:var(--jaune);color:var(--nuit);font:800 .8rem var(--titre);padding:.15em .8em;border-radius:999px;margin-bottom:.6rem}

/* Personnages */
.persos{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.6rem}
.perso{background:#fff;border-radius:var(--rayon);box-shadow:var(--ombre);overflow:hidden;display:flex;flex-direction:column}
.perso .photo{background:linear-gradient(160deg,#dff0ff,#fff0d9);aspect-ratio:4/3.2;overflow:hidden}
.perso .photo img{width:100%;height:100%;object-fit:cover}
.perso .txt{padding:1.1rem 1.3rem 1.5rem}.perso h3{margin-bottom:.2em}
.role{display:inline-block;font:800 .78rem var(--titre);letter-spacing:.05em;text-transform:uppercase;padding:.15em .8em;border-radius:999px;color:#fff;background:var(--bleu);margin-bottom:.5rem}
.role.o{background:var(--orange)}.role.r{background:var(--rouge)}.role.v{background:var(--vert)}
.grand-perso{display:grid;grid-template-columns:1fr 1.1fr;gap:3rem;align-items:center;margin-bottom:4.5rem}
.grand-perso.inverse .poses{order:2}
.poses{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem}
.poses figure{margin:0;background:#fff;border-radius:20px;box-shadow:var(--ombre);overflow:hidden;text-align:center}
.poses figure:first-child{grid-column:1/-1}
.poses img{width:100%;aspect-ratio:1/.85;object-fit:cover}
.poses figure:first-child img{aspect-ratio:16/10}
.poses figcaption{font:800 .9rem var(--titre);padding:.45em .4em .6em;color:var(--nuit)}
.traits{list-style:none;padding:0;margin:1.2rem 0 0;display:flex;flex-wrap:wrap;gap:.6rem}
.traits li{background:#fff;border:3px solid var(--ciel);border-radius:999px;padding:.25em 1em;font-weight:800}
.traits.o li{border-color:var(--orange)}
@media(max-width:820px){.grand-perso{grid-template-columns:1fr}.grand-perso.inverse .poses{order:0}}

/* Valeurs */
.valeurs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.4rem}
.valeur{background:#fff;border-radius:var(--rayon);padding:1.6rem 1.2rem;text-align:center;box-shadow:var(--ombre)}
.valeur .ico{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;margin:0 auto .9rem;font-size:2.2rem;border:4px solid}
.valeur:nth-child(1) .ico{background:#ffe3e5;border-color:var(--rouge)}.valeur:nth-child(2) .ico{background:#e4f1ff;border-color:var(--bleu)}
.valeur:nth-child(3) .ico{background:#ffe9d3;border-color:var(--orange)}.valeur:nth-child(4) .ico{background:#fff3c9;border-color:var(--jaune)}

/* Palette */
.palette{display:flex;flex-wrap:wrap;gap:1.4rem;justify-content:center}
.palette div{text-align:center;font:800 .95rem var(--titre)}
.palette i{display:block;width:84px;height:84px;border-radius:50%;margin:0 auto .5rem;border:5px solid #fff;box-shadow:var(--ombre)}

/* Lecteur */
.lecteur{max-width:760px;margin:0 auto;text-align:center}
.page-cadre{position:relative;background:#fff;border-radius:22px;padding:14px;box-shadow:var(--ombre);border:4px solid #fff;aspect-ratio:1/1;overflow:hidden}
.page-cadre img{width:100%;height:100%;object-fit:contain;border-radius:12px;animation:tourne .45s ease}
@keyframes tourne{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
.lecteur-nav{display:flex;align-items:center;justify-content:center;gap:1rem;margin:1.4rem 0;flex-wrap:wrap}
.lecteur-nav .info{font:800 1.1rem var(--titre);min-width:8em}
.vignettes{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-bottom:1.5rem}
.vignettes button{padding:0;border:4px solid transparent;border-radius:12px;overflow:hidden;width:70px;height:70px;cursor:pointer;background:#fff;opacity:.7}
.vignettes button[aria-current="true"]{border-color:var(--rouge);opacity:1}
.vignettes img{width:100%;height:100%;object-fit:cover}
.fin-extrait{background:#fff;border-radius:var(--rayon);box-shadow:var(--ombre);padding:2.2rem 1.6rem;border:4px dashed var(--orange)}
.fin-extrait[hidden]{display:none}
.choix-livre{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-bottom:2rem}

/* Jeux */
.jeux-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1.4rem}
.jeu-carte{background:#fff;border-radius:var(--rayon);box-shadow:var(--ombre);padding:1.4rem;text-align:center;text-decoration:none;color:var(--nuit);transition:transform .2s}
.jeu-carte:hover{transform:translateY(-5px)}
.jeu-carte .e{font-size:3rem;display:block}
.jeu{background:#fff;border-radius:var(--rayon);box-shadow:var(--ombre);padding:2rem clamp(1rem,3vw,2.2rem);margin-bottom:3rem;scroll-margin-top:90px}
.jeu header{display:flex;flex-wrap:wrap;gap:.8rem 1.5rem;align-items:center;justify-content:space-between;margin-bottom:1.2rem}
.jeu header h2{margin:0}
.score{font:800 1.1rem var(--titre);background:var(--jaune);padding:.3em 1em;border-radius:999px}
.memo{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;max-width:620px;margin:0 auto}
.carte{perspective:700px;aspect-ratio:1;border:0;background:none;padding:0;cursor:pointer}
.carte .in{display:block;position:relative;width:100%;height:100%;transition:transform .5s;transform-style:preserve-3d}
.carte.retournee .in,.carte.trouvee .in{transform:rotateY(180deg)}
.carte .face{position:absolute;inset:0;border-radius:16px;backface-visibility:hidden;overflow:hidden;border:4px solid #fff;box-shadow:0 4px 12px rgba(22,40,91,.18)}
.carte .dos{background:repeating-linear-gradient(45deg,var(--rouge) 0 12px,#f05a65 12px 24px);display:grid;place-items:center;font-size:2.2rem}
.carte .devant{transform:rotateY(180deg);background:#fff}
.carte .devant img{width:100%;height:100%;object-fit:cover}
.carte.trouvee .devant{border-color:var(--vert)}
.quiz-q{font:800 1.5rem var(--titre);margin-bottom:1rem}
.quiz-rep{display:grid;gap:.8rem}
.quiz-rep button{font:800 1.1rem var(--texte);text-align:left;padding:.9em 1.2em;border-radius:18px;border:4px solid var(--ciel);background:#f4faff;color:var(--nuit);cursor:pointer}
.quiz-rep button:hover:not([disabled]){background:var(--ciel)}
.quiz-rep button.ok{background:#d6f5e0;border-color:var(--vert)}.quiz-rep button.ko{background:#ffe0e2;border-color:var(--rouge)}
.quiz-retour{min-height:3rem;font-weight:800;margin:1rem 0}
.barre{height:14px;background:#e9eef7;border-radius:99px;overflow:hidden;margin-bottom:1.4rem}.barre i{display:block;height:100%;background:var(--orange);width:0;transition:width .4s}
.compte-zone{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:center;font-size:2.4rem;background:#eaf5ff;border-radius:22px;padding:1.2rem;min-height:170px;align-content:center;margin-bottom:1.2rem}
.compte-zone span{display:inline-block;animation:scint 4s infinite}
.compte-rep{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}
.compte-rep button{width:72px;height:72px;border-radius:50%;font:800 1.8rem var(--titre);border:0;background:var(--orange);color:#fff;cursor:pointer;box-shadow:0 5px 0 #c26a1a}
.compte-rep button:disabled{opacity:.5}
.colo{display:grid;grid-template-columns:1.6fr 1fr;gap:2rem;align-items:center}
.colo svg{width:100%;height:auto;background:linear-gradient(#cfe9ff,#eaf6ff 70%,#cfe7b8 70%);border-radius:22px;border:4px solid #fff;box-shadow:var(--ombre)}
.colo svg [data-z]{cursor:pointer;transition:fill .15s}
.colo svg [data-z]:hover{filter:brightness(1.08)}
.crayons{display:flex;flex-wrap:wrap;gap:.7rem;margin:1rem 0}
.crayons button{width:46px;height:46px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 3px rgba(22,40,91,.18);cursor:pointer}
.crayons button[aria-pressed="true"]{box-shadow:0 0 0 5px var(--nuit);transform:scale(1.12)}
@media(max-width:760px){.colo{grid-template-columns:1fr}.memo{grid-template-columns:repeat(4,1fr);gap:.5rem}}
.imprimables{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.4rem}
.imp{background:#fff;border-radius:var(--rayon);box-shadow:var(--ombre);padding:1rem;text-align:center}
.imp img{border-radius:12px;border:3px solid #f1e6d2;margin-bottom:.8rem;aspect-ratio:1;object-fit:cover}
.imp h3{font-size:1.1rem;margin-bottom:.6rem}

/* À propos */
.deux{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.deux img{border-radius:var(--rayon);box-shadow:var(--ombre);border:6px solid #fff}
@media(max-width:820px){.deux{grid-template-columns:1fr}}
.etapes{counter-reset:e;list-style:none;padding:0;display:grid;gap:1rem}
.etapes li{counter-increment:e;position:relative;background:#fff;border-radius:20px;padding:1rem 1.2rem 1rem 4.2rem;box-shadow:var(--ombre)}
.etapes li::before{content:counter(e);position:absolute;left:1rem;top:50%;transform:translateY(-50%);width:2.4rem;height:2.4rem;border-radius:50%;background:var(--rouge);color:#fff;font:800 1.2rem var(--titre);display:grid;place-items:center}
.metiers{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center}
.metiers span{background:#fff;border:4px solid var(--ciel);border-radius:999px;padding:.4em 1.2em;font:800 1.1rem var(--titre)}
.metiers span.fait{background:var(--rouge);border-color:var(--rouge);color:#fff}
.metiers span.idee{border-style:dashed;border-color:var(--orange)}

/* Footer */
.site-footer{background:var(--nuit);color:#dfe7ff;padding:3rem 0 2rem;margin-top:2rem;position:relative}
.site-footer::before{content:"";position:absolute;left:0;right:0;top:-24px;height:24px;background:radial-gradient(circle at 20px 24px,var(--nuit) 20px,transparent 21px) 0 0/40px 24px repeat-x}
.site-footer .wrap{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem}
.site-footer h4{font:800 1.1rem var(--titre);color:#fff;margin:0 0 .6rem}
.site-footer a{color:#cfe3ff}.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer .copy{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.15);padding-top:1rem;font-size:.9rem;opacity:.8}
@media(max-width:700px){.site-footer .wrap{grid-template-columns:1fr}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hero .pastille{margin-bottom:1.3rem}

/* Histoire complète */
.brand img{object-position:22% 35%}
.histoire{max-width:860px}
.scene{margin-bottom:3.2rem}
.scene figure{position:relative;margin:0;border-radius:28px;overflow:hidden;border:8px solid #fff;box-shadow:var(--ombre);background:#fff}
.scene figure img{width:100%;height:auto;display:block}
.scene .num{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);background:var(--rouge);color:#fff;font:800 1.1rem var(--titre);min-width:2.2rem;height:2.2rem;border-radius:99px;display:grid;place-items:center;padding:0 .7rem;box-shadow:0 3px 0 #b61f2b}
.scene .texte{background:#fff;border-radius:22px;box-shadow:var(--ombre);padding:1.4rem 1.8rem;margin:-1.2rem 1.2rem 0;position:relative;text-align:center;font-size:clamp(1.15rem,2.4vw,1.45rem);line-height:1.55}
.scene .texte p{margin:0 0 .6em}.scene .texte p:last-child{margin:0}
.scene .texte .traits{justify-content:center;margin-top:1rem}
.scene-fin .texte{border:4px dashed var(--orange)}
.poses{grid-template-columns:repeat(2,1fr)}
.poses figure:first-child img{aspect-ratio:4/3}
.poses figure:not(:first-child) img{aspect-ratio:1/.9}
