/* Kapimoo — un seul look clair, assumé (écran pour enfants).
   Les couleurs de fond changent par monde via --bg / --bg2 / --ink / --accent (posés en JS). */
:root {
  --bg: #FFF8EC;
  --bg2: #E6F2FF;
  --ink: #2B3040;
  --accent: #2F6FD6;
  --card: #FFFFFF;
  --line: rgba(43, 48, 64, .12);
  --sun: #FFC81E;
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(120% 80% at 0% 0%, var(--bg) 40%, var(--bg2) 100%) fixed;
  background-color: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--body);
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s;
}
button { font: inherit; color: inherit; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#app {
  min-height: 100%;
  max-width: 1040px; margin: 0 auto;
  padding-block: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- accueil ---------- */
.home { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.hero-head { display: flex; align-items: center; gap: 14px; }
.logo { width: 68px; height: 68px; flex: none; }
.logo > svg { width: 100%; height: 100%; overflow: visible; }
.parents-btn {
  margin-left: auto; align-self: flex-start; flex: none; display: flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; background: var(--card); color: var(--ink); border-radius: 16px;
  padding: 8px 14px 8px 10px; box-shadow: 0 3px 0 var(--line); text-align: left;
}
.parents-btn svg { width: 22px; height: 22px; color: var(--accent); }
.parents-btn span { display: flex; flex-direction: column; font: 800 1rem/1.1 var(--display); }
.parents-btn small { font: 600 .75rem var(--body); opacity: .7; }
.parents-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.hero-head h1 { font: 800 clamp(2rem, 6vw, 3rem)/1 var(--display); margin: 0; letter-spacing: -.01em; }
.tag { margin: 4px 0 0; color: color-mix(in srgb, var(--ink) 70%, transparent); font-weight: 600; }
.pick { font: 800 1.5rem/1.1 var(--display); margin: 8px 0 0; }
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.world {
  border: none; cursor: pointer; text-align: center;
  background: linear-gradient(160deg, var(--wbg), var(--wbg2));
  color: var(--wink); border-radius: 28px; padding: 14px 10px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--wacc) 35%, transparent);
  transition: transform .15s;
}
.world:hover { transform: translateY(-3px) rotate(-1deg); }
.world:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--wacc) 35%, transparent); }
.world-art { width: 100%; max-width: 170px; aspect-ratio: 1; }
.world-art > svg { width: 100%; height: 100%; }
.world-name { font: 800 1.45rem/1 var(--display); margin-top: 4px; }
.world-fr { font-size: .85rem; font-weight: 600; opacity: .75; }
.world-stars { display: flex; gap: 4px; margin-top: 8px; }
.world-stars i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .8); border: 2px solid color-mix(in srgb, var(--wacc) 40%, transparent); }
.world-stars i.on { background: var(--sun); border-color: #D49B0E; }
.parent { background: var(--card); border-radius: 22px; padding: 16px 18px; max-width: 68ch; box-shadow: 0 3px 0 var(--line); }
.parent h3 { font: 800 1.05rem var(--display); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.parent p { margin: 6px 0 0; }

/* thème de la semaine */
.weeks { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.weeks:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.week-card {
  border: none; cursor: pointer; text-align: left; color: var(--wink);
  background: linear-gradient(135deg, var(--wbg), var(--wbg2)); border-radius: 30px;
  display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--wacc) 35%, transparent); transition: transform .15s;
}
.week-card:hover { transform: translateY(-3px); }
.week-card:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--wacc) 35%, transparent); }
.week-art { width: clamp(110px, 22vw, 200px); flex: none; aspect-ratio: 1; }
.week-art > svg { width: 100%; height: 100%; }
.week-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.week-tag {
  align-self: flex-start; font: 800 .8rem var(--display); letter-spacing: .04em; text-transform: uppercase;
  background: var(--wacc); color: #fff; padding: 3px 12px; border-radius: 999px;
}
.week-text strong { font: 800 clamp(1.6rem, 4.5vw, 2.4rem)/1 var(--display); margin-top: 4px; }
.week-fr { font-weight: 700; opacity: .75; font-size: .9rem; }
.week-words { font-size: .85rem; opacity: .8; }
.week-words em { font-style: normal; font-weight: 700; }
.week-card .world-stars { margin-top: 6px; }
.week-card .world-stars i { border-color: color-mix(in srgb, var(--wacc) 40%, transparent); }
.week-card.previous { padding: 12px 14px; gap: 10px; }
.week-card.previous .week-art { width: 84px; }
.week-card.previous .week-tag { background: color-mix(in srgb, var(--wacc) 70%, #fff); }
.week-card.previous strong { font-size: 1.3rem; }

/* guide */
.theme-side { display: flex; flex-direction: column; gap: 14px; align-items: center; align-self: center; width: 100%; }
.theme-art.weekly { position: relative; }
.guide-pop { position: absolute; right: -2%; top: 0; width: 34%; animation: bob 2.4s ease-in-out infinite; }
/* le guide choisi saute aussi sur les cartes de l'accueil : « ta sirène part en aventure » */
.home-guides { align-items: flex-start; margin: -4px 0 2px; }
.home-guides > span { font-size: 1rem; color: var(--ink); opacity: .8; }
.home-guides .guide.on { box-shadow: 0 3px 0 var(--accent); }
.week-art { aspect-ratio: 260 / 200; }
.adv-art { aspect-ratio: 260 / 200; max-width: 160px; }
.adv.world .adv-art { aspect-ratio: 1; max-width: 110px; }
.hero-guide { animation: bob 2.4s ease-in-out infinite; transform-origin: 75px 180px; }
.guide-pop svg { width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .1)); }
.guides { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.guides > span { font: 800 1.1rem var(--display); }
.guides > div { display: flex; gap: 8px; }
.guide {
  width: clamp(72px, 17vw, 110px); aspect-ratio: 1; border-radius: 24px; border: 3px solid transparent;
  background: var(--card); padding: 6px; cursor: pointer; box-shadow: 0 3px 0 var(--line); transform-origin: 50% 90%;
}
.guide svg { width: 100%; height: 100%; }
.guide.on { border-color: var(--accent); transform: translateY(-4px); }
.guide.on svg { animation: bob 2.4s ease-in-out infinite; }
.guide.hello { animation: dojump 1s cubic-bezier(.3, 1.4, .5, 1); }
.home-guides > div { gap: clamp(8px, 2.5vw, 18px); padding-top: 14px; }
/* temps de jeu : anneau autour du guide, qui se vide */
.timer { margin-left: auto; position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; --p: 1; }
.timer-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 5; }
.timer-ring .track { stroke: rgba(255, 255, 255, .7); }
.timer-ring .left { stroke: #3DB86A; stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: calc(163.4 * (1 - var(--p))); transition: stroke-dashoffset 1s linear, stroke .3s; }
.timer.low .left { stroke: #FF8A2A; }
.timer.low { animation: lowpulse 1.2s ease-in-out infinite; }
@keyframes lowpulse { 50% { transform: scale(1.08); } }
.bar-guide { position: relative; width: 46px; height: 46px; flex: none; animation: bob 2.4s ease-in-out infinite; }
.bar-guide svg { width: 100%; height: 100%; }
.bar-guide.jump { animation: jump .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jump { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22px) scale(1.25) rotate(-8deg); } 70% { transform: translateY(0) scale(.95); } 100% { transform: none; } }
.voice-info { font-size: .9rem; opacity: .8; }

/* fin du temps de jeu */
.rest { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.rest-art { position: relative; width: min(300px, 70vw); aspect-ratio: 1; }
.rest-guide { position: absolute; left: 22%; right: 22%; top: 0; height: 60%; border: none; background: none; padding: 0; cursor: pointer; z-index: 2; transition: transform .9s cubic-bezier(.4, 0, .2, 1), top .9s; transform-origin: 50% 90%; }
.rest-guide.awake { animation: bob 2.4s ease-in-out infinite; }
.rest-guide.tucked { top: 14%; transform: scale(.72) rotate(-10deg); animation: none; }
.rest-guide.asleep { animation: sleep 3s ease-in-out infinite; }
.rest-guide svg { width: 100%; height: 100%; }
.rest-bed { position: absolute; left: 4%; right: 4%; bottom: 0; z-index: 1; }
.rest-bed svg { width: 100%; height: auto; display: block; overflow: visible; }
.rest-blanket { position: absolute; left: 4%; right: 4%; bottom: 0; z-index: 3; transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
.rest-blanket svg { width: 100%; height: auto; display: block; }
.rest-blanket.covered { transform: translateY(-9%); }
.rest .zzz { z-index: 4; }
/* la dernière minute de jeu : le ciel s'assombrit doucement, le personnage bâille */
.play::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(40, 30, 90, .45), rgba(40, 30, 90, .2)); opacity: 0; transition: opacity 50s linear; z-index: 5; }
.play.dusk::after { opacity: 1; }
.yawn { animation: yawn 1.4s ease-in-out !important; }
@keyframes yawn { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.06, .92) rotate(-6deg); } 60% { transform: scale(.96, 1.08) rotate(4deg); } }
.rest-moon { position: absolute; top: 0; left: 0; width: 30%; }
.rest-moon svg { width: 100%; height: auto; }
.zzz { position: absolute; top: 4%; right: 6%; font: 800 2rem var(--display); color: var(--accent); }
.zzz i { font-style: normal; display: inline-block; animation: zzz 2.4s ease-in-out infinite; }
.zzz i:nth-child(2) { font-size: .8em; animation-delay: .4s; }
.zzz i:nth-child(3) { font-size: .6em; animation-delay: .8s; }
@keyframes zzz { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-10px); opacity: 1; } }
@keyframes sleep { 50% { transform: rotate(-12deg) scale(1.03); } }
.rest h1 { font: 800 clamp(2.2rem, 7vw, 3.4rem)/1 var(--display); margin: 8px 0 0; }
.rest-en { font: 800 1.5rem var(--display); margin: 0; color: var(--accent); }
.rest-fr { margin: 0 auto; max-width: 26rem; opacity: .7; }
.rest-parents { max-width: 30rem; margin: 10px auto 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); font-size: .9rem; line-height: 1.4; }
.psec.invite { border-top: 0; padding: 14px; border-radius: 16px; background: var(--bg2, #FFF4FA); }
.psec.invite .google { align-self: stretch; }
.parents-line { margin: 4px 16px 0; font-size: .95rem; text-align: center; }
.parent-link { border: none; background: none; color: var(--accent); font: 700 .95rem var(--body); text-decoration: underline; cursor: pointer; padding: 4px; margin-top: 16px; }
.time-info .parent-link { margin: 0; }

/* note de fin de thème */
.rating { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rating > span { font: 800 1.2rem var(--display); }
.rating > div { display: flex; gap: 12px; }
.rating button { width: 64px; height: 64px; border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; transition: transform .15s; }
.rating button svg { width: 100%; height: 100%; }
.rating button:hover { transform: scale(1.08); }
.rating button.on { transform: scale(1.22); box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--accent); }

/* partage */
.btn.small { font-size: 1rem; padding: 8px 18px; }
.share-line { margin-top: 10px; }
.privacy { font-size: .8rem; opacity: .65; }
.share-url { width: 100%; font: 600 .9rem var(--body); padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120;
  background: var(--ink); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  animation: toast 3.2s ease forwards; max-width: calc(100vw - 32px); text-align: center;
}
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.optout { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; text-align: left; max-width: 34ch; opacity: .8; cursor: pointer; }
.optout input { margin-top: 3px; accent-color: var(--accent); }

/* compte et essai */
.week-card.busy { opacity: .7; cursor: progress; }
.card.signup { gap: 10px; }
.signup-art { position: relative; width: 120px; height: 104px; }
.signup-art > span { position: absolute; left: 0; bottom: 0; width: 96px; height: 96px; animation: bob 2.4s ease-in-out infinite; }
.signup-art > span svg { width: 100%; height: 100%; }
.signup-art > svg { position: absolute; right: 0; top: 0; width: 46px; height: 46px; animation: pop .5s ease-out; }
.scene-tile.busy { opacity: .7; cursor: progress; }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 320px; background: var(--card); box-shadow: 0 4px 0 var(--line), inset 0 0 0 2px var(--line); }
.btn.google svg { width: 22px; height: 22px; }
.or { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 320px; opacity: .6; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.acct-form { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.acct-form input { font: 600 1rem var(--body); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.acct-form input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.acct-form .btn { align-self: stretch; }
.acct-form .btn:disabled { opacity: .6; cursor: progress; }
.form-error { margin: 0; min-height: 1.2em; color: #C0392B; font-weight: 700; font-size: .9rem; }
.fine { font-size: .8rem; opacity: .7; max-width: 36ch; margin: 0; }
.fine a { color: var(--accent); }
.acct { background: var(--bg); border-radius: 14px; padding: 10px 14px; font-size: .95rem; line-height: 1.5; }
.acct .parent-link { margin: 0; padding: 0; }

/* espace parents : sections */
.card.panel { max-width: 520px; text-align: left; align-items: stretch; }
.card.panel > h2 { text-align: center; }
.psec { border-top: 2px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.psec h3 { margin: 0; font: 800 .85rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.psec p { margin: 0; opacity: 1; }
.psec .limit-pick { align-items: flex-start; }
.psec .limit-pick > div { justify-content: flex-start; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: .95rem; }
.kv dt { font-weight: 700; opacity: .7; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.muted { opacity: .65; }
.btn.danger { background: #E8453C; color: #fff; box-shadow: 0 4px 0 #A8302A; }
.btn.ghost.danger { background: var(--card); color: #C0392B; box-shadow: 0 4px 0 var(--line), inset 0 0 0 2px #F3C2BD; }
.legal-links { text-align: center; font-size: .85rem; }
.legal-links a { color: var(--accent); }
.card.panel > .btn { align-self: center; }

/* espace parents */
.gate-display { min-height: 52px; min-width: 120px; padding: 6px 16px; border-radius: 16px; background: var(--bg); font: 800 2rem/40px var(--display); letter-spacing: .1em; }
.gate-display.wrong { animation: wobble .4s; background: #FFE1DA; }
.keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.keypad button { height: 56px; border: none; border-radius: 16px; background: var(--bg2); font: 800 1.4rem var(--display); cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.keypad button.ok { background: var(--sun); }
.keypad button:active { transform: translateY(2px); box-shadow: none; }
.limit-pick { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.limit-pick > span { font-weight: 700; }
.limit-pick > div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.limit-pick button { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font: 800 1rem var(--display); cursor: pointer; }
.limit-pick button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- barre ---------- */
.bar { display: flex; align-items: center; gap: 12px; }
.back {
  width: 48px; height: 48px; flex: none; border: none; border-radius: 16px; cursor: pointer;
  background: var(--card); box-shadow: 0 3px 0 var(--line); display: grid; place-items: center;
}
.back svg { width: 24px; height: 24px; }
.bar-title { display: flex; flex-direction: column; min-width: 0; background: var(--card); border-radius: 16px; padding: 6px 14px; box-shadow: 0 3px 0 var(--line); }
.bar-title strong { font: 800 1.4rem/1.05 var(--display); }
.bar-title span { font-size: .85rem; font-weight: 600; opacity: .75; }

/* ---------- écran thème ---------- */
.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto 1fr; gap: 18px; }
.theme .bar { grid-column: 1 / -1; }
.theme-art { align-self: center; max-width: 360px; width: 100%; margin: 0 auto; animation: bob 3s ease-in-out infinite; }
.theme-art > svg { width: 100%; height: auto; }
.path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.scene-tile {
  width: 100%; border: none; cursor: pointer; text-align: left; position: relative;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  background: var(--card); border-radius: 20px; padding: 10px 14px 10px 10px; box-shadow: 0 4px 0 var(--line);
}
.scene-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.scene-tile .num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.4rem var(--display); background: var(--accent); color: #fff;
}
.scene-tile.done .num { background: var(--sun); color: var(--ink); }
.scene-name { display: flex; flex-direction: column; min-width: 0; }
.scene-name strong { font: 800 1.15rem/1.1 var(--display); }
.scene-name span { font-size: .85rem; opacity: .7; }
.mech { font: 800 .95rem/1.1 var(--display); color: var(--accent); text-align: right; display: flex; flex-direction: column; }
.mech small { font: 600 .72rem var(--body); color: var(--ink); opacity: .6; }
.tile-star { position: absolute; top: -8px; right: -6px; width: 30px; height: 30px; }

/* ---------- jeu ---------- */
.play { display: flex; flex-direction: column; gap: 12px; height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); min-height: 520px; }
.instr { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 22px; padding: 12px 16px; box-shadow: 0 4px 0 var(--line); }
.speak {
  flex: none; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 60%, #000);
}
.speak:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.speak svg { width: 30px; height: 30px; }
.instr-text { min-width: 0; }
.instr .en { font: 800 clamp(1.3rem, 4vw, 2.1rem)/1.1 var(--display); text-wrap: balance; }
.instr .en b { color: var(--accent); }
.instr .fr { font-size: .9rem; opacity: .65; margin-top: 2px; }
.steps { margin-left: auto; display: flex; gap: 6px; flex: none; }
.steps i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.steps i.done { background: var(--sun); }

.stage { flex: 1; min-height: 0; position: relative; }

/* touch */
.touch-wrap { height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.touch-field { height: 100%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: clamp(8px, 3vw, 28px); }
/* l'animateur : le personnage de l'enfant, à côté des cibles, qui saute ou penche la tête */
.coach { width: clamp(90px, 18vw, 200px); align-self: end; transform-origin: 50% 90%; animation: bob 2.6s ease-in-out infinite; }
.coach > svg { width: 100%; height: auto; display: block; }
.coach.jump { animation: jump .7s cubic-bezier(.3, 1.6, .5, 1); }
.coach.hmm { animation: hmm .7s ease-in-out; }
.touch-item {
  width: clamp(110px, 26vw, 220px); aspect-ratio: 1; border: none; background: rgba(255, 255, 255, .55);
  border-radius: 30px; padding: 12px; cursor: pointer; transform: rotate(var(--r));
  transition: transform .2s;
}
.touch-item svg { width: 100%; height: 100%; pointer-events: none; }
.touch-item:hover { transform: rotate(0) scale(1.05); }
.touch-item.found { animation: found .8s ease-out; background: #fff; }

/* drag */
.stage-drag { display: flex; gap: 16px; justify-content: center; align-items: stretch; }
.target {
  flex: 1; max-width: 380px; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 28px; transition: background .15s, transform .15s;
}
.target.hover { background: rgba(255, 255, 255, .6); transform: scale(1.03); }
.target-art { width: 100%; max-width: 240px; aspect-ratio: 1; }
.target-art svg { width: 100%; height: 100%; }
.slot { position: absolute; inset: 14% 8% 30%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; pointer-events: none; }
.slot svg { width: clamp(40px, 9vw, 70px); height: clamp(40px, 9vw, 70px); animation: pop .35s ease-out; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .15)); }
.label {
  border: none; background: var(--card); border-radius: 999px; padding: 4px 14px; cursor: pointer;
  font: 800 1.15rem var(--display); display: flex; align-items: center; gap: 6px; box-shadow: 0 3px 0 var(--line);
}
.label svg { width: 16px; height: 16px; color: var(--accent); }
.tray {
  background: rgba(255, 255, 255, .7); border-radius: 26px; padding: 12px;
  display: flex; justify-content: center; gap: clamp(6px, 2vw, 18px); flex-wrap: wrap;
  box-shadow: inset 0 -6px 0 var(--line);
}
.item { width: clamp(66px, 15vw, 100px); aspect-ratio: 1; touch-action: none; cursor: grab; position: relative; z-index: 1; }
.item svg { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .12)); }
.item.dragging { z-index: 50; cursor: grabbing; }
.item.back { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.item.gone { visibility: hidden; }

/* paint */
.stage-paint { display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; overflow: hidden; }
.paint-art { width: 100%; height: 100%; min-height: 0; max-width: 560px; }
.paint-art > svg { width: 100%; height: 100%; }
.paint-art [data-part] { transition: fill .3s; }
.paint-art [data-part]:hover { filter: brightness(.95); }
.paint-art.splash { animation: splash .5s ease-out; }
/* Paint it en pâte à modeler : les objets en pâte blanche, coloriés un par un */
.paint-clay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 2vmin 4vmin; max-width: 760px; }
.pobj { border: 0; background: none; padding: 0; cursor: pointer; width: min(30vw, 34vh, 220px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 24px; }
.pobj img { width: 100%; height: 100%; object-fit: contain; transition: filter .45s ease; filter: drop-shadow(0 6px 8px rgba(40, 20, 60, .18)); }
.pobj.painted { animation: splash .5s ease-out; }
.pobj.hint { animation: hint 1.6s ease-in-out infinite, glow 1.6s ease-in-out infinite; }
.tray.pots { gap: clamp(8px, 2.5vw, 22px); }
.pot { border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 18px; }
.pot span {
  width: clamp(52px, 11vw, 72px); aspect-ratio: 1; border-radius: 50% 50% 46% 46%;
  background: var(--pot); border: 4px solid rgba(0, 0, 0, .14); transition: transform .15s;
}
.pot em { font: 800 .95rem var(--display); font-style: normal; }
.pot.on span { transform: translateY(-8px) scale(1.12); box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--accent); }
.tray.nudge { animation: wobble .4s; }

/* catch */
.sky { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; background: rgba(255, 255, 255, .35); }
.fall { position: absolute; top: 0; border: none; background: none; padding: 0; cursor: pointer; touch-action: none; }
.fall svg { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .12)); }
.fall.caught { animation: caught .4s ease-out forwards; }
.fall.born { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.basket { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.caught-count { display: flex; gap: 8px; background: var(--card); padding: 8px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--line); }
.caught-count i { width: 22px; height: 22px; border-radius: 50%; background: var(--line); }
.caught-count i.on { background: var(--sun); animation: pop .3s; }

/* fin de scène */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow-y: auto; background: rgba(43, 48, 64, .45); padding: 16px; }
.card { background: var(--card); border-radius: 30px; padding: 26px 22px; max-width: 440px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.card h2 { font: 800 2rem/1 var(--display); margin: 0; }
.card p { margin: 0; opacity: .75; max-width: 36ch; }
.big-star { width: 100px; height: 100px; animation: pop .5s ease-out; }
.words { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.words button { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 14px; cursor: pointer; font: 800 1rem var(--display); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.btn { border: none; cursor: pointer; font: 800 1.15rem var(--display); background: var(--sun); color: var(--ink); padding: 10px 24px; border-radius: 999px; box-shadow: 0 4px 0 #D49B0E; }
.btn.ghost { background: var(--card); box-shadow: 0 4px 0 var(--line), inset 0 0 0 2px var(--line); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #D49B0E; }

/* réussite : éclat d'étoiles + badge */
.burst { position: fixed; z-index: 90; width: 0; height: 0; pointer-events: none; }
.burst span { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; animation: fly .95s cubic-bezier(.2, .8, .3, 1) forwards; }
.burst svg { width: 100%; height: 100%; }
@keyframes fly {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); opacity: 0; }
}
.yay { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; }
.yay-badge { display: flex; flex-direction: column; align-items: center; animation: yay 1.15s ease-out forwards; }
.yay-badge svg { width: clamp(110px, 22vw, 170px); height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .12)); }
.yay-badge span { font: 800 clamp(2rem, 6vw, 3rem)/1 var(--display); color: #2E9A57; -webkit-text-stroke: 2px #fff; paint-order: stroke; margin-top: 4px; }
@keyframes yay {
  0% { transform: scale(.2); opacity: 0; }
  25% { transform: scale(1.15); opacity: 1; }
  40% { transform: scale(1); }
  80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.9); opacity: 0; }
}

/* indice : l'objet attendu tremble et brille */
@keyframes hint {
  0%, 55%, 100% { rotate: 0deg; scale: 1; }
  62% { rotate: -12deg; scale: 1.12; }
  70% { rotate: 12deg; scale: 1.12; }
  78% { rotate: -8deg; scale: 1.08; }
  86% { rotate: 6deg; scale: 1.04; }
}
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 200, 30, 0)); } 50% { filter: drop-shadow(0 0 14px rgba(255, 200, 30, .95)); } }
/* les objets respirent, chacun à son rythme (js/sfx.js liveItems) ; l'indice, la réussite et le glisser passent devant */
.idle { animation: idle var(--idle-d, 3s) ease-in-out infinite; animation-delay: var(--idle-delay, 0s); }
@keyframes idle { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(var(--r, 0deg)) translateY(-6px) scale(1.03); } }
.item.dragging, .item.gone, .item.back { animation: none; }
.touch-item.hint, .item.hint, .pot.hint, .fall.hint { animation: hint 1.6s ease-in-out infinite, glow 1.6s ease-in-out infinite; }
.hint.strong { animation: hint .7s ease-in-out infinite, glow .7s ease-in-out infinite, blinkhint .7s ease-in-out infinite !important; }
@keyframes blinkhint { 50% { opacity: .35; } }
.target.hint { animation: glow 1.6s ease-in-out infinite; }
.paint-art [data-part].hint { transform-box: fill-box; transform-origin: center; animation: partpulse 1.2s ease-in-out infinite, glow 1.2s ease-in-out infinite; }
@keyframes partpulse { 0%, 100% { stroke-width: 3.5; } 50% { stroke-width: 9; stroke: #FFC81E; } }

/* ---------- univers vivant : décors, respiration, réactions ---------- */
.decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.decor-svg { width: 100%; height: 100%; display: block; }
/* décor en pâte à modeler : remplit l'écran, recadré au centre (le sol reste visible sous les objets) */
.decor-img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 65%; }
.has-decor > :not(.decor) { position: relative; z-index: 1; }
.has-decor .tray { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(43, 48, 64, .12); }
.has-decor .sky { background: transparent; }
.has-decor .theme-side .theme-art { filter: drop-shadow(0 10px 0 rgba(43, 48, 64, .08)); }

.cloud { animation: drift var(--dur, 80s) linear infinite; }
@keyframes drift { from { transform: translateX(-500px); } to { transform: translateX(1400px); } }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bubble { animation: rise var(--dur, 5s) ease-in infinite; animation-delay: var(--d, 0s); }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-640px); opacity: 0; } }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
.puff { animation: puff 4s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes puff { 0% { transform: translate(0, 40px) scale(.4); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(40px, -120px) scale(1.4); opacity: 0; } }

.blink { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.alive { transform-origin: 50% 92%; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .975); } }

