/* =====================================================================
   Oupi et ses amis · site vitrine
   Concept : une journée au parc d'Oupi, du matin jusqu'au dodo.
   Chaque section est un morceau de feutrine cousu au suivant.
   Charte : celle du dashboard et des écrans parents de l'appli.
   Un seul thème clair, voulu : la nuit arrive avec la fin de la page.
   ===================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* Couleurs : crème, abricot d'Oupi, sauge de sa culotte, bleu de ses yeux, nuit du dodo */
  --cream: #FDF8EF;
  --paper: #FFFDF9;
  --paper-2: #FAEFE0;
  --ink: #3B2820;
  --ink-soft: #5B4437;
  --muted: #86695A;
  --line: #EEDFCB;
  --line-strong: #D8C2A6;
  --apricot: #F59A4F;
  --apricot-ink: #B0531A;
  --apricot-soft: #FDE6CF;
  --sage: #BFC796;
  --sage-ink: #55622F;
  --sage-soft: #ECEFDA;
  --leaf: #8BAA48;
  --leaf-deep: #5E7F2A;
  --eye: #235D90;
  --eye-soft: #DFEAF5;
  --blush: #FD9167;
  --blush-soft: #FBE7DF;
  --sky: #7CC6EF;
  --sky-soft: #E3F1FA;
  --lilac-soft: #F1EAF8;
  --lilac-ink: #6B4FA0;
  --night: #323E66;
  --night-sky: #1B1F5C;
  --night-deep: #171B3F;
  --on-night: #F4EFE6;
  --on-night-soft: #C9C6E0;
  --gold: #FFC53D;
  --gold-ink: #C98A0B;
  --white: #FFFFFF;

  /* Typo : Fredoka pour la voix d'Oupi, Nunito pour parler aux parents */
  --font-display: "Fredoka", ui-rounded, "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-store: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mouvement : doux et amorti (GDD : pas de flash, pas de coupe rapide) */
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-sine: cubic-bezier(.37, 0, .63, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --t-quick: 160ms;
  --t-std: 380ms;
  --t-slow: 900ms;

  --shadow: 0 1px 0 rgba(59, 40, 32, .05), 0 14px 32px -16px rgba(120, 70, 30, .3);
  --shadow-lg: 0 2px 0 rgba(59, 40, 32, .05), 0 30px 60px -28px rgba(120, 70, 30, .45);
  --radius: 30px;
  --header-h: 74px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));

  /* Grain de la feutrine */
  --felt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --sprout-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 29v-12' stroke='%235E7F2A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M12 17C9.4 17 3.8 15.4 3.8 10.8 3.8 8 6.1 6.4 8.3 7.3 10.6 8.2 12 11.5 12 17Z' fill='%238BAA48'/%3E%3Cpath d='M12 17c2.6 0 8.2-1.6 8.2-6.2 0-2.8-2.3-4.4-4.5-3.5C13.4 8.2 12 11.5 12 17Z' fill='%239DBE55'/%3E%3C/svg%3E");
  --sprout-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 29v-12' stroke='%23C3A98C' stroke-width='2' stroke-linecap='round' stroke-dasharray='2 2.4'/%3E%3Cpath d='M12 17C9.4 17 3.8 15.4 3.8 10.8 3.8 8 6.1 6.4 8.3 7.3 10.6 8.2 12 11.5 12 17Z' fill='none' stroke='%23C3A98C' stroke-width='1.6' stroke-dasharray='2 2'/%3E%3Cpath d='M12 17c2.6 0 8.2-1.6 8.2-6.2 0-2.8-2.3-4.4-4.5-3.5C13.4 8.2 12 11.5 12 17Z' fill='none' stroke='%23C3A98C' stroke-width='1.6' stroke-dasharray='2 2'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--eye); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
:focus-visible { outline: 3px solid var(--eye); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1260px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Feutrine : grain + couture en pointillés */
.felt { position: relative; isolation: isolate; }
.felt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  background-image: var(--felt); mix-blend-mode: multiply; opacity: .55;
}
.felt::before {
  content: ""; position: absolute; inset: 9px; border-radius: calc(var(--r, var(--radius)) - 9px); pointer-events: none; z-index: 6;
  border: 2px dashed var(--seam, rgba(59, 40, 32, .16));
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform var(--t-quick) var(--ease-pop), box-shadow var(--t-quick) ease, background-color var(--t-std) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px) scale(.98); }
.btn-apricot { background: var(--apricot); color: var(--ink); box-shadow: 0 4px 0 #D9782E, 0 12px 22px -12px rgba(176, 83, 26, .6); }
.btn-apricot:active { box-shadow: 0 1px 0 #D9782E; }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong), 0 3px 0 var(--line-strong); }
.btn-night-ghost { background: rgba(255, 255, 255, .08); color: var(--on-night); box-shadow: inset 0 0 0 2px rgba(244, 239, 230, .35); }
.btn-night-ghost:hover { background: rgba(255, 255, 255, .14); }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline dashed; text-underline-offset: 4px; cursor: pointer; font-size: .92rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* Badges des stores */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px 0 15px;
  border-radius: 14px; background: #0B0B0F; color: #FFFFFF; text-decoration: none;
  box-shadow: inset 0 0 0 1px #A6A6A6, 0 14px 26px -14px rgba(0, 0, 0, .55);
  transition: transform var(--t-quick) var(--ease-pop), box-shadow var(--t-std) ease;
}
.store:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: inset 0 0 0 1px #C9C9C9, 0 20px 30px -14px rgba(0, 0, 0, .6); }
.store:active { transform: translateY(1px) scale(.97); }
.store svg { width: 27px; height: 27px; flex: none; }
.store-ios svg { width: 25px; height: 30px; margin-top: -3px; }
.store span { display: flex; flex-direction: column; font-family: var(--font-store); line-height: 1.05; }
.store small { font-size: .7rem; font-weight: 500; letter-spacing: .01em; }
.store-android small { text-transform: uppercase; font-size: .62rem; letter-spacing: .06em; }
.store strong { font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- En-tête ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color var(--t-std) ease, box-shadow var(--t-std) ease, backdrop-filter var(--t-std) ease;
}
.top.is-scrolled { background: rgba(253, 248, 239, .9); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 10px 30px -22px rgba(120, 70, 30, .55); }
.top-in {
  display: flex; align-items: center; gap: 18px; height: var(--header-h);
  max-width: 1260px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.top-logo { flex: none; display: block; transition: transform var(--t-std) var(--ease-pop); }
.top-logo:hover { transform: rotate(-3deg) scale(1.04); }
.top-logo img { height: 42px; width: auto; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: 999px; transition: background-color var(--t-quick) ease;
}
.top-nav a:hover { background: rgba(255, 255, 255, .7); }
.top-nav a.is-here { background: var(--white); box-shadow: inset 0 0 0 2px var(--line); }
.top-cta { padding: 12px 20px; font-size: 1rem; }

@keyframes sprout-grow { from { transform: scale(.2, 0); } to { transform: none; } }

/* Oupi marche sur la couture de l'en-tête, au rythme de la page */
.walk-track { position: absolute; left: 0; right: 0; bottom: 0; height: 0; opacity: 0; transition: opacity var(--t-std) ease; pointer-events: none; }
.top.is-scrolled .walk-track { opacity: 1; }
.walk-line { position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px dashed rgba(59, 40, 32, .14); }
.walker { position: absolute; left: 0; bottom: 1px; height: 28px; width: auto; transform: translateX(var(--wx, 0px)) scaleX(var(--wdir, 1)); will-change: transform; }


@keyframes panel-in { from { transform: translateY(-10px) scale(.97); opacity: 0; } }

/* Étoile qui vole jusqu'au jardin + message */

.toast {
  position: fixed; z-index: 70; left: 0; right: 0; margin-inline: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  width: max-content; transform: translateY(160%); max-width: min(560px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 22px;
  background: var(--night); color: var(--on-night); font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; line-height: 1.3;
  box-shadow: 0 20px 40px -20px rgba(23, 27, 63, .8); transition: transform .5s var(--ease-soft);
}
.toast.show { transform: none; }

/* ---------- Le jardin d'Oupi : petites missions ----------
   Chaque mission fait grandir une pousse. Aucun point, aucun chiffre, aucune étoile. */
.garden-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 10px; border: 0; cursor: pointer;
  border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line), 0 6px 14px -10px rgba(120, 70, 30, .5);
  font-family: var(--font-display); font-weight: 600; transition: transform var(--t-quick) var(--ease-pop);
}
.garden-pill:hover { transform: translateY(-1px); }
.garden-pill.bump { animation: pill-bump .7s var(--ease-pop); }
.garden-sprouts { display: flex; align-items: flex-end; gap: 1px; height: 24px; }
.garden-sprouts svg { width: 16px; height: 22px; transform-origin: 50% 100%; }
.garden-sprouts svg.grow { animation: sprout-grow .8s var(--ease-pop) both; }
.garden-label { font-size: .95rem; color: var(--sage-ink); }
@keyframes pill-bump { 30% { transform: scale(1.12) rotate(-2deg); } 60% { transform: scale(.97); } }

.shop-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--white); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  box-shadow: inset 0 0 0 2px var(--line), 0 6px 14px -10px rgba(120, 70, 30, .5); transition: transform var(--t-quick) var(--ease-pop);
}
.shop-btn:hover { transform: translateY(-1px) rotate(-1deg); }
.shop-btn svg, .shop-cta svg { width: 22px; height: 22px; flex: none; }
.shop-soon { padding: 3px 8px; border-radius: 999px; background: var(--apricot-soft); color: var(--apricot-ink); font-family: var(--font-body); font-weight: 800; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }

