/* ==========================================================================
   Baby Challenge — univers tout-doux : soleil orange, cubes ABC, formes, bulles
   ========================================================================== */

.page-baby {
  --cream: #fff8ee;
  --peach: #ffe6cc;
  --orange: #ff7a1a;
  --orange-deep: #ec4d0b;
  --sun: #ffc23a;
  --pink: #ff5fa8;
  --pink-soft: #ffe0ee;
  --sky: #4fc3f7;
  --blue: #2f7fe0;
  --green: #2fa84f;
  --purple: #8e6cff;
  --ink: #3d2552;
  --muted: #7a6488;
  --card: #fff;

  --font-fun: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-display: var(--font-fun);

  --nav-fg: #fff;
  --nav-bg: rgba(236, 77, 11, 0.9);
  --nav-border: rgba(255, 255, 255, 0.25);
  --nav-accent: #fff;
  --nav-cta-fg: var(--orange-deep);

  background: var(--cream);
  color: var(--ink);
}
.page-baby .brand-name { font-family: var(--font-fun); font-weight: 700; }
.page-baby .brand-name span { opacity: 0.75; }

/* ---------- Typo & boutons ---------- */
.b-section { position: relative; padding: clamp(80px, 10vw, 130px) 0; }
.b-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.b-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 18px;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 15px;
  color: var(--orange-deep);
  background: var(--card);
  box-shadow: 0 6px 0 rgba(236, 77, 11, 0.15), 0 0 0 2px rgba(255, 122, 26, 0.2);
}
.b-title {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.b-title .hl { color: var(--orange); position: relative; z-index: 0; white-space: nowrap; }
.b-title .hl::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 0.04em;
  height: 0.28em;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 194, 58, 0.55);
}
.b-lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }

.bubble-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 22px;
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  text-decoration: none;
  background: var(--btn, var(--blue));
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16), inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 12px 24px -10px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-bounce), filter 0.2s;
}
.bubble-btn:hover { transform: translateY(-3px) scale(1.04) rotate(-1deg); filter: brightness(1.06); }
.bubble-btn:active { transform: translateY(2px) scale(0.98); }
.bubble-btn svg { width: 22px; height: 22px; }

/* ---------- HERO ---------- */
.baby-hero {
  position: relative;
  min-height: max(780px, 100svh);
  padding: calc(var(--nav-h) + 40px) 0 180px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, #ffe58a 0%, #ffb52e 22%, #ff8a1f 48%, #ef560c 85%, #de420a 100%);
}
.sunburst {
  position: absolute;
  top: 42%; left: 50%;
  width: 260vmax; height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  z-index: -2;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.11) 0 7.5deg, transparent 7.5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 40%);
  mask-image: radial-gradient(circle, #000 8%, transparent 40%);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.decor > * { position: absolute; }
.float-shape {
  width: var(--s, 70px);
  filter: drop-shadow(0 10px 12px rgba(150, 40, 0, 0.3));
  animation: drift var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-22px) rotate(calc(var(--r, 0deg) + 12deg)); }
}

/* Cubes ABC 3D */
.cube-wrap {
  width: var(--s, 90px);
  height: var(--s, 90px);
  perspective: 600px;
  animation: drift var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cube-turn var(--turn, 18s) linear infinite;
}
@keyframes cube-turn {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}
.cube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 14%;
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: calc(var(--s, 90px) * 0.58);
  color: #fff;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.12);
  background: var(--c, #4fc3f7);
  box-shadow: inset 0 0 0 calc(var(--s, 90px) * 0.07) rgba(255, 255, 255, 0.45), inset 0 -8px 16px rgba(0, 0, 0, 0.12);
  backface-visibility: hidden;
}
.cube span:nth-child(1) { transform: translateZ(calc(var(--s, 90px) / 2)); }
.cube span:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--s, 90px) / 2)); filter: brightness(0.92); }
.cube span:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--s, 90px) / 2)); }
.cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s, 90px) / 2)); filter: brightness(0.92); }
.cube span:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s, 90px) / 2)); filter: brightness(1.08); }
.cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s, 90px) / 2)); filter: brightness(0.85); }