.touch-item { background: transparent; position: relative; }
.touch-item::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(43, 48, 64, .22), transparent); z-index: -1; }
.touch-item:hover { transform: rotate(0) scale(1.06); }
.touch-item.found { background: transparent; animation: found .8s ease-out; }

.target.happy .target-art { animation: squash .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes squash { 0% { transform: scale(1); } 30% { transform: scale(1.12, .9); } 60% { transform: scale(.95, 1.06); } 100% { transform: scale(1); } }
.barn-cover { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.target.closing .barn-cover { animation: barnclose 1.9s ease-in-out; }
@keyframes barnclose { 0% { transform: scaleY(0); } 22% { transform: scaleY(1); } 72% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.target[data-t="barn"] .slot { inset: 8% 30% 52%; }
.target[data-t="barn"] .slot svg { width: clamp(34px, 6vw, 50px); height: clamp(34px, 6vw, 50px); }
.slot svg.peek { animation: peek 1.9s ease-out; }
@keyframes peek { 0%, 35% { transform: translateY(26px); opacity: 0; } 60% { transform: translateY(-8px); opacity: 1; } 75% { transform: translateY(0) rotate(-8deg); } 88% { transform: rotate(8deg); } 100% { transform: none; } }

.float-heart { position: fixed; z-index: 92; width: 46px; height: 46px; margin: -23px 0 0 -23px; pointer-events: none; animation: floatheart 1.25s ease-out forwards; }
.float-heart svg { width: 100%; height: 100%; }
@keyframes floatheart { 0% { transform: translateY(10px) scale(.3); opacity: 0; } 25% { transform: translateY(-10px) scale(1.15); opacity: 1; } 100% { transform: translateY(-90px) scale(.9); opacity: 0; } }

/* animations */
@keyframes pop { 0% { transform: scale(.3) } 70% { transform: scale(1.15) } 100% { transform: scale(1) } }
@keyframes found { 0% { transform: scale(1) } 40% { transform: scale(1.25) rotate(6deg) } 100% { transform: scale(1) rotate(var(--r)) } }
@keyframes wobble { 0%, 100% { rotate: 0deg } 25% { rotate: -10deg } 75% { rotate: 10deg } }
.wobble { animation: wobble .4s; }
@keyframes splash { 0% { transform: scale(1) } 40% { transform: scale(1.06) } 100% { transform: scale(1) } }
@keyframes caught { to { scale: 1.6; opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
/* le personnage penche la tête quand c'est raté */
.bar-guide.hmm { animation: hmm .7s ease-in-out; }
@keyframes hmm { 0%, 100% { transform: rotate(0) } 30% { transform: rotate(-14deg) } 70% { transform: rotate(10deg) } }
/* pluie de confettis (fin de scène) */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 2px; animation: confetti var(--dur, 2.4s) ease-in var(--delay, 0s) forwards; opacity: 0; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--sway, 0), 110vh) rotate(var(--rot, 360deg)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .idle, .bar-guide.hmm, .coach, .spot .inside { animation: none; } .confetti { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* responsive */
@media (max-width: 820px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .theme { grid-template-columns: 1fr; }
  .theme-art { max-width: 200px; }
  .weeks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .instr { padding: 10px 12px; gap: 10px; }
  .speak { width: 50px; height: 50px; }
  .steps { display: none; }
  .stage-drag { gap: 8px; }
  .mech small { display: none; }
  .week-card { padding: 12px; gap: 10px; }
  .hero-head, .home-link { gap: 10px; }
  .logo { width: 52px; height: 52px; }
  .tag { font-size: .85rem; }
  .parents-btn { padding: 8px 10px; }
  .parents-btn small { display: none; }
  .week-tag { font-size: .7rem; }
  .week-art { width: 96px; }
  .week-words { display: none; }
}
.has-decor .guides > span { background: rgba(255,255,255,.88); padding: .2em .8em; border-radius: 999px; box-shadow: 0 2px 6px rgba(61,53,82,.12); }
/* les cibles et objets se détachent toujours du décor */
.has-decor .target-art > svg, .has-decor .touch-item > svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.95)) drop-shadow(0 4px 10px rgba(61,53,82,.18)); }
.offer { margin: -2px 4px 0; font-size: .92rem; color: color-mix(in srgb, var(--ink) 75%, transparent); }
/* rapport parent */
.report h4 { margin: 4px 0 0; font: 800 .95rem var(--display); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
.chips button { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 10px; cursor: pointer; font: 800 .95rem var(--display); color: inherit; }
.chips button svg { width: 12px; height: 12px; opacity: .5; }
.report .tip { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 12px; padding: 8px 12px; }
.muted.small { font-size: .85rem; }
.card:not(.panel) .chips { justify-content: center; margin: 4px 0 10px; }
/* album de stickers */
.head-btns { margin-left: auto; align-self: flex-start; display: flex; gap: 8px; align-items: flex-start; }
.album-btn { flex: none; display: flex; align-items: center; gap: 6px; border: none; cursor: pointer; background: var(--card); color: var(--ink); border-radius: 16px; padding: 8px 14px 8px 10px; box-shadow: 0 3px 0 var(--line); font: 800 1.2rem var(--display); }
.album-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.album-icon { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #FFE9F3, #E4F1FF); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(61,53,82,.25); display: grid; place-items: center; transform: rotate(-8deg); }
.album-icon > svg { width: 18px; height: 18px; }
.head-btns .parents-btn { margin-left: 0; }
.sticker { --size: 112px; width: var(--size); height: var(--size); display: grid; place-items: center; position: relative; transform: rotate(var(--tilt, 0deg)); }
.sticker-bg { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #fff 0 8%, transparent 9%), linear-gradient(145deg, var(--sbg), var(--sbg2));
  border: 6px solid #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--sacc) 35%, transparent), 0 6px 16px rgba(61,53,82,.18); }
.sticker-bg::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.6) 50%, transparent 60%); transform: translateX(-60%); }
.sticker-art { position: relative; width: 84%; height: 84%; filter: drop-shadow(0 0 0 #fff) drop-shadow(0 2px 2px rgba(61,53,82,.2)); }
.sticker-art.wide { width: 92%; height: 92%; transform: translateY(-4%); }
.sticker-art > svg { width: 100%; height: 100%; }
.sticker.empty .sticker-bg { background: transparent; border: 4px dashed color-mix(in srgb, var(--sacc) 40%, #fff); box-shadow: none; }
.sticker.empty .sticker-bg::after { display: none; }
.sticker.empty .sticker-art { filter: grayscale(1) brightness(1.5); opacity: .22; }
.sticker.wiggle { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(var(--tilt)) scale(1) } 30% { transform: rotate(calc(var(--tilt) - 10deg)) scale(1.1) } 60% { transform: rotate(calc(var(--tilt) + 8deg)) scale(1.05) } }
.album { display: flex; flex-direction: column; gap: 16px; }
.album-page { background: var(--card); border-radius: 28px; padding: 22px 16px; box-shadow: 0 4px 0 var(--line);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 10px;
  background-image: radial-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.album-slot { border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); padding: 4px; }
.album-slot[disabled] { cursor: default; }
.album-name { font: 800 1.05rem var(--display); }
.album-slot small { font-size: .78rem; opacity: .65; }
.album-help { text-align: center; opacity: .7; margin: 0; }
.new-sticker { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.new-sticker .sticker { --size: 132px; animation: stickerin .9s cubic-bezier(.3, 1.6, .5, 1) both; }
.new-sticker .sticker-bg::after { animation: shine 1.4s .7s ease-in-out both; }
.new-sticker > span:last-child { font: 800 1.1rem var(--display); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); padding: 2px 12px; border-radius: 999px; animation: pop .5s .6s both; }
@keyframes stickerin { 0% { transform: scale(.2) rotate(-40deg); opacity: 0 } 100% { transform: scale(1) rotate(-6deg); opacity: 1 } }
@keyframes shine { to { transform: translateX(60%); } }
@media (max-width: 560px) {
  .head-btns { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .album-btn { padding: 6px 10px; font-size: 1.05rem; justify-content: center; }
  .album-page { grid-template-columns: repeat(2, 1fr); }
  .sticker { --size: 96px; }
}
@media (prefers-reduced-motion: reduce) { .new-sticker .sticker, .new-sticker .sticker-bg::after, .sticker.wiggle { animation: none; } }
.item.bye { pointer-events: none; animation: byebye 1.1s ease-in forwards; }
@keyframes byebye { 0% { transform: none } 25% { transform: translateY(-18px) rotate(-12deg) scale(1.15) } 45% { transform: translateY(-6px) rotate(10deg) scale(1.1) } 100% { transform: translateY(-260px) rotate(-20deg) scale(.6); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .item.bye { animation: none; opacity: 0; transition: opacity .6s; } }
/* carte de progrès */
.share-card { max-width: 420px; }
.card-preview { width: 100%; display: grid; place-items: center; min-height: 200px; }
.card-preview img { width: min(300px, 70vw); aspect-ratio: 1080 / 1350; border-radius: 16px; box-shadow: 0 6px 20px rgba(61,53,82,.2); }
.report [data-act="sharecard"] { align-self: flex-start; }
/* profils enfants */
.kid-avatar { --s: 44px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--kc) 22%, #fff); box-shadow: 0 0 0 4px var(--kc); overflow: hidden; }
.kid-avatar > svg { width: 86%; height: 86%; }
.kid-avatar.xs { --s: 24px; box-shadow: 0 0 0 2px var(--kc); }
.kid-avatar.sm { --s: 34px; box-shadow: 0 0 0 3px var(--kc); }
.kid-avatar.lg { --s: 120px; box-shadow: 0 0 0 7px var(--kc); }
.who-btn { display: flex; align-items: center; gap: 8px; border: none; cursor: pointer; background: var(--card); color: var(--ink); border-radius: 16px; padding: 6px 14px 6px 8px; box-shadow: 0 3px 0 var(--line); font: 800 1rem var(--display); max-width: 180px; }
.who-btn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.who { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6vh; text-align: center; }
.who h1 { font: 800 clamp(2rem, 6vw, 3rem)/1 var(--display); margin: 0; }
.who-fr { margin: 0 0 18px; opacity: .65; }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.who-card { border: none; cursor: pointer; background: var(--card); border-radius: 28px; padding: 22px 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 5px 0 color-mix(in srgb, var(--kc) 55%, var(--line)); min-width: 170px; color: var(--ink); }
.who-card span { font: 800 1.4rem var(--display); }
.who-card:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--kc) 55%, var(--line)); }
.kid-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.kid-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--card); color: inherit; border-radius: 999px; padding: 3px 12px 3px 4px; cursor: pointer; font: 800 .9rem var(--display); }
.kid-tabs button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.kid-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.kid-list li { display: flex; align-items: center; gap: 12px; }
.kid-list li > span:not(.kid-avatar) { flex: 1; font-weight: 700; }
.kid-form { max-width: 420px; align-items: stretch; text-align: left; }
.kid-form h2 { text-align: center; }
.kid-preview { display: grid; place-items: center; padding: 8px 0 4px; }
.kid-label { font-weight: 800; font-size: .95rem; }
.kid-label small { font-weight: 400; opacity: .7; }
.kid-name { font: 700 1.05rem var(--body); padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.kid-chars { display: flex; gap: 8px; }
.kid-chars button { flex: 1; aspect-ratio: 1; border: 3px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; padding: 4px; }
.kid-chars button > svg { width: 100%; height: 100%; }
.kid-chars button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.kid-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.kid-colors button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--card); background: var(--sw); box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.kid-colors button.on { box-shadow: 0 0 0 3px var(--ink); }
@media (max-width: 560px) { .who-btn b { display: none; } .who-btn { padding: 6px; justify-content: center; } .kid-avatar.lg { --s: 96px; } .who-card { min-width: 140px; } }
.pick-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; }
.pick-head .pick { margin: 0; }
.pick-sub { margin: 0; opacity: .7; }
/* accueil : la nouveauté en grand, les mondes, la bibliothèque, « Comment ça marche ? » */
.week-card.current { width: 100%; padding: 18px 26px 18px 18px; }
.week-card.current .week-art { width: clamp(120px, 24vw, 220px); }
.week-card.current .week-tag { font-size: .95rem; padding: 4px 14px; }
.pick.small { font-size: 1.15rem; }
.week-card.past { flex: 0 0 auto; width: 250px; padding: 10px 14px 10px 10px; gap: 10px; border-radius: 22px; box-shadow: 0 4px 0 color-mix(in srgb, var(--wacc) 30%, transparent); }
.week-card.past .week-art { width: 70px; }
.week-card.past strong { font-size: 1.15rem; margin: 0; }
.week-card.past .week-fr { font-size: .8rem; }
.week-card.past .world-stars { margin-top: 2px; }
.home-link { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.home-foot { margin: 8px 16px 0; text-align: center; font-size: .95rem; }
.home-foot > span { opacity: .5; margin: 0 6px; }
.home-foot a { color: var(--accent); }
.home-foot .voice-info { margin: 8px 0 0; font-size: .8rem; opacity: .65; }
.home-foot .voice-info:empty { display: none; }
@media (max-width: 560px) {
  .week-card.current { padding: 14px; }
  .week-card.current .week-art { width: 100px; }
  .week-card.past { width: 210px; }
}
/* Mes aventures (cartes moyennes) et mini-jeux (petites cartes), avec cadenas après l'essai */
/* Mes aventures : sur grand écran les cartes s'enroulent en grille ; sur téléphone on fait défiler au doigt, sans barre */
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 2px; }
@media (max-width: 900px) { .library { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .library { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.adv, .mini { position: relative; border: none; cursor: pointer; color: var(--wink); background: linear-gradient(160deg, var(--wbg), var(--wbg2)); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .15s; }
.adv { border-radius: 24px; padding: 12px 10px; box-shadow: 0 5px 0 color-mix(in srgb, var(--wacc) 35%, transparent); }
.adv:hover, .mini:hover { transform: translateY(-3px); }
.adv-art { width: 100%; max-width: 130px; aspect-ratio: 1; }
.adv-art > svg, .mini-art > svg { width: 100%; height: 100%; }
.adv-name { font: 800 1.15rem/1.1 var(--display); text-align: center; margin-top: 4px; }
.adv-fr { font-size: .8rem; font-weight: 700; opacity: .7; }
.adv .world-stars, .mini .world-stars { margin-top: 4px; }
.minigames { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: 10px; }
.mini { border-radius: 18px; padding: 8px 6px; box-shadow: 0 4px 0 color-mix(in srgb, var(--wacc) 30%, transparent); }
.mini-art { width: 74px; aspect-ratio: 1; }
.mini-name { font: 800 .9rem/1.1 var(--display); }
.mini .world-stars i { width: 8px; height: 8px; }
.lock { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(61,53,82,.2); }
.lock svg { width: 17px; height: 17px; }
.week-card.current { position: relative; }
.week-card.current .lock { top: 14px; right: 14px; width: 40px; height: 40px; }
.week-card.current .lock svg { width: 22px; height: 22px; }
.locked > :not(.lock) { filter: saturate(.55); opacity: .8; }
.mission.locked > .btn { filter: none; opacity: 1; }
@media (max-width: 560px) { .minigames { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .mini-art { width: 100%; } .mini-name { font-size: .8rem; }  }

/* rapport : compteurs en tête, tous les mots repliés */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.counters div { background: var(--bg); border-radius: 14px; padding: 8px 6px; text-align: center; }
.counters b { display: block; font: 800 1.4rem/1.1 var(--display); color: var(--accent); }
.counters span { font-size: .75rem; opacity: .75; font-weight: 700; }
.allwords { align-self: stretch; }
.allwords summary { cursor: pointer; font: 800 .95rem var(--display); color: var(--accent); }
.aw-theme { margin: 10px 0 4px; font-size: .9rem; } .aw-theme span { opacity: .65; font-weight: 400; }
.allwords .chips button.known { border-color: #3DB86A; background: #E9F8EE; }
.allwords .chips button.review { border-color: #FF8A2A; background: #FFF1E5; }
.allwords .chips button.new { opacity: .75; }
.psec.timeup { border-top: 0; padding: 14px; border-radius: 16px; background: var(--bg2, #FFF4FA); }
.psec.timeup .row { flex-wrap: wrap; }
/* ---------- page parents (première visite) ---------- */
.landing { display: flex; flex-direction: column; gap: 26px; padding: 4px 0 24px; max-width: 980px; margin: 0 auto; }
.l-top { display: flex; align-items: center; gap: 12px; }
.l-top strong { font: 800 1.5rem var(--display); flex: 1; }
.l-top .logo { width: 52px; height: 52px; }
.btn.small { padding: 8px 16px; font-size: .95rem; }
.btn.big { padding: 16px 28px; font-size: 1.25rem; }
.l-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; background: var(--card); border-radius: 28px; padding: 28px; box-shadow: 0 5px 0 var(--line); }
.l-hero h1 { font: 800 clamp(1.9rem, 4.5vw, 2.9rem)/1.1 var(--display); margin: 0 0 12px; text-wrap: balance; }
.l-lead { font-size: 1.1rem; line-height: 1.5; margin: 0 0 18px; }
.l-note { margin: 10px 0 0; font-size: .9rem; opacity: .7; }
.l-hero-art { position: relative; aspect-ratio: 1; }
.l-char { position: absolute; width: 52%; animation: bob 3s ease-in-out infinite; }
.l-char > svg { width: 100%; height: 100%; }
.l-c-unicorn { left: 0; top: 0; } .l-c-mermaid { right: 0; top: 4%; animation-delay: -.8s; }
.l-c-dino { left: 4%; bottom: 0; animation-delay: -1.6s; } .l-c-hero { right: 2%; bottom: 2%; animation-delay: -2.4s; }
.l-h2 { font: 800 1.6rem var(--display); margin: 0; }
.l-sub { margin: -14px 0 0; opacity: .8; }
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.l-steps li { position: relative; background: var(--card); border-radius: 22px; padding: 18px 18px 18px 18px; box-shadow: 0 4px 0 var(--line); display: flex; flex-direction: column; gap: 6px; }
.l-steps strong { font: 800 1.15rem var(--display); }
.l-steps p { margin: 0; line-height: 1.45; }
.l-step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 1rem var(--display); display: grid; place-items: center; }
.l-step-art { position: absolute; right: 12px; top: 10px; width: 56px; height: 56px; }
.l-step-art > svg { width: 100%; height: 100%; }
.l-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.l-shots figure { margin: 0; }
.l-shots img { width: 100%; border-radius: 18px; box-shadow: 0 4px 0 var(--line); border: 3px solid #fff; display: block; }
.l-shots figcaption { text-align: center; font-size: .9rem; opacity: .75; margin-top: 6px; }
.l-block { background: var(--card); border-radius: 26px; padding: 24px; box-shadow: 0 5px 0 var(--line); }
/* Pourquoi 3-6 ans : quatre colonnes, un dessin dans une pastille aux couleurs des mondes, un titre, une phrase */
.l-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.l-tile { text-align: center; }
.l-tile-art { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(160deg, var(--ta), var(--tb)); }
.l-tile-art > svg, .l-tile-art > .l-duo { width: 64px; height: 64px; overflow: visible; }
.l-tile strong { font: 800 1.1rem/1.2 var(--display); display: block; margin-bottom: 6px; }
.l-tile p { margin: 0; line-height: 1.45; font-size: .95rem; opacity: .85; }
.l-duo { display: flex; align-items: flex-end; }
.l-duo > svg { width: 80%; height: auto; flex: none; }
.l-duo > svg + svg { width: 68%; margin-left: -48%; }
.l-sources { margin: 12px 0 0; font-size: .8rem; opacity: .65; }
.l-sources a { color: inherit; }
/* la lettre */
.l-story { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.l-story-art { width: 120px; height: 120px; }
.l-story-art > svg { width: 100%; height: 100%; }
.l-story p { line-height: 1.55; margin: 10px 0 0; }
.l-sign { font: 800 1.3rem var(--display); color: var(--accent); }
/* Ce qu'il apprend : les cartes d'aventure du jeu, personnage déguisé, mots en pastilles */
.l-learn .l-sub, .l-why .l-sub { margin: 8px 0 0; }
.l-weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.l-week { background: linear-gradient(160deg, var(--wbg), var(--wbg2)); color: var(--wink); border-radius: 22px; padding: 10px 14px 16px; text-align: center; }
.l-week-art { display: block; margin: 0 auto 4px; width: 100%; max-width: 190px; }
.l-week-art > svg { width: 100%; height: auto; display: block; }
.l-week strong { font: 800 1.1rem var(--display); display: block; }
.l-week > span { font-size: .85rem; opacity: .75; }
.l-week p { margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.l-week i { font-style: normal; font-weight: 800; font-size: .85rem; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 2px 9px; }
/* Nos règles : une bande pleine largeur, une icône par règle */
.l-band { margin: 0 calc(50% - 50vw); padding: 28px calc(50vw - 50%); background: rgba(255, 255, 255, .5); }
.l-rules ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.l-rules li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; line-height: 1.5; }
.l-rules li > svg { width: 44px; height: 44px; overflow: visible; }
/* Le prix : l'offre à gauche, l'étiquette à droite */
.l-price { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); border-radius: 26px; box-shadow: 0 5px 0 var(--line); overflow: hidden; }
.l-price-free { padding: 24px; }
.l-price-free p { line-height: 1.55; }
.l-free { font-size: 1.15rem; }
.l-price-free .btn, .l-price-free .row { margin-top: 8px; }
.l-price-tag { background: linear-gradient(160deg, #FFF3C4, #FFE0B5); padding: 24px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.l-amount { font: 800 3.2rem/1 var(--display); color: var(--ink); }
.l-amount small { display: block; font-size: 1.1rem; opacity: .75; margin-top: 2px; }
.l-permonth { margin: 10px 0 0; font-weight: 800; font-size: 1.1rem; }
.l-monthly { margin: 2px 0 0; opacity: .8; }
.l-price-tag .btn { margin: 16px auto 0; }
.l-price.l-block { display: block; }
.l-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; font-size: .85rem; opacity: .75; }
.l-foot a { color: inherit; }
@media (max-width: 700px) {
  .l-hero { grid-template-columns: 1fr; padding: 20px; }
  .l-hero-art { max-width: 260px; margin: 0 auto; width: 100%; }
  .l-steps, .l-shots, .l-why-grid { grid-template-columns: 1fr; }
  .l-story { grid-template-columns: 1fr; }
  .l-story-art { width: 90px; height: 90px; }
  .l-why-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .l-price { grid-template-columns: 1fr; }
  .l-weeks { grid-template-columns: 1fr 1fr; }
  .l-tile-art { width: 80px; height: 80px; }
  .l-tile-art > svg, .l-tile-art > .l-duo { width: 54px; height: 54px; }
}

.l-hero .row { flex-wrap: wrap; gap: 10px; }
.btn.ghost.big { padding: 14px 24px; font-size: 1.15rem; }
.l-kids { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.l-kid { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font: 800 .95rem var(--display); color: inherit; }
.l-kid.on { border-color: var(--accent); background: var(--accent-soft, #E3ECFB); }

/* ---------- Find it : cache-cache ---------- */
.hide-field { height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; place-items: center; gap: 2%; padding: 2% 6%; }
.spot { position: relative; width: min(100%, clamp(120px, 34vmin, 260px)); max-height: 100%; aspect-ratio: 1; border: none; background: none; cursor: pointer; padding: 0; }
.spot:nth-child(1) { justify-self: end; } .spot:nth-child(2) { justify-self: start; } .spot:nth-child(3) { justify-self: end; } .spot:nth-child(4) { justify-self: start; }
/* le caché dépasse un peu, de temps en temps : coucou */
.spot:not(.open) .inside:has(svg) { animation: peekaboo 5s ease-in-out infinite; }
@keyframes peekaboo { 0%, 60%, 100% { transform: translateY(10%) scale(.9); } 68%, 80% { transform: translateY(-22%) scale(.9); } }
.spot .cover { position: absolute; inset: 0; z-index: 2; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 50% 100%; }
.spot .cover > svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 0 rgba(43, 48, 64, .18)); }
.spot .inside { position: absolute; left: 30%; right: 30%; bottom: 22%; height: 36%; z-index: 1; display: grid; place-items: end center; transform: translateY(10%) scale(.9); transition: transform .35s; }
.spot .inside > svg { width: 100%; height: 100%; }
.spot.open .cover { transform: translateY(-34%) rotate(-10deg); }
.spot.open .inside { z-index: 3; transform: translateY(14%) scale(1.25); }
.spot.hint { animation: hint 1.6s ease-in-out infinite; }
.hide-field.wait .spot { cursor: default; }
.runner { position: absolute; width: clamp(60px, 12vw, 96px); aspect-ratio: 1; margin-left: calc(clamp(60px, 12vw, 96px) / -2); margin-top: calc(clamp(60px, 12vw, 96px) / -2); z-index: 3; pointer-events: none; }
.runner > svg { width: 100%; height: 100%; }
.runner.run { animation: runin 1.3s ease-in-out forwards; }
@keyframes runin { 0% { transform: translate(var(--dx), -50px) scale(1); opacity: 1; } 15% { transform: translate(var(--dx), -40px) rotate(-8deg); } 70% { transform: translate(0, -10px) rotate(6deg); opacity: 1; } 100% { transform: translate(0, 10px) scale(.5); opacity: 0; } }
/* ---------- Feed it : donner à manger ---------- */
.feed-stage { height: 100%; display: grid; place-items: center; }
.eater { width: clamp(180px, 42vw, 320px); aspect-ratio: 1; transform-origin: 50% 90%; animation: breathe 3.2s ease-in-out infinite; }
.eater > svg { width: 100%; height: 100%; }
.eater.chew { animation: chew .9s ease-in-out; }
@keyframes chew { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.08, .92); } 40% { transform: scale(.96, 1.06); } 60% { transform: scale(1.06, .94); } 80% { transform: scale(.98, 1.03); } }
.eater.nope { animation: nope .6s ease-in-out; }
@keyframes nope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-14px) rotate(-4deg); } 75% { transform: translateX(14px) rotate(4deg); } }
.tray.food .item { border: none; background: none; padding: 0; cursor: pointer; }
.tray.food .item.gone { visibility: hidden; }
.fly-food { position: fixed; z-index: 70; pointer-events: none; animation: flyfood .56s cubic-bezier(.4, 0, .7, 1) forwards; }
.fly-food > svg { width: 100%; height: 100%; }
@keyframes flyfood { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(var(--dx), var(--dy)) scale(.25); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .runner.run { animation: none; opacity: 0; } .eater { animation: none; } }

/* ---------- Simon says ---------- */
.do-stage { height: 100%; display: grid; place-items: center; }
.actor { position: relative; width: clamp(180px, 42vw, 320px); aspect-ratio: 1; transform-origin: 50% 90%; }
.actor-art, .actor-art > svg { display: block; width: 100%; height: 100%; }
.actor .zzz { top: -4%; right: 2%; }
.actor.jump { animation: dojump 1.2s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes dojump { 0%, 100% { transform: translateY(0) scale(1); } 15% { transform: translateY(0) scale(1.08, .9); } 40% { transform: translateY(-26%) scale(.95, 1.08); } 60% { transform: translateY(0) scale(1.06, .94); } 75% { transform: translateY(-14%) scale(1); } 90% { transform: translateY(0) scale(1.04, .96); } }
.actor.spin { animation: dospin 1.2s ease-in-out; }
@keyframes dospin { 0% { transform: rotateY(0); } 100% { transform: rotateY(720deg); } }
.actor.wave { animation: dowave 1.2s ease-in-out; }
@keyframes dowave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(8deg); } }
.actor.sleep { animation: sleep 2.2s ease-in-out; }
.tray.actions { gap: clamp(8px, 2vw, 18px); }
.action { display: flex; flex-direction: column; align-items: center; gap: 2px; width: clamp(96px, 22vw, 150px); border: none; background: var(--card); border-radius: 22px; padding: 8px 6px 6px; cursor: pointer; color: var(--accent); box-shadow: 0 4px 0 var(--line); font: 800 .85rem var(--display); }
.action > span:last-child { opacity: .75; }
.mini { position: relative; display: block; width: 100%; aspect-ratio: 1; transform-origin: 50% 90%; }
.mini-art, .mini-art > svg { display: block; width: 100%; height: 100%; }
.mini .zzz { top: -6%; right: -4%; font-size: 1rem; }
.loop-jump { animation: dojump 1.6s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.loop-spin { animation: dospin 2.4s ease-in-out infinite; }
.loop-wave { animation: dowave 1.6s ease-in-out infinite; }
.loop-sleep { animation: sleep 2.6s ease-in-out infinite; }
.action.on .mini { animation: none; }
.action.on { background: var(--accent); color: #fff; transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.action.hint { animation: hint 1.6s ease-in-out infinite, glow 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .actor.jump, .actor.spin, .actor.wave, .actor.sleep, .mini { animation: none; } }
/* Simon says pour de vrai : l'avatar de l'enfant fait le même geste que le personnage (« toi aussi, pareil ») */
.do-stage { position: relative; }
.mimic { position: absolute; right: 5%; bottom: 6%; width: clamp(88px, 19vw, 150px); aspect-ratio: 1; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); border: 6px solid var(--kc); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transform-origin: 50% 90%; }
.mimic-art, .mimic-art > svg, .mimic-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mimic .zzz { top: -12%; right: -4%; }
@media (prefers-reduced-motion: reduce) { .mimic { animation: none; } }

/* ---------- Bubbles : les objets montent dans des bulles qu'on éclate ---------- */
.fall.soap { padding: 0; }
.fall.soap .soap-skin { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 10%, rgba(255, 255, 255, .35) 11% 55%, rgba(170, 220, 255, .45) 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .8), 0 6px 14px rgba(43, 48, 64, .12); animation: bubblewobble 2.2s ease-in-out infinite; }
.fall.soap svg { position: relative; filter: none; width: 70%; height: 70%; margin: 15%; }
.fall.soap.caught { animation: bubblepop .35s ease-out forwards; }
.fall.soap.caught .soap-skin { animation: none; opacity: 0; }
@keyframes bubblewobble { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.06, .94); } }
@keyframes bubblepop { 0% { scale: 1; opacity: 1; } 100% { scale: 1.5; opacity: 0; } }
.sky.bubbly .basket { display: none; }
.sky.bubbly .caught-count { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); }

/* ---------- l'histoire : la phrase du personnage sur la page de l'aventure, la récompense à la fin ---------- */
.say-bubble { position: relative; margin: 6px auto 0; display: block; max-width: 300px; background: var(--card); border: none; border-radius: 22px; padding: 10px 16px; font: 800 1.05rem var(--display); color: var(--accent); box-shadow: 0 4px 0 var(--line); cursor: pointer; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.say-bubble::before { content: ""; position: absolute; left: 50%; top: -10px; margin-left: -8px; border: 8px solid transparent; border-bottom-color: var(--card); border-top: 0; }
.reward { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: -6px auto 2px; }
.reward-char { width: 120px; height: 120px; animation: dojump 1.2s cubic-bezier(.3, 1.4, .5, 1) .3s; transform-origin: 50% 90%; }
.reward-obj { width: 96px; height: 96px; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) .6s both; }
.reward-char > svg, .reward-obj > svg { width: 100%; height: 100%; }
.reward-line { margin: 0 0 4px; font: 800 1.2rem var(--display); color: var(--accent); }

/* Simon says pour de vrai : le personnage refait le geste en boucle, le parent valide */
.actor.loop-jump { animation: dojump 1.6s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.actor.loop-spin { animation: dospin 2.4s ease-in-out infinite; }
.actor.loop-wave { animation: dowave 1.6s ease-in-out infinite; }
.actor.loop-sleep { animation: sleep 2.6s ease-in-out infinite; }
/* centré sans transform : l'animation pop (scale) écrasait le translateX(-50%), le bouton apparaissait décalé puis sautait au centre */
.real-ok { position: absolute; left: 0; right: 0; margin-inline: auto; width: fit-content; bottom: 4%; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }

/* ---------- la mission du jour ---------- */
.mission { background: linear-gradient(135deg, var(--wbg), var(--wbg2)); border-radius: 26px; padding: 16px 18px 18px; box-shadow: 0 5px 0 var(--line); display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; }
.mission-head { grid-column: 1 / -1; }
.mission-tag { display: inline-block; background: var(--wacc); color: #fff; font: 800 .85rem var(--display); padding: 3px 12px; border-radius: 999px; }
.mission h2 { margin: 6px 0 2px; font: 800 clamp(1.3rem, 4vw, 1.7rem)/1.1 var(--display); color: var(--wink); }
.mission-sub { margin: 0; color: var(--wink); opacity: .75; font-size: .95rem; }
.mission-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.mission-step { display: flex; flex-direction: column; align-items: center; gap: 2px; width: clamp(60px, 13vw, 84px); border: 3px solid transparent; border-radius: 18px; background: rgba(255, 255, 255, .75); padding: 6px 4px 4px; cursor: pointer; font: 700 .7rem var(--body); color: var(--wink); }
.mission-step .ms-art { width: 100%; aspect-ratio: 1; }
.mission-step .ms-art > svg { width: 100%; height: 100%; }
.mission-step.ok { background: rgba(255, 255, 255, .45); opacity: .85; }
.mission-step.next { border-color: var(--wacc); animation: lowpulse 1.8s ease-in-out infinite; }
.mission .btn.big { justify-self: end; }
.mission-pieces { display: flex; gap: 6px; justify-self: end; }
.mission-pieces i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .6); border: 2px solid var(--wacc); }
.mission-pieces i.on { background: var(--wacc); }
.mission-line { margin: 0; font: 800 1rem var(--display); color: var(--accent); }
.sticker.partial .sticker-art { opacity: .45; filter: grayscale(.4); }
.sticker-pie { position: absolute; right: -6px; bottom: -6px; width: 44px; height: 44px; display: grid; place-items: center; }
.sticker-pie i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--sacc) calc(var(--pieces) * 20%), rgba(255, 255, 255, .8) 0); box-shadow: 0 0 0 3px #fff; }
.sticker-pie b { position: relative; font: 800 .7rem var(--display); color: var(--ink); background: #fff; border-radius: 999px; padding: 1px 5px; }
@media (max-width: 560px) { .mission { grid-template-columns: 1fr; } .mission .btn.big, .mission-pieces { justify-self: stretch; } }

/* ---------- In, on, under ---------- */
.stage-place { display: grid; place-items: stretch; }
.place-field { height: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(6px, 2vw, 20px); padding: 0 2%; }
.pf { display: grid; grid-template-rows: 1fr auto 1fr; min-height: 0; min-width: 0; }
.pf-art { position: relative; width: min(100%, clamp(110px, 30vmin, 220px)); aspect-ratio: 1; justify-self: center; }
.pf-art > svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 0 rgba(43, 48, 64, .16)); }
.zone { position: relative; border-radius: 22px; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; min-height: 0; }
.zone.off { visibility: hidden; }
.z-in { position: absolute; left: 18%; right: 18%; top: 22%; bottom: 22%; }
.zone.hover { background: rgba(255, 255, 255, .55); transform: scale(1.04); }
.zone.hint { animation: glow 1.6s ease-in-out infinite; background: rgba(255, 255, 255, .35); }
.zone > svg { width: clamp(48px, 12vw, 84px); height: clamp(48px, 12vw, 84px); animation: pop .35s ease-out; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .15)); }
.z-in > svg { width: 70%; height: 70%; }
.z-on { align-items: end; margin-bottom: calc(-1 * clamp(18px, 6vmin, 44px)); padding-bottom: clamp(18px, 6vmin, 44px); }
.z-under { align-items: start; margin-top: calc(-1 * clamp(18px, 6vmin, 44px)); padding-top: clamp(18px, 6vmin, 44px); }
.pf.happy .pf-art { animation: squash .7s cubic-bezier(.3, 1.6, .5, 1); }