.garden-panel { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 8px); right: var(--gutter-r); width: min(420px, calc(100vw - 32px)); }
.garden-panel-in {
  --r: 28px; border-radius: 28px; background: var(--white); padding: 26px 26px 22px; box-shadow: var(--shadow-lg);
  animation: panel-in .45s var(--ease-soft) both; max-height: calc(100svh - var(--header-h) - 40px); overflow: auto;
}
.garden-panel-in > * { position: relative; z-index: 7; }
@keyframes panel-in { from { transform: translateY(-10px) scale(.97); opacity: 0; } }
.garden-close { position: absolute; right: 14px; top: 14px; z-index: 8; }
.garden-totu { position: absolute; right: 54px; top: -6px; width: 74px; height: auto; transform: rotate(6deg); z-index: 7; }
.garden-panel h2 { font-size: 1.7rem; margin: 6px 0 8px; }
.garden-intro { color: var(--ink-soft); font-size: .97rem; max-width: 30em; padding-right: 60px; }
.quest-list { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; gap: 8px; }
.quest-list li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--paper-2); }
.quest-list li.done { background: #F2F5E4; }
.quest-list .q-sprout { width: 24px; height: 30px; background: var(--sprout-off) center/contain no-repeat; }
.quest-list li.done .q-sprout { background-image: var(--sprout-on); }
.quest-list .q-label { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.quest-list li.done .q-label { color: var(--sage-ink); }
.quest-list a { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--apricot-ink); text-decoration: none; }

.fly-sprout { position: fixed; left: 0; top: 0; width: 40px; height: 50px; z-index: 80; pointer-events: none; background: var(--sprout-on) center/contain no-repeat; filter: drop-shadow(0 6px 10px rgba(94, 127, 42, .45)); }
.toast::before { content: ""; flex: none; width: 26px; height: 32px; background: var(--sprout-on) center/contain no-repeat; }
.toast.plain::before { display: none; }

.quest-tag {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 8px 16px 8px 10px; border-radius: 22px;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--line-strong); font-family: var(--font-display); font-weight: 500; font-size: .98rem; line-height: 1.25;
  transition: box-shadow var(--t-std) ease, background-color var(--t-std) ease;
}
.qt-sprout { flex: none; width: 22px; height: 28px; background: var(--sprout-off) center/contain no-repeat; }
.qt-state { color: var(--sage-ink); font-weight: 600; }
.qt-state:empty { display: none; }
.quest-tag.is-done { background: #F2F6E3; box-shadow: inset 0 0 0 2px #C9D79A; }
.quest-tag.is-done .qt-sprout { background-image: var(--sprout-on); animation: sprout-grow .8s var(--ease-pop); transform-origin: 50% 100%; }
.finale .quest-tag { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(244, 239, 230, .28); color: var(--on-night); }
.finale .quest-tag.is-done { background: rgba(139, 170, 72, .22); }
.finale .qt-state { color: #CFE3A0; }
.finale-garden { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); font-family: var(--font-display); font-weight: 500; }
.finale-garden svg { width: 18px; height: 24px; }

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 18px);
  background: linear-gradient(180deg, #E4F4FD 0%, #BFE5F9 30%, #8FD0F2 62%, #79C4EE 100%);
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; translate: calc(var(--px, 0) * -14px) 0; }
.cloud { position: absolute; left: 0; width: 190px; height: 58px; border-radius: 60px; background: #FFFFFF; opacity: .95; filter: drop-shadow(0 10px 14px rgba(62, 155, 214, .22)); animation: drift 90s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #FFFFFF; }
.cloud::before { width: 86px; height: 86px; left: 28px; top: -42px; }
.cloud::after { width: 64px; height: 64px; left: 96px; top: -28px; }
.cloud.c1 { top: 15%; animation-delay: -12s; }
.cloud.c2 { top: 32%; transform: scale(.7); animation-duration: 120s; animation-delay: -70s; }
.cloud.c3 { top: 8%; transform: scale(.55); animation-duration: 140s; animation-delay: -40s; opacity: .8; }
@keyframes drift { from { translate: -260px 0; } to { translate: calc(100vw + 60px) 0; } }

.hero-copy { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; column-gap: clamp(28px, 4.5vw, 72px); translate: calc(var(--px, 0) * -5px) 0; }
.hero-brand { display: grid; justify-items: start; }
.hero-pitch { max-width: 620px; padding-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); color: var(--sage-ink); font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 18px -12px rgba(35, 93, 144, .5);
}
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(139, 170, 72, .25); animation: breathe-dot 2.6s var(--ease-sine) infinite alternate; }
@keyframes breathe-dot { to { box-shadow: 0 0 0 8px rgba(139, 170, 72, .08); } }
.hero-logo { margin: 10px 0 0 -12px; line-height: 0; }
.hero-logo img { width: clamp(240px, 28vw, 420px); height: auto; filter: drop-shadow(0 14px 18px rgba(176, 83, 26, .22)); }
.hero-claim { font-family: var(--font-display); font-weight: 600; font-stretch: 106%; font-size: clamp(1.55rem, 1rem + 1.8vw, 2.4rem); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.hero-claim span { color: var(--apricot-ink); }
.hero-sub { margin-top: 14px; max-width: 31em; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--ink-soft); }
.hero .stores { margin-top: 22px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 16px 0 0; font-weight: 700; font-size: .92rem; color: var(--eye); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts li::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21v-7' stroke='%235E7F2A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M12 14C9.6 14 4.5 12.6 4.5 8.4 4.5 5.9 6.6 4.4 8.6 5.2 10.7 6 12 9 12 14Z' fill='%238BAA48'/%3E%3Cpath d='M12 14c2.4 0 7.5-1.4 7.5-5.6 0-2.5-2.1-4-4.1-3.2C13.3 6 12 9 12 14Z' fill='%239DBE55'/%3E%3C/svg%3E") center/contain no-repeat; }

.hero-scene { position: relative; z-index: 2; margin-top: clamp(-210px, -13vw, -40px); }
.scene-box { position: relative; width: 100%; aspect-ratio: 2400 / 1018; }
.scene-bg {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%); mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  transform: translate3d(calc(var(--px, 0) * -8px), calc(var(--scroll, 0) * .1px), 0) scale(1.03);
}
.pal {
  position: absolute; bottom: var(--b); left: var(--l); height: var(--h); aspect-ratio: var(--ar);
  transform: translateX(-50%); translate: calc(var(--px, 0) * var(--depth, 10px)) calc(var(--scroll, 0) * -.05px);
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pal img { width: 100%; height: 100%; transform-origin: 50% 100%; animation: breathe 3.6s var(--ease-sine) infinite alternate; filter: drop-shadow(0 10px 12px rgba(40, 70, 20, .18)); }
.pal::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -3%; width: 72%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 82, 24, .36), rgba(52, 82, 24, 0)); }
.pal:hover img { animation-play-state: paused; }
.pal.hop img { animation: hop .7s var(--ease-pop); }
.pal:focus-visible { outline-offset: 6px; border-radius: 30px; }
.pal-lala { --l: 31%; --b: 13%; --h: 41%; --ar: 510 / 697; --depth: 8px; }
.pal-oupi { --l: 46.5%; --b: 6%; --h: 60%; --ar: 583 / 794; --depth: 14px; }
.pal-totu { --l: 61.5%; --b: 12%; --h: 39%; --ar: 531 / 820; --depth: 9px; }
.pal-ibou { --l: 75%; --b: 9%; --h: 45%; --ar: 628 / 820; --depth: 11px; }
.pal-lala img { animation-duration: 3.1s; }
.pal-totu img { animation-duration: 2.7s; animation-delay: -1s; }
.pal-ibou img { animation-duration: 4.2s; animation-delay: -2s; }
@keyframes breathe { from { transform: none; } to { transform: scale(1.012, .988); } }
@keyframes hop {
  0% { transform: none; }
  18% { transform: scale(1.06, .9); }
  45% { transform: translateY(-14%) scale(.96, 1.06); }
  70% { transform: translateY(0) scale(1.04, .95); }
  100% { transform: none; }
}

