/* ── Site vitrine Tiguidi ──────────────────────────────────────────────────────
   Mêmes jetons que l'app (public/assets/style.css de motsdictee) :
   bleu #2b3a8f · jaune #ffcb47 · corail #ff7a59, neutres blanc cassé.
   Fredoka pour les titres et boutons, Atkinson Hyperlegible pour le texte
   (la police par défaut de la zone enfant : le site lit comme l'appli).
   Mise en page : une colonne de 1120px, bandes pleine largeur alternées. */

/* ── Polices (auto-hébergées, sous-ensemble latin) ─────────────────────────── */
@font-face { font-family: 'Fredoka'; src: url('../fonts/fredoka-400-700.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-hyperlegible-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-hyperlegible-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('../fonts/lexend-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Andika'; src: url('../fonts/andika-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Comic Neue'; src: url('../fonts/comic-neue-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('../fonts/opendyslexic-400.woff') format('woff'); font-weight: 400; font-display: swap; }

/* ── Jetons ────────────────────────────────────────────────────────────────── */
:root {
  --bg:           #faf9fd;
  --card:         #ffffff;
  --surface-sunk: #f2f3fc;
  --primary:      #2b3a8f;
  --primary-dk:   #1c2766;
  --primary-tint: #e4e7f8;
  --heading:      #2b3a8f;
  --eyebrow:      #d8562f;   /* corail foncé : lisible en petit sur fond clair */
  --nav-hover:    #d8562f;
  --hot:          #d8562f;   /* survol des boutons jaunes, texte blanc */
  --accent:       #ffcb47;
  --accent-dk:    #d99f1e;
  --accent-fg:    #1c2766;
  --coral:        #ff7a59;
  --coral-dk:     #d8562f;
  --success:      #3ebb74;
  --success-dk:   #2a8a50;
  --text:         #241f38;
  --muted:        #6b6684;
  --border:       #d8d4e6;
  --band-bg:      #2b3a8f;
  --band-fg:      #ffffff;
  --band-muted:   #cfd4f3;
  --band-card:    #34449c;
  --seyes:        rgba(43,58,143,.10);
  --seyes-strong: rgba(43,58,143,.22);
  --seyes-margin: rgba(255,122,89,.55);
  --shadow:       0 4px 16px rgba(43,58,143,.10);
  --shadow-lg:    0 18px 40px rgba(43,58,143,.16);
  --radius:       16px;
  --radius-sm:    10px;
  --font-display: 'Fredoka', 'Comic Neue', system-ui, sans-serif;
  --font:         'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap:         1340px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #171332;
    --card:         #241f45;
    --surface-sunk: #1e1a3d;
    --primary:      #9aa6e6;
    --primary-dk:   #b7c0f0;
    --primary-tint: #2b2856;
    --heading:      #f4f2fb;
    --eyebrow:      #ff9d85;
    --nav-hover:    var(--accent);
    --accent-dk:    #ffd76e;
    --success-dk:   #6fd69a;
    --coral:        #ff9d85;
    --text:         #f4f2fb;
    --muted:        #b0aac9;
    --border:       #3c3768;
    --band-bg:      #241f45;
    --band-muted:   #b0aac9;
    --band-card:    #2e2858;
    --seyes:        rgba(154,166,230,.10);
    --seyes-strong: rgba(154,166,230,.22);
    --shadow:       0 4px 16px rgba(0,0,0,.40);
    --shadow-lg:    0 18px 40px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:           #171332;
  --card:         #241f45;
  --surface-sunk: #1e1a3d;
  --primary:      #9aa6e6;
  --primary-dk:   #b7c0f0;
  --primary-tint: #2b2856;
  --heading:      #f4f2fb;
  --eyebrow:      #ff9d85;
  --nav-hover:    var(--accent);
  --accent-dk:    #ffd76e;
  --success-dk:   #6fd69a;
  --coral:        #ff9d85;
  --text:         #f4f2fb;
  --muted:        #b0aac9;
  --border:       #3c3768;
  --band-bg:      #241f45;
  --band-muted:   #b0aac9;
  --band-card:    #2e2858;
  --seyes:        rgba(154,166,230,.10);
  --seyes-strong: rgba(154,166,230,.22);
  --shadow:       0 4px 16px rgba(0,0,0,.40);
  --shadow-lg:    0 18px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.90rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dk); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); letter-spacing: -.01em; }
