  :root {
    --paper: #F7F5F0; --surface: #FFFFFF; --muted: #EFECE5; --border: #E6E1D8;
    --ink: #15171A; --ink-2: #66635C; --ink-3: #6C6962;
    --green: #0F4F44; --green-strong: #0A3A32; --green-soft: #E2EDE9; --on-green: #FFFFFF; --hero: #0F4F44;
    --gold: #B08A3E; --gold-text: #81652D; --gold-soft: #F3ECDC; --arabic: #14201C;
    --danger: #C2493D; --danger-soft: #F8E5E2; --success: #2E8A6C; --success-soft: #E1F1EA;
    --shadow-1: 0 6px 24px rgba(27,26,23,.06); --shadow-2: 0 12px 36px rgba(27,26,23,.10);
    --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --ar: "Amiri Quran", "Scheherazade New", "Amiri", serif;
    --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #0C0F0E; --surface: #151A18; --muted: #1D2422; --border: #27302D;
      --ink: #EDE9E2; --ink-2: #9B9F9B; --ink-3: #888C89;
      --green: #7CC4AE; --green-strong: #A8DCCB; --green-soft: #16302A; --on-green: #08201A; --hero: #143F36;
      --gold: #D4B36E; --gold-text: #D4B36E; --gold-soft: #2B251A; --arabic: #F3EEE3;
      --danger: #E4796D; --danger-soft: #3A1F1C; --success: #6FC6A3; --success-soft: #15302A;
      --shadow-1: none; --shadow-2: none; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --paper: #0C0F0E; --surface: #151A18; --muted: #1D2422; --border: #27302D;
    --ink: #EDE9E2; --ink-2: #9B9F9B; --ink-3: #888C89;
    --green: #7CC4AE; --green-strong: #A8DCCB; --green-soft: #16302A; --on-green: #08201A; --hero: #143F36;
    --gold: #D4B36E; --gold-text: #D4B36E; --gold-soft: #2B251A; --arabic: #F3EEE3;
    --danger: #E4796D; --danger-soft: #3A1F1C; --success: #6FC6A3; --success-soft: #15302A;
    --shadow-1: none; --shadow-2: none; color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; font-size: 16px; overflow-x: hidden; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  button { font: inherit; color: inherit; cursor: pointer; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
  h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); font-variation-settings: "opsz" 144; }
  h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-variation-settings: "opsz" 96; }
  h3 { font-size: 1.25rem; font-variation-settings: "opsz" 48; }
  p { margin: 0; }
  .container { width: min(1120px, 100% - 32px); margin-inline: auto; }
  .eyebrow { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
  .muted { color: var(--ink-2); }
  .ar { font-family: var(--ar); direction: rtl; unicode-bidi: isolate; color: var(--arabic); }
  .section { padding: clamp(64px, 9vw, 120px) 0; }
  .section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 12px; }
  .section-head p { color: var(--ink-2); font-size: 1.08rem; }
  .card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid var(--border); }
  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; white-space: nowrap; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .btn-primary { background: var(--green); color: var(--on-green); box-shadow: var(--shadow-1); }
  .btn-primary:hover { background: var(--green-strong); }
  .btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
  .btn-ghost:hover { background: var(--muted); }
  .btn-sm { padding: 9px 14px; font-size: .9rem; }
  .btn svg { width: 18px; height: 18px; }
  .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .86rem; font-weight: 500; box-shadow: var(--shadow-1); }
  .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
  /* Anneau de focus opaque (WCAG 2.4.11) : encre sur fond clair, papier sur les fonds sombres (lecteur, bandeau adulte). */
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
  .player :focus-visible, :root:not([data-mode="enfant"]) .cta :focus-visible { outline-color: var(--paper); }
  /* Lien d'évitement et texte réservé aux lecteurs d'écran */
  .skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
  .skip-link:focus { top: 12px; }
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

  /* Navigation */
  .nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--paper) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
  .nav.scrolled { border-bottom-color: var(--border); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .93rem; transition: background .15s ease, color .15s ease; }
  .nav-links a:hover, .nav-links a[aria-current="true"] { background: var(--muted); color: var(--ink); }
  .nav-actions { display: flex; align-items: center; gap: 8px; }
  .icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); display: inline-grid; place-items: center; }
  .icon-btn svg { width: 18px; height: 18px; }
  .nav-toggle { display: none; }
  @media (max-width: 860px) {
    .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 72px; flex-direction: column; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-grid; }
    .nav-cta { display: none; }
  }

  /* Hero */
  .hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
  .hero-glow { position: absolute; inset: -40% -20% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--green-soft) 90%, transparent), transparent 70%); pointer-events: none; transform: translateY(var(--py, 0px)); }
  /* Parallax : chaque couche du hero défile à sa vitesse (variable --py posée par le script). */
  .hero .phone.tilt { transform: rotate(-4deg) translateY(var(--py, 0px)); }
  .section { position: relative; }
  .section > .container { position: relative; z-index: 1; }
  .wm-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
  .wm { position: absolute; right: -2%; top: 10%; font-family: var(--ar); font-size: clamp(9rem, 24vw, 20rem); line-height: 1; color: var(--ink); opacity: .05; direction: rtl; white-space: nowrap; user-select: none; transform: translate(var(--px, 0px), var(--py, 0px)); }
  .wm.left { right: auto; left: -2%; }
  .shot .phone { transform: scale(var(--s, 1)) translateY(var(--py, 0px)); opacity: var(--o, 1); transition: transform .25s ease, opacity .25s ease; }
  .section-head.reveal > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .section-head.reveal > :nth-child(2) { transition-delay: 90ms; }
  .section-head.reveal > :nth-child(3) { transition-delay: 200ms; }
  .section-head.reveal.in > * { opacity: 1; transform: none; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; }
  .hero-copy { display: grid; gap: 22px; }
  .hero-copy p.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 540px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-note { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink-2); font-size: .9rem; }
  .hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
  .phone { width: min(280px, 78vw); aspect-ratio: 1170 / 2532; border-radius: 44px; padding: 10px; background: #111; box-shadow: 0 30px 70px rgba(0,0,0,.28), inset 0 0 0 2px #2a2a2a; position: relative; }
  .phone::after { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #111; }
  .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
  .phone.tilt { transform: rotate(-4deg); }
  .float { position: absolute; animation: float 6s ease-in-out infinite; }
  .float.a { top: 8%; left: 0; animation-delay: -1s; }
  .float.b { bottom: 18%; right: 0; animation-delay: -3s; }
  .float.c { top: 46%; right: -4px; animation-delay: -2s; }
  @keyframes float { 0%, 100% { transform: translateY(var(--py, 0px)); } 50% { transform: translateY(calc(var(--py, 0px) - 8px)); } }
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 0; margin-top: 12px; }
    .float { display: none; }
    .phone.tilt { transform: none; }
  }

  /* Stats */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stat { padding: 22px 20px; display: grid; gap: 4px; }
  .stat .num { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1; }
  .stat .lbl { color: var(--ink-2); font-size: .92rem; }
  .stat .src { color: var(--ink-3); font-size: .78rem; }
  @media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

  /* Demo */
  .demo { padding: 0; overflow: hidden; }
  .demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
  .demo-title { display: grid; gap: 2px; }
  .demo-title .ar { font-size: 1.9rem; line-height: 1.2; }
  .demo-title small { color: var(--ink-2); }
  .toggles { display: flex; flex-wrap: wrap; gap: 8px; }
  .toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .88rem; font-weight: 500; transition: background .15s ease, border-color .15s ease; }
  .toggle[aria-pressed="true"] { background: var(--green-soft); border-color: transparent; color: var(--green); }
  .toggle .sw { width: 26px; height: 16px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s ease; }
  .toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
  .toggle[aria-pressed="true"] .sw { background: var(--green); }
  .toggle[aria-pressed="true"] .sw::after { transform: translateX(10px); }
  .verses { display: grid; }
  .verse { padding: 24px 22px; border-bottom: 1px solid var(--border); display: grid; gap: 12px; transition: background .25s ease; position: relative; }
  .verse:last-child { border-bottom: 0; }
  .verse.active { background: var(--green-soft); }
  .verse .words { display: flex; flex-wrap: wrap; gap: 6px 4px; direction: rtl; justify-content: flex-start; }
  .word { border: 0; background: transparent; padding: 4px 8px; border-radius: 10px; display: grid; justify-items: center; gap: 2px; transition: background .15s ease; text-align: center; }
  .word:hover { background: var(--muted); }
  .word.recited { background: var(--gold-soft); }
  .word .ar { font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.75; }
  .word.recited .ar { color: var(--gold-text); }
  .word .tr { font-size: .78rem; color: var(--gold-text); font-style: italic; font-family: var(--serif); direction: ltr; }
  .word .fr { font-size: .76rem; color: var(--ink-2); direction: ltr; max-width: 140px; line-height: 1.3; }
  .verse .translit { font-family: var(--serif); font-style: italic; color: var(--gold-text); font-size: 1.02rem; }
  .verse .trans { font-size: 1.05rem; }
  .verse-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .vnum { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold-text); color: var(--gold-text); display: grid; place-items: center; font-size: .82rem; font-weight: 600; }
  .vplay { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); padding: 8px 12px; border-radius: 999px; font-size: .86rem; }
  .vplay svg { width: 14px; height: 14px; }
  .player { position: sticky; bottom: 14px; margin: 14px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); }
  .player .info { display: grid; line-height: 1.15; flex: 1; min-width: 0; }
  .player .info small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
  .player .info strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player .ctl { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
  .player .ctl.main { width: 54px; height: 54px; }
  .player .ctl svg { width: 20px; height: 20px; }
  .player .ctl.sec { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,.18); }
  .player .bar { position: absolute; left: 24px; right: 24px; bottom: 6px; height: 2px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; }
  .player .bar i { display: block; height: 100%; width: 0; background: var(--gold); }
  .popover { position: absolute; z-index: 20; min-width: 200px; max-width: 280px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); display: grid; gap: 4px; direction: ltr; text-align: left; }
  .popover .ar { font-size: 1.7rem; line-height: 1.5; text-align: right; }
  .popover .tr { font-family: var(--serif); font-style: italic; color: var(--gold-text); }
  .popover .fr { font-size: .95rem; }
  .popover .hint { font-size: .74rem; color: var(--ink-3); }
  .legend { padding: 16px 22px 20px; border-top: 1px solid var(--border); }
  .legend summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 10px; list-style: none; }
  .legend summary::-webkit-details-marker { display: none; }
  .legend summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--ink-3); }
  .legend[open] summary::after { content: "–"; }
  .legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; margin-top: 14px; }
  .legend-item { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
  .legend-item .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; margin-top: 4px; }
  .legend-item small { display: block; color: var(--ink-2); }
  .attribution { padding: 14px 22px; font-size: .8rem; color: var(--ink-3); border-top: 1px solid var(--border); }
  .demo-loading { padding: 40px; text-align: center; color: var(--ink-2); }

  /* Features */
  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .feature { padding: 26px 24px; display: grid; gap: 12px; align-content: start; transition: transform .2s ease, box-shadow .2s ease; }
  .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
  .feature .ico svg { width: 22px; height: 22px; }
  .feature p { color: var(--ink-2); font-size: .96rem; }
  .feature.gold .ico { background: var(--gold-soft); color: var(--gold-text); }
  @media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

  /* Gallery */
  .gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 0 24px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 auto; scroll-snap-align: center; display: grid; gap: 12px; justify-items: center; width: 250px; margin: 0; }
  .shot .phone { width: 250px; }
  .shot figcaption { font-size: .9rem; color: var(--ink-2); text-align: center; }
  .gallery-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: -8px; }

  /* Split sections */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
  .split.rev > :first-child { order: 2; }
  .split .copy { display: grid; gap: 16px; }
  .split .visual { display: grid; place-items: center; }
  @media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

  /* Mask demo */
  .mask-demo { padding: 20px 22px; display: grid; gap: 14px; }
  .mask-demo .ar { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.9; text-align: right; min-height: 1.9em; }
  .mask-demo .hidden-w { display: inline-block; background: var(--muted); border-radius: 8px; color: transparent; user-select: none; }
  .seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--muted); gap: 4px; flex-wrap: wrap; }
  .seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .9rem; color: var(--ink-2); }
  .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
  .grade { display: flex; gap: 6px; flex-wrap: wrap; }
  .grade button { flex: 1; min-width: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px 6px; font-weight: 600; }
  .grade button:hover { background: var(--muted); }
  .grade-out { font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }

  /* Quiz */
  .quiz { padding: 22px; display: grid; gap: 16px; }
  .quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--ink-2); }
  .progress { height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden; flex: 1; margin: 0 14px; }
  .progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s ease; }
  .quiz .prompt { text-align: center; display: grid; gap: 6px; padding: 10px 0; }
  .quiz .prompt .ar { font-size: 3rem; line-height: 1.5; }
  .quiz .prompt small { color: var(--ink-2); }
  .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .choice { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); text-align: left; font-weight: 500; transition: background .15s ease, border-color .15s ease; }
  .choice:hover:not(:disabled) { background: var(--muted); }
  .choice.ok { background: var(--success-soft); border-color: var(--success); color: var(--success); }
  .choice.ko { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
  .choice:disabled { cursor: default; }
  .quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
  .quiz-foot .fb { font-size: .92rem; color: var(--ink-2); }
  .quiz-end { text-align: center; display: grid; gap: 10px; padding: 20px 0; }
  .quiz-end .num { font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--green); }
  @media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }

  /* Family */
  .family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .family-item { padding: 18px; display: grid; gap: 8px; align-content: start; }
  .family-item .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
  .family-item .ico svg { width: 20px; height: 20px; }
  .family-item strong { font-size: 1rem; }
  .family-item p { color: var(--ink-2); font-size: .9rem; }
  @media (max-width: 520px) { .family-grid { grid-template-columns: 1fr; } }
  .family-sub { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 22px 0 12px; }
  .family-goals { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
  @media (max-width: 860px) { .family-goals { grid-template-columns: 1fr; } }
  .goal-demo { padding: 22px; display: grid; gap: 14px; }
  .goal-row { display: grid; gap: 6px; }
  .goal-lbl { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .stepper { display: inline-flex; align-items: center; gap: 12px; }
  .stepper output { min-width: 3.5ch; text-align: center; font-family: var(--serif); font-size: 1.5rem; }
  .goal-preview { display: grid; gap: 6px; padding: 16px; border-radius: var(--r-md); background: var(--green-soft); }
  .goal-preview small { color: var(--ink-2); font-size: .82rem; }
  .goal-preview strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--green-strong); }
  .goal-preview p { font-size: .9rem; }

  /* Sources */
  .sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .source { padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
  .source h3 { font-size: 1.1rem; }
  .source p { color: var(--ink-2); font-size: .94rem; }
  .source .lic { font-size: .8rem; color: var(--ink-3); }
  .source a { color: var(--green); }
  @media (max-width: 760px) { .sources { grid-template-columns: 1fr; } }

  /* FAQ */
  .faq { display: grid; gap: 10px; max-width: 800px; }
  .faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 20px; }
  .faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--ink-3); font-size: 1.3rem; transition: transform .2s ease; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq .a { padding: 0 0 18px; color: var(--ink-2); }

  /* CTA */
  .cta { background: var(--hero); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
  .cta::before { content: "ٱقْرَأْ"; position: absolute; right: -10px; bottom: -40px; font-family: var(--ar); font-size: 14rem; line-height: 1; color: rgba(255,255,255,.06); direction: rtl; pointer-events: none; }
  .cta h2 { color: #fff; }
  .cta p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
  .cta .btn-primary { background: #fff; color: var(--green-strong); }
  .cta .btn-primary:hover { background: #F7F5F0; }
  .badges { display: flex; gap: 10px; flex-wrap: wrap; }
  .badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .85rem; line-height: 1.1; }
  .badge svg { width: 22px; height: 22px; }
  .badge small { display: block; font-size: .68rem; opacity: .75; }
  @media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

  /* Footer */
  footer { padding: 40px 0 32px; border-top: 1px solid var(--border); color: var(--ink-2); font-size: .9rem; }
  .foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; }
  .foot h4 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .foot a { text-decoration: none; }
  .foot a:hover { color: var(--ink); text-decoration: underline; }
  .copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--ink-3); }
  @media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

  /* Barre de progression de lecture */
  .progress-top { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 60; }
  /* Transition de thème */
  html.theming, html.theming * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
  /* Apparition en cascade */
  .features .feature, .stats .stat, .sources .source, .family-item { transition-delay: calc(var(--i, 0) * 70ms); }
  /* Téléphone en relief au défilement */
  .split .phone { transform: perspective(1200px) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); will-change: transform; }
  /* Masquage animé */
  .mask-demo .ar span { display: inline-block; transition: opacity .25s ease, filter .25s ease, transform .25s ease; }
  .mask-demo .ar span.out { opacity: 0; filter: blur(4px); transform: translateY(4px); }
  /* Lecteur : vitesse et répétition */
  .player .pill { border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--paper); border-radius: 999px; padding: 8px 11px; font-size: .82rem; font-weight: 600; min-width: 46px; }
  .player .pill:hover { background: rgba(255,255,255,.08); }
  @media (max-width: 520px) { .player .pill { padding: 6px 8px; min-width: 40px; font-size: .76rem; } .player { gap: 8px; } }
  /* Popover : analyse grammaticale */
  .popover { max-width: 330px; }
  .popover .gram { display: grid; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
  .popover .seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; }
  .popover .seg .pos { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); min-width: 52px; }
  .popover .seg .form { font-family: var(--ar); font-size: 1.15rem; color: var(--arabic); }
  .popover .tag { padding: 2px 8px; border-radius: 999px; background: var(--muted); font-size: .72rem; }
  .popover .tag.nature { background: var(--green-soft); color: var(--green); }
  .popover .meta { font-size: .78rem; color: var(--ink-2); display: grid; gap: 2px; }
  .popover .meta b { color: var(--ink); font-family: var(--ar); font-size: 1.05rem; font-weight: 400; }
  .popover .book { font-size: .78rem; color: var(--gold-text); }
  .word.known .ar { color: var(--green); }
  .word.known { box-shadow: inset 0 -3px 0 var(--green-soft); }
  /* Hero vivant : le lecteur rejoué en HTML avec les minutages réels */
  .phone .live { position: absolute; inset: 10px; border-radius: 36px; overflow: hidden; background: #F7F5F0; color: #15171A; display: none; font-family: var(--sans); }
  .phone .live.on { display: block; }
  .live .top { display: flex; align-items: center; justify-content: space-between; padding: 46px 14px 8px; font-size: .78rem; font-weight: 600; color: #15171A; }
  .live .top .pills { display: flex; gap: 5px; }
  .live .top .pills i { width: 18px; height: 18px; border-radius: 6px; background: #EFECE5; display: block; }
  .live .list { padding: 0 12px; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .live .v { padding: 10px 10px; border-radius: 12px; margin-bottom: 6px; transition: background .3s ease; }
  .live .v.active { background: #E2EDE9; }
  .live .v .ar { font-family: var(--ar); font-size: 1.25rem; line-height: 1.9; direction: rtl; color: #14201C; display: flex; flex-wrap: wrap; gap: 0 4px; justify-content: flex-start; }
  .live .v .ar span { padding: 0 4px; border-radius: 6px; transition: background .12s ease, color .12s ease; }
  .live .v .ar span.on { background: #F3ECDC; color: #B08A3E; }
  .live .v .tl { font-family: var(--serif); font-style: italic; color: #B08A3E; font-size: .58rem; margin-top: 2px; }
  .live .v .tr { font-size: .62rem; color: #15171A; line-height: 1.3; }
  .live .player { position: absolute; left: 10px; right: 10px; bottom: 14px; margin: 0; padding: 8px 12px; gap: 10px; background: #15171A; color: #F7F5F0; }
  .live .player .ctl { width: 28px; height: 28px; background: #F7F5F0; color: #15171A; }
  .live .player .ctl.main { width: 36px; height: 36px; }
  .live .player .ctl svg { width: 13px; height: 13px; }
  .live .player .info strong { font-size: .88rem; }
  .live .player .info small { font-size: .52rem; }
  .live .player .bar { left: 16px; right: 16px; bottom: 4px; }
  /* Apprendre à lire */
  .letters { padding: 22px; display: grid; gap: 18px; }
  .letter-pick { display: flex; gap: 8px; flex-wrap: wrap; }
  .letter-pick button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-family: var(--ar); font-size: 1.6rem; color: var(--arabic); transition: background .15s ease; }
  .letter-pick button[aria-pressed="true"] { background: var(--green-soft); border-color: transparent; color: var(--green); }
  .letter-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
  .letter-card .big { font-family: var(--ar); font-size: 4.4rem; line-height: 1; color: var(--arabic); min-width: 92px; text-align: center; padding-top: 6px; }
  .letter-card h3 { font-size: 1.2rem; }
  .letter-card .sound { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
  .forms { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  .forms span { display: grid; justify-items: center; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--muted); min-width: 66px; }
  .forms span b { font-family: var(--ar); font-weight: 400; font-size: 1.6rem; line-height: 1.3; color: var(--arabic); }
  .forms span small { font-size: .66rem; color: var(--ink-2); }
  .example { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
  .example .ar { font-size: 1.5rem; line-height: 1.3; }
  .example em { font-family: var(--serif); color: var(--gold-text); }
  .example .ico { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; }
  .example .ico svg { width: 14px; height: 14px; }
  .ear { border-top: 1px solid var(--border); padding-top: 16px; display: grid; gap: 10px; }
  .ear .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .ear .fb { font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }
  .ear .letter-pick button.ok { background: var(--success-soft); border-color: var(--success); color: var(--success); }
  .ear .letter-pick button.ko { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
  @media (max-width: 520px) { .letter-card { grid-template-columns: 1fr; } .letter-card .big { text-align: left; } }
  /* Part reconnue */
  .coverage { padding: 22px; display: grid; gap: 14px; }
  .gauge { height: 10px; border-radius: 999px; background: var(--muted); overflow: hidden; position: relative; }
  .gauge i { display: block; height: 100%; width: 0; background: var(--green); transition: width .45s cubic-bezier(.2,.7,.2,1); }
  .gauge em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--gold); }
  .gauge-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .86rem; color: var(--ink-2); flex-wrap: wrap; }
  .gauge-lbl b { color: var(--green); font-family: var(--serif); font-size: 1.5rem; }
  .entries { display: flex; flex-wrap: wrap; gap: 8px; }
  .entry { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .84rem; transition: background .15s ease; }
  .entry .ar { font-size: 1.15rem; line-height: 1.2; }
  .entry[aria-pressed="true"] { background: var(--green-soft); border-color: transparent; color: var(--green); }
  .entry small { color: var(--ink-3); }
  .roll { display: inline-block; animation: roll .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes roll { from { transform: translateY(.5em); opacity: 0; } to { transform: none; opacity: 1; } }

  /* Reveal */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .to-top.show { opacity: 1; pointer-events: auto; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .float { animation: none; }
    .roll { animation: none; }
    .split .phone, .hero .phone.tilt, .hero-glow, .float, .wm, .shot .phone { transform: none !important; opacity: 1; }
    .section-head.reveal > * { opacity: 1; transform: none; transition: none; }
    * { transition-duration: 0ms !important; }
  }

  /* ===================== Mode enfant : charte « Ciel » de l'app =====================
     Le mode est porté par data-mode="enfant" sur <html> (choix gardé, lien direct #enfant).
     Mêmes jetons que le site, autres valeurs ; les teintes viennent de iqra-mobile/src/lib/kids.ts.
     Les sections portent data-only="adulte" ou data-only="enfant". */
  :root {
    --k-sun: #FFC531; --k-sun-edge: #D9A200; --k-sun-soft: #FFF3CC; --k-sun-ink: #7A5200; --k-on-sun: #1E2A4A;
    --k-green: #16B07E; --k-green-edge: #0E8F65; --k-green-soft: #DDF6EE; --k-green-ink: #0E6B4E;
    --k-orange: #FF8A3D; --k-orange-edge: #D96A22; --k-orange-soft: #FFEAD9; --k-orange-ink: #9A4A12;
    --k-blue: #4C9BFF; --k-blue-edge: #2F7BDB; --k-blue-soft: #E3EEFF; --k-blue-ink: #1F4F8F;
    --k-violet: #8F6CFF; --k-violet-edge: #6C4DE0; --k-violet-soft: #ECE6FF; --k-violet-ink: #4B3A9E;
    --k-pink: #FF6FA3; --k-pink-edge: #D94F82; --k-pink-soft: #FFE4EE; --k-pink-ink: #9E2F5C;
    --k-neutral: #EDF0F7; --k-neutral-edge: #D5DBE8; --k-neutral-ink: #5E687D;
    --k-on-tint: #1E2A4A; /* encre fixe sur les aplats vert, bleu, rose, orange (contraste ≥ 5:1, même en thème sombre) */
    --edge: var(--border); --sw-bg: var(--muted); --sw-thumb: var(--surface);
  }
  :root[data-mode="enfant"] {
    --paper: #F4F7FF; --surface: #FFFFFF; --muted: #EDF0F7; --border: #E3E8F3;
    --ink: #1E2A4A; --ink-2: #536282; --ink-3: #5E687D;
    --green: #16B07E; --green-strong: #0E8F65; --green-soft: #DDF6EE; --on-green: #FFFFFF; --hero: #4C9BFF;
    --gold: #FFC531; --gold-soft: #FFF3CC; --arabic: #1E2A4A;
    --shadow-1: 0 8px 24px rgba(30,42,74,.08); --shadow-2: 0 14px 36px rgba(30,42,74,.14);
    --serif: "Fredoka", "Nunito", system-ui, sans-serif; --sans: "Nunito", system-ui, sans-serif;
    --r-sm: 14px; --r-md: 20px; --r-lg: 28px; --r-xl: 32px;
    --edge: #E3E8F3; --sw-bg: #E3EEFF; --sw-thumb: var(--k-sun); --stk-float: transparent;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root[data-mode="enfant"]:not([data-theme="light"]) {
      --paper: #0F1528; --surface: #1A2240; --muted: #232D4F; --border: #2C3760;
      --ink: #EEF2FF; --ink-2: #A9B4D0; --ink-3: #9099B1;
      --green-soft: #0F3328; --gold-soft: #3A2F0A; --arabic: #F6F3EA; --hero: #2F7BDB;
      --k-sun-soft: #3A2F0A; --k-sun-ink: #FFD86B; --k-green-soft: #0F3328; --k-green-ink: #7EE0BC;
      --k-orange-soft: #3D2212; --k-orange-ink: #FFB285; --k-blue-soft: #15294A; --k-blue-ink: #9CC4FF;
      --k-violet-soft: #241C4A; --k-violet-ink: #C4B4FF; --k-pink-soft: #3B1A2A; --k-pink-ink: #FFA6C6;
      --k-neutral: #232D4F; --k-neutral-edge: #2C3760; --k-neutral-ink: #9099B1;
      --edge: #2C3760; --sw-bg: #232D4F; --stk-float: #FFFFFF;
      --shadow-1: none; --shadow-2: none; color-scheme: dark;
    }
  }
  :root[data-mode="enfant"][data-theme="dark"] {
    --paper: #0F1528; --surface: #1A2240; --muted: #232D4F; --border: #2C3760;
    --ink: #EEF2FF; --ink-2: #A9B4D0; --ink-3: #9099B1;
    --green-soft: #0F3328; --gold-soft: #3A2F0A; --arabic: #F6F3EA; --hero: #2F7BDB;
    --k-sun-soft: #3A2F0A; --k-sun-ink: #FFD86B; --k-green-soft: #0F3328; --k-green-ink: #7EE0BC;
    --k-orange-soft: #3D2212; --k-orange-ink: #FFB285; --k-blue-soft: #15294A; --k-blue-ink: #9CC4FF;
    --k-violet-soft: #241C4A; --k-violet-ink: #C4B4FF; --k-pink-soft: #3B1A2A; --k-pink-ink: #FFA6C6;
    --k-neutral: #232D4F; --k-neutral-edge: #2C3760; --k-neutral-ink: #9099B1;
    --edge: #2C3760; --sw-bg: #232D4F; --stk-float: #FFFFFF;
    --shadow-1: none; --shadow-2: none; color-scheme: dark;
  }

  /* Visibilité par mode */
  [hidden] { display: none !important; }
  :root:not([data-mode="enfant"]) [data-only="enfant"] { display: none !important; }
  :root[data-mode="enfant"] [data-only="adulte"] { display: none !important; }

  /* Typographie et composants en mode enfant */
  :root[data-mode="enfant"] h1, :root[data-mode="enfant"] h2, :root[data-mode="enfant"] h3 { font-weight: 700; letter-spacing: 0; }
  :root[data-mode="enfant"] h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.06; }
  :root[data-mode="enfant"] h3 { font-size: 1.35rem; }
  :root[data-mode="enfant"] .eyebrow { color: var(--k-green-ink); font-weight: 800; }
  :root[data-mode="enfant"] .card { border-color: transparent; }
  :root[data-mode="enfant"] .chip { font-weight: 700; }
  :root[data-mode="enfant"] .hero-copy p.lead { font-weight: 700; font-size: 1.22rem; }
  :root[data-mode="enfant"] .hero-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--k-blue-soft) 95%, transparent), transparent 70%); }
  :root[data-mode="enfant"] .nav-links a { font-weight: 800; }
  :root[data-mode="enfant"] .brand { font-weight: 700; }
  :root[data-mode="enfant"] .stat { border-radius: 24px; border: 0; box-shadow: 0 5px 0 var(--edge); }
  :root[data-mode="enfant"] .stat .num { font-size: 2.6rem; }
  :root[data-mode="enfant"] .stat .lbl { font-weight: 800; color: var(--ink); }
  :root[data-mode="enfant"] .stat .src { font-weight: 700; }
  .stat.k-sun { background: var(--k-sun-soft); --edge: var(--k-sun-edge); } .stat.k-sun .num { color: var(--k-sun-ink); }
  .stat.k-green { background: var(--k-green-soft); --edge: var(--k-green-edge); } .stat.k-green .num { color: var(--k-green-ink); }
  .stat.k-blue { background: var(--k-blue-soft); --edge: var(--k-blue-edge); } .stat.k-blue .num { color: var(--k-blue-ink); }
  .stat.k-violet { background: var(--k-violet-soft); --edge: var(--k-violet-edge); } .stat.k-violet .num { color: var(--k-violet-ink); }
  :root[data-mode="enfant"] .feature { border-radius: 28px; padding: 24px; }
  :root[data-mode="enfant"] .feature .ico { width: 56px; height: 56px; border-radius: 50%; color: var(--k-on-tint); box-shadow: 0 5px 0 var(--edge); }
  :root[data-mode="enfant"] .feature .ico svg { width: 28px; height: 28px; }
  :root[data-mode="enfant"] .feature p { font-weight: 700; font-size: 1rem; }
  .feature.k-green .ico { background: var(--k-green); --edge: var(--k-green-edge); }
  .feature.k-sun .ico { background: var(--k-sun); --edge: var(--k-sun-edge); color: var(--k-on-sun) !important; }
  .feature.k-blue .ico { background: var(--k-blue); --edge: var(--k-blue-edge); }
  .feature.k-violet .ico { background: var(--k-violet); --edge: var(--k-violet-edge); }
  .feature.k-orange .ico { background: var(--k-orange); --edge: var(--k-orange-edge); }
  .feature.k-pink .ico { background: var(--k-pink); --edge: var(--k-pink-edge); }
  :root[data-mode="enfant"] .shot figcaption { font-weight: 800; color: var(--ink); }
  :root[data-mode="enfant"] .family-item { border-radius: 24px; }
  :root[data-mode="enfant"] .family-item .ico { border-radius: 50%; width: 46px; height: 46px; }
  :root[data-mode="enfant"] .family-item p { font-weight: 700; }
  :root[data-mode="enfant"] .faq details { border-color: transparent; box-shadow: var(--shadow-1); border-radius: 22px; }
  :root[data-mode="enfant"] .faq .a { font-weight: 700; }
  :root[data-mode="enfant"] .cta p { font-weight: 700; }
  /* Bandeau enfant : encre sombre sur le bleu ciel (le blanc n'atteignait que 2,8:1) */
  :root[data-mode="enfant"] .cta, :root[data-mode="enfant"] .cta h2, :root[data-mode="enfant"] .cta p { color: var(--k-on-tint); }
  :root[data-mode="enfant"] .badge { color: var(--k-on-tint); border-color: rgba(30,42,74,.35); }
  :root[data-mode="enfant"] .cta::before { color: rgba(30,42,74,.07); }
  :root[data-mode="enfant"] .to-top { border-radius: 16px; font-family: var(--serif); }

  /* Boutons « tactiles » : bord épais en ombre dure, enfoncement au clic */
  .kbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 26px; border-radius: 20px; border: 0; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; text-decoration: none; white-space: nowrap; box-shadow: 0 5px 0 var(--edge); transition: transform .08s ease, box-shadow .08s ease, filter .15s ease; }
  .kbtn:hover { filter: brightness(1.04); }
  .kbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
  .kbtn svg { width: 22px; height: 22px; flex: none; }
  .kbtn.sm { min-height: 48px; padding: 0 18px; font-size: 1rem; border-radius: 16px; }
  .t-green { background: var(--k-green); --edge: var(--k-green-edge); color: var(--k-on-tint); }
  .t-sun { background: var(--k-sun); --edge: var(--k-sun-edge); color: var(--k-on-sun); }
  .t-blue { background: var(--k-blue); --edge: var(--k-blue-edge); color: var(--k-on-tint); }
  .t-violet { background: var(--k-violet-edge); --edge: #5A3EC2; color: #fff; }
  .t-pink { background: var(--k-pink); --edge: var(--k-pink-edge); color: var(--k-on-tint); }
  .t-white { background: var(--surface); --edge: var(--border); color: var(--ink); }
  .kpill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; font-family: var(--serif); font-weight: 700; }
  .kpill svg { width: 22px; height: 22px; }

  /* Switch adulte / enfant dans la barre */
  .mode { display: inline-grid; grid-template-columns: 1fr 1fr; position: relative; padding: 4px; border-radius: 999px; background: var(--sw-bg); border: 1px solid var(--border); isolation: isolate; flex: none; }
  .mode::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--sw-thumb); box-shadow: var(--shadow-1); transition: transform .28s cubic-bezier(.3,1.4,.5,1); z-index: -1; }
  :root[data-mode="enfant"] .mode::before { transform: translateX(100%); }
  .mode button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); white-space: nowrap; }
  .mode button[aria-pressed="true"] { color: var(--ink); }
  :root[data-mode="enfant"] .mode button[aria-pressed="true"] { color: var(--k-on-sun); }
  .mode button svg { width: 18px; height: 18px; }
  .nav-links a { white-space: nowrap; }
  @media (max-width: 1100px) {
    .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 72px; flex-direction: column; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-grid; }
  }
  @media (max-width: 560px) { .mode button span { display: none; } .mode button { padding: 8px 12px; } }
  html.switching, html.switching * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }

  /* Hero enfant : écran dessiné dans le téléphone, autocollants qui flottent */
  .phone .scr { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative; background: #F4F7FF; }
  .phone.big { width: min(300px, 78vw); }
  .float.fstk { width: 92px; height: 92px; padding: 6px; border-radius: 24px; background: var(--stk-float); filter: drop-shadow(0 10px 18px rgba(30,42,74,.18)); }
  .float.s1 { top: 2%; right: 6%; animation-delay: -2.5s; rotate: 10deg; }
  .float.s2 { bottom: 6%; left: 4%; animation-delay: -1s; rotate: -12deg; }
  .float.s3 { top: 40%; left: -6px; width: 72px; height: 72px; animation-delay: -4s; }

  /* Écrans enfant dessinés en HTML (en attendant les captures) : une boîte 390×844 réduite à la largeur de l'écran (--ks posé par le script) */
  .kui { width: 390px; height: 844px; position: absolute; top: 0; left: 0; transform: scale(var(--ks, .6667)); transform-origin: 0 0; display: flex; flex-direction: column; background: #F4F7FF; font-family: "Nunito", system-ui, sans-serif; color: #1E2A4A; overflow: hidden; }
  .kui .body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 56px 20px 10px; }
  .kui .kh { font-family: "Fredoka", sans-serif; font-weight: 700; }
  .kui .sub { font-size: 15px; font-weight: 700; color: #5B6B8C; }
  .kui .lbl { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
  .kui .wcard { background: #fff; border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 8px 24px rgba(30,42,74,.08); }
  .kui .row { display: flex; align-items: center; gap: 12px; }
  .kui .avatar { width: 56px; height: 56px; border-radius: 50%; background: #FF6FA3; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(30,42,74,.12); display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-size: 26px; font-weight: 700; color: #fff; flex: none; }
  .kui .stars { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #FFF3CC; font-family: "Fredoka", sans-serif; font-size: 20px; font-weight: 700; color: #7A5200; }
  .kui .stars svg { width: 24px; height: 24px; }
  .kui .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
  .kui .steps::before { content: ""; position: absolute; left: 44px; right: 44px; top: 28px; border-top: 4px dashed #E3E8F3; }
  .kui .step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-size: 14px; font-weight: 800; }
  .kui .step i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
  .kui .step i svg { width: 26px; height: 26px; }
  .kui .step.done i { background: #16B07E; box-shadow: 0 5px 0 #0E8F65; color: #fff; }
  .kui .step.now i { background: #FFC531; box-shadow: 0 5px 0 #D9A200; color: #1E2A4A; }
  .kui .step.todo i { background: #EDF0F7; box-shadow: 0 5px 0 #D5DBE8; color: #9AA6BF; }
  .kui .step.todo { color: #9AA6BF; }
  .kui .msg { display: flex; align-items: center; gap: 10px; background: #E3EEFF; border-radius: 20px; padding: 8px 8px 8px 10px; }
  .kui .msg .av { width: 40px; height: 40px; border-radius: 50%; background: #8F6CFF; display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-size: 18px; font-weight: 700; color: #fff; flex: none; }
  .kui .msg b { display: block; font-size: 15px; font-weight: 800; line-height: 19px; }
  .kui .msg small { font-size: 13px; font-weight: 700; color: #5B6B8C; }
  .kui .play { margin-left: auto; height: 44px; padding: 0 14px 0 12px; border-radius: 22px; background: #4C9BFF; box-shadow: 0 4px 0 #2F7BDB; color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; flex: none; }
  .kui .play svg { width: 16px; height: 16px; }
  .kui .big { height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: "Fredoka", sans-serif; font-size: 22px; font-weight: 700; }
  .kui .big svg { width: 22px; height: 22px; }
  .kui .tiles, .kui .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .kui .tile { min-height: 120px; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
  .kui .tile .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
  .kui .tile .ic svg { width: 22px; height: 22px; }
  .kui .tile .top { display: flex; align-items: center; justify-content: space-between; }
  .kui .tile .ar { font-size: 22px; line-height: 36px; }
  .kui .tile b { font-family: "Fredoka", sans-serif; font-size: 19px; font-weight: 700; display: block; }
  .kui .tile small { font-size: 14px; font-weight: 700; color: #5B6B8C; }
  .kui .tabs { margin: 0 16px 14px; padding: 8px; border-radius: 32px; background: #fff; box-shadow: 0 10px 30px rgba(30,42,74,.12); display: flex; gap: 2px; }
  .kui .tabs span { flex: 1; min-height: 60px; border-radius: 24px; color: #5B6B8C; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 800; }
  .kui .tabs span svg { width: 26px; height: 26px; }
  .kui .words { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; direction: rtl; }
  .kui .w { min-width: 74px; padding: 4px 12px 10px; border-radius: 20px; background: #F4F7FF; box-shadow: 0 4px 0 #E3E8F3; display: flex; flex-direction: column; align-items: center; }
  .kui .w.on { background: #FFF3CC; box-shadow: 0 4px 0 #FFC531; }
  .kui .w .ar { font-size: 34px; line-height: 60px; color: #1E2A4A; }
  .kui .w small { direction: ltr; font-size: 15px; font-weight: 800; color: #5B6B8C; }
  .kui .w.on small { color: #7A5200; }
  .kui .bigplay { width: 104px; height: 104px; border-radius: 50%; background: #16B07E; box-shadow: 0 7px 0 #0E8F65; display: grid; place-items: center; margin: 0 auto; }
  .kui .bigplay svg { width: 44px; height: 44px; }
  .kui .surah { min-height: 104px; border-radius: 24px; background: #fff; box-shadow: 0 6px 18px rgba(30,42,74,.07); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
  .kui .surah .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-size: 16px; font-weight: 700; }
  .kui .surah b { font-family: "Fredoka", sans-serif; font-size: 18px; font-weight: 700; display: block; line-height: 22px; }
  .kui .surah small { font-size: 13px; font-weight: 700; color: #5B6B8C; }
  .kui .stkgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #F4F7FF; border-radius: 22px; padding: 8px; }
  .kui .stkgrid span { aspect-ratio: 1; border-radius: 20px; background: #EDF0F7; display: grid; place-items: center; overflow: hidden; }
  .kui .stkgrid span.open { background: #fff; }
  .kui .stkgrid img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
  .kui .stkgrid svg { width: 22px; height: 22px; color: #9AA6BF; }
  .kui .bar { height: 10px; border-radius: 5px; background: #EDF0F7; overflow: hidden; }
  .kui .bar i { display: block; height: 100%; border-radius: 5px; background: #8F6CFF; }

  /* Démo enfant : la mission (vrai audio des mots et du verset, minutages de l'app) */
  .mission { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
  @media (max-width: 900px) { .mission { grid-template-columns: 1fr; } }
  .mission-card { padding: 22px; display: grid; gap: 18px; border-radius: 28px; }
  .mstep { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; }
  .mstep::before { content: ""; position: absolute; left: 12%; right: 12%; top: 30px; border-top: 4px dashed var(--border); }
  .mstep button { position: relative; display: grid; justify-items: center; gap: 8px; border: 0; background: transparent; padding: 0; font-weight: 800; font-size: .95rem; color: var(--ink-3); }
  .mstep button i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--k-neutral); box-shadow: 0 5px 0 var(--k-neutral-edge); color: var(--k-neutral-ink); transition: transform .08s ease; }
  .mstep button i svg { width: 28px; height: 28px; }
  .mstep button:active i { transform: translateY(3px); }
  .mstep button.done { color: var(--ink); } .mstep button.done i { background: var(--k-green); box-shadow: 0 5px 0 var(--k-green-edge); color: var(--k-on-tint); }
  .mstep button.now { color: var(--ink); } .mstep button.now i { background: var(--k-sun); box-shadow: 0 5px 0 var(--k-sun-edge); color: var(--k-on-sun); }
  .mtitle { display: grid; gap: 4px; }
  .mtitle .eyebrow { color: var(--k-orange-ink); }
  .mtitle h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
  .mtitle p { font-weight: 700; }
  .mwords { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; direction: rtl; padding: 6px 0; }
  .mword { min-width: 84px; padding: 4px 14px 10px; border-radius: 20px; border: 0; background: var(--paper); box-shadow: 0 4px 0 var(--border); display: grid; justify-items: center; transition: transform .08s ease, background .15s ease; }
  .mword:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
  .mword .ar { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.7; }
  .mword small { direction: ltr; font-weight: 800; color: var(--ink-2); font-size: .95rem; }
  .mword.on { background: var(--k-sun-soft); box-shadow: 0 4px 0 var(--k-sun); }
  .mword.on small { color: var(--k-sun-ink); }
  .mword.hidden-w .ar { color: transparent; background: var(--k-neutral); border-radius: 12px; }
  .mword.hidden-w small { visibility: hidden; }
  .mword.good { background: var(--k-green-soft); box-shadow: 0 4px 0 var(--k-green); }
  .mword.bad { background: var(--k-pink-soft); box-shadow: 0 4px 0 var(--k-pink); }
  .mmean { text-align: center; display: grid; gap: 2px; padding-top: 10px; border-top: 2px solid var(--muted); }
  .mmean .eyebrow { color: var(--k-green-ink); }
  .mmean strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
  .mctl { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
  .mbig { width: 96px; height: 96px; border-radius: 50%; border: 0; display: grid; place-items: center; }
  .mbig svg { width: 42px; height: 42px; }
  .mfoot { display: grid; gap: 10px; }
  .mstatus { min-height: 24px; text-align: center; font-weight: 800; color: var(--ink-2); }
  .mside { display: grid; gap: 16px; }
  .parent-note { padding: 18px 20px; display: grid; gap: 8px; border-radius: 24px; background: var(--k-violet-soft); }
  .parent-note b { color: var(--k-violet-ink); }
  .parent-note p { color: var(--ink-2); font-weight: 700; font-size: .95rem; }
  .bravo { padding: 24px; border-radius: 28px; display: grid; gap: 14px; justify-items: center; text-align: center; position: relative; overflow: hidden; }
  .bravo .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .bravo .trio { display: flex; align-items: flex-end; gap: 4px; }
  .bravo .trio svg { width: 64px; height: 64px; }
  .bravo .trio svg:nth-child(2) { width: 92px; height: 92px; margin-bottom: 10px; }
  .bravo .trio svg:first-child { rotate: -14deg; } .bravo .trio svg:last-child { rotate: 14deg; }
  .bravo h3 { font-size: 2rem; }
  .newstk { display: flex; align-items: center; gap: 14px; width: 100%; background: #F4F7FF; color: #1E2A4A; border-radius: 22px; padding: 12px; text-align: left; }
  .newstk img { width: 84px; height: 84px; object-fit: contain; rotate: -8deg; flex: none; }
  .newstk .eyebrow { color: #4B3A9E; }
  .newstk b { font-family: var(--serif); font-size: 1.25rem; display: block; }
  .newstk small { font-weight: 700; color: #5B6B8C; }
  @keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
  .bravo.show { animation: pop .5s ease both; }

  /* Autocollants */
  .stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
  /* Tuile : l'image au-dessus, la légende sur sa propre rangée (jamais l'une sur l'autre). */
  .stk { aspect-ratio: 1; border-radius: 24px; background: #FFFFFF; box-shadow: 0 6px 18px rgba(30,42,74,.10); display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; justify-items: center; position: relative; overflow: hidden; padding: 12px 12px 10px; margin: 0; }
  .stk img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
  .stk.locked { background: #EDF0F7; }
  .stk.locked img { opacity: .22; filter: grayscale(1); }
  .stk.locked::after { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 8px rgba(30,42,74,.15); translate: -50% calc(-50% - 10px); }
  .stk.locked svg { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; color: #5E687D; z-index: 1; translate: -50% calc(-50% - 10px); }
  .stk figcaption { text-align: center; font-size: .82rem; font-weight: 800; color: #5B6B8C; line-height: 1.2; }
  .stk.locked figcaption { color: #5E687D; }
  .stk-progress { display: grid; gap: 8px; max-width: 520px; margin-top: 20px; }
  .stk-progress .barx { height: 14px; border-radius: 7px; background: var(--k-neutral); overflow: hidden; }
  .stk-progress .barx i { display: block; height: 100%; border-radius: 7px; background: var(--k-violet); transition: width .5s ease; }
  .stk-progress span { font-weight: 800; color: var(--ink-2); }
  @media (max-width: 760px) { .stickers { grid-template-columns: repeat(3, 1fr); } }

  /* Pour les parents */
  .howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: etape; }
  .howto .card { padding: 22px; display: grid; gap: 10px; align-content: start; border-radius: 28px; counter-increment: etape; }
  .howto .card::before { content: counter(etape); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; background: var(--k-blue); color: var(--k-on-tint); box-shadow: 0 4px 0 var(--k-blue-edge); }
  .howto .card:nth-child(2)::before { background: var(--k-orange); box-shadow: 0 4px 0 var(--k-orange-edge); }
  .howto .card:nth-child(3)::before { background: var(--k-green); box-shadow: 0 4px 0 var(--k-green-edge); }
  .howto p { color: var(--ink-2); font-weight: 700; font-size: .96rem; }
  .family-grid.four { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
  @media (max-width: 860px) { .howto { grid-template-columns: 1fr; } .family-grid.four { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .family-grid.four { grid-template-columns: 1fr; } }
  .go-kids { font-weight: 600; color: var(--green); }
  @media (prefers-reduced-motion: reduce) { .bravo.show { animation: none; } .mode::before { transition: none; } }