.bubble {
  background: var(--white); color: var(--ink); border-radius: 22px; padding: 12px 18px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; line-height: 1.25;
  box-shadow: 0 16px 30px -18px rgba(35, 60, 90, .6);
}
.hero-bubble {
  position: absolute; z-index: 4; left: var(--bx, 50%); bottom: var(--by, 70%); width: max-content; max-width: min(280px, 64vw);
  --tx: 0%; transform: translate(var(--tx), 8px) scale(.85); transform-origin: var(--to, 0% 100%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease-pop), opacity .25s ease;
}
.hero-bubble.show { transform: translate(var(--tx), 0) scale(1); opacity: 1; }
.hero-bubble::after { content: ""; position: absolute; left: var(--tail, 24px); bottom: -8px; width: 20px; height: 20px; margin-left: -10px; background: var(--white); transform: rotate(45deg); border-radius: 4px; }
.hero-bubble.flip { --tx: -100%; --to: 100% 100%; --tail: calc(100% - 24px); }
.hero-bubble.above { --tx: -50%; --to: 50% 100%; --tail: 50%; }

.scroll-cue {
  position: absolute; z-index: 4; left: max(var(--gutter-l), 3%); bottom: 5%;
  display: inline-flex; align-items: center; gap: 12px; max-width: 340px; padding: 12px 18px 12px 12px; border-radius: 22px;
  background: rgba(255, 255, 255, .92); color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.3;
  box-shadow: 0 16px 30px -18px rgba(40, 70, 20, .7); animation: cue-bob 3.2s var(--ease-sine) infinite alternate;
}
.scroll-cue b { font-family: var(--font-display); font-weight: 600; color: var(--apricot-ink); }
.cue-sprout { flex: none; width: 30px; height: 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 29v-12' stroke='%235E7F2A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M12 17C9.4 17 3.8 15.4 3.8 10.8 3.8 8 6.1 6.4 8.3 7.3 10.6 8.2 12 11.5 12 17Z' fill='%238BAA48'/%3E%3Cpath d='M12 17c2.6 0 8.2-1.6 8.2-6.2 0-2.8-2.3-4.4-4.5-3.5C13.4 8.2 12 11.5 12 17Z' fill='%239DBE55'/%3E%3C/svg%3E") center/contain no-repeat; transform-origin: 50% 100%; animation: spin-soft 4s var(--ease-sine) infinite alternate; }
@keyframes cue-bob { to { translate: 0 -6px; } }
@keyframes spin-soft { from { rotate: -8deg; } to { rotate: 8deg; } }

/* Séquence d'arrivée du héros */
.js .hero .chip { animation: rise .7s var(--ease-soft) .05s both; }
.js .hero-logo img { animation: logo-in .9s var(--ease-pop) .12s both; }
.js .hero-claim { animation: rise .8s var(--ease-soft) .3s both; }
.js .hero-sub { animation: rise .8s var(--ease-soft) .4s both; }
.js .hero .stores { animation: rise .8s var(--ease-soft) .5s both; }
.js .hero-facts { animation: rise .8s var(--ease-soft) .58s both; }
.js .pal { animation: pop-up .9s var(--ease-pop) both; }
.js .pal-oupi { animation-delay: .35s; }
.js .pal-lala { animation-delay: .5s; }
.js .pal-totu { animation-delay: .62s; }
.js .pal-ibou { animation-delay: .74s; }
.js .scroll-cue { animation: rise .8s var(--ease-soft) 1.1s both, cue-bob 3.2s var(--ease-sine) 2s infinite alternate; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes logo-in { from { opacity: 0; transform: translateY(-30px) scale(.7) rotate(-4deg); } }
@keyframes pop-up { from { opacity: 0; transform: translate(-50%, 34%) scale(.8); } }

/* ---------- Sections ---------- */
.sec { position: relative; background: var(--bg); padding-block: clamp(80px, 9vw, 130px) clamp(110px, 12vw, 170px); }
.sec-cream { --bg: var(--cream); }
.sec-paper { --bg: var(--paper-2); }
.sec-sage { --bg: var(--sage-soft); }
.sec-sky { --bg: var(--sky-soft); }
.sec-blush { --bg: var(--blush-soft); }
.sec-apricot { --bg: var(--apricot-soft); }
.sec-lilac { --bg: var(--lilac-soft); }
#haut { --next: var(--cream); }
#pourquoi { --next: var(--sage-soft); }
#la-bande { --next: var(--paper-2); }
#episode { --next: var(--sky-soft); }
#jouer { --next: var(--cream); }
#temps-ecran { --next: var(--sage-soft); }
#reperes { --next: var(--blush-soft); }
#activites { --next: var(--apricot-soft); }
#parents { --next: var(--cream); }
#confiance { --next: var(--lilac-soft); }
#boutique { --next: var(--night-sky); }

.edge { position: absolute; z-index: 3; left: 0; bottom: -1px; width: 100%; height: clamp(36px, 6vw, 90px); pointer-events: none; }
.edge-fill { fill: var(--next); }
.edge-seam { fill: none; stroke: rgba(59, 40, 32, .2); stroke-width: 2; stroke-dasharray: 7 8; vector-effect: non-scaling-stroke; }
.edge-night .edge-seam { stroke: rgba(244, 239, 230, .3); }

.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); display: grid; gap: 16px; justify-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px; border-radius: 999px;
  font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--apricot-ink);
  background: var(--felt), rgba(255, 255, 255, .78); border: 2px dashed color-mix(in srgb, currentColor 42%, transparent);
  box-shadow: 0 3px 0 color-mix(in srgb, currentColor 18%, transparent);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .8; }
.sec h2 { font-size: clamp(2rem, 1.25rem + 3vw, 3.45rem); line-height: 1.04; letter-spacing: -.012em; font-stretch: 104%; }
.sec h2 em { font-style: normal; color: var(--apricot-ink); }
.sec h3 { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.8rem); line-height: 1.15; }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); max-width: 40em; }


/* ---------- Titres « dessin animé » ----------
   Le JS double chaque titre : .toon-back porte le contour et le relief,
   .toon-face la feutrine (dégradé + grain), posée par-dessus. */