.bubbles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.soap {
  position: absolute;
  bottom: -80px;
  width: var(--s, 40px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 255, 255, 0.15) 22%, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.4) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  animation: rise var(--dur, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(var(--sway, 30px), -55vh); }
  100% { transform: translate(0, -115vh); opacity: 0.2; }
}

.bh-inner { position: relative; z-index: 1; }
.bh-icon {
  width: clamp(110px, 14vw, 150px);
  margin: 0 auto 22px;
  border-radius: 26%;
  box-shadow: 0 0 0 6px #fff, 0 22px 40px -10px rgba(150, 40, 0, 0.55);
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.04); }
}
.bh-title {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: clamp(8px, 1.1vw, 14px) #ff8a00;
  paint-order: stroke fill;
  filter: drop-shadow(0 8px 0 #d9570a) drop-shadow(0 18px 24px rgba(150, 40, 0, 0.45));
}
.bh-title .line { display: block; }
.bh-title .ch {
  display: inline-block;
  animation: letter-in 0.8s var(--ease-bounce) both, letter-wave 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s), calc(1.2s + var(--i) * 0.12s);
}
@keyframes letter-in {
  from { transform: translateY(-60px) scale(0.4); opacity: 0; }
}
@keyframes letter-wave {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}
.bh-sub {
  max-width: 34ch;
  margin: 26px auto 0;
  font-family: var(--font-fun);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 0 rgba(200, 70, 0, 0.35), 0 2px 14px rgba(150, 40, 0, 0.6);
}
.bh-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.bh-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.bh-badges span {
  padding: 6px 15px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.wave {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(60px, 9vw, 130px);
  z-index: 2;
}

/* ---------- 3 JEUX ---------- */
.games { background: var(--cream); }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.game-card {
  --c: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent), 0 26px 50px -26px color-mix(in srgb, var(--c) 70%, #000);
  transition: transform 0.4s var(--ease-bounce);
}
.game-card:hover { transform: translateY(-8px) rotate(-0.6deg); }
.game-card:nth-child(2):hover { transform: translateY(-8px) rotate(0.6deg); }
.game-top {
  position: relative;
  padding: 26px 24px 0;
  height: 360px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.18) 4px, transparent 5px) 0 0 / 40px 40px,
    linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  color: #fff;
}
.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 20px;
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.game-badge svg { width: 38px; height: 38px; }
.game-phone {
  position: absolute;
  left: 50%;
  bottom: -150px;
  width: 210px;
  transform: translateX(-50%) rotate(-4deg);
  transition: transform 0.5s var(--ease-bounce);
}
.game-card:hover .game-phone { transform: translateX(-50%) rotate(0deg) translateY(-18px); }
.game-phone.device--phone { --dr: 30px; --dp: 7px; }
.game-body { padding: 26px 28px 30px; }
.game-body h3 { font-family: var(--font-fun); font-weight: 700; font-size: 27px; color: var(--c); }
.game-body p { margin-top: 10px; color: var(--muted); }
.game-skill {
  display: inline-flex;
  margin-top: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--card));
}

