/* Nawmi — site de présentation. Palette « nuit » de l'app (src/theme/tokens.ts), police Quicksand. */

@font-face { font-family: 'Quicksand'; src: url('assets/fonts/Quicksand-500.ttf?v=2') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('assets/fonts/Quicksand-600.ttf?v=2') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('assets/fonts/Quicksand-700.ttf?v=2') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #1C1A2E;
  --bg-deep: #15132A;
  --surface: #262339;
  --text: #F1ECFA;
  --muted: #A9A3C2;
  --accent: #C9BDF2;
  --accent-soft: #332D52;
  --line: #3A3556;
  --moon: #FFE7A8;
  --sky: #2B3A4F;
  --mint: #2A3F3A;
  --rose: #46303C;
  --butter: #4A4330;
  --radius: 28px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Quicksand', ui-rounded, system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; border-radius: 8px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, (100% - var(--wrap)) / 2);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: 0.5px; }
.top nav { display: flex; gap: 6px; }
.top nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 16px;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.top nav a:hover { color: var(--text); background: var(--accent-soft); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 140px; background: linear-gradient(180deg, var(--bg-deep), var(--bg) 70%); }
.sky {
  position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 12%, var(--accent) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 58%, var(--accent) 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 78%, #fff 50%, transparent 51%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 22px; }
.lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); max-width: 34ch; margin-bottom: 32px; }
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--bg); font-weight: 700;
  padding: 14px 22px; border-radius: 999px; font-size: 17px;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: center; width: 100%; }
.moon-big { position: absolute; width: 38%; top: -2%; right: 4%; z-index: 3; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--moon) 35%, transparent)); }
.card { position: absolute; width: 56%; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); border: 4px solid color-mix(in srgb, var(--surface) 80%, transparent); }
.card-1 { left: 0; top: 10%; transform: rotate(-7deg); }
.card-2 { left: 22%; top: 30%; z-index: 2; transform: rotate(3deg); }
.card-3 { right: 0; top: 4%; transform: rotate(9deg); width: 44%; }
@keyframes float { 50% { transform: translateY(-10px); } }

.clouds { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--surface); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 52ch; margin-bottom: 44px; }

