/* ═══════════════════════════════════════════════════════════
   SamaStory — Design premium enfant & parents africains
   Palette : nuit étoilée · or · terracotta · teal · prune
   ═══════════════════════════════════════════════════════════ */

:root {
  --nuit: #171035;
  --nuit-2: #211547;
  --nuit-3: #2c1e5c;
  --creme: #faf5eb;
  --creme-2: #f3ead9;
  --or: #f6b93f;
  --or-fonce: #d99a1f;
  --terra: #e8734a;
  --teal: #2fb59f;
  --prune: #7c5cae;
  --rose: #f9cfd0;
  --encre: #241b3a;
  --gris: #6c6584;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-lg: 0 30px 60px -18px rgba(23, 16, 53, .28);
  --shadow-md: 0 18px 40px -14px rgba(23, 16, 53, .2);
  --font-titre: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-corps: "Quicksand", "Segoe UI", sans-serif;
  --font-arabe: "Amiri", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  background: var(--creme);
  color: var(--encre);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--or); color: var(--nuit); }

img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Halo d'arrière-plan animé */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.aurora .b1 { width: 560px; height: 560px; background: #ffd98e; top: -180px; right: -120px; animation: drift 26s ease-in-out infinite; }
.aurora .b2 { width: 480px; height: 480px; background: #ffc39b; top: 34%; left: -180px; animation: drift 32s ease-in-out infinite reverse; }
.aurora .b3 { width: 500px; height: 500px; background: #b7ede2; bottom: -160px; right: 6%; animation: drift 38s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(70px, 50px) scale(1.12); }
  66% { transform: translate(-50px, 24px) scale(.94); }
}

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(860px, 92%); }

/* ─────────── Boutons ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 0;
  font-family: var(--font-titre); font-weight: 700; font-size: 1rem;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, filter .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, #ffdf8e, var(--or) 45%, var(--or-fonce));
  color: #402d05; box-shadow: 0 14px 30px -10px rgba(246, 185, 63, .65);
}
.btn-gold:hover { box-shadow: 0 20px 40px -12px rgba(246, 185, 63, .8); filter: brightness(1.04); }
.btn-ghost { background: rgba(255,255,255,.65); color: var(--nuit); border: 1.5px solid rgba(23,16,53,.22); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; border-color: var(--nuit); }
.btn-dark { background: var(--nuit); color: var(--creme); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--nuit); color: var(--nuit); background: transparent; }
.btn-outline:hover { background: var(--nuit); color: var(--creme); }

/* ─────────── Navigation ─────────── */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 60;
  transition: top .3s, inset .3s;
}
.nav.scrolled { inset-block-start: 0; }
.nav .container {
  width: min(1180px, 94%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 10px 14px 10px 18px;
  box-shadow: 0 10px 30px -12px rgba(23,16,53,.18);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled .container { background: rgba(255,255,255,.92); }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-titre); font-size: 1.35rem; font-weight: 800; color: var(--nuit); }