/* ---------- TERRAIN DE JEU ---------- */
.playground-sec {
  background:
    radial-gradient(circle at 10% 10%, var(--pink-soft), transparent 40%),
    radial-gradient(circle at 90% 90%, #dff3ff, transparent 40%),
    var(--peach);
}
.playground {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 40px;
  background: var(--card);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.6), 0 40px 80px -40px rgba(150, 60, 20, 0.55);
}
.pg-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 6px 6px 18px; }
.pg-tab {
  --btn: var(--blue);
  min-height: 50px;
  padding: 0 22px;
  font-size: 17px;
  opacity: 0.55;
  filter: saturate(0.7);
}
.pg-tab[aria-selected="true"] { opacity: 1; filter: none; transform: translateY(-2px) scale(1.04); }
.pg-tab svg { width: 24px; height: 24px; }
.pg-stage {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 26px 18px 30px;
  transition: background 0.5s;
}
.pg-stage[data-theme="shapes"] {
  background:
    radial-gradient(40% 30% at 20% 20%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(35% 30% at 80% 70%, #7fb7dc, transparent 70%),
    radial-gradient(45% 35% at 30% 85%, #a6cfe8, transparent 70%),
    linear-gradient(160deg, #cfe7f5, #8fc0e2);
}
.pg-stage[data-theme="colors"] {
  background:
    radial-gradient(40% 30% at 75% 20%, rgba(255, 240, 210, 0.6), transparent 70%),
    radial-gradient(40% 35% at 20% 75%, #c48a3f, transparent 70%),
    radial-gradient(35% 30% at 85% 85%, #d9a65a, transparent 70%),
    linear-gradient(160deg, #ecc98f, #d29b4f);
}
.pg-stage[data-theme="puzzle"] {
  background:
    radial-gradient(40% 30% at 25% 20%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(40% 35% at 80% 80%, #6fae5a, transparent 70%),
    radial-gradient(35% 30% at 15% 85%, #9fcf8a, transparent 70%),
    linear-gradient(160deg, #d6eec6, #8fc57a);
}
.pg-panel { width: 100%; display: grid; justify-items: center; gap: 22px; }
.pg-panel[hidden] { display: none; }
.pg-prompt {
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 19px;
  color: #3d2552;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
  text-align: center;
}
.pg-score {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 18px;
  background: var(--card);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
}
.pg-score svg { width: 24px; height: 24px; }
.pg-score.is-pop { animation: pop 0.5s var(--ease-bounce); }
@keyframes pop { 40% { transform: scale(1.35); } }

/* Formes */
.disc {
  display: grid;
  place-items: center;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.disc svg { width: 120px; height: 120px; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.18)); }
.target-shape.is-in { animation: shape-in 0.6s var(--ease-bounce); }
@keyframes shape-in { from { transform: scale(0) rotate(-90deg); } }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.choice {
  display: grid;
  place-items: center;
  width: 128px; height: 128px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s var(--ease-bounce), background 0.2s;
}
.choice:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.65); }
.choice svg { width: 80px; height: 80px; }
.choice.is-wrong { animation: wiggle 0.5s; }
.choice.is-right { background: #fff; transform: scale(1.12); box-shadow: inset 0 0 0 5px #2fa84f, 0 0 0 8px rgba(47, 168, 79, 0.25); }
@keyframes wiggle {
  20%, 60% { transform: rotate(-12deg); }
  40%, 80% { transform: rotate(12deg); }
}

/* Couleurs */
.thinker { position: relative; display: grid; justify-items: center; }
.thought {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 8px;
  padding: 26px 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 37, 82, 0.08), 0 14px 24px -12px rgba(0, 0, 0, 0.3);
}
.thought::before,
.thought::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 37, 82, 0.08);
}
.thought::before { width: 22px; height: 22px; bottom: -22px; left: 54%; }
.thought::after { width: 12px; height: 12px; bottom: -40px; left: 48%; }
.thought i {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--mc) 40%, color-mix(in srgb, var(--mc) 70%, #000));
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}
.thought i:nth-child(odd) { filter: brightness(1.15); }
.smiley {
  width: 120px; height: 120px;
  margin-top: 44px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 40% 35%, #ffd86b, #f5b52e 70%, #e09a17);
  box-shadow: inset 0 -8px 12px rgba(170, 100, 0, 0.25), 0 14px 22px -10px rgba(0, 0, 0, 0.35);
}
.smiley::before,
.smiley::after {
  content: "";
  position: absolute;
  top: 40px;
  width: 26px; height: 13px;
  border: 5px solid #7a4a10;
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
}
.smiley::before { left: 24px; }
.smiley::after { right: 24px; }
.smiley i {
  position: absolute;
  left: 50%; top: 66px;
  width: 54px; height: 26px;
  margin-left: -27px;
  border: 5px solid #7a4a10;
  border-top: 0;
  border-radius: 0 0 54px 54px;
}
.smiley.is-happy { animation: pop 0.6s var(--ease-bounce); }
.marbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.marble {
  width: 96px; height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0 9%, color-mix(in srgb, var(--mc) 55%, #fff) 20%, var(--mc) 52%, color-mix(in srgb, var(--mc) 60%, #000) 100%);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.25), 0 12px 18px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease-bounce);
}
.marble:hover { transform: translateY(-8px) scale(1.06); }
.marble.is-wrong { animation: wiggle 0.5s; }
.marble.is-right { transform: translateY(-16px) scale(1.15); box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.25), 0 0 0 6px #fff, 0 0 0 12px rgba(47, 168, 79, 0.45); }

/* Puzzle */
.puzzle-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; }
.puzzle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: min(330px, 78vw);
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.45);
}
.piece {
  padding: 0;
  border: 0;
  border-radius: 10px;
  background-image: url("../img/baby-challenge/icon.webp");
  background-size: 300% 300%;
  transform: rotate(calc(var(--t, 0) * 90deg));
  transition: transform 0.45s var(--ease-bounce), box-shadow 0.3s;
}
.piece:hover { box-shadow: 0 0 0 3px var(--orange); }
.puzzle.is-solved .piece { box-shadow: none; border-radius: 0; }
.puzzle.is-solved { gap: 0; animation: pop 0.7s var(--ease-bounce); transition: gap 0.4s; }
.puzzle-ref {
  width: 120px;
  border-radius: 22px;
  box-shadow: 0 0 0 5px #fff, 0 12px 22px -10px rgba(0, 0, 0, 0.45);
}
.puzzle-ref-wrap { display: grid; justify-items: center; gap: 8px; font-family: var(--font-fun); font-weight: 600; color: #fff; text-shadow: 0 2px 6px rgba(0, 60, 0, 0.4); }
.pg-again { --btn: var(--green); min-height: 48px; font-size: 17px; }
.pg-again[hidden] { display: none; }

.confetti { position: absolute; inset: 0; z-index: 4; pointer-events: none; width: 100%; height: 100%; }

/* ---------- PARENTS ---------- */
.parents { background: var(--cream); }
.parent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.parent-card {
  --c: var(--orange);
  padding: 30px 24px;
  border-radius: 30px;
  text-align: center;
  background: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent), 0 20px 40px -26px color-mix(in srgb, var(--c) 80%, #000);
  transition: transform 0.35s var(--ease-bounce);
}
.parent-card:hover { transform: translateY(-6px) rotate(-1deg); }
.parent-ico {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 26px;
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  background: var(--c);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.14), inset 0 3px 0 rgba(255, 255, 255, 0.3);
  transform: rotate(-6deg);
}
.parent-ico svg { width: 38px; height: 38px; }
.parent-card h3 { font-family: var(--font-fun); font-weight: 700; font-size: 22px; }
.parent-card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* ---------- GALERIE ---------- */
.b-gallery { background: linear-gradient(180deg, var(--cream), var(--pink-soft)); overflow: hidden; }
.b-gallery .gallery { align-items: center; }
.b-gallery .device--phone { width: 250px; }
.b-gallery .device--tablet { width: 380px; }
.b-gallery .device { background: linear-gradient(145deg, #fff, #f1e6f5); box-shadow: inset 0 0 0 1px rgba(61, 37, 82, 0.08), 0 30px 50px -30px rgba(61, 37, 82, 0.5); transition: transform 0.4s var(--ease-bounce); }
.b-gallery a:hover .device { transform: translateY(-8px) rotate(-1.5deg); }
.round-arrow {
  --btn: var(--orange);
  width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 50%;
}
.b-gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.b-gallery-head .b-head { margin: 0; text-align: left; }

/* ---------- FICHE ---------- */
.b-facts { background: var(--pink-soft); padding-top: 20px; }
.facts-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 40px;
  background: var(--card);
  box-shadow: 0 30px 60px -36px rgba(61, 37, 82, 0.45);
}
.facts-card h2 { font-family: var(--font-fun); font-weight: 700; font-size: 30px; text-align: center; margin-bottom: 24px; }
.b-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.b-fact { padding: 16px 12px; border-radius: 20px; text-align: center; background: var(--bg, #fff3e6); }
.b-fact small { display: block; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.b-fact strong { display: block; margin-top: 4px; font-family: var(--font-fun); font-weight: 700; font-size: 21px; }
.b-privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 20px;
  padding: 16px 22px;
  border-radius: 22px;
  background: #eaf8ee;
  color: #1d6b35;
}
.b-privacy p { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.b-privacy svg { width: 30px; height: 30px; flex: none; }
.b-privacy a { font-weight: 800; color: #1d6b35; }

/* ---------- CTA ---------- */
.b-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(130px, 14vw, 180px) 0 clamp(90px, 11vw, 140px);
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 38%, #ffe58a 0%, #ffb52e 16%, #ff8a1f 40%, #ec4d0b 100%);
}
.b-cta .sunburst { top: 38%; }
.b-cta .wave { top: -1px; bottom: auto; transform: scaleY(-1); }
.b-cta .b-title { color: #fff; -webkit-text-stroke: 8px #ff8a00; paint-order: stroke fill; filter: drop-shadow(0 6px 0 #d9570a); font-size: clamp(40px, 6vw, 74px); }
.b-cta .b-lead { color: #fff; font-weight: 700; text-shadow: 0 2px 0 rgba(200, 70, 0, 0.35), 0 2px 12px rgba(150, 40, 0, 0.6); max-width: 46ch; margin-inline: auto; }

.page-baby .site-footer { background: #2a1838; color: #e6d9ef; border-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .games-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .parent-grid { grid-template-columns: repeat(2, 1fr); }
  .b-facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .decor .hide-sm { display: none; }
  .parent-grid { grid-template-columns: 1fr; }
  .pg-stage { min-height: 480px; padding: 56px 10px 24px; }
  .disc { width: 150px; height: 150px; }
  .disc svg { width: 96px; height: 96px; }
  .choice { width: 96px; height: 96px; }
  .choice svg { width: 60px; height: 60px; }
  .marble { width: 76px; height: 76px; }
  .pg-tab { padding: 0 14px; font-size: 15px; }
  .b-gallery-head { flex-direction: column; align-items: flex-start; }
  .b-gallery .device--tablet { width: 300px; }
  .b-gallery .device--phone { width: 210px; }
}

.baby-hero .wave path { fill: var(--cream); }
.b-cta .wave path { fill: var(--pink-soft); }

/* ==========================================================================
   Mode sombre — « Baby Challenge au crépuscule »
   ========================================================================== */
:root[data-theme="dark"] .page-baby {
  --cream: #1b1229;
  --peach: #231733;
  --pink-soft: #2b1a3a;
  --ink: #f6eeff;
  --muted: #bba9cc;
  --card: #271b38;
  --nav-bg: rgba(39, 27, 56, 0.92);
}
:root[data-theme="dark"] .page-baby .baby-hero {
  background: radial-gradient(circle at 50% 42%, #ffd27a 0%, #ff9a3c 20%, #e8590c 44%, #8a2a4a 78%, #3b1a3f 100%);
}
:root[data-theme="dark"] .page-baby .b-cta {
  background: radial-gradient(circle at 50% 38%, #ffd27a 0%, #ff9a3c 16%, #e8590c 40%, #8a2a4a 78%, #3b1a3f 100%);
}
:root[data-theme="dark"] .page-baby .b-kicker { color: #ff9a5c; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 122, 26, 0.35); }
:root[data-theme="dark"] .page-baby .game-card { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent), 0 26px 50px -26px rgba(0, 0, 0, 0.8); }
:root[data-theme="dark"] .page-baby .playground-sec {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 95, 168, 0.14), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(79, 195, 247, 0.12), transparent 40%),
    var(--peach);
}
:root[data-theme="dark"] .page-baby .playground { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
:root[data-theme="dark"] .page-baby .parent-card { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 20px 40px -26px rgba(0, 0, 0, 0.8); }
:root[data-theme="dark"] .page-baby .b-gallery .device { background: linear-gradient(145deg, #3a2a50, #21162f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 50px -30px rgba(0, 0, 0, 0.8); }
:root[data-theme="dark"] .page-baby .facts-card { box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.8); }
:root[data-theme="dark"] .page-baby .b-fact { background: color-mix(in srgb, var(--bg) 14%, var(--card)); }
:root[data-theme="dark"] .page-baby .b-privacy { background: rgba(47, 168, 79, 0.16); color: #93e3ab; }
:root[data-theme="dark"] .page-baby .b-privacy a { color: #93e3ab; }