.h1-sub { display: block; margin-top: .35em; font-size: .62em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* ── Marque (identique à la barre de l'app) ────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--primary); letter-spacing: .005em; }
.brand-sym { position: relative; width: 24px; height: 22px; flex: none; }
.brand-sym i { position: absolute; width: 9px; height: 9px; border-radius: 50%; transition: transform .5s cubic-bezier(.45, 0, .2, 1.35); }
.brand-sym i:nth-child(1) { top: 0; left: 1px; background: var(--coral); }
.brand-sym i:nth-child(2) { top: 0; right: 1px; background: var(--coral); }
.brand-sym i:nth-child(3) { bottom: 0; left: calc(50% - 4.5px); background: var(--accent); }
/* Survol du logo : les 3 points tournent d'un cran (1er → 2e, 2e → jaune,
   jaune → 1er). */
.brand-link:hover .brand-sym i:nth-child(1) { transform: translate(13px, 0); }
.brand-link:hover .brand-sym i:nth-child(2) { transform: translate(-6.5px, 13px); }
.brand-link:hover .brand-sym i:nth-child(3) { transform: translate(-6.5px, -13px); }
.brand-link { text-decoration: none; }

/* ── Boutons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border: none; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  text-decoration: none; text-align: center; line-height: 1.2;
  cursor: pointer;
  transition: transform .12s, box-shadow .25s, background-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(43,58,143,.35); }
.btn-primary:hover { background: var(--primary-dk); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-fg); box-shadow: 0 4px 12px rgba(234,183,58,.4); }
.btn-accent:hover { background: var(--hot); color: #fff; box-shadow: 0 4px 12px rgba(216,86,47,.35); }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary-tint); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 12px; }
.btn-lg { padding: 18px 32px; font-size: 1.15rem; }
:root[data-theme="dark"] .btn-primary { color: #171332; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary,
  :root:not([data-theme="light"]) .btn-primary:hover { color: #171332; } }

/* Petit appel à l'action fléché : pastille jaune (le jaune en texte seul
   serait illisible sur fond clair) */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 7px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; transition: background-color .25s, color .25s;
}
.link-arrow::after { content: '→'; display: block; line-height: 1; transition: transform .15s; }
.link-arrow:hover, .audience:hover .link-arrow { background: var(--hot); color: #fff; }
.link-arrow:hover::after, .audience:hover .link-arrow::after { transform: translateX(3px); }

/* ── En-tête ───────────────────────────────────────────────────────────────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 12px; white-space: nowrap; border-radius: 10px;
  font-family: var(--font-display); font-weight: 500; text-decoration: none; color: var(--text);
  transition: background-color .2s, color .2s;
}
.site-nav a[aria-current="page"] { background: var(--primary-tint); color: var(--primary); }
.site-nav a:not(.btn):hover { color: var(--nav-hover); }   /* rouge en clair, jaune en sombre */
.site-nav { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: none; border-radius: 12px;
    background: var(--primary-tint); cursor: pointer;
  }
  /* Burger → croix : les barres se rejoignent au centre puis pivotent. */
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; position: relative;
  }
  .nav-toggle-bars { transition: background-color 0s .15s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ''; position: absolute; left: 0;
    transition: top .15s .15s, transform .15s;
  }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background-color: transparent; transition-delay: 0s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transition: top .15s, transform .15s .15s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

  .site-nav {
    display: flex;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a:not(.btn) { padding: 12px; font-size: 1.4rem; font-weight: 600; }
  .site-nav .nav-cta { padding: 14px 20px; font-size: 1.1rem; }
  /* Les liens arrivent l'un après l'autre. */
  .site-nav li, .site-nav .nav-cta { opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, background-color .25s, color .25s; }
  .site-nav.is-open li, .site-nav.is-open .nav-cta { opacity: 1; transform: none; }
  .site-nav.is-open li:nth-child(1) { transition-delay: .05s; }
  .site-nav.is-open li:nth-child(2) { transition-delay: .09s; }
  .site-nav.is-open li:nth-child(3) { transition-delay: .13s; }
  .site-nav.is-open li:nth-child(4) { transition-delay: .17s; }
  .site-nav.is-open li:nth-child(5) { transition-delay: .21s; }
  .site-nav.is-open li:nth-child(6) { transition-delay: .25s; }
  .site-nav.is-open li:nth-child(7) { transition-delay: .29s; }
  .site-nav.is-open .nav-cta { transition-delay: .33s, .33s, 0s, 0s; }

  /* Menu ouvert : la page est figée et floutée derrière. */
  html.menu-open { overflow: hidden; }
  main, .site-footer { transition: filter .25s, opacity .25s; }
  html.menu-open main, html.menu-open .site-footer { filter: blur(6px); opacity: .6; pointer-events: none; }
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-sunk { background: var(--surface-sunk); }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin-bottom: 2.2rem; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: .04em; color: var(--eyebrow); margin-bottom: .8rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(16px, 2vw, 24px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
@media (min-width: 1200px) { .hero-grid { grid-template-columns: 3fr 2fr; gap: 64px; } }
.hero-text { min-width: 0; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
/* Mobile : un haut de page plus compact, pour que la démo apparaisse en bas
   du premier écran. */
@media (max-width: 600px) {
  .hero { padding-top: 20px; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: 1.85rem; }
  .lead { font-size: 1rem; line-height: 1.55; }
  .hero-actions { margin: 20px 0 10px; }
  .hero-actions .btn-ghost { display: none; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { font-size: .9rem; color: var(--muted); }

/* Démo des réglages : le mot sur une page de cahier Seyès */
.demo {
  margin: 0; min-width: 0;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 20px; transform: rotate(.6deg);
  container-type: inline-size;   /* la taille du mot suit la largeur de la carte */
}
/* La page de cahier reprend les palettes de l'app (DEFAULT_PALETTES) pour
   chacun des trois thèmes : clair, sombre, contrasté. */
.demo-sheet {
  --line: 9px;
  --sheet-bg: #ffffff; --sheet-fg: #241f38;
  --sheet-a: #2b3a8f; --sheet-b: #ff7a59; --sheet-muette: #7c7794; --sheet-hl: #ffcb47;
  --sheet-l1: rgba(43,58,143,.10); --sheet-l2: rgba(43,58,143,.22); --sheet-margin: rgba(255,122,89,.55);
  --sheet-border: #d8d4e6;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 210px; padding: 24px 16px 64px 40px;
  border-radius: 14px;
  font-family: var(--demo-font, 'Atkinson Hyperlegible', Arial, sans-serif);
  font-size: calc(min(13cqi, 3.8rem) * var(--demo-scale, 1)); font-weight: 700; line-height: 1;
  letter-spacing: var(--demo-spacing, .06em);
  color: var(--sheet-fg);
  background-color: var(--sheet-bg);
  background-image:
    linear-gradient(90deg, transparent 28px, var(--sheet-margin) 28px, var(--sheet-margin) 30px, transparent 30px),
    repeating-linear-gradient(0deg, var(--sheet-l2) 0 1px, transparent 1px calc(var(--line) * 4)),
    repeating-linear-gradient(0deg, var(--sheet-l1) 0 1px, transparent 1px var(--line)),
    repeating-linear-gradient(90deg, var(--sheet-l1) 0 1px, transparent 1px calc(var(--line) * 4));
  border: 1px solid var(--sheet-border);
  transition: letter-spacing .2s, font-size .2s, background-color .2s, color .2s, border-color .2s;
}
/* Pendant l'animation automatique, des transitions plus lentes et fluides. */
.demo-sheet.is-auto { transition-duration: .8s; transition-timing-function: ease-in-out; }
.demo-sheet.is-auto .syl, .demo-sheet.is-auto .muette { transition: color .8s ease-in-out, opacity .8s ease-in-out, background-color .08s; }
.demo-sheet[data-look="sombre"] {
  --sheet-bg: #171332; --sheet-fg: #f4f2fb;
  --sheet-a: #9aa6e6; --sheet-b: #ff9d85; --sheet-muette: #8b98a5; --sheet-hl: #e0a800;
  --sheet-l1: rgba(154,166,230,.10); --sheet-l2: rgba(154,166,230,.22); --sheet-margin: rgba(255,157,133,.5);
  --sheet-border: #3c3768;
}
.demo-sheet[data-look="contraste"] {
  --sheet-bg: #ffffff; --sheet-fg: #000000;
  --sheet-a: #0033cc; --sheet-b: #b33000; --sheet-muette: #595959; --sheet-hl: #ffff00;
  --sheet-l1: transparent; --sheet-l2: transparent; --sheet-margin: transparent;
  --sheet-border: #000000;
  border-width: 3px;
}
.demo-word { min-width: 0; overflow-wrap: anywhere; }
.demo-sheet[data-font="opendyslexic"] { --demo-font: 'OpenDyslexic', 'Comic Sans MS', sans-serif; font-weight: 400; font-size: calc(min(11cqi, 3.2rem) * var(--demo-scale, 1)); }
.demo-sheet[data-font="lexend"]       { --demo-font: 'Lexend', Arial, sans-serif; font-weight: 400; }
.demo-sheet[data-font="andika"]       { --demo-font: 'Andika', Arial, sans-serif; font-weight: 400; }
.demo-sheet .syl { border-radius: 8px; transition: background-color .08s; }
.demo-sheet[data-syl="on"] .syl-a { color: var(--sheet-a); }
.demo-sheet[data-syl="on"] .syl-b { color: var(--sheet-b); }
.demo-sheet[data-muette="on"] .muette { color: var(--sheet-muette); opacity: .6; }
.demo-sheet .syl.syl-active { background: var(--sheet-hl); }
.demo-sheet .syl.syl-active, .demo-sheet .syl.syl-active .muette { color: #1c2766; }

.demo-listen {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: normal; line-height: 1;
  box-shadow: 0 3px 10px rgba(234,183,58,.4);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.demo-listen:hover { background: var(--hot); color: #fff; box-shadow: 0 3px 10px rgba(216,86,47,.35); }
.demo-listen-ico {
  width: 0; height: 0;
  border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
.demo-listen.is-playing .demo-listen-ico { width: 11px; height: 14px; border: none; background: currentColor; border-radius: 2px; animation: pulse 0.6s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .4; } }

.demo-controls { display: grid; gap: 14px 20px; padding: 18px 4px 0; }
@media (min-width: 520px) { .demo-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-more-toggle {
  display: inline-flex; align-items: center; justify-self: start; gap: 8px;
  padding: 6px 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--primary);
}
.demo-chevron {
  width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s;
}
.demo-more-toggle[aria-expanded="true"] .demo-chevron { transform: rotate(-135deg); margin-top: 4px; }
/* Dépliage animé : grid-template-rows 0fr → 1fr anime une hauteur « auto ». */
.demo-extra { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease, visibility .3s; visibility: hidden; }
.demo-extra.is-open { grid-template-rows: 1fr; visibility: visible; }
.demo-extra-inner { min-height: 0; overflow: hidden; display: grid; gap: 16px 20px; padding-bottom: 4px; }
@media (min-width: 520px) { .demo-extra-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo-full { grid-column: 1 / -1; } }
.demo-row { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 6px; align-content: start; }
.demo-row legend, .demo-row > label { font-family: var(--font-display); font-weight: 500; font-size: .9rem; padding: 0; margin-bottom: 6px; color: var(--text); }
.demo-row > label { margin-bottom: 0; display: flex; justify-content: space-between; gap: 8px; }
.demo-row output { color: var(--muted); font-weight: 400; }
.demo-row input[type="range"] { width: 100%; accent-color: var(--primary); }
.demo-toggles { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.demo-more { font-size: .9rem; color: var(--muted); margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--border); background: var(--card); color: var(--text);
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--primary); }
.chip.is-on { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }

/* ── Étapes ────────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px 24px;
}
.step h3::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-right: 10px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); font-size: 1rem; vertical-align: 2px;
}
.step p { color: var(--muted); }
.step-visual {
  margin-top: auto; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.pill {
  font-family: var(--font-display); font-weight: 500; font-size: .85rem;
  padding: 5px 12px; border-radius: 999px; background: var(--surface-sunk); color: var(--muted);
  border: 1px solid var(--border);
}
.pill.is-on { background: var(--primary-tint); color: var(--primary); border-color: transparent; }
.photo-visual { flex-wrap: nowrap; }
.paper {
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 6px;
  background: var(--surface-sunk); border: 1px solid var(--border);
  font-family: 'Comic Neue', 'Comic Sans MS', cursive; font-size: .85rem; color: var(--muted); white-space: nowrap; flex: none;
  transform: rotate(-3deg);
}
.arrow { color: var(--coral); font-weight: 700; }
.detected { display: flex; flex-wrap: wrap; gap: 6px; }
.detected .pill { background: var(--primary-tint); color: var(--primary); border-color: transparent; }
.stars-visual span { font-family: var(--font-display); font-size: .85rem; padding: 5px 10px; border-radius: 10px; background: var(--surface-sunk); }

/* ── Jeux ──────────────────────────────────────────────────────────────────── */
.games { display: grid; gap: 20px; }
@media (min-width: 640px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .games { grid-template-columns: repeat(3, 1fr); } }
.game { min-width: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.game p { color: var(--muted); }
.game-visual {
  display: flex; align-items: center; justify-content: center;
  height: 120px; margin-bottom: 18px; border-radius: 12px; background: var(--surface-sunk);
}
.game-cta { background: var(--primary-tint); box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
.game-cta p { color: var(--text); }

/* Tuiles : reprennent .tile / .blank-tile / .shape-tile de l'app */
.tiles { --tile: 38px; display: flex; gap: 6px; align-items: center; }
.tile {
  display: inline-flex; align-items: flex-end; justify-content: center;
  width: var(--tile, 38px); height: var(--tile, 38px);
  padding-bottom: calc(var(--tile, 38px) * .2);
  border: 2px solid var(--primary); border-radius: 9px; background: var(--card);
  color: var(--primary); font-family: 'Atkinson Hyperlegible', Arial, sans-serif; font-weight: 700;
  font-size: calc(var(--tile, 38px) * .55); line-height: 1;
  box-shadow: 0 2px 6px rgba(43,58,143,.12);
}
.tile-fixed { border-color: var(--border); color: var(--text); box-shadow: none; }
.tile-blank { border-style: dashed; background: var(--surface-sunk); }
.tile-silhouette { border-style: dashed; background: var(--surface-sunk); box-shadow: none; }
.tile-intrus { border-color: var(--coral); background: var(--coral); color: #fff; text-decoration: line-through; }
.tile-word { width: auto; padding: 0 12px calc(var(--tile) * .2); font-size: 1rem; }
.tile.shape-asc  { height: calc(var(--tile, 38px) * 1.42); margin-bottom: calc(var(--tile, 38px) * .42); }
.tile.shape-desc { height: calc(var(--tile, 38px) * 1.42); margin-top: calc(var(--tile, 38px) * .42); padding-bottom: calc(var(--tile, 38px) * .62); }
.tile.is-wide    { width: calc(var(--tile, 38px) * 1.35); }
.pair-start { border-top-right-radius: 0; border-bottom-right-radius: 0; position: relative; }
.pair-end   { border-top-left-radius: 0;  border-bottom-left-radius: 0; }
.pair-start::after {
  content: ''; position: absolute; top: -2px; bottom: -2px; left: calc(100% - 1px); width: 9px;
  border-top: 2px dashed var(--primary); border-bottom: 2px dashed var(--primary);
}

/* ── Bande « dys » ─────────────────────────────────────────────────────────── */
.section-band { background: var(--band-bg); color: var(--band-fg); }
.section-band h2, .section-band h3 { color: var(--band-fg); }
.section-band .section-lead { color: var(--band-muted); }
.section-band .eyebrow { color: #ff9d85; }   /* corail clair : lisible sur le bleu */
.aids { display: grid; gap: 20px; margin-bottom: 36px; }
@media (min-width: 900px) { .aids { grid-template-columns: repeat(3, 1fr); } }
.aid-group { min-width: 0; background: var(--band-card); border-radius: var(--radius); padding: 26px 24px; }
.aid-group h3 { color: var(--band-fg); }
.aid-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.aid-group li { position: relative; padding-left: 22px; color: var(--band-muted); }
.aid-group li strong { color: var(--band-fg); }
.aid-group li::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--coral);
}
.shape-demo {
  --tile: 32px;
  display: flex; gap: 6px; align-items: center; justify-content: center;
  padding: 18px 8px; margin-bottom: 16px; border-radius: 12px; background: var(--card);
}

/* ── Récompense ────────────────────────────────────────────────────────────── */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.split > div { min-width: 0; }
.split p { max-width: 36em; }
.reward {
  justify-self: center; width: min(100%, 340px);
  display: grid; gap: 14px; justify-items: center;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 32px 24px;
}
.reward-score { font-size: 2rem; letter-spacing: .1em; }
.reward-gain { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--accent-dk); display: inline-flex; align-items: center; gap: 6px; }
.reward-btn {
  width: 100%; text-align: center; padding: 14px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-fg); font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
/* Pièce : disque CSS, comme dans l'app (🪙 est un aigle argenté sur Apple) */
.coin {
  display: inline-block; width: .9em; height: .9em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe08a, #f2b51f 60%, #d99f1e);
  box-shadow: inset 0 0 0 2px #d99f1e;
}

/* ── Parents ───────────────────────────────────────────────────────────────── */
.features { display: grid; gap: 28px 40px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { min-width: 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.feature p { color: var(--muted); }

/* ── Pour qui ──────────────────────────────────────────────────────────────── */
.audiences { display: grid; gap: 20px; }
@media (min-width: 860px) { .audiences { grid-template-columns: repeat(3, 1fr); } }
.audience {
  min-width: 0; display: flex; flex-direction: column;
  padding: 28px 24px; border-radius: var(--radius); background: var(--card);
  border: 2px solid var(--border); text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.audience:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.audience p { color: var(--muted); }
.audience .link-arrow { margin-top: auto; }
.audience p:last-of-type { margin-bottom: 14px; }

/* ── Bonus conjugaison / maths ─────────────────────────────────────────────── */
.bonus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bonus-card {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 12px;
}
.bonus-big { font-family: 'Atkinson Hyperlegible', Arial, sans-serif; font-weight: 700; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); color: var(--text); }
.bonus-big .ending { color: var(--coral); }
.bonus-label { font-family: var(--font-display); font-size: .85rem; color: var(--muted); }

/* ── Témoignages ───────────────────────────────────────────────────────────── */
.quotes { display: grid; gap: 20px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; min-width: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.quote blockquote { margin: 0 0 14px; font-size: 1.05rem; }
.quote blockquote p::before { content: '«\00a0'; color: var(--coral); }
.quote blockquote p::after  { content: '\00a0»'; color: var(--coral); }
.quote figcaption { color: var(--muted); font-size: .9rem; }
/* Un seul témoignage : grande carte centrée, large sur ordinateur (moins haute). */
@media (min-width: 860px) { .quotes-solo { grid-template-columns: 1fr; } }
.quotes-solo .quote { width: 100%; max-width: 1080px; margin-inline: auto; padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px); border-left: 6px solid var(--coral); }
.quotes-solo .quote blockquote { font-size: 1.1rem; line-height: 1.6; }
.section-quote h2 { text-align: center; }
.quotes + .quote-invite { margin: 20px auto 0; padding: 18px 28px; max-width: 1080px; text-align: center; }
.quotes + .quote-invite p { margin: 0; }
.quotes + .quote-invite p + p { margin-top: 4px; }
.quote-invite { margin-top: 20px; padding: 18px 28px; }
.quotes + .quote-invite p { margin: 0; }
.quotes + .quote-invite p + p { margin-top: 4px; }
.quote-invite {
  max-width: 44em; padding: 28px; border-radius: var(--radius);
  border: 2px dashed var(--border); color: var(--muted);
}
.quote-invite a { font-family: var(--font-display); font-weight: 600; }

/* ── Histoire ──────────────────────────────────────────────────────────────── */
.story { max-width: 820px; }
.story p, .story li { font-size: 1.1rem; }
.story ul { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: 6px; }
.story li { position: relative; padding-left: 22px; }
.story li::before {
  content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--coral);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.5rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details.is-closing summary::after { transform: none; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 40em; }
.faq-reponse { overflow: hidden; }
.faq summary::after { transition: transform .3s ease; }

/* ── Appel final ───────────────────────────────────────────────────────────── */
.final-cta { background: var(--band-bg); color: var(--band-fg); padding-block: clamp(56px, 8vw, 88px); }
.final-inner { text-align: center; display: grid; justify-items: center; gap: 8px; }
.final-cta h2 { color: var(--band-fg); }
.final-cta p { color: var(--band-muted); margin-bottom: 20px; }

/* ── Pied de page ──────────────────────────────────────────────────────────── */
.site-footer { padding-block: 56px 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid > * { min-width: 0; }
.footer-about p { color: var(--muted); max-width: 26em; }
.footer-about .brand { margin-bottom: 12px; }
.footer-fr { font-size: .9rem; }
.footer-title { font-family: var(--font-display); font-weight: 600; color: var(--text); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--primary); text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin: 14px 0 0; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary);
  transition: background-color .25s, color .25s;
}
.footer-social a:hover { background: var(--hot); color: #fff; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .85rem;
}
.footer-legal a { color: var(--muted); }

/* ── Pages internes ────────────────────────────────────────────────────────── */
.hero-page { padding-top: clamp(20px, 3vw, 36px); }
.breadcrumb { margin-bottom: clamp(20px, 3vw, 36px); font-size: .85rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .25s; }
.breadcrumb a:hover { color: var(--nav-hover); }

/* Listes à puces rondes corail, comme dans la bande « dys » */
.list-dots { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: 10px; }
.list-dots li { position: relative; padding-left: 22px; }
.list-dots li::before {
  content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--coral);
}

/* Avant / après : le même mot sans puis avec les réglages */
.compare { margin: 0; display: grid; gap: 14px; min-width: 0; }
.compare-card {
  container-type: inline-size; min-width: 0;
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 14px;
  border: 2px solid transparent;
}
.compare-card.is-after { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.compare-label { margin: 2px 4px 10px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--muted); }
.is-after .compare-label { color: var(--primary); }
.compare-caption { font-size: .85rem; color: var(--muted); text-align: center; margin: 0; }
.demo-sheet.is-static { min-height: 0; padding: 22px 12px 22px 40px; }
.demo-sheet[data-font="arial"] { --demo-font: Arial, Helvetica, sans-serif; font-weight: 400; }

/* Écoute de la voix, avec le bouton 🔊 de l'appli (mode « Je regarde ») */
.ecoute-card { container-type: inline-size; margin-bottom: 20px; display: grid; gap: 14px; }
.ecoute-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ecoute-actions .chip { padding: 5px 12px; font-size: .85rem; }
.compare-ecoute { margin: 12px 4px 2px; gap: 10px 12px; }
.compare-ecoute .speak-btn { width: 48px; height: 48px; font-size: 1.3rem; }
.section-band .chip { background: transparent; border-color: rgba(255,255,255,.25); color: var(--band-fg); }
.section-band .chip.is-on { background: #fff; border-color: #fff; color: #2b3a8f; }
.speak-btn {
  flex: none; width: 56px; height: 56px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 1.5rem; line-height: 1;
  box-shadow: 0 4px 16px rgba(43,58,143,.35);
  transition: transform .12s, box-shadow .25s, background-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.section-band .speak-btn { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.speak-btn:hover { transform: scale(1.06); }
.speak-btn:active { transform: scale(.92); }
.speak-btn.is-playing { animation: onde 1s ease-out infinite; }
@keyframes onde { from { box-shadow: 0 0 0 0 rgba(255,203,71,.7); } to { box-shadow: 0 0 0 16px rgba(255,203,71,0); } }

/* Page jeux : maquette d'une partie, détail des jeux, niveaux */
.game-mock {
  min-width: 0; display: grid; gap: 18px; justify-items: center;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px 18px;
  transform: rotate(.6deg);
}
.game-mock-head { width: 100%; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 600; }
.game-mock-progress { color: var(--muted); font-weight: 500; font-size: .9rem; }
.game-mock .tiles { --tile: 50px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) { .game-mock .tiles { --tile: 36px; } }
.game-mock-reserve { padding: 12px; border-radius: 14px; background: var(--surface-sunk); }
.game-mock-note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.hint-glow { animation: hint-pulse 1.4s ease-in-out infinite; }
/* Mini-jeu jouable du hero /jeux/ (états repris de l'appli) */
.jeu-demo .speak-btn { width: 52px; height: 52px; font-size: 1.35rem; }
.jeu-demo button.tile { cursor: pointer; transition: transform .1s, background-color .15s, opacity .2s; -webkit-tap-highlight-color: transparent; user-select: none; }
.jeu-demo button.tile:hover { transform: translateY(-2px); }
.jeu-demo button.tile:active { transform: scale(.9); }
.tile.is-placed { background: var(--primary); color: #fff; }
.tile.is-correct { background: var(--success); border-color: var(--success); color: #fff; }
.tile.is-wrong { background: var(--coral); border-color: var(--coral); color: #fff; animation: secoue .3s; }
.tile.is-used { opacity: .25; pointer-events: none; }
.game-mock-reserve:empty { display: none; }
.jeu-message { margin: -4px 0 0; min-height: 1.5em; font-family: var(--font-display); font-weight: 600; color: var(--hot); text-align: center; }
.jeu-message.is-bravo { color: var(--success-dk); font-size: 1.15rem; animation: pop .3s ease-out; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@keyframes tuile-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes tuile-out { to { opacity: 0; transform: translateY(10px); } }
.tiles-enter .tile { animation: tuile-in .25s ease-out both; animation-delay: min(calc(var(--i, 0) * 35ms), 500ms); }
.tiles-out .tile { animation: tuile-out .3s ease-in both; animation-delay: calc(150ms + min(calc(var(--i, 0) * 45ms), 400ms)); }
.jeu-demo .hint-glow.hint-glow { animation: hint-pulse 1.4s ease-in-out infinite; animation-delay: 0s; }
@keyframes hint-pulse { 50% { background: var(--accent); border-color: var(--accent-dk); color: var(--accent-fg); } }
.game-skill { margin: 0; font-size: .95rem; }
.game-skill strong { color: var(--text); }
.games-detail .game-cta { align-items: flex-start; gap: 4px; }
.levels { display: grid; gap: 20px; }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.level { min-width: 0; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 24px; }
.level-stars { display: block; font-size: 1.5rem; letter-spacing: .1em; margin-bottom: 8px; }
.level p { color: var(--muted); margin: 0; }
.levels-note { margin: 28px 0 0; max-width: 52em; color: var(--muted); }
.levels-note strong { color: var(--text); }

/* Colonne de lecture étroite (guide, à propos, pages légales) */
.wrap-narrow { max-width: calc(820px + 64px); }
.section-tight { padding-top: 8px; }
.more-link { margin: 28px 0 0; }
.h3-like { font-size: 1.2rem; }

/* Orthophonistes : liste des réglages en 2 colonnes */
.hero-quote { align-self: center; }
.spec { display: grid; gap: 0 40px; margin-bottom: 28px; }
@media (min-width: 760px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec-row { min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--border); }
.spec-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.spec-row p { color: var(--muted); margin: 0; }
/* Orthophonistes : un aperçu de chaque réglage, à droite du texte */
/* Orthophonistes : chaque réglage en tuile, aperçu en haut, texte dessous.
   1 colonne sur mobile, 2 en dessous de 1280px, 5 au-delà (2 rangées de 5). */
.spec.spec-apercus { gap: 16px; }
@media (min-width: 640px) { .spec.spec-apercus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .spec.spec-apercus { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.spec-apercus .spec-row {
  display: flex; flex-direction: column; gap: 14px;
  padding: 12px 12px 18px; border: none; border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.spec-apercus .spec-row > div:first-child { order: 1; padding: 0 6px; }
.spec-apercus .apercu { min-height: 132px; padding: 12px 10px; }
.apercu {
  --sheet-a: #2b3a8f; --sheet-b: #ff7a59; --sheet-muette: #7c7794; --sheet-hl: #ffcb47;
  min-height: 96px; padding: 12px 14px; border-radius: 14px;
  background: #fff; color: #241f38; border: 1px solid #d8d4e6;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px;
  font-family: 'Atkinson Hyperlegible', Arial, sans-serif; font-weight: 700; font-size: 1.7rem; line-height: 1.15;
}
.apercu small { display: block; font-family: 'Atkinson Hyperlegible', Arial, sans-serif; font-weight: 400; font-size: .7rem; color: #6b6585; letter-spacing: 0; }
.apercu .syl-a { color: var(--sheet-a); }
.apercu .syl-b { color: var(--sheet-b); }
.apercu .muette { color: var(--sheet-muette); opacity: .6; }
.apercu .syl { border-radius: 6px; }
.apercu .syl.syl-active { background: var(--sheet-hl); color: #1c2766; }
.apercu .tiles { --tile: 30px; gap: 5px; }
.apercu .tile { background: #fff; }
.apercu .tile-blank { background: #f2f3fc; }
.apercu .tile-fixed { border-color: #d8d4e6; color: #241f38; }
.apercu-polices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 4px; font-size: .95rem; font-weight: 400; text-align: center; }
.apercu-polices small { font-size: .58rem; margin-top: 2px; white-space: nowrap; }
.f-od { font-family: 'OpenDyslexic', sans-serif; font-size: .85em; }
.f-lexend { font-family: 'Lexend', sans-serif; }
.f-andika { font-family: 'Andika', sans-serif; }
.f-atkinson { font-family: 'Atkinson Hyperlegible', sans-serif; }
.f-comic { font-family: 'Comic Neue', 'Comic Sans MS', sans-serif; }
.f-arial { font-family: Arial, Helvetica, sans-serif; }
.apercu-espacement { flex-direction: column; gap: 2px; }
.apercu-espacement span { font-size: 1rem; letter-spacing: 0; }
.apercu-espacement .is-large { font-size: 1.9rem; letter-spacing: .22em; margin-right: -.22em; }
.apercu-voix { flex-direction: column; gap: 10px; }
.apercu-voix .ecoute-actions { justify-content: center; gap: 6px; flex-wrap: nowrap; }
.apercu-voix .chips { flex-wrap: nowrap; gap: 4px; }
.apercu-voix .chip { white-space: nowrap; }
.apercu-voix .speak-btn { width: 38px; height: 38px; font-size: 1rem; }
.apercu-voix .chip { padding: 4px 7px; font-size: .68rem; background: #fff; color: #2b3a8f; border-color: #d8d4e6; }
.apercu-voix .chip.is-on { background: #e8ebfa; border-color: #2b3a8f; }
.apercu-lecture .syl { animation: syllabe-lue 2.4s steps(1) infinite; }
.apercu-lecture .syl:nth-child(2) { animation-delay: .6s; }
.apercu-lecture .syl:nth-child(3) { animation-delay: 1.2s; }
@keyframes syllabe-lue { 0% { background: var(--sheet-hl); color: #1c2766; } 25% { background: transparent; color: inherit; } }
.apercu-themes { gap: 8px; flex-wrap: nowrap; }
.apercu-themes > span { flex: 1 1 0; min-width: 0; max-width: 72px; padding: 8px 0 6px; border-radius: 10px; text-align: center; font-size: 1.3rem; border: 1px solid #d8d4e6; }
.apercu-themes small { margin-top: 2px; color: inherit; opacity: .8; font-size: .6rem; }
.theme-clair { background: #fff; color: #2b3a8f; }
.theme-sombre { background: #171332; color: #f4f2fb; border-color: #171332 !important; }
.theme-contraste { background: #fff; color: #000; border: 3px solid #000 !important; }
.apercu-formes .tiles { --tile: 23px; gap: 4px; }
.apercu-niveaux { flex-direction: column; align-items: stretch; gap: 6px; }
.apercu-niveaux > span { display: flex; align-items: center; gap: 8px; }
.apercu-niveaux small { width: 42px; flex: none; text-align: right; }
.apercu-niveaux .tiles { --tile: 17px; gap: 3px; }
.apercu-niveaux .tile { border-width: 1.5px; border-radius: 5px; box-shadow: none; }

/* Enseignants */
.hero-features { grid-template-columns: 1fr !important; align-self: center; }
.photo-visual-lg { justify-content: center; padding: 28px 16px; border-radius: var(--radius); background: var(--surface-sunk); }
.copy-box { min-width: 0; background: var(--card); border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; justify-items: start; }
.copy-text { margin: 0; font-style: italic; }

/* Article (guide) */
.article-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.article-body h2 { margin-top: 2.2em; scroll-margin-top: 90px; }
.article-body > :first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.6em; }
.article-body > p, .article-body li { font-size: 1.05rem; }
.toc { background: var(--surface-sunk); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.toc-title { font-family: var(--font-display); font-weight: 600; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.callout { border-left: 4px solid var(--accent); background: var(--card); box-shadow: var(--shadow); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-app { border-left-color: var(--coral); display: grid; gap: 10px; justify-items: start; }
.callout-app .eyebrow { margin: 0; }
.optout { display: grid; gap: 12px; justify-items: start; }
.optout [hidden] { display: none; }
.optout p { margin: 0; }
.optout-statut { font-size: .9rem; color: var(--muted); }
.tips-article { grid-template-columns: 1fr !important; gap: 12px; margin: 20px 0; }
.tips-article .tip { padding: 18px 22px; box-shadow: none; border: 1px solid var(--border); }
.tips-article .tip h3 { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.planning { width: 100%; border-collapse: collapse; font-size: .98rem; }
.planning th, .planning td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.planning thead th { font-family: var(--font-display); font-weight: 600; background: var(--surface-sunk); }
.planning tbody th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.planning td:last-child { white-space: nowrap; color: var(--muted); }
/* Petit écran : chaque jour devient une ligne « jour · durée » puis le texte */
@media (max-width: 600px) {
  .planning thead { display: none; }
  .planning tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "jour duree" "texte texte"; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .planning th, .planning td { padding: 0; border: 0; }
  .planning tbody th { grid-area: jour; }
  .planning td:nth-of-type(1) { grid-area: texte; }
  .planning td:nth-of-type(2) { grid-area: duree; }
}

/* À propos, pages légales */
.founder { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.founder img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.legal h2 { font-size: 1.35rem; }
.legal-date { margin-top: 2em; font-size: .9rem; color: var(--muted); }
mark.todo { background: #ffe3a3; color: #5a3a00; padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* Pourquoi c'est difficile */
.reasons { display: grid; gap: 20px; }
@media (min-width: 600px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reason { min-width: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 4px solid var(--coral); }
.reason p { color: var(--muted); margin: 0; }
.reasons-conclusion { margin: 32px 0 0; max-width: 46em; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.band-note { color: var(--band-muted); margin: 0; }

/* Deux colonnes : variante à parts égales de .split (défini plus haut) */
@media (min-width: 860px) { .split-even { grid-template-columns: 1fr 1fr; align-items: start; } }
.split-text { min-width: 0; }
.story-mini { background: var(--primary-tint); border-radius: var(--radius); padding: 28px; }

/* Les 2 modes de l'appli, comme à l'écran */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode-card {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  background: var(--card); border: 3px solid var(--primary); border-radius: 20px;
  padding: 28px 12px; box-shadow: var(--shadow);
}
.mode-card.is-play { border-color: var(--coral); }
.mode-emoji { font-size: 3rem; line-height: 1.1; }
.mode-label { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--heading); }
.mode-desc { font-size: .85rem; color: var(--muted); }

/* Conseils numérotés */
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: tip; }
@media (min-width: 700px) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tip { counter-increment: tip; min-width: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.tip h3::before {
  content: counter(tip);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-right: 10px; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: 1rem; vertical-align: 2px;
}
.tip p { color: var(--muted); margin: 0; }
.tip-cta { counter-increment: none; background: var(--primary-tint); box-shadow: none; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tip-cta h3::before { content: none; }
.tip-cta p { color: var(--text); }

/* ── Outils ────────────────────────────────────────────────────────────────── */
/* Rubrique /outils/ : une carte par outil */
.outils-liste { display: grid; gap: 20px; }
@media (min-width: 760px) { .outils-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .outils-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.outil-carte {
  min-width: 0; display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 24px;
  color: var(--text); text-decoration: none; border: 2px solid transparent;
  transition: border-color .25s, box-shadow .25s, color .25s;
}
.outil-carte:hover { color: var(--text); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.outil-carte:hover .link-arrow { background: var(--hot); color: #fff; }
.outil-carte h2 { margin: 6px 0 0; }
.outil-carte p { color: var(--muted); margin: 0 0 6px; }
.outil-carte-demo {
  display: flex; align-items: center; justify-content: center; min-height: 120px; border-radius: 14px;
  background: #fff; border: 1px solid #d8d4e6;
  font-family: 'Andika', Arial, sans-serif; font-size: 2.6rem; line-height: 1; color: #241f38;
}
.outil-carte-demo .s2-0 { color: #1d4ed8; }
.outil-carte-demo .s2-1 { color: #dc2626; }
.outil-carte-demo .muette { color: #a19cb5; }
.outils-note { margin: 28px 0 0; max-width: 46em; color: var(--muted); }

/* Outil « Syllabes en couleur » : réglages à gauche, fiche à droite */
.hero-outil { padding-bottom: 0; }
.outil { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .outil { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } }
.outil-form { display: grid; gap: 20px; min-width: 0; }
.outil-bloc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 12px; }
.outil-titre { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--heading); }
.outil-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; font-size: .95rem;
}
.outil-aide { margin: 0; font-size: .9rem; color: var(--muted); }
.outil-champ {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color .25s;
}
.outil-champ:focus { outline: none; border-color: var(--primary); }
textarea.outil-champ { resize: vertical; min-height: 10em; }
.outil-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.outil-compteur { margin: 0; font-size: .85rem; color: var(--muted); }
.outil-compteur.is-trop { color: var(--hot); font-weight: 700; }
.outil-lien {
  border: 0; padding: 4px 0; background: none; cursor: pointer;
  font: inherit; font-size: .9rem; color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s;
}
.outil-lien:hover { color: var(--nav-hover); }
.outil-reglage { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 6px; }
.outil-reglage legend, .outil-reglage-titre > span { font-family: var(--font-display); font-weight: 500; font-size: .9rem; padding: 0; margin-bottom: 6px; color: var(--text); }
.outil-reglage .chip { display: inline-flex; align-items: center; gap: 7px; }
.outil-reglage .chip.f-od { font-size: .8rem; }
.outil-options { display: grid; gap: 8px; }
/* Petites pastilles qui montrent la palette dans chaque bouton */
.pastille-2, .pastille-3 { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.pastille-2 { background: linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%); }
.pastille-3 { background: conic-gradient(#1d4ed8 0 120deg, #dc2626 0 240deg, #15803d 0); }
.pastille-arc { width: 16px; height: 9px; flex: none; margin-top: -4px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 9px 9px; }
.outil-apercu { min-width: 0; display: grid; gap: 14px; }
@media (min-width: 1000px) { .outil-apercu { position: sticky; top: 88px; } }
.outil-apercu-tete { display: grid; gap: 6px; }
.outil-actions { display: grid; gap: 8px; justify-items: start; }

/* La fiche : toujours une feuille blanche (c'est ce qui sera imprimé), quel
   que soit le thème du site. Les attributs data-* viennent des réglages. */
.syl-fiche {
  --c1: #1d4ed8; --c2: #dc2626; --c3: #15803d; --gris: #a19cb5;
  --taille: 2.2rem;
  background: #fff; color: #1a1630; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid #d8d4e6;
  padding: 24px clamp(16px, 3vw, 32px) 18px;
  font-family: 'Andika', Arial, sans-serif;
}
.syl-fiche-titre { margin: 0 0 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: #2b3a8f; overflow-wrap: anywhere; }
.syl-liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .35em 1em;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.2em), 1fr));
  font-size: var(--taille); line-height: 1.35;
}
.syl-mot { min-width: 0; padding: .12em 0; overflow-wrap: anywhere; }
.syl-texte { letter-spacing: .04em; }
.syl-fiche[data-taille="moyen"]      { --taille: 1.6rem; }
.syl-fiche[data-taille="tres-grand"] { --taille: 3rem; }
/* Petit écran : tailles réduites pour garder 2 colonnes (l'impression, sur
   une page A4, garde les tailles ci-dessus). */
@media screen and (max-width: 600px) {
  .syl-fiche { --taille: 1.55rem; }
  .syl-fiche[data-taille="moyen"]      { --taille: 1.2rem; }
  .syl-fiche[data-taille="tres-grand"] { --taille: 2.2rem; }
}
.syl-fiche[data-police="lexend"]       { font-family: 'Lexend', Arial, sans-serif; }
.syl-fiche[data-police="opendyslexic"] { font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif; }
.syl-fiche[data-police="opendyslexic"] .syl-liste { font-size: calc(var(--taille) * .82); line-height: 1.6; }
.syl-fiche[data-police="atkinson"]     { font-family: 'Atkinson Hyperlegible', Arial, sans-serif; }
.syl-fiche[data-police="classique"]    { font-family: Arial, Helvetica, sans-serif; }
.syl-fiche[data-couleurs="bleu-vert"] { --c2: #15803d; }
.syl-fiche .s2-0 { color: var(--c1); }
.syl-fiche .s2-1 { color: var(--c2); }
.syl-fiche[data-couleurs="trois"] .s3-0 { color: var(--c1); }
.syl-fiche[data-couleurs="trois"] .s3-1 { color: var(--c2); }
.syl-fiche[data-couleurs="trois"] .s3-2 { color: var(--c3); }
/* Arcs : lettres noires, un arc sous chaque syllabe (imprimante noir et blanc) */
.syl-fiche[data-couleurs="arcs"] .syl {
  color: inherit; display: inline-block; padding: 0 .03em .1em; margin: 0 .03em;
  border-bottom: .06em solid #2b3a8f; border-radius: 0 0 50% 50% / 0 0 .38em .38em;
}
.syl-fiche[data-muettes="on"] .muette { color: var(--gris); }
.syl-l { cursor: pointer; border-radius: 4px; transition: background-color .15s; }
.syl-l:hover { background: #fff1c2; }
/* Une seule ligne pour recopier le mot (une bordure pleine : contrairement
   aux dégradés de 1px, elle ne disparaît jamais à l'écran ni à l'impression) */
.syl-ecrire { display: none; }
.syl-fiche[data-ligne="on"] .syl-liste { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9em), 1fr)); gap: .5em 1.2em; }
.syl-fiche[data-ligne="on"] .syl-ecrire { display: block; height: 1.25em; border-bottom: 2px solid #8e98d4; }
/* Outil texte : un texte suivi plutôt qu'une grille de mots */
.txt-fiche { --taille-txt: 1.5rem; --interligne: 2.1; --lettres: .02em; --mots: .12em; }
.txt-fiche[data-taille="moyen"]      { --taille-txt: 1.15rem; }
.txt-fiche[data-taille="tres-grand"] { --taille-txt: 2rem; }
.txt-fiche[data-interligne="normal"]     { --interligne: 1.6; }
.txt-fiche[data-interligne="tres-large"] { --interligne: 2.7; }
.txt-fiche[data-espacement="large"]      { --lettres: .09em; --mots: .35em; }
.txt-fiche[data-espacement="tres-large"] { --lettres: .16em; --mots: .6em; }
.txt-corps { font-size: var(--taille-txt); line-height: var(--interligne); }
.txt-fiche[data-police="opendyslexic"] .txt-corps { font-size: calc(var(--taille-txt) * .85); }
.txt-corps .syl-texte { letter-spacing: var(--lettres); word-spacing: var(--mots); }
.txt-corps .syl-w { white-space: nowrap; }          /* un mot ne se coupe pas entre 2 syllabes */
.txt-ligne { margin: 0; }
.txt-blanc { margin: 0; height: calc(var(--taille-txt) * .9); }
/* Une ligne sur deux surlignée : bandes de la hauteur d'une ligne (unité lh) */
.txt-fiche[data-alterne="on"] .txt-ligne {
  background: repeating-linear-gradient(180deg, transparent 0 1lh, #eef1fb 1lh 2lh);
}
/* Les arcs prennent un peu de place sous la ligne : ils restent dans la bande */
.txt-fiche[data-couleurs="arcs"] .syl { line-height: 1.2; }
@media screen and (max-width: 600px) {
  .txt-fiche { --taille-txt: 1.2rem; }
  .txt-fiche[data-taille="moyen"]      { --taille-txt: 1rem; }
  .txt-fiche[data-taille="tres-grand"] { --taille-txt: 1.55rem; }
}
textarea.outil-champ-texte { min-height: 14em; }
/* « Plus de réglages » repliable */
.outil-plus summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 4px 0; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--primary);
  transition: color .25s;
}
.outil-plus summary::-webkit-details-marker { display: none; }
.outil-plus summary::before {
  content: ''; width: 8px; height: 8px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s;
}
.outil-plus[open] summary::before { transform: rotate(-135deg); margin-top: 3px; }
.outil-plus summary:hover { color: var(--nav-hover); }
.outil-plus-corps { display: grid; gap: 12px; padding-top: 12px; }
.outil-carte-demo.is-phrase { font-size: 1.7rem; }

.syl-vide { margin: 0; padding: 24px 0; color: #6b6684; font-size: 1rem; }
.syl-vide[hidden] { display: none; }
.syl-fiche-pied { margin: 22px 0 0; font-family: 'Atkinson Hyperlegible', Arial, sans-serif; font-size: .75rem; color: #8b87a0; text-align: right; }
.table-wrap .regles td:last-child { white-space: normal; color: var(--text); font-style: italic; }

/* ── Apparition au défilement (classe posée par site.js) ────────────────────── */
.reveal:not(.is-visible) { opacity: 0; transform: translateY(10px); }
/* On garde ici les transitions de survol des éléments animés (cartes, bouton
   de la dernière bande), sinon cette règle les écraserait. */
.reveal { transition: opacity .25s ease-out, transform .25s ease-out, border-color .15s, background-color .25s, color .25s, box-shadow .25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .demo { transform: none; }
  .apercu-lecture .syl:first-child { background: var(--sheet-hl); color: #1c2766; }
  .hint-glow { background: var(--accent) !important; border-color: var(--accent-dk) !important; color: var(--accent-fg) !important; }
}

/* ── Impression : seule la fiche de l'outil sort sur papier ─────────────────── */
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; }
  body::before, .skip-link, .site-header, .site-footer { display: none !important; }
  .outil-page main > *:not(#outil), .outil-form, .outil-apercu-tete, .outil-actions { display: none !important; }
  .outil-page #outil { padding: 0; }
  .outil-page #outil .wrap { padding: 0; max-width: none; }
  .outil-page .outil { display: block; }
  .outil-page .outil-apercu { position: static; }
  .syl-fiche { box-shadow: none; border: 0; border-radius: 0; padding: 0; }
  .syl-fiche, .syl-fiche * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .syl-mot { break-inside: avoid; }
  .txt-ligne { orphans: 2; widows: 2; }
  .syl-l:hover { background: none; }
}