/* ---------- Big or small ---------- */
.size-field { align-items: end; gap: clamp(4px, 2vw, 18px) clamp(10px, 4vw, 40px); }
.size-field .touch-item.sz-big { width: clamp(120px, 34vw, 230px); }
.size-field .touch-item.sz-small { width: clamp(64px, 17vw, 120px); }

/* ---------- Memory ---------- */
.stage-memory { display: grid; place-items: center; }
.memory-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2.5vw, 22px); width: min(100%, 520px); max-height: 100%; align-content: center; padding: 2%; perspective: 900px; }
.memory-field.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcard { position: relative; cursor: pointer; aspect-ratio: 1; justify-self: center; width: 100%; max-width: clamp(110px, 36vmin, 220px); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.4, 0, .2, 1); -webkit-tap-highlight-color: transparent; }
.mcard.up { transform: rotateY(0); }
.mcard:not(.up) { transform: rotateY(180deg); }
.mcard .card-face, .mcard .card-back { position: absolute; inset: 0; border-radius: 24px; backface-visibility: hidden; display: grid; place-items: center; padding: 10%; box-shadow: 0 6px 0 rgba(43, 48, 64, .14); }
.mcard .card-face { background: #fff; }
.mcard .card-back { background: var(--accent, #E8453C); transform: rotateY(180deg); }
.mcard .card-back svg { width: 50%; height: 50%; opacity: .85; }
.mcard .card-face svg { width: 100%; height: 100%; }
.mcard.found .card-face { box-shadow: 0 0 0 5px #3DB86A, 0 6px 0 rgba(43, 48, 64, .14); }
.mcard.hint { animation: hint 1.6s ease-in-out infinite; }
.memory-field.wait .mcard { cursor: default; }
@media (prefers-reduced-motion: reduce) { .mcard { transition: none; } }

/* décor de la forêt : les feuilles tombent ; l'entrée : la pluie derrière la fenêtre */
.fall-leaf { animation: fallleaf 9s linear infinite; animation-delay: var(--d, 0s); transform: translate(var(--x), -40px); }
@keyframes fallleaf { 0% { transform: translate(var(--x), -40px) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(calc(var(--x) + 60px), 720px) rotate(540deg); opacity: .8; } }
.rain-drop { animation: raindrop 1.2s linear infinite; animation-delay: var(--d, 0s); }
@keyframes raindrop { from { transform: translateY(-30px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fall-leaf, .rain-drop { animation: none; } }

/* ---------- Stop! Go! ---------- */
.stage-stopgo { display: grid; place-items: stretch; }
.run-field { position: relative; height: 100%; cursor: pointer; border-radius: 26px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.run-track { position: absolute; left: 4%; right: 4%; bottom: 14%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .55); }
.run-goal { position: absolute; right: 2%; bottom: 10%; width: clamp(90px, 22vw, 180px); aspect-ratio: 1; }
.run-goal svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 0 rgba(43, 48, 64, .16)); }
.run-char { position: absolute; left: 2%; bottom: 12%; width: clamp(100px, 26vw, 200px); aspect-ratio: 1; will-change: transform; }
.run-char svg { width: 100%; height: 100%; display: block; }
.run-char.run svg { animation: gallop .32s ease-in-out infinite; }
.run-char.stopped svg { animation: squash .7s cubic-bezier(.3, 1.6, .5, 1); }
.run-char.trip svg { animation: trip .9s ease-out; }
.run-char.wiggle svg { animation: wobble .4s; }
@keyframes gallop { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14%) rotate(3deg); } }
@keyframes trip { 0% { transform: rotate(0); } 30% { transform: rotate(-60deg) translateY(10%); } 60% { transform: rotate(-70deg) translateY(14%); } 100% { transform: rotate(0); } }
.run-sign { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); width: clamp(80px, 20vw, 140px); aspect-ratio: 1; border-radius: 50%; background: #E8453C; box-shadow: 0 8px 0 rgba(43, 48, 64, .18), 0 0 0 8px #fff; animation: pop .3s ease-out; }
.run-sign::after { content: ""; position: absolute; left: 24%; right: 24%; top: 24%; bottom: 24%; border-radius: 12%; background: #fff; }
.run-field.stop { box-shadow: inset 0 0 0 10px rgba(232, 69, 60, .5); }
.run-field.hint .run-char svg { animation: gallop .32s ease-in-out infinite, glow 1.6s ease-in-out infinite; }

/* ---------- Hot or cold ---------- */
.stage-hotcold { display: grid; place-items: center; }
.hot-field { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(4px, 1.5vw, 14px); width: min(100%, 560px); max-height: 100%; align-content: center; padding: 1%; }
.hot-field.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pile { position: relative; border: none; background: none; padding: 0; cursor: pointer; aspect-ratio: 1; width: 100%; max-width: clamp(80px, 26vmin, 150px); justify-self: center; -webkit-tap-highlight-color: transparent; }
.pile .top { position: absolute; inset: 0; z-index: 2; transition: transform .45s cubic-bezier(.3, 1.2, .5, 1), opacity .45s; }
.pile .top svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 0 rgba(43, 48, 64, .14)); }
.pile .under { position: absolute; left: 12%; right: 12%; top: 10%; bottom: 10%; z-index: 1; display: grid; place-items: center; visibility: hidden; }
.pile.open .under { visibility: visible; }
.pile .under svg { width: 100%; height: 100%; }
.pile.gone .top, .pile.open .top { transform: translate(30%, -60%) rotate(25deg); opacity: 0; pointer-events: none; }
.pile.gone::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; opacity: .55; animation: pop .35s ease-out; }
.pile.gone.cold::before { background: #7FB4E6; } .pile.gone.warm::before { background: #FFB347; } .pile.gone.hot::before { background: #E8453C; }
.pile.open .under { z-index: 3; animation: pop .4s ease-out; }
.pile.hint { animation: hint 1.6s ease-in-out infinite; }

/* ---------- Dress me ---------- */
.stage-dress { display: grid; place-items: center; }
.dress-field { height: 100%; width: 100%; display: grid; place-items: center; }
.dress-char { position: relative; height: min(100%, 70vmin); aspect-ratio: 1; border-radius: 30px; transition: background .15s, transform .15s; }
.dress-char > svg { width: 100%; height: 100%; display: block; }
.dress-char.hover { background: rgba(255, 255, 255, .55); transform: scale(1.03); }
.dress-char.hint { animation: glow 1.6s ease-in-out infinite; }
.dress-char.happy > svg { animation: squash .7s cubic-bezier(.3, 1.6, .5, 1); }
.wear { position: absolute; inset: 0; pointer-events: none; }
.worn { position: absolute; transform: translate(-50%, 0); }
.worn svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .15)); animation: pop .4s ease-out; }