:root {
  --toon-ring: 0.075em 0.000em 0, 0.069em 0.029em 0, 0.053em 0.053em 0, 0.029em 0.069em 0, 0.000em 0.075em 0, -0.029em 0.069em 0, -0.053em 0.053em 0, -0.069em 0.029em 0, -0.075em 0.000em 0, -0.069em -0.029em 0, -0.053em -0.053em 0, -0.029em -0.069em 0, -0.000em -0.075em 0, 0.029em -0.069em 0, 0.053em -0.053em 0, 0.069em -0.029em 0;
  --toon-depth: 0.075em 0.055em 0, 0.065em 0.092em 0, 0.038em 0.120em 0, 0.000em 0.130em 0, -0.037em 0.120em 0, -0.065em 0.092em 0, -0.075em 0.055em 0, -0.065em 0.018em 0, -0.038em -0.010em 0, -0.000em -0.020em 0, 0.038em -0.010em 0, 0.065em 0.017em 0, 0.075em 0.100em 0, 0.065em 0.138em 0, 0.038em 0.165em 0, 0.000em 0.175em 0, -0.037em 0.165em 0, -0.065em 0.138em 0, -0.075em 0.100em 0, -0.065em 0.063em 0, -0.038em 0.035em 0, -0.000em 0.025em 0, 0.038em 0.035em 0, 0.065em 0.062em 0;
  --toon-ring-sm: 0.060em 0.000em 0, 0.052em 0.030em 0, 0.030em 0.052em 0, 0.000em 0.060em 0, -0.030em 0.052em 0, -0.052em 0.030em 0, -0.060em 0.000em 0, -0.052em -0.030em 0, -0.030em -0.052em 0, -0.000em -0.060em 0, 0.030em -0.052em 0, 0.052em -0.030em 0;
  --toon-depth-sm: 0.060em 0.060em 0, 0.049em 0.095em 0, 0.019em 0.117em 0, -0.019em 0.117em 0, -0.049em 0.095em 0, -0.060em 0.060em 0, -0.049em 0.025em 0, -0.019em 0.003em 0, 0.019em 0.003em 0, 0.049em 0.025em 0;
}
.toon { position: relative; isolation: isolate; font-weight: 700; letter-spacing: .02em; word-spacing: .14em; }
.toon-face, .toon-back { display: block; }
.toon-face {
  position: relative; z-index: 1; color: transparent; -webkit-text-fill-color: transparent;
  background-image: var(--felt), linear-gradient(180deg, var(--toon-hi, #FFFFFF) 10%, var(--toon-lo, #FFE9CF) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.toon-face em, .toon-face > span {
  font-style: normal; color: transparent; -webkit-text-fill-color: transparent;
  background-image: var(--felt), linear-gradient(180deg, var(--toon-em-hi, #FFC786) 10%, var(--toon-em-lo, #F0852F) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.toon-back {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none;
  color: var(--toon-line, #3B2820); -webkit-text-fill-color: var(--toon-line, #3B2820);
  text-shadow: var(--toon-ring), var(--toon-depth), 0 .2em .3em var(--toon-soft, rgba(90, 50, 20, .28));
}
.toon-back * { color: inherit; -webkit-text-fill-color: inherit; background: none; font-style: normal; }
.toon.toon-sm .toon-back { text-shadow: var(--toon-ring-sm), var(--toon-depth-sm), 0 .14em .2em var(--toon-soft, rgba(90, 50, 20, .22)); }
.toon.toon-sm { --toon-hi: #FFC786; --toon-lo: #F38A36; }
.friend-name.toon { --toon-hi: #FFFFFF; --toon-lo: #FFF0DD; }
.finale .toon { --toon-line: #0E1035; --toon-soft: rgba(0, 0, 0, .45); }
.sec h2.toon { line-height: 1.12; }
.hero-claim.toon { line-height: 1.16; font-weight: 700; max-width: 15.5em; }

/* Apparition au défilement : le contenu reste visible, il se pose en douceur */
.js .reveal { transition: transform 1s var(--ease-soft); transition-delay: var(--d, 0ms); }
.js .reveal:not(.in) { transform: translateY(38px) scale(.985); }

/* ---------- Pourquoi : la comparaison ---------- */
.versus { display: grid; gap: 30px; }
.versus-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start; padding: 6px; border-radius: 999px;
  background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--line);
}
.versus-switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--muted); transition: color var(--t-std) ease;
}
.versus-switch button[aria-checked="true"] { color: var(--ink); }
.switch-knob { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--white); box-shadow: 0 6px 14px -8px rgba(120, 70, 30, .6); transition: transform .5s var(--ease-pop), background-color .5s ease; }
.versus[data-mode="oupi"] .switch-knob { transform: translateX(100%); background: var(--apricot); }
.versus-switch.nudge button[data-mode="oupi"] { animation: nudge 1.2s var(--ease-sine) 2; }
@keyframes nudge { 50% { transform: scale(1.08); color: var(--apricot-ink); } }

.versus-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.tablet { aspect-ratio: 3 / 4; border-radius: 36px; background: #2B2230; padding: 13px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #4A3D51; transform: rotate(-2deg); transition: transform .8s var(--ease-soft); }
.versus[data-mode="oupi"] .tablet { transform: rotate(1.5deg); }
.tablet-screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: #15121A; }
.feed { position: absolute; inset: 0; transition: opacity .6s ease, filter .6s ease; }
.feed-col { display: grid; gap: 10px; padding: 10px; animation: feed 7s linear infinite; }
.feed-col i { display: block; height: 118px; border-radius: 14px; position: relative; }
.feed-col i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 18px solid rgba(255, 255, 255, .9); border-top: 11px solid transparent; border-bottom: 11px solid transparent; transform: translate(-40%, -50%); }
.feed-col i:nth-child(6n+1) { background: linear-gradient(135deg, #FF5E8A, #FFB443); }
.feed-col i:nth-child(6n+2) { background: linear-gradient(135deg, #3B7BFF, #7A5CFF); }
.feed-col i:nth-child(6n+3) { background: linear-gradient(135deg, #12C99B, #B6E636); }
.feed-col i:nth-child(6n+4) { background: linear-gradient(135deg, #FF7A3D, #FF3D7F); }
.feed-col i:nth-child(6n+5) { background: linear-gradient(135deg, #9B51FF, #FF5ECF); }
.feed-col i:nth-child(6n+6) { background: linear-gradient(135deg, #FFC400, #FF6A00); }
@keyframes feed { to { transform: translateY(-50%); } }
.feed-tag { position: absolute; z-index: 2; padding: 6px 11px; border-radius: 10px; background: #FFE500; color: #1A1A1A; font-family: var(--font-store); font-weight: 800; font-size: .78rem; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); animation: tag-pop 2.8s var(--ease-pop) infinite; }
.feed-tag.t1 { top: 12%; right: 8%; animation-delay: .2s; }
.feed-tag.t2 { top: 38%; left: 8%; background: #FF4D2E; color: #FFFFFF; animation-delay: 1s; }
.feed-tag.t3 { top: 58%; right: 12%; background: #FFFFFF; animation-delay: 1.6s; }
.feed-tag.t4 { top: 76%; left: 14%; background: #7CFFB2; animation-delay: 2.2s; }
@keyframes tag-pop { 0%, 100% { transform: scale(0); } 12%, 70% { transform: scale(1); } 80% { transform: scale(0); } }
.calm { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.calm > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.calm-oupi { position: absolute; left: 50%; top: 30%; width: 82%; height: auto; transform: translateX(-50%); animation: float 5s var(--ease-sine) infinite alternate; }
.calm p { position: absolute; left: 0; right: 0; bottom: 16%; text-align: center; color: var(--on-night); font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.versus[data-mode="oupi"] .feed { opacity: 0; filter: blur(4px); }
.versus[data-mode="oupi"] .calm { opacity: 1; }
.screen-time { position: absolute; z-index: 3; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #FFFFFF; font-family: var(--font-display); font-size: .9rem; }
.screen-time span { opacity: .7; }
.screen-time b { font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes float { from { translate: 0 0; } to { translate: 0 -10px; } }

.versus-rows { margin: 0; display: grid; gap: 10px; }
.vrow { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.vrow dt { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vrow dd { margin: 0; grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; line-height: 1.25; transition: opacity .45s ease, transform .55s var(--ease-soft); transition-delay: var(--d, 0ms); }
.vrow dd::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: center/16px no-repeat; }
.v-classic::before { background-color: #F3E3E0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23BE4329' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.v-oupi::before { background-color: #E8EFD5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21v-7' stroke='%235E7F2A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M12 14C9.6 14 4.5 12.6 4.5 8.4 4.5 5.9 6.6 4.4 8.6 5.2 10.7 6 12 9 12 14Z' fill='%238BAA48'/%3E%3Cpath d='M12 14c2.4 0 7.5-1.4 7.5-5.6 0-2.5-2.1-4-4.1-3.2C13.3 6 12 9 12 14Z' fill='%239DBE55'/%3E%3C/svg%3E"); }
.v-oupi { opacity: 0; transform: translateY(14px); }
.versus[data-mode="oupi"] .v-classic { opacity: 0; transform: translateY(-14px); }
.versus[data-mode="oupi"] .v-oupi { opacity: 1; transform: none; color: var(--sage-ink); }

.health { display: flex; align-items: center; gap: 20px; margin-top: clamp(40px, 6vw, 64px); max-width: 880px; padding: 18px 26px 18px 18px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.health img { flex: none; width: 74px; height: auto; }
.health p { color: var(--ink-soft); font-size: 1rem; }
.health b { color: var(--ink); }

/* ---------- La bande ---------- */
.sec-sage .eyebrow { color: var(--sage-ink); }
.friends { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; padding-top: 90px; }
.friend {
  --r: 30px; position: relative; display: block; width: 100%; text-align: left; cursor: pointer; border: 0;
  padding: 0 22px 24px; border-radius: 30px; background: var(--tint); box-shadow: var(--shadow);
  transition: transform var(--t-std) var(--ease-pop), box-shadow var(--t-std) ease;
}
.friend::before { content: ""; position: absolute; inset: 9px; border-radius: 21px; border: 2px dashed rgba(59, 40, 32, .14); pointer-events: none; }
.friend:hover { box-shadow: var(--shadow-lg); }
.friend-art { display: block; height: 220px; margin-top: -92px; }
.friend-art img { height: 100%; width: auto; margin-inline: auto; filter: drop-shadow(0 14px 14px rgba(59, 40, 32, .2)); transform-origin: 50% 100%; transition: transform .5s var(--ease-pop); }
.friend:hover .friend-art img { transform: translateY(-8px) rotate(-2deg); }
.friend.hop .friend-art img { animation: hop .7s var(--ease-pop); }
.friend-body { display: grid; gap: 2px; margin-top: 12px; }
.friend-kind { font-weight: 800; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink2); opacity: .8; }
.friend-name { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; line-height: 1.05; color: var(--ink); }
.friend-more { display: grid; gap: 10px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease-soft), opacity .4s ease, margin .6s var(--ease-soft); font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }
.friend[aria-expanded="true"] .friend-more { max-height: 260px; opacity: 1; margin-top: 8px; }
.friend-more q { font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; color: var(--ink2); quotes: "« " " »"; }
.friend-seal { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .8); display: grid; place-items: center; }
.friend-seal::after { content: "?"; font-family: var(--font-display); font-weight: 600; color: var(--muted); }
.friend.met .friend-seal { background: var(--white); }
.friend.met .friend-seal::after { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21v-7' stroke='%235E7F2A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M12 14C9.6 14 4.5 12.6 4.5 8.4 4.5 5.9 6.6 4.4 8.6 5.2 10.7 6 12 9 12 14Z' fill='%238BAA48'/%3E%3Cpath d='M12 14c2.4 0 7.5-1.4 7.5-5.6 0-2.5-2.1-4-4.1-3.2C13.3 6 12 9 12 14Z' fill='%239DBE55'/%3E%3C/svg%3E") center/contain no-repeat; animation: sprout-grow .7s var(--ease-pop); }


/* ---------- Un épisode ---------- */
.ep { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(30px, 5vw, 70px); }
.ep-stage { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; display: grid; gap: 16px; }
.phone { aspect-ratio: 19.5 / 9; border-radius: 46px; background: #2B2230; padding: 13px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #4A3D51; position: relative; }
.phone::after { content: ""; position: absolute; right: 22px; top: 50%; width: 6px; height: 40px; border-radius: 4px; background: #1C1720; transform: translateY(-50%); }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #0F0D12; }
.scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity .8s ease, transform 1.4s var(--ease-soft); }
.scr.is-on { opacity: 1; transform: none; }
.scr > img:first-child, .scr video { width: 100%; height: 100%; object-fit: cover; }
.scr-char { position: absolute; height: 82%; width: auto; bottom: 4%; }
.scr-oups { left: 44%; }
.scr-joy { left: 22%; animation: hop 1.6s var(--ease-pop) infinite; }
.scr-bubble { position: absolute; top: 9%; left: 6%; padding: 8px 14px; border-radius: 16px; background: var(--white); font-family: var(--font-display); font-weight: 500; font-size: clamp(.8rem, .6rem + .6vw, 1.05rem); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
.scr-2 .scr-bubble { left: auto; right: 8%; }
.scr-tap { position: absolute; right: 18%; bottom: 26%; width: 13%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: tap 1.8s var(--ease-soft) infinite; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); transform: scale(.9); } 70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); transform: scale(1); } 100% { transform: scale(.9); } }
.scr-3 { background: radial-gradient(circle at 30% 40%, #FFF5E6, #F6D9F0); display: flex; align-items: center; justify-content: center; gap: 6%; }
.scr-3 .scr-song { width: auto; height: 82%; border-radius: 22px; box-shadow: 0 18px 30px -16px rgba(80, 40, 90, .6); }
.eq { display: flex; align-items: flex-end; gap: 6px; height: 34%; }
.eq i { width: 12px; height: 30%; border-radius: 6px; background: var(--apricot); animation: eq 1s var(--ease-sine) infinite alternate; animation-play-state: paused; }
.eq i:nth-child(2) { background: #E2689A; animation-delay: -.3s; }
.eq i:nth-child(3) { background: #3D7DD8; animation-delay: -.6s; }
.eq i:nth-child(4) { background: #D9A010; animation-delay: -.2s; }
.eq i:nth-child(5) { background: #6FA14A; animation-delay: -.8s; }
.scr-3.is-on .eq i, .ep.singing .eq i { animation-play-state: running; }
@keyframes eq { from { height: 22%; } to { height: 100%; } }
.scr-5 > img:first-child { object-position: 50% 60%; filter: brightness(.85); }
.scr-cloud { position: absolute; left: 50%; top: 22%; width: 38%; height: auto; transform: translateX(-50%); animation: float 5s var(--ease-sine) infinite alternate; }
.scr-off { position: absolute; inset: 0; background: radial-gradient(circle at 35% 30%, #2A2730, #08070A 70%); opacity: 0; pointer-events: none; transition: opacity 1.6s var(--ease-sine); }
.ep.screen-off .scr-off { opacity: .94; }

.ep-bar { position: relative; height: 16px; margin: 8px 6px 0; }
.ep-segs { display: flex; gap: 3px; height: 100%; border-radius: 999px; overflow: hidden; }
.ep-segs span { flex: var(--w) 1 0; background: var(--c); opacity: .9; }
.ep-marker { position: absolute; top: 50%; left: var(--p, 0%); width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; padding: 3px; background: var(--white); box-shadow: 0 8px 16px -8px rgba(59, 40, 32, .6); transition: left .25s var(--ease-soft); }
.ep-marker img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ep-clock { font-family: var(--font-display); font-weight: 500; color: var(--muted); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ep-clock b { color: var(--ink); font-weight: 600; font-size: 1.6rem; }

.ep-steps { list-style: none; margin: 0; padding: 0; }
.ep-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: .38; transition: opacity .6s ease; }
.ep-step:last-child { min-height: 54vh; }
.ep-step.is-on { opacity: 1; }
.ep-step > p:not(.ep-time):not(.ep-activity) { color: var(--ink-soft); max-width: 30em; }
.ep-time { font-family: var(--font-display); font-weight: 500; color: var(--apricot-ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.ep-time b { display: inline-block; margin-right: 8px; padding: 3px 11px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 2px var(--line); }
.ep-activity { display: grid; gap: 4px; padding: 14px 18px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; max-width: 26em; }
.ep-activity span { font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); }
.song-btn { justify-self: start; margin-top: 4px; }
.song-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--apricot); position: relative; }
.song-ico::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.song-btn[aria-pressed="true"] .song-ico::after { left: 7px; top: 6px; width: 8px; height: 10px; border: 0; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }

/* ---------- Mini-jeu des couleurs ---------- */
.sec-sky .eyebrow { color: var(--eye); }
.game { --r: 40px; position: relative; aspect-ratio: 16 / 8.2; border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky); }
.game-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.game-oupi { position: absolute; left: 24%; bottom: 7%; height: 72%; aspect-ratio: 610 / 820; transform: translateX(-50%); }
.game-oupi img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%; opacity: 0; transition: opacity .25s ease; }
.game[data-face="idle"] .g-idle, .game[data-face="oups"] .g-oups, .game[data-face="joy"] .g-joy { opacity: 1; }
.game[data-face="idle"] .g-idle { animation: breathe 3.4s var(--ease-sine) infinite alternate; }
.game[data-face="oups"] .g-oups { animation: wobble .6s var(--ease-soft); }
.game[data-face="joy"] .g-joy { animation: hop .8s var(--ease-pop); }
.game-oupi::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -2%; width: 74%; height: 8%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 82, 24, .4), transparent); }
@keyframes wobble { 20% { rotate: -5deg; } 45% { rotate: 4deg; } 70% { rotate: -2deg; } 100% { rotate: 0deg; } }
.game-bubble { position: absolute; z-index: 4; left: 37%; top: 9%; max-width: 330px; font-size: 1.25rem; }
.game-bubble::after { content: ""; position: absolute; left: -8px; bottom: 18px; width: 20px; height: 20px; background: var(--white); transform: rotate(45deg); border-radius: 4px; }
.game-bubble b { font-weight: 600; }
.game-bubble .c-rouge { color: #D2402B; } .game-bubble .c-jaune { color: #B88A00; } .game-bubble .c-bleu { color: #2E6CC4; } .game-bubble .c-vert { color: #4E8A3A; }
.balloons { position: absolute; right: 5%; top: 30%; width: 50%; height: 56%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3%; align-items: end; }
.balloon { height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; animation: sway 3.4s var(--ease-sine) infinite alternate; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; }
.balloon:nth-child(2) { animation-delay: -1.1s; animation-duration: 3s; }
.balloon:nth-child(3) { animation-delay: -2s; animation-duration: 3.8s; }
.balloon:nth-child(4) { animation-delay: -.6s; animation-duration: 3.2s; }
.balloon img { height: auto; width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(30, 60, 90, .25)); transition: transform var(--t-std) var(--ease-pop); }
.balloon:hover img { transform: translateY(-6px) scale(1.04); }
.balloon[data-color="rouge"] img { filter: hue-rotate(155deg) saturate(1.7) brightness(1.02) drop-shadow(0 10px 10px rgba(30, 60, 90, .25)); }
.balloon[data-color="jaune"] img { filter: hue-rotate(214deg) saturate(2.4) brightness(1.75) drop-shadow(0 10px 10px rgba(30, 60, 90, .25)); }
.balloon[data-color="vert"] img { filter: hue-rotate(262deg) saturate(1.3) brightness(1.12) drop-shadow(0 10px 10px rgba(30, 60, 90, .25)); }
.balloon.wrong { animation: shake .45s var(--ease-soft); }
.balloon.gone { visibility: hidden; }
@keyframes sway { from { rotate: -4deg; translate: 0 0; } to { rotate: 4deg; translate: 0 -8px; } }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }
.palette { position: absolute; z-index: 4; left: 4%; top: 6%; display: flex; gap: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .4); }
.palette .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--c) 70%, white); }
.palette .dot.on { border: 0; background: var(--c); animation: hop .6s var(--ease-pop); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.game-again { position: absolute; z-index: 4; right: 6%; bottom: 8%; }

/* ---------- Temps d'écran : la journée ---------- */
.day { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.day-scene { --r: 36px; position: relative; min-height: 400px; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky); }
.day-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.day-bg-night { opacity: var(--night, 0); transition: opacity .9s ease; }
.day-dusk { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 170, 120, .1), rgba(253, 145, 103, .5) 65%, rgba(120, 70, 120, .3)); opacity: var(--dusk, 0); mix-blend-mode: multiply; transition: opacity .9s ease; }
.day-sun { position: absolute; left: var(--sx, 20%); top: var(--sy, 40%); width: 9%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 40% 38%, #FFF3B8, #FFC94A 60%, #FFA93A); box-shadow: 0 0 40px 14px rgba(255, 205, 90, .45); opacity: var(--sun, 1); transition: left .6s var(--ease-soft), top .6s var(--ease-soft), opacity .8s ease; }
.day-oupi { position: absolute; left: 50%; bottom: 8%; height: 50%; width: auto; transform: translateX(-50%); transform-origin: 50% 100%; transition: opacity .7s ease, transform .9s var(--ease-soft); animation: breathe 3.4s var(--ease-sine) infinite alternate; }
.day-cloud { position: absolute; left: 50%; top: 22%; width: 40%; height: auto; transform: translateX(-50%) translateY(20px); opacity: 0; transition: opacity .9s ease .3s, transform 1.2s var(--ease-soft) .3s; }
.day.asleep .day-oupi { opacity: 0; transform: translateX(-50%) scale(.9); }
.day.asleep .day-cloud { opacity: 1; transform: translateX(-50%); animation: float 5s var(--ease-sine) infinite alternate; }
.day-clock { position: absolute; z-index: 4; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.day-clock::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #FFF3B8, #FFC94A 60%, #FFA93A); transition: background .6s ease, box-shadow .6s ease; }
.day.asleep .day-clock { background: rgba(30, 34, 80, .8); color: var(--on-night); }
.day.asleep .day-clock::before { background: #F4EFE6; box-shadow: inset -7px -3px 0 0 #2B3270; }
.day-msg { position: absolute; z-index: 4; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 7%; transform: translateY(20px); opacity: 0; max-width: 88%; padding: 12px 20px 12px 12px; display: flex; align-items: center; gap: 10px; border-radius: 20px; background: rgba(27, 31, 92, .88); color: var(--on-night); font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; line-height: 1.25; transition: opacity .6s ease, transform .7s var(--ease-pop); }
.day-msg::before { content: ""; flex: none; width: 44px; height: 44px; background: url("../img/badge_home_night.webp") center/contain no-repeat; }
.day.asleep .day-msg { opacity: 1; transform: none; }
.day-watch { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(20, 16, 24, .55); color: var(--white); font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.day-watch-bar { width: 200px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.day-watch-bar::after { content: ""; position: absolute; inset: 0; background: var(--apricot); transform-origin: 0 50%; transform: scaleX(0); }
.day.watching .day-watch { opacity: 1; }
.day.watching .day-watch-bar::after { animation: fill 2.2s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.day-panel { --r: 32px; display: grid; gap: 18px; align-content: start; padding: 28px; border-radius: 32px; background: var(--white); box-shadow: var(--shadow); }
.ctrl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; position: relative; z-index: 7; }
.ctrl-label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.ctrl-help { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.ctrl-wide { grid-template-columns: 1fr; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--white); cursor: pointer; font-size: 1.3rem; font-weight: 700; line-height: 1; box-shadow: 0 3px 0 var(--line-strong); transition: transform var(--t-quick) var(--ease-pop); }
.stepper button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-strong); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 54px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; margin: 4px 0 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #BFE5F9, #FFE2A8 55%, #FDB98F 78%, #4B5A8C); box-shadow: inset 0 0 0 2px rgba(59, 40, 32, .08); }
input[type="range"]::-moz-range-track { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #BFE5F9, #FFE2A8 55%, #FDB98F 78%, #4B5A8C); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -10px; border-radius: 50%; background: var(--apricot); border: 4px solid var(--white); box-shadow: 0 6px 12px -4px rgba(176, 83, 26, .7); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--apricot); border: 4px solid var(--white); box-shadow: 0 6px 12px -4px rgba(176, 83, 26, .7); }
.range-ticks { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 700; padding-inline: 4px; }
.day-watch-btn { position: relative; z-index: 7; width: 100%; }
.day-watch-btn:disabled { background: var(--paper-2); color: var(--muted); box-shadow: none; cursor: default; transform: none; }
.day-stats { position: relative; z-index: 7; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.day-stats div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--paper-2); }
.day-stats span { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day-stats b { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.promises { list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.promises li { padding: 20px 22px; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-soft); font-size: .98rem; }
.promises b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.25; margin-bottom: 6px; }

/* ---------- Repères d'Ibou ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: end; max-width: 1060px; margin-inline: auto; }
.quiz-ibou img { width: 100%; height: auto; animation: ibou-bob 4.4s var(--ease-sine) infinite alternate; transform-origin: 50% 100%; filter: drop-shadow(0 18px 18px rgba(59, 40, 32, .2)); }
@keyframes ibou-bob { from { rotate: -1.5deg; } to { rotate: 2deg; translate: 0 -6px; } }
.quiz-card { --r: 36px; display: grid; gap: 16px; justify-items: start; padding: clamp(26px, 4vw, 46px); border-radius: 36px; background: var(--white); box-shadow: var(--shadow-lg); }
.quiz-card > * { position: relative; z-index: 7; }
.quiz-card h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.quiz-dots { display: flex; gap: 8px; }
.quiz-dots i { width: 30px; height: 8px; border-radius: 99px; background: var(--line); transition: background-color .4s ease; }
.quiz-dots i.on { background: var(--sage); }
.quiz-q { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); line-height: 1.25; min-height: 2.6em; max-width: 26em; }
.quiz-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.quiz-btns .btn { min-width: 130px; font-size: 1.15rem; }
.btn-true { background: #DCEBC3; color: #3B5617; box-shadow: 0 4px 0 #B6CC8D; }
.btn-false { background: #FBD9CE; color: #8E3420; box-shadow: 0 4px 0 #EFB4A0; }
.quiz-btns .btn:disabled { opacity: .45; cursor: default; transform: none; }
.quiz-btns .btn.picked { opacity: 1; outline: 3px solid var(--ink); outline-offset: 3px; }
.quiz-a { padding: 16px 18px; border-radius: 20px; background: var(--sage-soft); color: var(--ink); max-width: 36em; animation: rise .5s var(--ease-soft); }
.quiz-a b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: 4px; }
.quiz-a.miss { background: var(--blush-soft); }
.quiz-src { font-size: .82rem; color: var(--muted); max-width: 40em; }

/* ---------- Après l'écran ---------- */
.sec-blush .eyebrow { color: #A2452B; }
.after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.after-card { --r: 30px; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.after-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 82% 50%; }
.after-card > div { display: grid; gap: 10px; padding: 22px 24px 28px; }
.after-card h3 { font-size: 1.4rem; }
.after-card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Espace parents ---------- */
.gate-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.gate-wrap .sec-head { margin-bottom: 0; }
.gate { --r: 36px; min-height: 380px; border-radius: 36px; background: var(--white); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px); display: grid; }
.gate > * { position: relative; z-index: 7; }
.gate.shake { animation: shake .45s var(--ease-soft); }
.gate-form { display: grid; gap: 14px; align-content: center; justify-items: start; padding-right: 120px; }
.gate-oupi { position: absolute; right: -8px; top: -4px; width: 130px; height: auto; transform: rotate(4deg); }
.gate-q { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--apricot-ink); }
.gate-form label { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); line-height: 1.2; }
.gate-form label b { font-weight: 600; color: var(--eye); }
.gate-row { display: flex; gap: 12px; align-items: center; }
#gateInput { width: 120px; height: 60px; border-radius: 18px; border: 3px dashed var(--line-strong); background: var(--paper-2); text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--ink); letter-spacing: .1em; }
#gateInput:focus { outline: none; border-style: solid; border-color: var(--eye); background: var(--white); }
.gate-hint { color: var(--muted); font-size: .95rem; min-height: 1.5em; }
.gate-hint.err { color: #A33A22; font-weight: 700; }
.parent-space { display: grid; gap: 14px; align-content: start; }
.ps-hello { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.ps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ps-grid li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 104px; min-height: 72px; align-content: center; border-radius: 18px; background: var(--paper-2); overflow: hidden; animation: tile-in .6s var(--ease-pop) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ps-grid li img { position: absolute; left: 0; top: 0; width: 92px; height: 100%; object-fit: cover; object-position: 82% 50%; }
.ps-grid b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; }
.ps-grid span { font-size: .84rem; color: var(--ink-soft); line-height: 1.35; }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }

/* ---------- Confiance ---------- */
.patches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.patches li {
  position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; text-align: center; padding: 14px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, white), var(--c)); color: var(--white);
  box-shadow: 0 16px 26px -16px color-mix(in srgb, var(--c) 80%, black), inset 0 -6px 0 rgba(0, 0, 0, .08);
  rotate: var(--rot, 0deg); transition: rotate .5s var(--ease-pop), transform .5s var(--ease-pop);
}
.patches li::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .6); }
.patches li:nth-child(1) { --rot: -5deg; } .patches li:nth-child(2) { --rot: 4deg; } .patches li:nth-child(3) { --rot: -2deg; }
.patches li:nth-child(4) { --rot: 6deg; } .patches li:nth-child(5) { --rot: -4deg; } .patches li:nth-child(6) { --rot: 3deg; }
.patches li:hover { rotate: 0deg; transform: scale(1.06); }
.patches b { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); line-height: 1; }
.patches span { font-family: var(--font-display); font-weight: 500; font-size: clamp(.86rem, .75rem + .35vw, 1.02rem); line-height: 1.15; max-width: 9em; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(50px, 7vw, 80px); max-width: 1000px; }
.plan { --r: 32px; position: relative; display: grid; gap: 12px; align-content: start; padding: 30px 30px 32px; border-radius: 32px; background: var(--white); box-shadow: var(--shadow); }
.plan > * { position: relative; z-index: 7; }
.plan-premium { background: linear-gradient(160deg, #FFF3E3, #FDE0C3); }
.plan-art { position: absolute; z-index: 7; right: 14px; top: -64px; width: 120px; height: auto; transform: rotate(6deg); }
.plan-tag { justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-ink); font-weight: 800; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.plan-premium .plan-tag { background: var(--apricot); color: var(--ink); }
.plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-soft); }
.plan li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21v-7' stroke='%235E7F2A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M12 14C9.6 14 4.5 12.6 4.5 8.4 4.5 5.9 6.6 4.4 8.6 5.2 10.7 6 12 9 12 14Z' fill='%238BAA48'/%3E%3Cpath d='M12 14c2.4 0 7.5-1.4 7.5-5.6 0-2.5-2.1-4-4.1-3.2C13.3 6 12 9 12 14Z' fill='%239DBE55'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan-note { font-size: .9rem; color: var(--muted); }

/* ---------- Boutique (bientôt) ---------- */
.sec-lilac .eyebrow { color: var(--lilac-ink); }
.shop { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.shop-copy { display: grid; gap: 16px; justify-items: start; }
.shop-cta { margin-top: 6px; }
.shop-window { --r: 36px; position: relative; border-radius: 36px; padding: 84px 26px 0; overflow: hidden; background: radial-gradient(circle at 50% 30%, #FFFFFF, #FBEBDD 75%); box-shadow: var(--shadow-lg); }
.shop-sticker { position: absolute; z-index: 7; top: 18px; right: 22px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--apricot); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; rotate: 12deg; box-shadow: 0 10px 18px -10px rgba(176, 83, 26, .7); }
.shop-sticker::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed rgba(59, 40, 32, .35); }
.shelf { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 4%; padding-bottom: 36px; }
.shelf::after { content: ""; position: absolute; z-index: -1; left: -26px; right: -26px; bottom: 0; height: 40px; background: linear-gradient(180deg, #D49A66, #B07443); border-top: 4px solid #E6B486; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .1); }
.shelf::before { content: ""; position: absolute; z-index: 0; left: -26px; right: -26px; bottom: 18px; border-top: 2px dashed rgba(255, 240, 220, .55); }
.shelf figure { position: relative; margin: 0; display: grid; justify-items: center; }
.shelf img { height: clamp(110px, 13vw, 180px); width: auto; max-width: 100%; object-fit: contain; transform-origin: 50% 100%; filter: drop-shadow(0 10px 8px rgba(80, 40, 10, .25)); transition: transform .6s var(--ease-pop); }
.shelf figure:nth-child(2) img { height: clamp(124px, 15vw, 204px); }
.shop-window:hover .shelf figure:nth-child(odd) img { transform: rotate(-4deg) translateY(-4px); }
.shop-window:hover .shelf figure:nth-child(even) img { transform: rotate(4deg) translateY(-6px); }
.shelf figcaption { position: absolute; top: 10%; right: -4%; padding: 3px 9px 3px 15px; border-radius: 4px 10px 10px 4px; background: #FFFDF7; font-family: var(--font-display); font-weight: 600; font-size: .8rem; white-space: nowrap; rotate: 9deg; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .4); }
.shelf figcaption::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--line-strong); }

/* ---------- Télécharger (la nuit) ---------- */
.finale { position: relative; overflow: hidden; background: var(--night-sky); color: var(--on-night); padding-block: clamp(70px, 9vw, 120px) clamp(90px, 11vw, 150px); }
.finale-bg { position: absolute; inset: 0; }
.finale-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; opacity: .95; }
.finale-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 31, 92, .92) 0%, rgba(27, 31, 92, .35) 45%, rgba(23, 27, 63, .6) 100%); }
.twinkle { position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: #FFF6D8; box-shadow: 0 0 12px 4px rgba(255, 230, 160, .5); animation: twinkle 5s var(--ease-sine) infinite alternate; }
.twinkle.s1 { left: 12%; top: 18%; } .twinkle.s2 { left: 38%; top: 9%; animation-delay: -1.5s; } .twinkle.s3 { left: 62%; top: 22%; animation-delay: -3s; }
.twinkle.s4 { left: 84%; top: 12%; animation-delay: -2s; } .twinkle.s5 { left: 72%; top: 40%; animation-delay: -4s; }
@keyframes twinkle { from { opacity: .3; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.finale-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.finale-duo { width: 100%; max-width: 560px; height: auto; justify-self: center; animation: float 6s var(--ease-sine) infinite alternate; filter: drop-shadow(0 30px 40px rgba(10, 12, 40, .6)); }
.finale-copy { display: grid; gap: 18px; justify-items: start; }
.finale h2 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); line-height: 1.02; color: var(--white); font-stretch: 104%; }
.finale-sub { font-size: 1.15rem; color: var(--on-night-soft); max-width: 30em; }

.stores-night .store { box-shadow: inset 0 0 0 1px #8D8D9A, 0 18px 30px -12px rgba(0, 0, 0, .7); }
.finale .btn-night-ghost { margin-top: 8px; }

/* ---------- Pied de page ---------- */
.foot { background: var(--night-deep); color: var(--on-night-soft); padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.foot-logo { height: 46px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-self: end; }
.foot-links a { color: var(--on-night); text-decoration: none; font-family: var(--font-display); font-weight: 500; }
.foot-links a:hover { text-decoration: underline dashed; text-underline-offset: 4px; }
.foot-note, .foot-copy { grid-column: 1 / -1; font-size: .88rem; }

/* Écran éteint */
.lights-off { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, #1E2346, #07080F 70%); color: var(--on-night); animation: lights 1.4s var(--ease-sine) both; }
.lights-off img { width: min(360px, 70vw); height: auto; animation: float 5s var(--ease-sine) infinite alternate; opacity: .9; }
.lights-off p { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }
@keyframes lights { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .top-nav a { padding: 8px 8px; }
  .shop-btn .shop-soon { display: none; }
}
@media (max-width: 1180px) {
  .top-nav { display: none; }
  .garden-pill { margin-left: auto; }
}
@media (max-width: 1100px) {
  .top-nav a { padding: 8px 8px; font-size: .95rem; }
  
  
}
@media (max-width: 980px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .hero-pitch { padding-top: 6px; }
  .hero-scene { margin-top: clamp(-120px, -10vw, -20px); }
  
  .friends { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 110px; }
  
  
  .ep { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ep-stage { top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 6px); z-index: 4; background: var(--paper-2); padding-block: 8px 12px; margin-inline: calc(var(--gutter-l) * -1) calc(var(--gutter-r) * -1); padding-inline: var(--gutter-l) var(--gutter-r); gap: 10px; }
  .phone { border-radius: 30px; padding: 8px; }
  .phone-screen { border-radius: 23px; }
  .ep-step { min-height: 58vh; justify-content: flex-start; padding-top: 18px; }
  .day { grid-template-columns: minmax(0, 1fr); }
  .day-scene { min-height: 0; aspect-ratio: 4 / 3; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .after { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .gate-wrap { grid-template-columns: minmax(0, 1fr); }
  .patches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quiz { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .quiz-ibou { width: min(220px, 50vw); margin-bottom: -30px; position: relative; z-index: 1; }
  .quiz-card { width: 100%; }
  .finale-in { grid-template-columns: minmax(0, 1fr); }
  .finale-duo { max-width: 380px; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .top-logo img { height: 34px; }
  .top-cta { padding: 10px 14px; font-size: .92rem; }
  
  
  .hero-logo img { width: min(290px, 72vw); }
  .pal-lala { --l: 52%; --b: 14%; --h: 34%; }
  .pal-oupi { --l: 62.5%; --b: 7%; --h: 50%; }
  .pal-totu { --l: 72.5%; --b: 12%; --h: 33%; }
  .pal-ibou { --l: 82%; --b: 9%; --h: 38%; }
  .hero-scene { margin-top: 6px; }
  .scene-box { width: 235%; margin-left: -106%; }
  .scene-bg { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%); mask-image: linear-gradient(180deg, transparent 0%, #000 20%); }
  .scroll-cue { position: relative; left: auto; bottom: auto; display: flex; max-width: none; margin: -38px var(--gutter-r) 64px var(--gutter-l); }
  .hero .edge { height: 40px; }
  .versus-switch { justify-self: stretch; }
  .versus-switch button { padding: 12px 10px; font-size: .95rem; }
  .versus-grid { grid-template-columns: minmax(0, 1fr); }
  .tablet { width: min(280px, 78vw); justify-self: center; }
  .vrow { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .vrow dd { grid-column: 1; grid-row: 2; font-size: 1.05rem; }
  .health { flex-direction: column; align-items: flex-start; }
  .friends { gap: 12px; row-gap: 96px; padding-top: 80px; }
  .friend { padding: 0 14px 18px; }
  .friend-art { height: 160px; margin-top: -80px; }
  .friend-name { font-size: 1.4rem; }
  .garden-label { display: none; }
  .garden-pill { padding: 0 12px 0 10px; }
  .shop-btn { width: 44px; padding: 0; justify-content: center; }
  .shop-btn .shop-label { display: none; }
  .shop-btn::after { content: ""; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 2px var(--white); }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .shop-window { padding: 70px 14px 0; }
  .shelf figcaption { font-size: .7rem; right: -10%; }
  .friend-more { font-size: .92rem; }
  .game { aspect-ratio: 3 / 4; }
  .game-bg { object-position: 40% 70%; }
  .game-oupi { left: 36%; bottom: 6%; height: 44%; }
  .game-bubble { left: 4%; right: 4%; top: 4%; max-width: none; font-size: 1.1rem; }
  .game-bubble::after { left: 22%; bottom: -8px; }
  .balloons { left: 4%; right: 4%; top: 22%; width: auto; height: 27%; gap: 4%; }
  .palette { left: auto; right: 4%; top: auto; bottom: 4%; }
  .game-again { right: auto; left: 4%; bottom: 4%; }
  .day-panel { padding: 22px; }
  .patches { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; margin-inline: auto; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .gate-form { padding-right: 0; }
  .gate-oupi { position: static; width: 92px; margin: -6px 0 -4px; transform: rotate(-3deg); }
  .ps-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-self: start; }
  .store { height: 54px; padding: 0 16px 0 13px; }
  .store strong { font-size: 1.2rem; }
}
@media (max-width: 560px) {
  .top-cta { display: none; }
}
@media (max-width: 420px) {
  .garden-sprouts svg { width: 12px; height: 18px; }
  .top-logo img { height: 30px; }
}

/* Mouvement réduit : tout reste lisible, rien ne bouge tout seul */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .js .reveal:not(.in) { transform: none; }
  .feed-col { animation: none !important; }
}