.logo-mark { font-size: 1.5rem; animation: sway 4.5s ease-in-out infinite; display: inline-block; }
@keyframes sway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
.logo-text b { color: var(--terra); }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn) { position: relative; color: var(--encre); padding: 4px 0; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2.5px; width: 0;
  border-radius: 3px; background: linear-gradient(90deg, var(--or), var(--terra));
  transition: width .3s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.burger span { width: 24px; height: 2.6px; border-radius: 2px; background: var(--nuit); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ─────────── Hero Ivoire avec Fenêtre de Conte ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(1200px 700px at 75% -10%, #fffdf6 0%, #fdf5e6 55%, #ffefdc 100%);
  color: var(--encre);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero .container.hero-inner {
  width: min(1240px, 94%);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
  padding: 20px 0 30px;
}

.hero-content {
  max-width: 640px;
}

.hero-bismillah {
  font-family: var(--font-arabe);
  font-size: 1.3rem;
  color: #b07714;
  opacity: .95;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(246, 185, 63, .3);
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(232, 115, 74, .1);
  border: 1px solid rgba(232, 115, 74, .38);
  color: #c2410c;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  line-height: 1.14;
  margin-bottom: 20px;
  color: var(--nuit);
}

.grad-text {
  background: linear-gradient(92deg, #f59e0b 0%, #ef7d3a 38%, #e8455a 68%, #8b5cf6 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: #565070;
  max-width: 580px;
  margin-bottom: 34px;
  line-height: 1.68;
}
.hero-lead strong {
  color: var(--nuit);
  font-weight: 700;
}
.hero-lead b {
  color: #e8455a;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-ctas .btn-gold {
  box-shadow: 0 14px 30px -10px rgba(246, 185, 63, .65);
}
.hero-ctas .btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--nuit);
  border: 1.5px solid rgba(23, 16, 53, .18);
  backdrop-filter: blur(8px);
}
.hero-ctas .btn-ghost:hover {
  background: #fff;
  border-color: var(--nuit);
  transform: translateY(-3px) scale(1.02);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.7rem;
  color: #e8734a;
  line-height: 1.1;
}
.hero-stats .stat b i {
  font-style: normal;
  font-size: 1.1rem;
}
.hero-stats .stat span {
  font-size: .86rem;
  color: #7a7291;
}

/* ─────────── Fenêtre de l'histoire du soir ─────────── */
.hero-storybook-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.storybook-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 110%;
  background: radial-gradient(circle, rgba(246, 185, 63, .35) 0%, rgba(232, 115, 74, .15) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.storybook-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9 / 14;
  border-radius: 36px;
  overflow: hidden;
  background: var(--creme);
  border: 3px solid rgba(246, 185, 63, .75);
  box-shadow:
    0 24px 60px -15px rgba(23, 16, 53, .22),
    0 0 36px -6px rgba(246, 185, 63, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: transform .4s cubic-bezier(.22,.68,.36,1), box-shadow .4s;
  animation: floatCard 6s ease-in-out infinite;
}

.storybook-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 32px 70px -12px rgba(23, 16, 53, .28),
    0 0 50px -4px rgba(246, 185, 63, .45);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.storybook-tag {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(23, 16, 53, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffd98e;
  border: 1px solid rgba(246, 185, 63, .55);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-titre);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

.storybook-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
  display: block;
}

.storybook-reflection {
  position: absolute;
  inset: 0;
  border-radius: 33px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15) 0%, transparent 40%, transparent 80%, rgba(246, 185, 63, .1) 100%);
}

.storybook-caption {
  margin-top: 16px;
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: .88rem;
  color: #6c6584;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.storybook-caption span {
  font-size: 1.1rem;
}

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(23, 16, 53, .25); border-radius: 999px; z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 9px; border-radius: 4px; background: var(--or);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 7px; } 70% { opacity: 0; top: 20px; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .storybook-card { animation: none; }
  .storybook-video { display: none; }
  .storybook-card {
    background-image: url('accueil2-ivoire-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* Adaptabilité responsive du Hero */
@media (max-width: 960px) {
  .hero {
    padding: 110px 0 70px;
  }
  .hero .container.hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-content {
    max-width: 620px;
    margin: 0 auto;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    gap: 28px;
  }
  .storybook-card {
    max-width: 290px;
    aspect-ratio: 9 / 13.5;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    gap: 20px;
  }
  .storybook-card {
    max-width: 260px;
    border-radius: 28px;
  }
}

.pattern-divider {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 56px; z-index: 3;
  background: var(--creme);
  clip-path: polygon(0 62%, 4% 44%, 9% 60%, 14% 38%, 20% 58%, 26% 34%, 32% 56%, 38% 40%, 44% 62%, 50% 36%, 56% 58%, 62% 40%, 68% 60%, 74% 34%, 80% 56%, 86% 42%, 92% 62%, 97% 44%, 100% 58%, 100% 100%, 0 100%);
}
.pattern-divider.pd-top {
  position: absolute; top: -1px; bottom: auto;
  transform: rotate(180deg);
}

/* ─────────── Ruban défilant ─────────── */
.ribbon {
  background: var(--nuit); color: var(--or);
  overflow: hidden; padding: 13px 0; border-block: 1px solid rgba(246,185,63,.25);
}
.ribbon-track { display: flex; width: max-content; animation: ribbon 30s linear infinite; }
.ribbon-track span { font-family: var(--font-titre); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ─────────── Sections ─────────── */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.kicker { display: inline-block; color: var(--terra); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-titre); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.18; margin-bottom: 16px; }
.lead { color: var(--gris); font-size: 1.06rem; }

/* Révélation au scroll */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.68,.36,1); transition-delay: var(--d, 0s); }
[data-reveal].visible { opacity: 1; transform: none; }

/* ─────────── Cartes valeurs ─────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: #fff; border-radius: var(--r-lg); padding: 34px 28px;
  border: 1px solid #efe6d6; box-shadow: 0 8px 24px -12px rgba(23,16,53,.12);
  transition: transform .35s cubic-bezier(.22,.68,.36,1), box-shadow .35s;
  position: relative; overflow: hidden;
}
.value-card::before {
  content: ""; position: absolute; inset: auto -30% -55% auto; width: 70%; aspect-ratio: 1;
  border-radius: 50%; opacity: .08; transition: transform .5s;
  background: radial-gradient(circle, var(--v, var(--or)), transparent 70%);
}
.value-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.value-card:hover::before { transform: scale(1.6); }
.v-icon {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 20px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.value-card:hover .v-icon { transform: scale(1.12) rotate(-6deg); }
.i-gold { background: linear-gradient(135deg, #ffefc8, #ffd98e); }
.i-teal { background: linear-gradient(135deg, #d9f6ef, #b7ede2); }
.i-terra { background: linear-gradient(135deg, #ffe3d6, #ffc6ae); }
.i-plum { background: linear-gradient(135deg, #ece2fb, #d9c8f5); }
.value-card h3 { font-family: var(--font-titre); font-size: 1.28rem; margin-bottom: 10px; color: var(--nuit); }
.value-card p { color: var(--gris); font-size: .97rem; }

/* ─────────── Studio d'histoires ─────────── */
.section-studio {
  background:
    radial-gradient(700px 340px at 88% 4%, rgba(246,185,63,.14), transparent 60%),
    radial-gradient(600px 320px at 6% 96%, rgba(47,181,159,.12), transparent 60%);
}
.studio { display: grid; grid-template-columns: 1fr 1.08fr; gap: 34px; align-items: start; }

.glass-card {
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 34px 30px;
}
.studio-form h3 { font-family: var(--font-titre); font-size: 1.4rem; color: var(--nuit); margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 700; font-size: .9rem; color: var(--nuit); margin-bottom: 7px; }
.field label b { color: var(--terra); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1.6px solid #e4d9c4; background: #fffdf8; font-size: .97rem; color: var(--encre);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(246,185,63,.18); }
.field input::placeholder { color: #b3a98f; }

.seg, .avatars, .problemes { display: flex; flex-wrap: wrap; gap: 9px; }
.seg label, .avatars label, .problemes label { position: relative; }
.seg input, .avatars input, .problemes input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .problemes span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1.6px solid #e4d9c4; font-weight: 700; font-size: .89rem;
  cursor: pointer; transition: all .25s; user-select: none;
}
.avatars span {
  display: grid; place-items: center; width: 48px; height: 48px; font-size: 1.45rem;
  border-radius: 16px; background: #fff; border: 1.6px solid #e4d9c4; cursor: pointer; transition: all .25s;
}
.seg span:hover, .avatars span:hover, .problemes span:hover { border-color: var(--or); transform: translateY(-2px); }
.seg input:checked + span, .problemes input:checked + span { background: var(--nuit); color: var(--or); border-color: var(--nuit); box-shadow: 0 8px 18px -8px rgba(23,16,53,.5); }
.avatars input:checked + span { background: #ffefc8; border-color: var(--or); box-shadow: 0 0 0 3px rgba(246,185,63,.35), 0 8px 18px -8px rgba(246,185,63,.6); transform: scale(1.08); }
.seg input:focus-visible + span, .problemes input:focus-visible + span { outline: 2px dashed var(--or); outline-offset: 3px; }

.form-note { margin-top: 12px; text-align: center; font-size: .82rem; color: var(--gris); }
.btn-block + .form-note { margin-top: 14px; }

/* Aperçu / livre */
.studio-preview { position: sticky; top: 96px; }
.preview-empty {
  background: rgba(255,255,255,.6); border: 2px dashed #e0d3ba; border-radius: var(--r-lg);
  padding: 70px 34px; text-align: center; color: var(--gris);
}
.preview-empty h3 { font-family: var(--font-titre); color: var(--nuit); margin-bottom: 8px; font-size: 1.2rem; }
.empty-book { position: relative; height: 120px; margin-bottom: 20px; }
.eb-main { font-size: 4rem; display: inline-block; animation: float 3.4s ease-in-out infinite; }
.eb { position: absolute; font-size: 1.6rem; opacity: .85; }
.eb1 { top: 8px; left: 18%; animation: float 3s ease-in-out infinite .3s; }
.eb2 { top: 0; right: 20%; animation: float 3.6s ease-in-out infinite .6s; }
.eb3 { bottom: 6px; right: 34%; animation: float 2.8s ease-in-out infinite .9s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

/* ─────────── Lecteur d'histoire ANIMÉE (cinéma) ─────────── */
.anim-player {
  background: linear-gradient(160deg, #ffffff, #fdf7ea);
  border: 1px solid #efe4cf; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 22px; animation: bookIn .6s cubic-bezier(.22,.68,.36,1);
}
.anim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.book-chip.live { background: #ffe3d6; color: #c2410c; }
.book-chip.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e8455a; margin-right: 6px; animation: pulse 1.2s infinite; }
.an-stage {
  position: relative; height: 430px; border-radius: var(--r-md); overflow: hidden;
  background: #ffe9c7; box-shadow: inset 0 0 0 1px rgba(23,16,53,.06);
}
.an-scene { position: absolute; inset: 0; overflow: hidden; }
.an-layer { position: absolute; inset: 0; }
.an-sky { background: linear-gradient(180deg, var(--sky1), var(--sky2) 55%, var(--sky3)); }
.an-sun {
  position: absolute; top: 9%; left: 12%; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d6, #ffd166 60%, #ffb347);
  box-shadow: 0 0 44px 16px rgba(255, 209, 102, .55);
}
.an-moon { position: absolute; top: 9%; right: 14%; font-size: 3.4rem; filter: drop-shadow(0 0 18px rgba(255,235,170,.75)); }
.an-stars i {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,.85);
  top: var(--t, 12%); left: var(--l, 50%);
}
.an-stars i:nth-child(3n) { top: 32%; }
.an-stars i:nth-child(3n+1) { top: 22%; }
.an-stars i:nth-child(4n) { left: 18%; }
.an-stars i:nth-child(4n+1) { left: 72%; }
.an-stars i:nth-child(5n) { left: 42%; }
.an-shooting {
  position: absolute; top: 14%; left: 30%; width: 90px; height: 2.5px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff);
  transform: rotate(24deg);
}
.an-clouds span { position: absolute; font-size: 2.6rem; opacity: .92; filter: drop-shadow(0 6px 10px rgba(23,16,53,.12)); }
.an-clouds span:nth-child(1) { top: 12%; left: 8%; }
.an-clouds span:nth-child(2) { top: 22%; left: 58%; font-size: 3.2rem; }
.an-clouds span:nth-child(3) { top: 6%; left: 38%; font-size: 2.1rem; }
.an-balloons span { position: absolute; font-size: 2.7rem; bottom: 34%; animation: float 3.4s ease-in-out var(--bd, 0s) infinite; }
.an-balloons span:nth-child(1) { left: 76%; }
.an-balloons span:nth-child(2) { left: 86%; font-size: 2.1rem; }
.an-hills b { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.an-hills b:nth-child(1) { bottom: -12%; height: 46%; background: #cdebc9; }
.an-hills b:nth-child(2) { bottom: -26%; height: 52%; background: #a9d98f; }
.an-village { bottom: 0; inset: auto 0 0 0; height: 100%; }
.an-baobab { position: absolute; bottom: 15%; left: 6%; font-size: 4.2rem; filter: drop-shadow(0 8px 10px rgba(23,16,53,.18)); }
.an-house { position: absolute; bottom: 13%; right: 9%; font-size: 3.2rem; filter: drop-shadow(0 8px 10px rgba(23,16,53,.18)); }
.an-tree { position: absolute; bottom: 12%; right: 26%; font-size: 2.4rem; }
.an-hero {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  font-size: 4.6rem; filter: drop-shadow(0 10px 14px rgba(23,16,53,.25));
}
.an-hero span { display: inline-block; animation: float 3s ease-in-out infinite; }
.an-fx i { position: absolute; pointer-events: none; }
.an-butterfly { font-size: 1.5rem; bottom: 30%; }
.an-confetti { font-size: 1.4rem; top: 0; }
.an-text {
  position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%);
  width: min(92%, 620px); background: rgba(255,255,255,.93); backdrop-filter: blur(6px);
  border-radius: 18px; padding: 16px 22px; box-shadow: 0 14px 30px -12px rgba(23,16,53,.35);
}
.an-text p { font-size: .99rem; line-height: 1.65; color: var(--encre); text-align: center; }
.an-text .w { display: inline-block; margin: 0 .14em; }
.an-text .w i { display: inline-block; font-style: normal; will-change: transform, opacity, filter; }
.an-dots { display: flex; justify-content: center; gap: 7px; margin: 16px 0 12px; }
.an-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: #e3d7bd; padding: 0; transition: all .3s; }
.an-dots button.on { width: 26px; background: var(--or); }

/* Paywall / bandeau d'aperçu */
.lockbox { margin-top: 14px; }
.lockbar { height: 7px; border-radius: 999px; background: #f1e9d4; overflow: hidden; }
.lockbar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--or), #e8455a); transition: width 1s linear; }
.lockrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.lockrow span { font-weight: 700; color: var(--nuit); font-size: .93rem; }
.lock-note { margin-top: 8px; font-size: .8rem; color: var(--gris); text-align: center; }

@keyframes bookIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.book-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.book-chip { background: #ffefc8; color: #8a6410; font-weight: 800; font-size: .78rem; padding: 6px 12px; border-radius: 999px; }
.book-pagecount { font-size: .82rem; color: var(--gris); font-weight: 700; }
.book-viewport {
  position: relative; height: 380px; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(150deg, #1b1240 0%, #2c1e5c 55%, #41307a 100%);
  color: #fff; display: grid; align-items: center;
}
.bp { position: absolute; inset: 0; padding: 30px 30px 90px; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(46px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.68,.36,1); pointer-events: none; }
.bp.active { opacity: 1; transform: none; pointer-events: auto; }
.bp.exit-left { opacity: 0; transform: translateX(-46px); }
.bp-emoji { font-size: 3.4rem; margin-bottom: 14px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); animation: float 3.2s ease-in-out infinite; }
.bp-text { font-size: 1.05rem; line-height: 1.75; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.bp-text strong { color: var(--or); }
.bp-dua {
  margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--or);
  background: rgba(246,185,63,.12); border-radius: 0 12px 12px 0; font-size: .92rem;
}
.bp-dua .ar { font-family: var(--font-arabe); font-size: 1.25rem; color: var(--or); display: block; margin-bottom: 4px; }
.book-dots { display: flex; justify-content: center; gap: 7px; margin: 16px 0 12px; }
.book-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: #e3d7bd; padding: 0; transition: all .3s; }
.book-dots button.on { width: 26px; background: var(--or); }
.book-controls { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.ctrl {
  width: 44px; height: 44px; border-radius: 50%; border: 1.6px solid #e4d9c4; background: #fff;
  font-size: 1.25rem; color: var(--nuit); transition: all .25s; display: grid; place-items: center; font-weight: 700;
}
.ctrl:hover { background: var(--nuit); color: var(--or); transform: translateY(-2px); }
.ctrl-play { background: var(--or); border-color: var(--or); color: #402d05; }
.ctrl-play:hover { background: var(--or-fonce); color: #fff; }
.ctrl-voice.talking { background: var(--teal); border-color: var(--teal); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.book-cta { margin-top: 4px; }

/* ─────────── Cartes univers ─────────── */
.world-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid #efe6d6; border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: 0 8px 24px -12px rgba(23,16,53,.12);
  transition: transform .35s cubic-bezier(.22,.68,.36,1), box-shadow .35s;
  position: relative; overflow: hidden;
}
.world-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6px;
  background: var(--wc, var(--or));
}
.world-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.wc-icon {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: color-mix(in srgb, var(--wc, var(--or)) 14%, white);
}
.wc-body h3 { font-family: var(--font-titre); font-size: 1.22rem; color: var(--nuit); margin: 8px 0 8px; }
.wc-body p { color: var(--gris); font-size: .93rem; margin-bottom: 12px; }
.wc-body b { color: var(--wc, var(--or)); font-size: .92rem; }
.wc-badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; }
.wc-badge.ok { background: #dcf5ea; color: #0c7a55; }
.wc-badge.soon { background: #f1e9ff; color: #6d3fc0; }
.is-soft { opacity: .82; }
.is-soft:hover { transform: translateY(-5px); }
.wc-gold { --wc: #e8734a; }
.wc-teal { --wc: #2fb59f; }
.wc-terra { --wc: #2a9d8f; }
.wc-violet { --wc: #8b5cf6; }
.wc-pink { --wc: #e8455a; }
.wc-blue { --wc: #1d70b8; }

/* ─────────── Éveil 3–5 ans ─────────── */
.section-eveil {
  background:
    radial-gradient(700px 340px at 8% 8%, rgba(139,92,246,.1), transparent 60%),
    radial-gradient(600px 320px at 92% 90%, rgba(47,181,159,.12), transparent 60%);
}
.eveil-companion {
  display: flex; align-items: center; gap: 16px; max-width: 560px; margin: 0 auto 34px;
  background: #fff; border: 1px solid #efe6d6; border-radius: 22px; padding: 16px 22px;
  box-shadow: 0 8px 24px -12px rgba(23,16,53,.12);
}
.companion-avatar {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, #ece2fb, #d9c8f5);
  animation: float 3.4s ease-in-out infinite;
}
.eveil-companion p { font-size: .98rem; color: #4a4262; }
.eveil-companion b { color: #6d3fc0; }

.eveil-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eveil-card {
  background: #fff; border: 2px solid #efe6d6; border-radius: 24px; padding: 26px 22px;
  text-align: center; cursor: pointer; transition: transform .3s, border-color .3s, box-shadow .3s;
  font-family: inherit; box-shadow: 0 8px 20px -12px rgba(23,16,53,.14);
}
.eveil-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--ac, var(--or)); box-shadow: var(--shadow-md); }
.eveil-card .ec-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px;
  display: grid; place-items: center; font-size: 1.9rem;
  background: color-mix(in srgb, var(--ac, #f6b93f) 15%, white);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.eveil-card:hover .ec-icon { transform: scale(1.12) rotate(-6deg); }
.eveil-card h3 { font-family: var(--font-titre); font-size: 1.12rem; color: var(--nuit); margin-bottom: 6px; }
.eveil-card p { font-size: .86rem; color: var(--gris); margin-bottom: 12px; }
.eveil-card .ec-go {
  display: inline-block; font-weight: 800; font-size: .85rem; color: var(--ac, var(--or-fonce));
}
.eveil-card .ec-done { display: block; margin-top: 10px; font-size: .78rem; color: #0c7a55; font-weight: 700; }
.ec-gold { --ac: #e8734a; }
.ec-rose { --ac: #e8455a; }
.ec-teal { --ac: #2a9d8f; }
.ec-violet { --ac: #8b5cf6; }
.ec-blue { --ac: #1d70b8; }
.ec-green { --ac: #0c7a55; }

.eveil-play { margin-top: 30px; }
.play-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px;
}
.play-title { display: flex; align-items: center; gap: 12px; }
.play-title span { font-size: 1.9rem; }
.play-title strong { display: block; font-family: var(--font-titre); font-size: 1.25rem; color: var(--nuit); line-height: 1.2; }
.play-title small { color: var(--gris); font-weight: 700; font-size: .82rem; }
.play-stars { font-family: var(--font-titre); font-weight: 800; color: #b07714; background: #ffefc8; padding: 8px 16px; border-radius: 999px; }

.play-card { padding: 30px; }
.play-instruction { font-family: var(--font-titre); font-size: 1.3rem; color: var(--nuit); text-align: center; margin-bottom: 24px; }
.play-visual { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; font-size: 2.6rem; }
.play-visual .obj { animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both; }
.play-visual .obj:nth-child(2n) { animation-delay: .08s; }
.play-visual .obj:nth-child(3n) { animation-delay: .16s; }
@keyframes popIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.pv-letter { width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, #ffefc8, #ffd98e); font-family: var(--font-titre); font-weight: 800; font-size: 3.2rem; color: var(--nuit); }
.pv-seq { font-size: 2.2rem; display: flex; align-items: center; gap: 12px; }
.pv-seq .q {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: #ece2fb; color: #6d3fc0; font-weight: 800; font-size: 1.6rem;
}
.play-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chip {
  min-width: 76px; padding: 16px 22px; border-radius: 20px; border: 2px solid #e4d9c4; background: #fff;
  font-family: var(--font-titre); font-weight: 800; font-size: 1.25rem; color: var(--nuit);
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; cursor: pointer;
}
.chip:hover { transform: translateY(-3px); border-color: var(--ac, var(--or)); }
.chip.correct { background: #dcf5ea; border-color: #0c7a55; color: #0c7a55; animation: popIn .4s; }
.chip.wrong { animation: shake .4s; border-color: #e63946; background: #fdecea; }
.chip:disabled { cursor: default; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

.play-feedback { text-align: center; margin-top: 22px; font-family: var(--font-titre); font-weight: 700; font-size: 1.08rem; min-height: 30px; }
.play-feedback.good { color: #0c7a55; }
.play-feedback.bad { color: #c2410c; }
.play-next { display: block; margin: 16px auto 0; }

@media (max-width: 1020px) {
  .eveil-hub { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .eveil-hub { grid-template-columns: 1fr 1fr; gap: 14px; }
  .eveil-card { padding: 20px 14px; }
  .play-visual { font-size: 2rem; }
  .pv-letter { width: 76px; height: 76px; font-size: 2.5rem; }
}

/* ─────────── Étapes ─────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  position: relative; background: #fff; border: 1px solid #efe6d6; border-radius: var(--r-lg);
  padding: 56px 30px 34px; text-align: center; box-shadow: 0 8px 24px -12px rgba(23,16,53,.12);
  transition: transform .35s, box-shadow .35s;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.step-num {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--or), var(--terra)); color: #fff;
  font-family: var(--font-titre); font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 10px 22px -8px rgba(232,115,74,.7);
}
.step-ico { font-size: 2.4rem; margin-bottom: 14px; }
.step h3 { font-family: var(--font-titre); font-size: 1.2rem; color: var(--nuit); margin-bottom: 8px; }
.step p { color: var(--gris); font-size: .95rem; }

/* ─────────── Abonnement ─────────── */
.section-pricing {
  background: linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%);
  color: #fff;
  padding-top: 130px;
}
.section-pricing .container {
  width: min(1280px, 94%);
}
.section-pricing .kicker { color: var(--or); }
.section-pricing .lead { color: #cdc4e8; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.price-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: var(--r-lg) !important;
  padding: 32px 18px !important;
  position: relative;
  transition: transform .35s cubic-bezier(.22,.68,.36,1), box-shadow .35s, background .35s;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Empêche tout débordement hors des colonnes de la grille */
  box-sizing: border-box;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.45) !important;
}

.price-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.09);
  box-shadow: 0 28px 60px -15px rgba(0,0,0,.55) !important;
}

.price-card.featured {
  background: linear-gradient(165deg, rgba(246,185,63,.18), rgba(232,115,74,.12));
  border: 1.8px solid rgba(246,185,63,.75) !important;
  box-shadow: 0 24px 60px -15px rgba(246,185,63,.4), 0 0 0 1px rgba(246,185,63,.25) !important;
  transform: translateY(-8px);
  z-index: 2;
}

.price-card.featured:hover {
  transform: translateY(-14px);
  box-shadow: 0 32px 70px -15px rgba(246,185,63,.55), 0 0 0 1px rgba(246,185,63,.35) !important;
}

.ribbon-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--or), var(--terra));
  color: #402d05;
  font-weight: 800;
  font-size: .78rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(232,115,74,.7);
  letter-spacing: .02em;
}

.price-card h3 {
  font-family: var(--font-titre);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.price {
  margin-bottom: 20px;
}
.price b {
  font-family: var(--font-titre);
  font-size: 1.95rem;
  color: var(--or);
  white-space: nowrap;
}
.price span {
  display: block;
  font-size: .8rem;
  color: #b9aee0;
  margin-top: 2px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.price-card li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: .86rem;
  line-height: 1.4;
  color: #e4ddf6;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}
.price-card li::before {
  content: "✦";
  position: absolute;
  left: 2px;
  color: var(--or);
  font-size: .8rem;
}

.price-card .btn {
  justify-content: center;
  padding: 12px 14px;
  font-size: .92rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}

.section-pricing .btn-outline {
  border: 1.6px solid rgba(255, 255, 255, .38);
  color: #ffffff;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}
.section-pricing .btn-outline:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.price-card.featured .btn-dark,
.price-card.featured .btn-gold {
  background: var(--or);
  color: #402d05;
}

/* Offre à l'unité "Un Soir" */
.price-card.one-shot {
  background: linear-gradient(165deg, rgba(47,181,159,.16), rgba(255,255,255,.05));
  border-color: rgba(47,181,159,.55) !important;
}
.price-card.one-shot li::before { color: var(--teal); }
.price-card.one-shot .btn-dark {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(47,181,159,.55);
}
.price-card.one-shot .btn-dark:hover { filter: brightness(1.08); }
.ribbon-badge.teal {
  background: linear-gradient(135deg, var(--teal), #1d8a7a);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(47,181,159,.7);
}

.pay-badges {
  text-align: center;
  margin-top: 46px;
  color: #cdc4e8;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Adaptabilité responsive fine de la grille de prix */
@media (max-width: 1140px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 780px;
    margin-inline: auto;
    gap: 26px;
  }
  .pricing-grid .price-card {
    padding: 32px 24px !important;
  }
  .pricing-grid .price-card.featured {
    transform: none;
  }
  .pricing-grid .price-card.featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px;
    margin-inline: auto;
    gap: 22px;
  }
  .pricing-grid .price-card {
    padding: 28px 20px !important;
  }
}

/* ─────────── Témoignages ─────────── */
.testi {
  background: #fff; border: 1px solid #efe6d6; border-radius: var(--r-lg); padding: 30px;
  box-shadow: 0 8px 24px -12px rgba(23,16,53,.12); transition: transform .35s, box-shadow .35s;
}
.testi:hover { transform: translateY(-6px) rotate(.4deg); box-shadow: var(--shadow-lg); }
.stars { color: var(--or); letter-spacing: 3px; margin-bottom: 12px; }
.testi blockquote { font-size: .98rem; color: #4a4262; margin-bottom: 18px; }
.testi blockquote b { color: var(--nuit); }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--a, var(--or)); color: #fff; font-weight: 800; font-family: var(--font-titre); font-size: 1.1rem;
}
.testi figcaption b { display: block; font-size: .95rem; color: var(--nuit); line-height: 1.3; }
.testi figcaption small { color: var(--gris); font-size: .8rem; }

/* ─────────── FAQ ─────────── */
.faq-list { display: grid; gap: 14px; }
.faq-list details {
  background: #fff; border: 1px solid #efe6d6; border-radius: var(--r-md);
  padding: 20px 26px; transition: box-shadow .3s, border-color .3s;
}
.faq-list details[open] { box-shadow: var(--shadow-md); border-color: var(--or); }
.faq-list summary {
  font-family: var(--font-titre); font-weight: 700; font-size: 1.05rem; color: var(--nuit);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; color: var(--terra); transition: transform .3s; line-height: 1; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 12px; color: var(--gris); font-size: .96rem; }

/* ─────────── CTA final ─────────── */
.cta-final {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(246,185,63,.25), transparent 60%),
    linear-gradient(150deg, var(--nuit-3), var(--nuit));
  border-radius: 34px; text-align: center; color: #fff; padding: 80px 40px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cf-orn { display: inline-block; font-size: 2.6rem; margin-bottom: 10px; animation: sway 4s ease-in-out infinite; }
.cta-final h2 { font-family: var(--font-titre); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.grad-text-dark { background: linear-gradient(90deg, #ffdf8e, var(--or)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-final p { color: #cdc4e8; margin-bottom: 30px; }

/* ─────────── Footer ─────────── */
.footer { background: #120c29; color: #cdc4e8; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 50px; }
.f-brand .logo { color: #fff; margin-bottom: 16px; }
.f-brand p { font-size: .92rem; line-height: 1.8; }
.f-brand b { color: var(--or); }
.f-col h4 { font-family: var(--font-titre); color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.f-col a { display: block; padding: 5px 0; font-size: .92rem; transition: color .25s, transform .25s; }
.f-col a:hover { color: var(--or); transform: translateX(4px); }
.f-news p { font-size: .9rem; margin-bottom: 14px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: .9rem;
}
.news-form input::placeholder { color: #9d92c4; }
.news-form input:focus { outline: none; border-color: var(--or); }
.news-form .btn { padding: 12px 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .85rem;
}
.f-arabic { font-family: var(--font-arabe); font-size: 1.5rem; color: var(--or); opacity: .9; }

/* ─────────── Toast ─────────── */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 90px); z-index: 80;
  background: var(--nuit); color: #fff; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .93rem; box-shadow: var(--shadow-lg);
  opacity: 0; transition: transform .45s cubic-bezier(.22,.68,.36,1), opacity .45s; pointer-events: none;
  max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ─────────── Responsive ─────────── */
@media (max-width: 1020px) {
  .studio { grid-template-columns: 1fr; }
  .studio-preview { position: static; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 86px 4% auto; flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.97); backdrop-filter: blur(18px);
    border-radius: 22px; padding: 22px; gap: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-14px) scale(.98); pointer-events: none;
    transition: opacity .3s, transform .3s; z-index: 55;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-cta { justify-content: center; }
  .burger { display: flex; }
  .grid-3, .grid-4, .steps, .field-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 20px 0 30px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; gap: 26px; }
  .section { padding: 80px 0; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-8px); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .an-stage { height: 460px; }
  .an-hero { font-size: 3.6rem; }
  .scroll-hint { display: none; }
}

/* Accessibilité : réduire les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   PAGES — navigation multi-pages, mini-hero, jeux, du'a, cartes
   ═══════════════════════════════════════════════════════════ */
.nav-links a.active { color: var(--or); }
.nav-links a.active::after { width: 100%; }

.page-hero { position: relative; padding: 150px 0 56px; text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, rgba(246,185,63,.18), transparent 70%); pointer-events: none; }
.page-kicker { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem; color: var(--terra); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 12px 0 14px; color: var(--nuit); }
.page-hero p.lead { max-width: 680px; margin: 0 auto; color: var(--gris); font-size: 1.08rem; }

.section-alt { background: var(--creme-2); }
.badge-auth { display: inline-flex; align-items: center; gap: 6px; background: rgba(42,157,143,.12);
  color: #1c7a6d; border: 1px solid rgba(42,157,143,.35); border-radius: 999px;
  padding: 3px 10px; font-size: .74rem; font-weight: 700; white-space: nowrap; }

.defi-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid rgba(23,16,53,.08);
  border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-md); }
.defi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.defi-ico { font-size: 2rem; }
.defi-card h3 { margin: 0; font-size: 1.15rem; color: var(--nuit); }
.defi-card p { margin: 0; color: var(--gris); font-size: .95rem; }
.defi-lecon { background: #f7f3e8; border-left: 4px solid var(--or); border-radius: 10px; padding: 10px 14px;
  font-size: .92rem; color: var(--nuit); font-style: italic; }
.defi-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.dua-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.dua-card { background: #fff; border: 1px solid rgba(23,16,53,.08); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 10px; }
.dua-ar { font-family: "Amiri", serif; font-size: 1.7rem; line-height: 1.9; direction: rtl; color: var(--nuit); text-align: right; margin: 0; }
.dua-translit { font-style: italic; color: var(--prune); font-size: .95rem; margin: 0; }
.dua-fr { color: var(--gris); margin: 0; }
.dua-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.dua-source { font-size: .8rem; color: var(--gris); font-weight: 600; }
.dua-btn { align-self: flex-start; }

.jeu-card { text-align: center; cursor: pointer; background: #fff; border: 1px solid rgba(23,16,53,.08);
  border-radius: var(--r-md); padding: 28px 22px; box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease; }
.jeu-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(23,16,53,.12); }
.jeu-ico { font-size: 2.6rem; display: block; margin-bottom: 8px; }
.jeu-card h3 { margin: 6px 0; color: var(--nuit); }
.jeu-card p { color: var(--gris); font-size: .95rem; margin: 0 0 14px; }

.quiz-wrap { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid rgba(23,16,53,.08);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 30px; }
.quiz-q { font-size: 1.15rem; font-weight: 700; color: var(--nuit); margin-bottom: 18px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { text-align: left; background: #f7f3e8; border: 2px solid transparent; border-radius: 14px;
  padding: 13px 16px; font-size: 1rem; cursor: pointer; transition: all .18s ease; font-family: inherit; }
.quiz-opt:hover { border-color: var(--or); transform: translateX(4px); }
.quiz-opt.good { background: rgba(42,157,143,.15); border-color: var(--teal); }
.quiz-opt.bad { background: rgba(232,69,90,.1); border-color: var(--rose); }
.quiz-msg { min-height: 28px; margin-top: 14px; font-weight: 700; color: var(--teal); }
.quiz-msg.err { color: var(--rose); }
.quiz-score { display: flex; gap: 8px; justify-content: center; margin-top: 14px; font-size: 1.3rem; }
.quiz-score span { opacity: .25; transition: opacity .2s; }
.quiz-score span.on { opacity: 1; }

.retell-box { max-width: 640px; margin: 0 auto; }
.retell-area { width: 100%; min-height: 120px; border: 2px solid rgba(23,16,53,.12); border-radius: 14px;
  padding: 14px; font-family: inherit; font-size: 1rem; resize: vertical; }
.retell-words { font-size: .85rem; color: var(--gris); margin-top: 6px; }

.parent-tip { display: flex; gap: 14px; background: #fff; border: 1px solid rgba(23,16,53,.08);
  border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-md); }
.parent-tip .pt-ico { font-size: 1.8rem; }

.note-ecriture { background: rgba(139,92,246,.08); border: 1px dashed rgba(139,92,246,.4);
  border-radius: 14px; padding: 12px 16px; color: var(--gris); font-size: .92rem; }

@media (max-width: 720px) {
  .quiz-wrap, .retell-box { padding: 20px; }
  .dua-ar { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM v2 — aération, lisibilité, cartes soignées
   ═══════════════════════════════════════════════════════════ */
:root { --gris: #57516d; }
body { font-size: 17px; line-height: 1.65; }

.section { padding: 96px 0; }
.page-hero { padding: 175px 0 64px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); letter-spacing: -.5px; }
.page-hero .lead { font-size: 1.14rem; line-height: 1.75; color: #55506e; }

.nav .nav-links a { font-weight: 700; letter-spacing: .01em; }

.grid-3, .grid-4 { gap: 28px; }
.world-card, .defi-card, .jeu-card, .dua-card, .value-card, .testi, .step {
  border-radius: 22px !important;
  box-shadow: 0 10px 34px rgba(23,16,53,.08), 0 2px 8px rgba(23,16,53,.04) !important;
  border: 1px solid rgba(23,16,53,.06) !important;
}
.world-card, .defi-card { padding: 28px !important; }
.defi-card { gap: 12px; }
.jeu-card { padding: 34px 26px !important; }

.eveil-hub { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px !important; }
.eveil-card { padding: 30px 24px; border-radius: 20px; }
.play-card { padding: 34px !important; }

.studio { gap: 44px; }
.studio-form { padding: 34px !important; border-radius: 24px !important; }
.field input, .field select {
  padding: 13px 16px; border-radius: 12px; border: 1.6px solid #e6ddc9;
  background: #fffdf8; font-size: 1rem; color: var(--nuit);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(246,185,63,.18);
}

.badge-auth { font-size: .78rem; padding: 4px 12px; }
.defi-lecon { font-size: .95rem; line-height: 1.6; border-radius: 12px; padding: 14px 16px; }
.dua-ar { font-size: 1.8rem; line-height: 2; }
.dua-card { padding: 28px !important; }

.quiz-wrap { padding: 36px; border-radius: 24px; }
.quiz-opt { padding: 15px 18px; border-radius: 16px; font-size: 1.02rem; }

.section-head { margin-bottom: 48px; }
.kicker { letter-spacing: .18em; }
.price-card .price { letter-spacing: -.5px; }

.footer { padding: 72px 0 32px; }

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .page-hero { padding: 150px 0 44px; }
}

/* ═══════════════ VIGNETTES HISTOIRES NUR ═══════════════ */
.nur-thumb {
  height: 190px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  display: block;
}
.nur-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.world-card:hover .nur-thumb img { transform: scale(1.05); }
#nurPlayer .nur-stage {
  border-radius: 22px;
  overflow: hidden;
  background: #171035;
  display: flex;
  justify-content: center;
}
#nurPlayer .nur-stage img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

/* ═══════════ PERSONNAGES « VIVANTS » DU FILM ANIMÉ ═══════════ */
.an-cast {
  position: absolute;
  right: 4%;
  bottom: 3%;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  font-size: 44px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(23,16,53,.25));
}
.an-cast span { display: inline-block; animation: anCastBob 2.6s ease-in-out infinite; }
.an-cast span:nth-child(2) { animation-delay: .4s; font-size: 38px; }
.an-cast span:nth-child(3) { animation-delay: .8s; font-size: 34px; }
@keyframes anCastBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-3deg); }
}
.an-hero { --heroscale: 1.6; }
.an-hero span {
  transition: transform .6s ease;
  transform: scale(var(--heroscale));
}
.an-hero.walking span { animation: anWalk 1.1s ease-in-out infinite; }
@keyframes anWalk {
  0%, 100% { transform: scale(var(--heroscale)) rotate(-4deg); }
  50% { transform: scale(var(--heroscale)) rotate(4deg); }
}
@keyframes anSparkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}
.an-hero.sparkle span { animation: anSparkle 1s ease-in-out infinite; }
.an-hero.sad span { transform: scale(var(--heroscale)) rotate(-8deg) translateY(4px); }

/* ═══════════ ESPACE PARENTS : RUBRIQUES THÉMATIQUES COLORÉES ═══════════ */
.theme-card {
  border-radius: 22px;
  padding: 26px 24px;
  border: 2px solid transparent;
  border-left-width: 8px;
  box-shadow: var(--shadow-md);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.theme-card:hover { transform: translateY(-4px); }
.theme-card h3 { font-weight: 800; font-size: 1.18rem; margin-bottom: 10px; }
.theme-card p { font-weight: 600; line-height: 1.7; color: var(--gris); }
.theme-card .theme-age {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  font-size: .85rem;
  padding: 5px 14px;
  border-radius: 999px;
}
.theme-cuisine    { border-left-color: var(--terra); background: linear-gradient(160deg, #fff, #fdf0ea); }
.theme-cuisine h3, .theme-cuisine .theme-age { color: var(--terra); background: rgba(232,115,74,.12); }
.theme-cuisine .theme-age { color: var(--terra); }
.theme-nature     { border-left-color: var(--teal); background: linear-gradient(160deg, #fff, #eafaf5); }
.theme-nature h3, .theme-nature .theme-age { color: #157a67; }
.theme-nature .theme-age { background: rgba(47,181,159,.12); color: #157a67; }
.theme-art        { border-left-color: var(--rose); background: linear-gradient(160deg, #fff, #fdf0f6); }
.theme-art h3, .theme-art .theme-age { color: #b0347c; }
.theme-art .theme-age { background: rgba(214,64,151,.12); color: #b0347c; }
.theme-contes     { border-left-color: var(--or); background: linear-gradient(160deg, #fff, #fdf6e3); }
.theme-contes h3, .theme-contes .theme-age { color: #a06a08; }
.theme-contes .theme-age { background: rgba(246,185,63,.15); color: #a06a08; }
.theme-solidarite { border-left-color: var(--teal); background: linear-gradient(160deg, #fff, #ecf6ff); }
.theme-solidarite h3, .theme-solidarite .theme-age { color: #16604f; }
.theme-solidarite .theme-age { background: rgba(22,96,79,.10); color: #16604f; }
.theme-foi        { border-left-color: var(--prune); background: linear-gradient(160deg, #fff, #f3effc); }
.theme-foi h3, .theme-foi .theme-age { color: #5b3a9e; }
.theme-foi .theme-age { background: rgba(122,74,218,.12); color: #5b3a9e; }

/* ═══════════ MISSIONS QUOTIDIENNES DE L'ENFANT ═══════════ */
.missions-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.missions-box {
  border-radius: 22px;
  padding: 28px 26px;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-top: 8px solid var(--or);
}
.missions-box.weekend { border-top-color: var(--prune); }
.missions-box h3 { font-weight: 800; font-size: 1.25rem; margin-bottom: 6px; }
.missions-box .missions-sub { font-weight: 700; color: var(--gris); margin-bottom: 18px; }
.mission {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s ease;
  font-weight: 700;
  color: #241b4d;
}
.mission:hover { background: rgba(246,185,63,.10); }
.mission input[type="checkbox"] {
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--or);
  cursor: pointer;
  flex: none;
}
.mission input[type="checkbox"]:checked ~ span:not(.m-ico) { text-decoration: line-through; opacity: .55; }
.mission.weekend-only input[type="checkbox"] { accent-color: var(--prune); }
.mission .m-ico { font-size: 1.3rem; flex: none; }
.missions-recap {
  margin-top: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--or);
  font-size: 1.05rem;
}
.missions-box.weekend .missions-recap { color: var(--prune); }
.rappel-vendredi {
  margin-top: 30px;
  padding: 20px 24px;
  border-radius: 18px;
  background: linear-gradient(120deg, #fdf6e3, #f3effc);
  border: 2px dashed var(--or);
  font-weight: 700;
  line-height: 1.7;
}
.rappel-vendredi.actif { border-style: solid; background: linear-gradient(120deg, #eafaf5, #fdf6e3); }
.rappel-vendredi b { color: #a06a08; }

/* Distinction fine des couleurs par thème (lisorité) */
.theme-art { border-left-color: #d64097; }
.theme-solidarite { border-left-color: #2f7fb5; }
.theme-solidarite h3, .theme-solidarite .theme-age { color: #1d5e8a; }
.theme-solidarite .theme-age { background: rgba(47,127,181,.12); }

/* ═════════ PERSONNAGES SVG PLEINE HAUTEUR (film animé) ═════════ */
/* Le héros : grand, ancré au sol à gauche, avec son prénom */
.an-hero-perso {
  left: 7%;
  bottom: 14%;
  font-size: 0; /* neutralise l'ancien font-size emoji */
  transform: none; /* GSAP pilote x : sans ça le translateX(-50%) hérité pousse le héros hors de la page */
}
.an-hero-perso .sp-svg { --sp-h: min(300px, 52vh); filter: drop-shadow(0 10px 14px rgba(23,16,53,.28)); }
.an-hero-perso .an-nom {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-titre, "Baloo 2", cursive);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: rgba(36,27,77,.72);
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
/* Les personnages secondaires : taille adulte/enfant, alignés au sol à droite */
.an-cast { gap: 2px; align-items: flex-end; bottom: 14%; right: 6%; }
.an-cast-perso .sp-svg { --sp-h: 220px; filter: drop-shadow(0 8px 12px rgba(23,16,53,.24)); }
.an-cast-perso:nth-child(2) .sp-svg { --sp-h: 190px; }
/* Neutralise les anciennes règles emoji-cast */
.an-cast span { animation: none; }
.an-cast span:nth-child(2), .an-cast span:nth-child(3) { animation: none; font-size: 0; }
@media (max-width: 700px) {
  .an-hero-perso .sp-svg { --sp-h: min(200px, 34vh); }
  .an-cast-perso .sp-svg { --sp-h: 140px; }
  .an-cast-perso:nth-child(2) .sp-svg { --sp-h: 120px; }
}

/* ═══════════════════════════════════════════════════════════
   ÉVOLUTIONS — Petit défi, Ce soir, Ma famille, Jardin
   (réutilise tokens et composants existants ; aucun nouveau style global)
   ═══════════════════════════════════════════════════════════ */
/* Petits défis : cartes univers en colonne (4 par ligne) */
.defi-mini { flex-direction: column; gap: 12px; }
.defi-mini .wc-body h3 { margin-top: 0; }
.defis-more { text-align: center; margin-top: 34px; }

/* Ce soir avec mon enfant : une seule expérience, centrée */
.soir-card { text-align: center; padding: 44px 34px !important; }
.soir-card h2, .jardin-card h2 { font-family: var(--font-titre); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; margin-bottom: 22px; color: var(--nuit); }
.soir-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 auto 28px; max-width: 640px; }
.soir-list li { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fffdf8; border: 1.6px solid #efe6d6; border-radius: var(--r-md); padding: 14px 10px; }
.soir-list b { font-family: var(--font-titre); font-size: 1.3rem; color: var(--terra); }
.soir-list span { font-weight: 700; color: var(--nuit); font-size: .95rem; }

/* Parcours Petit défi */
.steps.parcours { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.parcours .step { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.parcours .step p { margin: 0; }
.parcours .btn { justify-content: center; }
.parcours-question { font-family: var(--font-titre); font-weight: 700; font-size: 1.08rem; color: var(--nuit) !important; }
.parcours .dua-foot { justify-content: center; }
.parcours-actions { text-align: center; margin-top: 26px; }
.defi-parents { display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
.parent-tip h3, .parent-tip h4 { font-family: var(--font-titre); color: var(--nuit); font-size: 1.1rem; margin-bottom: 6px; }
.parent-tip p { color: var(--gris); margin: 0; }
.parent-tip a { color: var(--terra); font-weight: 700; }

/* Ma famille (Studio) */
.famille-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fffdf8; border: 1.6px dashed #e4d9c4; border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 20px; }
.famille-bar p { flex: 1 1 200px; margin: 0; font-size: .92rem; color: var(--gris); }
.famille-bar p b { color: var(--nuit); }
.studio-suite { margin-top: 18px; text-align: center; }

/* Jardin de l'enfant : progression douce, jamais de chiffres */
.jardin-card { text-align: center; }
.jardin-sol { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 18px; min-height: 120px; padding: 26px 16px 18px; margin: 10px 0 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, transparent 55%, rgba(47,181,159,.14) 55%, rgba(232,115,74,.12)); }
.plante { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.plante-ico { display: block; line-height: 1; transform-origin: bottom center; animation: popIn .5s; }
.plante.stade-1 .plante-ico { font-size: 1.7rem; }
.plante.stade-2 .plante-ico { font-size: 2.4rem; }
.plante.stade-3 .plante-ico { font-size: 3.1rem; }
.plante small { font-size: .78rem; font-weight: 700; color: var(--gris); }
.jardin-vide { color: var(--gris); max-width: 460px; margin: auto; }
.jardin-phrase { font-family: var(--font-titre); font-weight: 700; color: var(--nuit); font-size: 1.1rem; }

/* Que se passe-t-il en ce moment ? */
.qp-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qp-form input { flex: 1 1 240px; padding: 13px 16px; border-radius: 12px; border: 1.6px solid #e6ddc9; background: #fffdf8; font: inherit; color: var(--nuit); }
.qp-form input:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(246,185,63,.18); }
.qp-reponse { margin-top: 26px; }
.qp-reponse h3 { font-family: var(--font-titre); color: var(--nuit); font-size: 1.3rem; margin-bottom: 14px; text-align: center; }
.qp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

@media (max-width: 760px) {
  .soir-card { padding: 32px 20px !important; }
  .soir-list { grid-template-columns: 1fr 1fr; }
  .famille-bar .btn { flex: 1 1 auto; justify-content: center; }
  #quePasse .glass-card { padding: 26px 18px; }
  #qpChoix { gap: 7px; }
  #qpChoix span { padding: 8px 12px; font-size: .84rem; }
  .steps.parcours { gap: 36px; }
  .parcours .step { padding: 40px 22px 26px; gap: 8px; }
  .parcours .step-ico { font-size: 2rem; margin-bottom: 4px; }
}

/* ─────────── Page Éveil : Hero Vidéo Plein Écran (Naturel & Aérien) ─────────── */
.eveil-hero-fullscreen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 130px 0 60px;
  background: var(--creme);
}

.eveil-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.eveil-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center 70%;
}

@media (min-width: 1024px) {
  .eveil-bg-video {
    object-position: center 65%;
  }
}

.eveil-video-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    /* Voile ultra-léger et transparent au centre pour laisser voir l'enfant et les cubes à 100% */
    linear-gradient(
      180deg,
      rgba(250, 245, 235, 0.68) 0%,
      rgba(250, 245, 235, 0.35) 28%,
      rgba(250, 245, 235, 0.05) 55%,
      rgba(250, 245, 235, 0.45) 85%,
      var(--creme) 100%
    );
}

.eveil-hero-inner {
  position: relative;
  z-index: 2;
  width: min(860px, 94%);
  margin: 0 auto;
  text-align: center;
}

.eveil-hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.eveil-hero-content .page-kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .84rem;
  color: var(--terra);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 115, 74, 0.3);
  box-shadow: 0 4px 14px rgba(23, 16, 53, 0.08);
  margin-bottom: 14px;
}

.eveil-hero-content h1 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.14;
  color: var(--nuit);
  margin: 0 0 16px;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 0.95),
    0 2px 10px rgba(255, 255, 255, 0.6);
}

.eveil-hero-content h1 .grad-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ed8137;
  display: inline-block;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(255, 255, 255, 0.7);
}

.eveil-hero-content p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #171035;
  font-weight: 600;
  line-height: 1.68;
  max-width: 660px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.eveil-hero-content .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.eveil-hero-content .btn-gold {
  box-shadow: 0 14px 30px -8px rgba(246, 185, 63, 0.75), 0 2px 8px rgba(23, 16, 53, 0.12);
}

.eveil-hero-content .btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--nuit);
  border: 1.6px solid rgba(23, 16, 53, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -6px rgba(23, 16, 53, 0.12);
}

.eveil-hero-content .btn-ghost:hover {
  background: var(--nuit);
  color: #fff;
  border-color: var(--nuit);
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 760px) {
  .eveil-hero-fullscreen {
    padding: 110px 0 50px;
  }
  .eveil-bg-video {
    object-position: center 60%;
  }
  .eveil-hero-content .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eveil-bg-video {
    display: none;
  }
  .eveil-video-wrap {
    background-image: url('eveil-poster.jpg');
    background-size: cover;
    background-position: center 65%;
  }
}

/* ─────────── Page Foi & Valeurs : Hero Vidéo Plein Écran ─────────── */
.valeurs-hero-fullscreen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 130px 0 60px;
  background: var(--creme);
}

.valeurs-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.valeurs-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center 70%;
}

@media (min-width: 1024px) {
  .valeurs-bg-video {
    object-position: center 65%;
  }
}

.valeurs-video-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(250, 245, 235, 0.68) 0%,
    rgba(250, 245, 235, 0.35) 28%,
    rgba(250, 245, 235, 0.05) 55%,
    rgba(250, 245, 235, 0.45) 85%,
    var(--creme) 100%
  );
}

.valeurs-hero-inner {
  position: relative;
  z-index: 2;
  width: min(860px, 94%);
  margin: 0 auto;
  text-align: center;
}

.valeurs-hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.valeurs-hero-content .page-kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .84rem;
  color: var(--terra);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 115, 74, 0.3);
  box-shadow: 0 4px 14px rgba(23, 16, 53, 0.08);
  margin-bottom: 14px;
}

.valeurs-hero-content h1 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--nuit);
  margin: 0 0 16px;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 0.95),
    0 2px 10px rgba(255, 255, 255, 0.6);
}

.valeurs-hero-content h1 .grad-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ed8137;
  display: inline-block;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(255, 255, 255, 0.7);
}

.valeurs-hero-content p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #171035;
  font-weight: 600;
  line-height: 1.68;
  max-width: 660px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.valeurs-hero-content .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.valeurs-hero-content .btn-gold {
  box-shadow: 0 14px 30px -8px rgba(246, 185, 63, 0.75), 0 2px 8px rgba(23, 16, 53, 0.12);
}

.valeurs-hero-content .btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--nuit);
  border: 1.6px solid rgba(23, 16, 53, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -6px rgba(23, 16, 53, 0.12);
}

.valeurs-hero-content .btn-ghost:hover {
  background: var(--nuit);
  color: #fff;
  border-color: var(--nuit);
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 760px) {
  .valeurs-hero-fullscreen {
    padding: 110px 0 50px;
  }
  .valeurs-bg-video {
    object-position: center 60%;
  }
  .valeurs-hero-content .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .valeurs-bg-video {
    display: none;
  }
  .valeurs-video-wrap {
    background-image: url('foi-poster.jpg');
    background-size: cover;
    background-position: center 65%;
  }
}

/* ─────────── Page Parents : Hero Vidéo Plein Écran ─────────── */
.parents-hero-fullscreen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 130px 0 60px;
  background: var(--creme);
}

.parents-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.parents-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center 65%;
}

@media (min-width: 1024px) {
  .parents-bg-video {
    object-position: center 60%;
  }
}

.parents-video-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(250, 245, 235, 0.65) 0%,
    rgba(250, 245, 235, 0.32) 28%,
    rgba(250, 245, 235, 0.05) 55%,
    rgba(250, 245, 235, 0.45) 85%,
    var(--creme) 100%
  );
}

.parents-hero-inner {
  position: relative;
  z-index: 2;
  width: min(860px, 94%);
  margin: 0 auto;
  text-align: center;
}

.parents-hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.parents-hero-content .page-kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .84rem;
  color: #1a6b47;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(26, 107, 71, 0.28);
  box-shadow: 0 4px 14px rgba(23, 16, 53, 0.08);
  margin-bottom: 14px;
}

.parents-hero-content h1 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--nuit);
  margin: 0 0 16px;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 0.95),
    0 2px 10px rgba(255, 255, 255, 0.6);
}

.parents-hero-content h1 .grad-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ed8137;
  display: inline-block;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(255, 255, 255, 0.7);
}

.parents-hero-content p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #171035;
  font-weight: 600;
  line-height: 1.68;
  max-width: 660px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.parents-hero-content .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.parents-hero-content .btn-gold {
  box-shadow: 0 14px 30px -8px rgba(246, 185, 63, 0.75), 0 2px 8px rgba(23, 16, 53, 0.12);
}

.parents-hero-content .btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--nuit);
  border: 1.6px solid rgba(23, 16, 53, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -6px rgba(23, 16, 53, 0.12);
}

.parents-hero-content .btn-ghost:hover {
  background: var(--nuit);
  color: #fff;
  border-color: var(--nuit);
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 760px) {
  .parents-hero-fullscreen {
    padding: 110px 0 50px;
  }
  .parents-bg-video {
    object-position: center 60%;
  }
  .parents-hero-content .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parents-bg-video {
    display: none;
  }
  .parents-video-wrap {
    background-image: url('pam-poster.jpg');
    background-size: cover;
    background-position: center 60%;
  }
}



/* ─────────── Page Créer une histoire : vidéo vidkids (réutilise le hero Éveil) ─────────── */
/* Les visages sont dans le haut de l'image : on ancre le recadrage en haut */
.studio-hero .eveil-bg-video { object-position: center 20%; }
@media (prefers-reduced-motion: reduce) {
  .studio-hero .eveil-video-wrap { background-image: url('vidkids-poster.jpg'); background-position: center 20%; }
}
/* Le titre sur fond vidéo : netteté et contraste parfaits */
.studio-hero h1 .grad-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ed8137;
  display: inline-block;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(255, 255, 255, 0.7);
  filter: none;
}
/* Voile ivoire doux derrière le texte, la vidéo reste visible autour */
.studio-hero .eveil-video-scrim {
  background:
    radial-gradient(ellipse 48% 34% at 50% 30%, rgba(250, 245, 235, .78), rgba(250, 245, 235, 0) 100%),
    linear-gradient(180deg, rgba(250, 245, 235, .55) 0%, rgba(250, 245, 235, 0) 45%, rgba(250, 245, 235, .35) 85%, var(--creme) 100%);
}
/* Mobile portrait : une vidéo 16:9 sur 100svh serait zoomée ~4× (floue) → hauteur au contenu, zoom ~2,5× */
@media (max-width: 760px) { .studio-hero { min-height: 0; padding-bottom: 90px; } }

/* ─────────── Lecteur en LIVRE : pages qui se feuillettent (story-player.js) ─────────── */
#anStage {
  perspective: 2200px;
  border-radius: 6px 14px 14px 6px;
  background: #fbf3e1;
  /* tranche des pages empilées à droite + ombre du livre posé */
  box-shadow:
    2px 0 0 #fffaf0, 3px 0 0 #e4d6b8, 5px 1px 0 #fffaf0, 6px 1px 0 #e4d6b8,
    8px 2px 0 #fffaf0, 9px 2px 0 #dccca9,
    0 22px 40px -18px rgba(23, 16, 53, .45);
}
/* reliure : creux d'ombre côté gauche, au-dessus de toutes les pages */
#anStage::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(60, 38, 10, .32), rgba(60, 38, 10, .08) 3%, transparent 8%, transparent 96%, rgba(255, 255, 255, .25));
}
#anStage .an-scene { transform-origin: left center; backface-visibility: hidden; will-change: transform; }
/* ombre qui glisse sur la page pendant qu'elle tourne */
.an-shade {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(23, 16, 53, .55), rgba(23, 16, 53, .15) 45%, rgba(255, 255, 255, .2));
}
/* le texte posé comme sur du papier */
#anStage .an-text { background: rgba(255, 250, 238, .95); border: 1px solid #ecdfc3; }
@media (prefers-reduced-motion: reduce) { #anStage .an-scene { transform: none !important; } }

/* Illustrated book: artwork and prose on separate paper leaves. */
#anStage { height: clamp(440px, 42vw, 580px); overflow: hidden; border: 8px solid #80553b; border-bottom-width: 12px; border-radius: 12px; }
#anStage::after { background: linear-gradient(90deg, #56361933, transparent 4%, transparent 96%, #56361922); }
.storybook-spread { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; background: #fff9ed; transform-origin: left center; backface-visibility: hidden; }
.storybook-art { position: relative; overflow: hidden; background: linear-gradient(#d7f0ec, #fcdfaa); }
.book-palette-1 { background: linear-gradient(#d8eafa,#f9e2bd); }
.book-palette-2 { background: linear-gradient(#f8d5b9,#f4bd89); }
.book-palette-3 { background: linear-gradient(#c9c5e8,#eedce3); }
.storybook-sun { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: #fff5d1; top: 9%; left: 12%; box-shadow: 0 0 60px #fff0b5; }
.storybook-land { position: absolute; inset: 66% -30% -20%; border-radius: 50% 50% 0 0; background: linear-gradient(#aec5a1,#6c9276); }
.storybook-family { position: absolute; inset: 22% 4% 8%; display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.storybook-hero .sp-svg { --sp-h: 300px; max-width: 100%; }
.storybook-companion .sp-svg { --sp-h: 275px; max-width: 100%; }
.storybook-family .sp-img { height: var(--sp-h); object-fit: contain; }
.storybook-family-group > div { width: 33.333%; min-width: 0; }
.storybook-family-group .sp-svg { width: 100% !important; }
.storybook-name { position: absolute; bottom: 4%; left: 0; right: 0; text-align: center; font-size: 1rem; font-weight: 800; color: #fff; text-shadow: 0 2px 6px #345840; }
.storybook-paper { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 32px clamp(18px, 3vw, 40px); background: linear-gradient(90deg,#e8ddc8,#fff9ed 8%,#fffdf6 90%,#efe5d2); color: #382a25; overflow-y: auto; }
.storybook-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #987142; margin-bottom: 20px; }
.storybook-paper p { font-family: Georgia, serif; font-size: clamp(1rem,1.4vw,1.22rem); line-height: 1.8; margin: 0; }
.storybook-paper strong { color: #84622d; }
.storybook-folio { display: block; text-align: center; margin-top: 24px; font: .8rem Georgia,serif; color: #987142; }
.storybook-fold { pointer-events: none; position: absolute; top: 0; bottom: 0; left: 50%; width: 24px; transform: translateX(-50%); background: linear-gradient(90deg,transparent,#3f291a33 47%,#fff5dc66 53%,transparent); }
.storybook-illustration { width: 100%; height: 100%; object-fit: cover; }
.sp-svg.sp-illustrated { overflow: hidden; }
#animPlayer { scroll-margin-top: 100px; }
.book-controls .ctrl:disabled { opacity: .35; cursor: default; }
@media(max-width:600px) {
 #anStage { height: 690px; border-width: 5px; }
 .storybook-spread { grid-template-columns: 1fr; grid-template-rows: 310px 1fr; }
 .storybook-family { inset: 10% 5% 8%; }
 .storybook-hero .sp-svg { --sp-h: 250px; }
 .storybook-companion .sp-svg { --sp-h: 245px; }
 .storybook-paper { padding: 20px 24px; justify-content: flex-start; }
 .storybook-paper p { font-size: 1rem; line-height: 1.65; }
 .storybook-kicker { margin-bottom: 12px; }
 .storybook-fold { left: 0; right: 0; top: 310px; bottom: auto; width: auto; height: 12px; transform: none; background: linear-gradient(#3f291a22,transparent); }
}
@media(prefers-reduced-motion:reduce) { .storybook-spread *, .sp-img-wrap * { animation: none !important; } }

/* Movement during reading; pause and reduced-motion preferences stop it. */
.storybook-cloud { position: absolute; top: 19%; left: 57%; width: 110px; height: 30px; background: #ffffff99; border-radius: 60px; animation: bookCloudDrift 10s ease-in-out infinite alternate; }
.storybook-cloud::before, .storybook-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; width: 44px; height: 44px; left: 16px; bottom: 0; }
.storybook-cloud::after { left: 48px; width: 56px; height: 56px; }
.storybook-particles { position: absolute; inset: 0; pointer-events: none; }
.storybook-particles i { position: absolute; left: 16%; top: 66%; width: 5px; height: 5px; background: #fff6bc; border-radius: 50%; box-shadow: 0 0 8px #fff4ba; animation: bookSpark 7s ease-in-out infinite; }
.storybook-particles i:nth-child(2) { left: 38%; top: 42%; animation-delay: -2s; }
.storybook-particles i:nth-child(3) { left: 67%; top: 65%; animation-delay: -4s; }
.storybook-particles i:nth-child(4) { left: 85%; top: 30%; animation-delay: -5s; }
.storybook-particles i:nth-child(5) { left: 53%; top: 20%; animation-delay: -3s; }
@keyframes bookCloudDrift { to { transform: translateX(-22px); } }
@keyframes bookSpark { 0%,100% { transform: translate(0,8px); opacity: .15; } 50% { transform: translate(8px,-24px); opacity: .9; } }
.book-paused .storybook-spread * { animation-play-state: paused !important; }
.custom-conduct { margin-top: 16px; }
.custom-conduct textarea { width: 100%; padding: 12px 14px; border: 1px solid #d8c7ad; border-radius: 12px; font: inherit; resize: vertical; background: #fffdf8; color: var(--encre); }
.book-download { margin-top: 14px; text-align: center; }
.book-download .form-note { font-size: .78rem; max-width: 480px; margin: 8px auto; }
#anExportProgress { padding: 12px; }
#anExportBar { width: min(100%,320px); display: block; margin: 0 auto 8px; accent-color: #b68b45; }
#anExportStatus { display: block; font-size: .85rem; }
#anVideoSave[hidden], #anExportProgress[hidden], #customConductField[hidden], #anExportCancel[hidden] { display: none !important; }
#animPlayer:fullscreen, #animPlayer.book-fullscreen { width: 100%; height: 100dvh; box-sizing: border-box; padding: 16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)); background: #f5efdf; overflow-y: auto; border-radius: 0; display: flex; flex-direction: column; animation: none !important; opacity: 1; transform: none; }
#animPlayer.book-fullscreen { position: fixed; inset: 0; z-index: 2147483647; margin: 0; }
#animPlayer:fullscreen #anStage, #animPlayer.book-fullscreen #anStage { width: min(1100px,100%); min-height: 280px; height: auto; flex: 1; margin: 0 auto; }
#animPlayer:fullscreen .anim-head, #animPlayer.book-fullscreen .anim-head { width: min(1100px,100%); margin: 0 auto 10px; flex-shrink: 0; }
#animPlayer:fullscreen .book-controls, #animPlayer.book-fullscreen .book-controls, #animPlayer:fullscreen .an-dots, #animPlayer.book-fullscreen .an-dots { flex-shrink: 0; }
#animPlayer:fullscreen .book-download, #animPlayer.book-fullscreen .book-download { margin-top: 8px; }
@media(max-width:600px) {
 #animPlayer:fullscreen #anStage, #animPlayer.book-fullscreen #anStage { min-height: 440px; }
 #animPlayer:fullscreen .storybook-spread, #animPlayer.book-fullscreen .storybook-spread { grid-template-rows: 43% 57%; }
 #animPlayer:fullscreen .storybook-fold, #animPlayer.book-fullscreen .storybook-fold { top: 43%; }
 #animPlayer:fullscreen .storybook-hero .sp-svg, #animPlayer.book-fullscreen .storybook-hero .sp-svg { --sp-h: 190px; }
 #animPlayer:fullscreen .storybook-companion .sp-svg, #animPlayer.book-fullscreen .storybook-companion .sp-svg { --sp-h: 185px; }
}
@media(prefers-reduced-motion:reduce) {
 .storybook-cloud, .storybook-particles i { animation: none !important; }
 .storybook-family > div, .storybook-sun, .storybook-illustration { transform: none !important; }
}

.storybook-decor { position:absolute; inset:0; overflow:hidden; }
.storybook-spread[data-mood="angry"] .storybook-particles, .storybook-spread[data-mood="sad"] .storybook-particles, .storybook-spread[data-mood="worried"] .storybook-particles { display:none; }

.storybook-ball { position:absolute; width:58px; right:7%; bottom:13%; z-index:1; filter:drop-shadow(0 5px 3px #253a4050); }

.book-narration { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; padding:10px 16px; }
.book-narration select { max-width:100%; border:1px solid #e4d8c5; border-radius:12px; padding:9px; background:#fffaf0; color:#302744; font:inherit; }
#anNarrationStatus { flex-basis:100%; margin:2px 0 8px; text-align:center; font-size:13px; color:#76687e; }
.book-audio-option { display:block; margin:10px 0 16px; font-size:14px; }
.ctrl-voice.talking { animation:none; box-shadow:0 0 0 4px #f6bd4230; }

#anChosenVoice { flex-basis:100%; margin:0; text-align:center; }
.book-narration { min-width:0; }
.book-narration select { min-width:0; width:100%; max-width:320px; box-sizing:border-box; }
.book-narration label { flex-basis:100%; text-align:center; }
#anRerollVoice { max-width:100%; white-space:normal; }
/* Identité Petits Contes, Grands Pas */
.logo { flex-shrink:0; gap:10px; }
.logo-mark { display:flex; flex-shrink:0; animation:none; }
.logo-mark img { display:block; width:52px; height:52px; }
.logo-text { display:flex; flex-direction:column; font-size:1.12rem; line-height:1.05; white-space:nowrap; }
.logo-text b { display:block; color:var(--terra); font-size:1.32rem; }
.f-brand .logo-text b { color:var(--or); }
.f-brand .brand-signature { color:#fff4d5; font-weight:700; margin-bottom:12px; }
@media(max-width:480px) {
 .logo-mark img { width:43px; height:43px; }
 .logo-text { font-size:1rem; }
 .logo-text b { font-size:1.18rem; }
}

/* Make room for the Activities link in the shared navigation. */
.nur-transcript { white-space:pre-line; max-width:850px; margin:20px auto; padding:24px 28px; border:1px solid #eadcc7; border-radius:18px; background:#fffaf1; color:#171035; font-size:1.1rem; line-height:1.85; }
.nur-transcript[hidden] { display:none!important; }
#nurStatus { text-align:center; padding:12px; color:#514660; }
#nurPlayer .ctrl:disabled { opacity:.35; cursor:default; }
@media(min-width:901px) { .nav-links { gap:16px; font-size:.9rem; } .nav-links .nav-cta { padding:12px 16px; } }
@media(min-width:761px) and (max-width:1200px) {
 .burger { display:flex; }
 .nav-links { position:absolute; top:100%; left:4%; right:4%; display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:20px; background:#fffaf2; border-radius:20px; box-shadow:0 18px 40px #17103520; opacity:0; transform:translateY(-10px); pointer-events:none; }
 .nav-links.open { opacity:1; transform:none; pointer-events:auto; }
}