.families { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.family { background: var(--tint); border-radius: var(--radius); padding: 26px 24px 28px; border: 1px solid color-mix(in srgb, #fff 6%, transparent); }
.family .count { display: block; font-size: 44px; font-weight: 700; color: var(--moon); line-height: 1; margin-bottom: 14px; }
.family h3 { font-size: 20px; margin-bottom: 10px; }
.family p { color: color-mix(in srgb, var(--text) 78%, transparent); font-size: 16px; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery li { display: flex; flex-direction: column; gap: 10px; }
.gallery img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.gallery li:hover img { transform: translateY(-4px) rotate(-1deg); }
.gallery span { font-weight: 600; font-size: 16px; padding-inline: 4px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features li { background: var(--bg); border-radius: var(--radius); padding: 28px 26px; border: 1px solid var(--line); }
.features svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.features h3 { font-size: 20px; margin-bottom: 8px; }
.features p { color: var(--muted); font-size: 16px; }

.parents { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 40px; font-size: 18px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9BDF2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.parents-art { border-radius: var(--radius); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); transform: rotate(2deg); }

.final { padding: 88px 0 96px; text-align: center; background: radial-gradient(60% 80% at 50% 100%, var(--accent-soft), var(--bg) 70%); }
.final img { margin: 0 auto 18px; animation: float 7s ease-in-out infinite; }
.final h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 10px; }
.final p { color: var(--muted); font-size: 19px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; text-align: center; }

/* Nouveauté en tête */
.new-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: -8px 0 26px;
  text-decoration: none; font-weight: 600; font-size: 16px; color: var(--text);
  padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line);
  transition: background .2s;
}
.new-pill span { background: var(--moon); color: var(--bg); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.new-pill:hover { background: var(--line); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }

/* Je suis un héros */
.heros { background: radial-gradient(70% 60% at 85% 20%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%); }
.heros .eyebrow { margin-bottom: 14px; }
/* Comment ça marche : trois étapes qui défilent seules, le téléphone joue chacune */
.hx { display: grid; grid-template-columns: 1fr minmax(300px, 340px); gap: 64px; align-items: center; }
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hx-step {
  position: relative; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 22px 24px 26px; border-radius: 26px; border: 2px solid transparent; background: transparent;
  transition: background .35s, border-color .35s, transform .35s;
}
.hx-step:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.hx-step.is-active { background: var(--surface); border-color: var(--line); transform: translateX(6px); }
.hx-num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 22px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--accent-soft) 60%, #000); transition: background .35s, color .35s, box-shadow .35s;
}
.hx-step.is-active .hx-num { background: var(--accent); color: var(--bg); box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.hx-txt b { display: block; font-size: 21px; margin: 4px 0 6px; }
.hx-txt span { color: var(--muted); font-size: 16.5px; display: block; }
.hx-step:not(.is-active) .hx-txt span { opacity: .75; }
.hx-bar { position: absolute; left: 24px; right: 24px; bottom: 10px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.hx-step.is-active .hx-bar { opacity: 1; }
.hx-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hx-step.is-active .hx-bar i { animation: hxfill 6.5s linear forwards; }
.hx:not(.is-visible) .hx-bar i { animation-play-state: paused !important; }
@keyframes hxfill { to { transform: scaleX(1); } }

.hx-phone {
  position: relative; justify-self: center; width: min(340px, 100%); padding: 12px; border-radius: 52px;
  background: #0f0e1a; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), inset 0 0 0 2px #2b2840;
  animation: float 8s ease-in-out infinite;
}
.hx-phone::before { content: ''; position: absolute; inset: -40px -60px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); filter: blur(10px); }
.hx-screen { position: relative; height: 620px; border-radius: 42px; background: #F7F4FD; color: #3B3356; overflow: hidden; }
.hx-view { position: absolute; inset: 0; padding: 30px 20px 24px; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.hx-view.is-active { opacity: 1; transform: none; }
.hx-title { font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.hx-label { align-self: flex-start; font-size: 12px; font-weight: 700; color: #6B6485; margin: 6px 0 8px; }

/* Éléments qui apparaissent : état final par défaut, l'animation part de l'état caché */
.hx-view.is-active .pop { animation: pop .5s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s) backwards; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(8px); } }

/* 1. Le héros */
.hx-portrait { position: relative; width: 236px; height: 236px; border-radius: 60px; overflow: visible; margin-top: 10px; }
.hx-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 56px; border: 5px solid #6A4FC4; box-shadow: 0 8px 0 #4F3A9A; }
.hx-view.is-active .hx-portrait img { animation: draw 1.4s ease .1s backwards; }
@keyframes draw { from { filter: blur(14px) saturate(0); opacity: .2; transform: scale(.92) rotate(-3deg); } 60% { filter: blur(2px) saturate(.8); opacity: 1; } }
.spark { position: absolute; color: #F2B53B; font-size: 22px; opacity: 0; }
.hx-view.is-active .spark { animation: twinkle 1.8s ease-in-out infinite; }
.s1 { top: -8px; left: -6px; animation-delay: .9s !important; }
.s2 { top: 18px; right: -16px; font-size: 16px; animation-delay: 1.3s !important; }
.s3 { bottom: 26px; left: -18px; font-size: 14px; animation-delay: 1.6s !important; }
.s4 { bottom: -6px; right: 4px; animation-delay: 1.1s !important; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }
.hx-traits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.hx-traits span { background: #fff; border: 2px solid #DCD5EE; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #6A4FC4; }
.hx-view.is-active .hx-traits span { animation: pop .5s cubic-bezier(.3, 1.5, .5, 1) var(--d) backwards; }
.hx-made { margin-top: auto; font-weight: 700; color: #6A4FC4; font-size: 15px; }
.hx-view.is-active .hx-made { animation: pop .5s ease 2.1s backwards; }

/* 2. La journée */
.hx-chips { display: flex; flex-wrap: wrap; gap: 7px; align-self: stretch; }
.hx-chips span { background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; box-shadow: 0 3px 0 #E4DEF3; }
.hx-chips .pick { background: #6A4FC4; color: #fff; box-shadow: 0 3px 0 #4F3A9A; }
.hx-view.is-active .hx-chips .pick { animation: pick .45s ease var(--d) backwards; }
@keyframes pick { from { background: #fff; color: #3B3356; box-shadow: 0 3px 0 #E4DEF3; transform: scale(1); } 60% { transform: scale(1.12); } }
.hx-note { align-self: stretch; min-height: 92px; background: #fff; border-radius: 18px; padding: 14px; font-size: 15px; line-height: 1.45; box-shadow: 0 3px 0 #E4DEF3; }
.caret { display: inline-block; width: 2px; height: 1em; background: #6A4FC4; vertical-align: -2px; margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hx-write { margin-top: 18px; align-self: stretch; text-align: center; background: #6A4FC4; color: #fff; font-weight: 700; padding: 14px; border-radius: 18px; box-shadow: 0 5px 0 #4F3A9A; }
.hx-view.is-active .hx-write { animation: press .5s ease 4s both; }
@keyframes press { 50% { transform: translateY(4px); box-shadow: 0 1px 0 #4F3A9A; } }
.sparkle { color: #FFE7A8; }
.hx-writing { margin-top: 16px; font-weight: 700; color: #6A4FC4; opacity: 0; }
.hx-view.is-active .hx-writing { animation: appear .4s ease 4.5s forwards; }
@keyframes appear { to { opacity: 1; } }
.dots i { font-style: normal; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }

/* 3. Ce soir */
.ic { display: inline-grid; place-items: center; }
.ic svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hx-top { align-self: stretch; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid #DCD5EE; border-bottom-width: 4px; border-radius: 16px; padding: 5px 11px; font-weight: 700; font-size: 13px; }
.moon { color: #6A4FC4; } .star { color: #E5B03A; }
.mini { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #DCD5EE; object-fit: cover; }
.hx-banner { align-self: stretch; display: flex; align-items: center; gap: 10px; background: #6A4FC4; color: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 6px 0 #4F3A9A; }
.hx-banner small { display: block; font-size: 9.5px; letter-spacing: .8px; opacity: .85; font-weight: 700; }
.hx-banner strong { display: block; font-size: 16px; line-height: 1.2; }
.go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #6A4FC4; font-weight: 700; font-size: 13px; padding: 8px 11px; border-radius: 13px; box-shadow: 0 3px 0 #DCD5EE; white-space: nowrap; }
.hx-view.is-active .hx-banner { animation: pop .5s ease .1s backwards; }
.hx-path { position: relative; flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 8px 0 14px; }
.sq { position: relative; transform: translateX(var(--x)); width: 64px; height: 64px; margin-bottom: 8px; border-radius: 19px; background: #6A4FC4; padding: 4px; box-shadow: 0 6px 0 #4F3A9A; }
.sq img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.sq .tag { position: absolute; right: -8px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; background: #6A4FC4; border: 3px solid #F7F4FD; display: grid; place-items: center; color: #fff; }
.sq .tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6A4FC4; transform: translateX(var(--x)); }
.dot.off { background: #DCD5EE; }
.hx-view.is-active .dot { animation: pop .35s ease var(--d) backwards; }
.tonight { position: relative; transform: translateX(var(--x)); margin: 44px 0 14px; }
.sq.big { transform: none; width: 84px; height: 84px; border-radius: 25px; margin-bottom: 0; }
.sq.big img { border-radius: 21px; }
.tonight::before { content: ''; position: absolute; inset: -12px -12px -6px; border-radius: 34px; border: 4px solid #E8E1FA; }
.hx-view.is-active .tonight::before { animation: halo 2.2s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.08); border-color: #D6CBF6; } }
.bubble { position: absolute; left: 50%; top: -42px; transform: translateX(-50%); background: #fff; border: 2px solid #DCD5EE; color: #6A4FC4; font-weight: 700; font-size: 11px; letter-spacing: 1px; padding: 4px 10px; border-radius: 10px; white-space: nowrap; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 8px; height: 8px; background: #fff; border-right: 2px solid #DCD5EE; border-bottom: 2px solid #DCD5EE; transform: translateX(-50%) rotate(45deg); }
.hx-view.is-active .bubble { animation: bob 1.6s ease-in-out .9s infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-4px); } }
.hx-moon { position: absolute; left: -76px; top: 14px; width: 56px; height: 56px; }
.hx-view.is-active .hx-moon { animation: float 4s ease-in-out infinite, pop .6s ease .8s backwards; }
.sq.lock { background: #fff; box-shadow: 0 6px 0 #DCD5EE; display: grid; place-items: center; color: #A9A3C2; }
.sq.lock svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.hx-audio { align-self: stretch; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 3px 0 #E4DEF3; color: #6A4FC4; }
.hx-audio small { color: #6B6485; font-weight: 700; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { flex: 1; height: 30%; border-radius: 3px; background: #C9BDF2; }
.hx-view.is-active .wave i { animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: .2s !important; } .wave i:nth-child(3n+1) { animation-delay: .45s !important; } .wave i:nth-child(4n) { animation-delay: .7s !important; }
@keyframes wave { 50% { height: 100%; background: #6A4FC4; } }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.heros-more li { transition: transform .3s ease, border-color .3s; }
.heros-more li:hover { transform: translateY(-6px); border-color: var(--accent); }
.heros-more li:nth-child(2) { transition-delay: .08s; } .heros-more li:nth-child(3) { transition-delay: .16s; }

.heros-more { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.heros-more li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.heros-more .more-art { position: relative; border-radius: 18px; aspect-ratio: 16 / 10; width: 100%; object-fit: cover; margin-bottom: 8px; overflow: hidden; }

/* Le chemin, en miniature : carrés à relief, points violets, badge, cadenas */
.path-art { background: #F7F4FD; }
.path-art > span { position: absolute; left: 50%; top: 0; transform: translate(calc(var(--x) - 50%), var(--y)); }
.pa-sq { width: 44px; height: 44px; border-radius: 13px; background: #6A4FC4; padding: 3px; box-shadow: 0 4px 0 #4F3A9A; }
.pa-sq img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.pa-sq.lock { background: #fff; box-shadow: 0 4px 0 #DCD5EE; display: grid; place-items: center; color: #A9A3C2; }
.pa-sq.lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.pa-dot { width: 7px; height: 7px; border-radius: 50%; background: #6A4FC4; }
.pa-dot.off { background: #DCD5EE; }
.pa-badge { width: 40px; height: 40px; border-radius: 50%; background: #FFE7A8; box-shadow: 0 4px 0 #E5B93C; display: grid; place-items: center; color: #E5B03A; animation: badge 2.6s ease-in-out infinite; }
.pa-badge svg { width: 20px; height: 20px; fill: currentColor; }
@keyframes badge { 50% { transform: translate(calc(var(--x) - 50%), calc(var(--y) - 5px)) rotate(-6deg) scale(1.08); } }
.path-art .pa-label { top: auto; bottom: 10px; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #6A4FC4; border: 2px solid #DCD5EE; border-radius: 10px; font-size: 12px; font-weight: 700; padding: 3px 10px; }

/* La leçon : une illustration et la parole qui la porte */
.lesson-art img { width: 100%; height: 100%; object-fit: cover; }
.lesson-quote { position: absolute; left: 10px; right: 10px; bottom: 10px; background: color-mix(in srgb, #1C1A2E 78%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: #F1ECFA; }
.lesson-quote small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #C9BDF2; }
.heros-more h3 { font-size: 20px; }
.heros-more p { color: var(--muted); font-size: 16px; }
.more-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }

/* Lecture : le mot qui s'allume */
.karaoke { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.karaoke h3 { font-size: 24px; margin-bottom: 10px; }
.karaoke-text p { color: var(--muted); }
.karaoke-card { background: #F7F4FD; color: #3B3356; border-radius: 24px; padding: 22px 24px; }
.k-page { font-size: 13px; font-weight: 700; color: #6B6485; margin-bottom: 8px; }
.k-words { font-size: 20px; line-height: 1.6; font-weight: 600; }
.k-said { color: #6A4FC4; }
.k-now { background: #FFE7A8; border-radius: 8px; padding: 0 5px; box-shadow: 0 0 0 2px #FFE7A8; animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { background: #FFD979; box-shadow: 0 0 0 2px #FFD979; } }
.k-bar { margin-top: 16px; height: 6px; border-radius: 999px; background: #E8E1FA; overflow: hidden; }
.k-bar span { display: block; width: 38%; height: 100%; border-radius: inherit; background: #6A4FC4; }

/* Tablette et mobile */
@media (max-width: 960px) {
  .hero-grid, .parents { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .families, .gallery { grid-template-columns: repeat(2, 1fr); }
  .karaoke { grid-template-columns: 1fr; }
  .hx { grid-template-columns: 1fr; gap: 36px; }
  .hx-phone { order: -1; }
  .heros-more { grid-template-columns: 1fr 1fr; }
  .heros-more li:first-child { grid-column: 1 / -1; }
  .heros-more li:first-child .more-art { aspect-ratio: 16 / 7; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top nav a { padding: 6px 10px; font-size: 15px; }
  .top nav a:nth-child(2), .top nav a:nth-child(3) { display: none; }
  .hero { padding: 40px 0 110px; }
  .section { padding: 72px 0; }
  .families, .features, .heros-more { grid-template-columns: 1fr; }
  .karaoke { padding: 22px; }
  .hx-step { padding: 16px 16px 22px; grid-template-columns: 44px 1fr; gap: 14px; }
  .hx-step.is-active { transform: none; }
  .hx-num { width: 44px; height: 44px; font-size: 19px; }
  .hx-txt b { font-size: 18px; }
  .hx-txt span { font-size: 15px; }
  .hx-step:not(.is-active) .hx-txt span { display: none; }
  .k-words { font-size: 18px; }
  .gallery { gap: 14px; }
  .gallery span { font-size: 14px; }
  .soon { font-size: 15px; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