/* les yeux redessinés attendent l'image ; un rond doux pendant le chargement */
svg:has(> image[data-char]):not(.img-ok) .img-eyes { display: none; }
svg:has(> image[data-char]):not(.img-ok) { background: radial-gradient(closest-side, rgba(255, 255, 255, .6), transparent); border-radius: 50%; }

/* avant-première : aventures à venir dans la bibliothèque */
.adv-soon { position: absolute; top: 8px; left: 8px; font: 800 .7rem var(--display); background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 999px; }

.mission-note { margin: 6px 0 0; font-size: .85rem; opacity: .75; }

/* accueil : pastilles de réassurance sous le bouton, et la preuve de progression */
.l-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.l-badges span { font: 800 .8rem var(--display); background: rgba(255, 255, 255, .75); border: 2px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.l-proof { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: center; }
.l-proof-card { background: linear-gradient(160deg, #FCE6F3, #E4F1FF); border-radius: 26px; padding: 22px 18px; text-align: center; box-shadow: 0 6px 0 var(--line); }
.l-proof-n { font: 800 4rem/1 var(--display); color: #C2408F; }
.l-proof-l { font: 800 1.3rem var(--display); }
.l-proof-s { font-size: .8rem; opacity: .7; margin-top: 2px; }
.l-proof-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.l-proof-chips i { font: 800 .85rem var(--display); font-style: normal; background: #fff; border-radius: 999px; padding: 4px 10px; }
.l-proof .l-note { margin-top: 10px; }
@media (max-width: 700px) { .l-proof { grid-template-columns: 1fr; } .l-proof-card { max-width: 300px; margin: 0 auto; } }
.l-top .btn { white-space: nowrap; }
@media (max-width: 480px) { .l-top { gap: 6px; } .l-top strong { font-size: 1.15rem; } .l-top .btn.small { padding: 7px 10px; font-size: .82rem; } }

/* la ligne « créez votre compte » sous les aventures, et la mission verrouillée */
.parents-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: rgba(255, 255, 255, .6); border-radius: 18px; padding: 12px 16px; margin: 14px 0 0; }
.parents-line p { margin: 0; flex: 1; min-width: 220px; font-size: .95rem; opacity: .85; }
.mission.locked .mission-step.off { display: grid; place-items: center; opacity: .55; cursor: default; }
.mission.locked .mission-step.off .ms-art svg { width: 28px; height: 28px; }

/* 1, 2, 3 soleil : le guetteur caché derrière l'arbre surgit au « Stop ! » et regarde */
.run-watch { position: absolute; left: -18%; bottom: 4%; width: 54%; display: none; transform-origin: 50% 100%; }
.run-watch svg { width: 100%; height: auto; display: block; }
.run-field.stop .run-watch { display: block; animation: watchpop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes watchpop { 0% { transform: translateY(40%) scale(.4); } 100% { transform: translateY(0) scale(1); } }

/* bannière de l'accueil */
.l-banner { margin: 0; text-align: center; }
.l-banner img { width: 100%; height: auto; display: block; border-radius: 22px; }
.l-banner figcaption { font: 800 1.15rem var(--display); color: var(--ink); opacity: .75; margin-top: 8px; }
@media (max-width: 900px) { .l-banner { order: -1; max-width: 520px; margin: 0 auto; } }

.logo > img { width: 100%; height: 100%; display: block; border-radius: 28%; }
/* le nom en lettres de pâte à modeler */
.wordmark { height: 1.5em; width: auto; display: block; }
.l-top .wordmark { height: 46px; }
.hero-head h1 .wordmark { height: clamp(40px, 7vw, 64px); }
@media (max-width: 480px) { .l-top .wordmark { height: 34px; } }

/* ---------- accueil en pâte à modeler (30 oct.) ---------- */
.clay { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.landing .l-hero, .landing .l-block, .landing .l-steps li, .landing .l-week, .landing .l-rules {
  border-radius: 30px; box-shadow: 0 12px 28px rgba(120, 80, 40, .09), inset 0 -5px 0 rgba(74, 46, 107, .05);
}
.l-step-art { width: 84px; height: 96px; top: -18px; right: 8px; }
.l-steps li { padding-top: 22px; }
.l-steps li strong { display: block; padding-right: 78px; }
.l-story { grid-template-columns: 150px 1fr; }
.l-story-art { width: 150px; height: 190px; display: block; }
.l-duo > .clay { width: 64%; height: auto; flex: none; }
.l-duo > .clay + .clay { width: 64%; margin-left: -30%; }
/* la bande des personnages */
.l-cast { text-align: center; }
.l-cast-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.l-cast figure { margin: 0; }
.l-cast .clay { height: clamp(120px, 22vw, 220px); width: auto; margin: 0 auto; filter: drop-shadow(0 10px 10px rgba(120, 80, 40, .14)); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.l-cast figure:hover .clay { transform: translateY(-8px) rotate(-3deg); }
.l-cast figcaption { font: 800 1.15rem var(--display); margin-top: 8px; }
.l-cast figcaption small { display: block; text-transform: capitalize; font: 600 .85rem var(--body, inherit); opacity: .6; }
.l-cast p { margin: 14px auto 0; max-width: 46ch; font-size: 1.05rem; opacity: .85; }
@media (max-width: 560px) { .l-cast-row { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } .l-step-art { width: 64px; height: 74px; top: -12px; } .l-story { grid-template-columns: 1fr; } .l-story-art { margin: 0 auto; width: 110px; height: 140px; } }

/* en-tête : le nom seul, assez grand pour se lire ; le hero a le crème de la bannière, l'image s'y fond sans cadre */
.l-top .wordmark { height: 62px; filter: drop-shadow(0 3px 4px rgba(74, 46, 107, .18)); }
.landing .l-hero { background: #FEF7E5; grid-template-columns: 1fr 1.15fr; padding: 22px 28px; }
.l-banner img { border-radius: 0; }
.l-banner figcaption { font-size: 1.3rem; opacity: .85; margin-top: 2px; }
@media (max-width: 900px) { .landing .l-hero { grid-template-columns: 1fr; } .l-banner { max-width: 620px; } }
@media (max-width: 480px) { .l-top .wordmark { height: 44px; } .landing .l-hero { padding: 14px 18px 22px; } }
/* les bords de l'image se fondent dans le crème du hero (pas de rectangle visible) */
.l-banner img { -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 70%, transparent 100%); }

/* en-tête lisible : le nom sur une pastille blanche (le pastel ne se lit pas sur le crème) ; le hero crème se détache du fond lilas */
.l-top strong { flex: 0 0 auto; background: #fff; border-radius: 22px; padding: 6px 16px 4px; box-shadow: 0 4px 0 var(--line), 0 8px 18px rgba(74, 46, 107, .08); }
.l-top { justify-content: space-between; }
.l-top strong + * { margin-left: auto; }
.l-top .wordmark { height: 52px; filter: none; }
.landing .l-hero { border: 3px solid #F2E3C6; box-shadow: 0 6px 0 #EBD9B6, 0 18px 36px rgba(120, 80, 40, .12); }
@media (max-width: 480px) { .l-top .wordmark { height: 36px; } .l-top strong { padding: 4px 10px 2px; border-radius: 16px; } }

/* bannière détourée : plus de masque ni de fond à fondre ; le nom de l'en-tête sans pastille, en grand */
.l-banner img { -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 14px 18px rgba(120, 80, 40, .12)); }
.l-top strong { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.l-top .wordmark { height: 84px; filter: drop-shadow(0 4px 6px rgba(74, 46, 107, .22)); }
@media (max-width: 480px) { .l-top .wordmark { height: 52px; } .l-top strong { padding: 0; } }

/* « Nos règles » : un vrai encadré, avec de l'air autour du texte */
.landing .l-rules { background: var(--card); padding: 24px 26px; }
@media (max-width: 480px) { .landing .l-rules { padding: 18px; } }

/* le hero redevient une carte blanche comme les autres : la bannière détourée flotte dessus, sans cadre crème */
.landing .l-hero { background: var(--card); border: none; box-shadow: 0 12px 28px rgba(120, 80, 40, .09), inset 0 -5px 0 rgba(74, 46, 107, .05); }
.l-banner img { filter: drop-shadow(0 16px 20px rgba(120, 80, 40, .16)); }

.l-hero .l-lead { margin-bottom: 10px; }
.l-hero .l-lead + .btn { margin-top: 8px; }
.l-hero h1 br { display: block; }
/* hero plus court : titre sur trois lignes, paragraphes plus serrés */
.landing .l-hero h1 { font-size: clamp(1.6rem, 3.3vw, 2.3rem); line-height: 1.15; margin-bottom: 10px; }
.landing .l-hero .l-lead { font-size: 1rem; line-height: 1.45; margin-bottom: 8px; }
.landing .l-hero { padding: 22px 28px; }
@media (max-width: 480px) { .landing .l-hero h1 { font-size: 1.5rem; } }
/* accueil enfant : logo et nom bien plus grands (ils étaient petits et serrés à côté des boutons) */
.hero-head .logo { width: clamp(72px, 11vw, 112px); height: clamp(72px, 11vw, 112px); }
.hero-head h1 .wordmark { height: clamp(58px, 10vw, 104px); filter: drop-shadow(0 3px 4px rgba(74, 46, 107, .18)); }
.hero-head .home-link { gap: 8px; }
@media (max-width: 520px) { .hero-head .logo { width: 58px; height: 58px; } .hero-head h1 .wordmark { height: 46px; } }

/* Dress me en pâte à modeler */
.dress-char.clay { height: min(56vh, 66vmin); width: auto; max-width: 92vw; }
.dress-char.clay .dress-body { height: 100%; width: 100%; object-fit: contain; display: block; filter: drop-shadow(0 8px 10px rgba(40, 20, 60, .18)); }
.dress-char.clay.happy .dress-body { animation: squash .7s cubic-bezier(.3, 1.6, .5, 1); }
.worn.clay { overflow: visible; }
.worn.clay img { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 3px rgba(40, 20, 60, .25)); animation: pop .4s ease-out; }

/* accueil enfant : la mission domine, un seul gros bouton ▶ qui pulse doucement ; le reste en retrait */
.mission { padding: 18px 20px 20px; box-shadow: 0 6px 0 color-mix(in srgb, var(--wacc) 45%, transparent); }
.mission-tag { text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; padding: 4px 14px; }
.mission-sub { margin-top: 8px; font-size: 1rem; line-height: 1.35; }
.mission-sub b { font: 800 1.15rem var(--display); opacity: 1; }
.mission .btn.go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.5rem; padding: 18px 34px; min-height: 72px; animation: gopulse 1.8s ease-in-out infinite; }
.mission .btn.go .go-play { width: 34px; height: 34px; flex: none; }
@keyframes gopulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .mission .btn.go { animation: none; } }
.week-card.current { box-shadow: 0 4px 0 color-mix(in srgb, var(--wacc) 30%, transparent); }
.week-card.current .week-text strong { font-size: clamp(1.4rem, 4vw, 2rem); }
/* téléphone : en-tête compact sur une ligne (logo à gauche, étoiles et Parents à droite) */
@media (max-width: 560px) {
  .home { gap: 14px; padding-top: 2px; }
  .head-btns { flex-direction: row; align-items: center; gap: 6px; align-self: center; }
  .head-btns .parents-btn { padding: 8px 10px; }
  .head-btns .parents-btn small { display: none; }
  .album-btn { padding: 7px 10px; }
  .hero-head { gap: 6px; }
}
@media (max-width: 560px) {
  .mission-steps { flex-wrap: nowrap; gap: 6px; }
  .mission-step { width: auto; flex: 1 1 0; min-width: 0; font-size: .62rem; }
  .week-card.current .week-tag { font-size: .72rem; padding: 3px 10px; white-space: nowrap; }
}
@media (max-width: 400px) { .head-btns .parents-btn span { display: none; } .head-btns .parents-btn { padding: 9px; } }
/* en-tête : boutons centrés sur la hauteur du logo, tous de la même hauteur */
.hero-head { align-items: center; }
.hero-head .head-btns { align-self: center; align-items: stretch; }
.hero-head .head-btns > button { min-height: 52px; display: flex; align-items: center; }
@media (max-width: 560px) {
  .hero-head .head-btns > button { min-height: 44px; }
  .hero-head .home-link { min-width: 0; flex: 1 1 auto; }
  .hero-head h1 .wordmark { height: auto; max-height: 46px; width: 100%; max-width: 160px; }
  .hero-head .logo { width: 48px; height: 48px; }
}

/* Paint it des mondes en pâte à modeler */
.paint-char { position: relative; height: min(100%, 62vh); width: auto; max-width: 92vw; cursor: pointer; }
.paint-char img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.paint-char .pc-img { position: relative; filter: drop-shadow(0 8px 10px rgba(40, 20, 60, .18)); }
.paint-char .pc-hint { opacity: 0; transition: opacity .3s; }
.paint-char .pc-hint.hint { animation: pchint 1.2s ease-in-out infinite; }
@keyframes pchint { 0%, 100% { opacity: .15; } 50% { opacity: .75; } }

/* Même en-tête sur la page parents et l'accueil enfant : mêmes têtes + logo, mêmes tailles, même largeur, même hauteur */
.landing { max-width: none; padding-top: 8px; }
.l-top, .hero-head { min-height: 112px; }
.l-top strong.brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; background: none; box-shadow: none; padding: 0; }
.l-top .logo, .hero-head .logo { width: 104px; height: 104px; flex: none; }
.l-top .logo img, .hero-head .logo img { width: 100%; height: 100%; display: block; }
.l-top .wordmark, .hero-head h1 .wordmark { height: 96px; width: auto; max-width: none; filter: drop-shadow(0 3px 4px rgba(74, 46, 107, .18)); }
.l-top .btn.small, .hero-head .head-btns > button { min-height: 52px; }
@media (max-width: 760px) {
  .l-top, .hero-head { min-height: 0; }
  .l-top .logo, .hero-head .logo { width: 64px; height: 64px; }
  .l-top .wordmark, .hero-head h1 .wordmark { height: 58px; }
}
@media (max-width: 560px) {
  .l-top .logo, .hero-head .logo { width: 46px; height: 46px; }
  .l-top .wordmark, .hero-head h1 .wordmark { height: auto; max-height: 42px; width: 100%; max-width: 150px; }
  .l-top strong.brand { flex: 1 1 auto; min-width: 0; gap: 4px; }
  .l-top .btn.small, .hero-head .head-btns > button { min-height: 44px; }
}
.hero-head { align-items: center; }
.hero-head .head-btns { align-self: center; align-items: stretch; }
.hero-head .head-btns > button, .l-top .btn.small { display: inline-flex; align-items: center; }
.l-top .logo img, .hero-head .logo img { border-radius: 0; }
@media (max-width: 560px) {
  .l-top { gap: 6px; }
  .l-top .wordmark { max-width: 118px; }
  .l-top .btn.small { padding: 6px 10px; font-size: .8rem; min-height: 40px; }
}
/* jamais de défilement de côté sur téléphone */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 360px) { .week-card.current .week-tag { white-space: normal; } }
@media (max-width: 400px) { .l-top { gap: 6px; } .l-top .btn.small { padding: 6px 10px; font-size: .8rem; } .l-top .wordmark { max-width: 118px; height: auto; } }

/* page parents : l'écran qui s'arrête tout seul (argument principal) */
.l-screenline { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; padding: 10px 14px; background: #FFF6D8; border-radius: 16px; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.l-screenline > span:first-child { flex: none; width: 34px; height: 34px; }
.l-screenline > span:first-child svg { width: 100%; height: 100%; }
.l-screen { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: center; background: #2F2350; color: #F4ECFB; }
.l-screen .l-h2 { color: #fff; margin-top: 0; }
.l-screen ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.5; }
.l-screen li { margin: 4px 0; }
.l-screen-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
@media (max-width: 640px) { .l-screen { grid-template-columns: 1fr; } .l-screen-art { max-width: 200px; margin: 0 auto; } }
.adv-free { position: absolute; top: 8px; left: 8px; background: #2E9E5B; color: #fff; font: 800 .72rem var(--display); padding: 2px 9px; border-radius: 999px; }
/* suivi parent : premier coup / après essais */
.answers-line .a-first { color: #1F7A45; font-weight: 800; }
.answers-line .a-late { color: #A35A00; font-weight: 800; }
.counters .c-first b { color: #1F7A45; }
.counters .c-late b { color: #A35A00; }
.bilan { font-size: 1.1rem; margin: 8px 0 4px; }
.report .counters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-bilan .chips { margin-bottom: 6px; }
/* À voix haute : « Say it! » et comptines (bonus de l'aventure, sans note) */
.bonus { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.bonus-title { margin: 0; font: 800 .9rem var(--display); color: var(--ink); background: rgba(255, 255, 255, .85); align-self: flex-start; padding: 3px 12px; border-radius: 999px; }
.bonus-tile .num { background: var(--accent); color: #fff; display: grid; place-items: center; }
.speak-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 4vmin; }
.speak-char { width: min(34vmin, 260px); aspect-ratio: 1; }
.speak-char > svg { width: 100%; height: 100%; }
.speak-obj { border: 0; background: rgba(255, 255, 255, .8); border-radius: 30px; width: min(30vmin, 220px); aspect-ratio: 1; padding: 14px; cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .08); }
.speak-obj:empty { visibility: hidden; }
.speak-obj > svg { width: 100%; height: 100%; }
.speak-obj.pop { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.speak-ear { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%) scale(.6); opacity: 0; transition: opacity .25s, transform .25s; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--accent); border-radius: 999px; padding: 8px 20px 8px 8px; font: 800 1.5rem var(--display); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); pointer-events: none; }
.speak-ear.on { opacity: 1; transform: translateX(-50%) scale(1); }
.speak-ear svg { width: 54px; height: 54px; }
.speak-ear .ring { fill: color-mix(in srgb, var(--accent) 14%, #fff); stroke: var(--accent); stroke-width: 2; transform-origin: center; transform: scale(calc(.85 + var(--lv, 0) * .3)); transition: transform .08s; }
.speak-ear.on .ring { animation: earpulse 1.2s ease-in-out infinite; }
@keyframes earpulse { 50% { stroke-width: 4; } }
.speak-next { position: absolute; right: 2%; bottom: 4%; transform: scaleX(-1); width: 52px; height: 52px; padding: 0; display: grid; place-items: center; }
.speak-next svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .speak-stage { flex-direction: column; gap: 2vh; } .speak-char { width: 40vw; } .speak-obj { width: 36vw; } }
@media (prefers-reduced-motion: reduce) { .speak-ear.on .ring, .speak-obj.pop { animation: none; } }
.theme .bonus { grid-column: 2; }
@media (max-width: 760px) { .theme .bonus { grid-column: auto; } }
.speak-ear span { white-space: nowrap; }
/* Page parents sur téléphone : parcours court, le reste replié après le prix */
.l-fold { background: var(--card); border-radius: 20px; box-shadow: 0 4px 0 var(--line); overflow: hidden; }
.l-fold > summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font: 800 1.15rem/1.2 var(--display); color: var(--ink); position: relative; }
.l-fold > summary::-webkit-details-marker { display: none; }
.l-fold > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.l-fold[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.l-fold .l-h2 { display: none; }
.l-fold > section { margin: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 640px) {
  .landing > * { order: 10; }
  .landing > .l-top { order: 0; }
  .landing > .l-hero { order: 1; }
  .landing > .l-screen { order: 2; }
  .landing > .l-steps-title { order: 3; }
  .landing > .l-steps { order: 4; }
  .landing > .l-shots { order: 5; }
  .landing > .l-price { order: 6; }
  .landing > .l-fold { order: 8; }
  .landing > .l-foot { order: 20; }
  .landing { gap: 16px; }
  .l-cast { display: none; }
  .l-hero .l-lead-3 { display: none; }
  .l-banner { max-width: 300px; }
  .l-screen { padding: 18px; gap: 10px; }
  .l-screen-art { max-width: 130px; }
}
@media (max-width: 640px) {
  .l-screen ul { display: none; }
  .l-shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .l-shots figure { flex: 0 0 78%; scroll-snap-align: center; margin: 0; }
}
/* « Ce que votre enfant reconnaît », repliée sur téléphone : marges intérieures pour tenir dans la largeur */
@media (max-width: 640px) {
  .l-fold > .l-learn { padding: 0 14px 18px; }
  .l-fold > .l-learn .l-sub { margin-top: 0; }
  .l-fold > .l-learn .l-weeks { gap: 10px; }
  .l-fold > .l-learn .l-week { min-width: 0; padding: 10px 8px 14px; }
}

/* haut de page : la seconde moitié du titre en rose, le sous-titre juste dessous, puis le bandeau jaune */
.l-hero h1 .l-h1-accent { color: var(--accent); white-space: nowrap; }
.l-tagline { margin: 0 0 14px; font: 700 1.15rem/1.35 var(--body); color: var(--ink); opacity: .9; text-wrap: balance; }
.l-hero .l-screenline { margin: 0 0 14px; }
@media (max-width: 480px) { .l-tagline { font-size: 1.05rem; } }

/* Comptines en écho : le refrain à répéter, mis en évidence dans le vers */
.speak-play .instr-text .en b.hook { color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Espace parents : ses progrès semaine par semaine */
.report .pw { display: grid; gap: 6px; margin: 8px 0 6px; }
.report .pw-row { display: grid; grid-template-columns: 5rem 1fr 2.8rem 3.6rem 3.2rem; align-items: center; gap: 8px; font-size: .92rem; }
.report .pw-head { font-size: .74rem; font-weight: 700; color: var(--muted, #7a7090); line-height: 1.15; }
.report .pw-head .pw-span { grid-column: span 2; }
.report .pw-head .pw-n, .report .pw-n { text-align: right; font-variant-numeric: tabular-nums; }
.report .pw-week { white-space: nowrap; }
.report .pw-bar { height: 10px; border-radius: 5px; background: rgba(0, 0, 0, .07); overflow: hidden; }
.report .pw-bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
/* le repère du hasard (3 sur 10 au plus, au moins 3 images au choix) */
.report .pw-bar { position: relative; }
.report .pw-bar::after { content: ""; position: absolute; left: 33.3%; top: -2px; bottom: -2px; width: 2px; background: rgba(0, 0, 0, .28); border-radius: 1px; }

/* Ses progrès : la légende en liste courte (avant : un paragraphe trop dense) */
.report .pw-notes { list-style: none; margin: 10px 0 4px; padding: 10px 12px; display: grid; gap: 6px; border-radius: 12px; background: rgba(0, 0, 0, .035); font-size: .86rem; line-height: 1.4; color: var(--muted, #6f6587); }
.report .pw-notes b { color: var(--ink, #3D3552); }
.report .pw-tick { display: inline-block; width: 2px; height: .95em; margin: 0 7px -2px 1px; background: rgba(0, 0, 0, .4); border-radius: 1px; }
