/* ══════════════════════════════════════════════════════════════════
   Dis-le à ta façon · feuille de style du cœur (client)
   Doctrine : prévisibilité, épure sensorielle, grandes cibles tactiles,
   calme. Respecte prefers-reduced-motion. Thème clair.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --dl-accent: #2E6FB7;         /* bleu Vucko */
  --dl-accent-soft: #E8F0FA;
  --dl-ink: #1c2733;
  --dl-muted: #5b6b7a;
  --dl-line: #d7e0ea;
  --dl-bg: #FAFAF7;
  --dl-card: #ffffff;
  --dl-ok: #2f8f5b;
  --dl-star: #f0a400;
  --dl-radius: 22px;
  --dl-tap: 15px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--dl-bg);
  color: var(--dl-ink);
  /* Typographie écosystème MCW : Inter pour le texte courant. */
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* Titres : Cormorant Garamond (serif éditorial), un mot d'accent en italique. */
.dl-serif, .dl-app h1, .dl-app h2, .dl-porte__t, .dl-hero__t {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: .01em;
}
/* Eyebrow : DM Mono, discret, en capitales espacées. */
.dl-eyebrow {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dl-muted); margin: 0 0 10px;
}

.dl-app {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  min-height: 100dvh;
}

/* ── En-tête ─────────────────────────────────────────────── */
.dl-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.dl-top h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; font-weight: 600; margin: 0; color: var(--dl-ink);
}
.dl-top h1 em { color: var(--dl-accent); font-style: italic; }

/* ── Hero éditorial (accueil adulte) — doctrine dashboard MCW ───── */
.dl-hero { margin: 4px 0 18px; }
.dl-hero__t {
  /* Compact sur mobile : les portes doivent rester visibles sans scroller. */
  font-size: clamp(1.6rem, 6vw, 3.2rem); line-height: 1.08;
  margin: 0 0 10px; color: var(--dl-ink);
}
.dl-hero__t em { color: var(--dl-accent); font-style: italic; }
.dl-hero__lead {
  font-size: 1.02rem; line-height: 1.6; color: var(--dl-muted);
  max-width: 46ch; margin: 0;
}
.dl-hero__lead .dl-say { margin-left: 4px; }

/* Signature de fin (essence + mention END) */
.dl-signature {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--dl-line);
}
.dl-signature__q {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 1.22rem; line-height: 1.5;
  color: var(--dl-ink); margin: 0 0 12px; max-width: 44ch;
}
.dl-legal { color: var(--dl-muted); font-size: .8rem; line-height: 1.5; margin: 0; }

/* ── Boutons ─────────────────────────────────────────────── */
.dl-btn {
  font: inherit; cursor: pointer; border: 1px solid var(--dl-line);
  background: var(--dl-card); color: var(--dl-ink);
  border-radius: var(--dl-radius); padding: var(--dl-tap) 20px;
  min-height: 54px; font-weight: 600;
  transition: filter .15s ease, background .15s ease;
}
.dl-btn:hover { background: var(--dl-accent-soft); }
.dl-btn--primary { background: var(--dl-accent); color: #fff; border-color: var(--dl-accent); }
.dl-btn--primary:hover { filter: brightness(.95); background: var(--dl-accent); }
.dl-btn--ghost { background: transparent; }
.dl-btn--icon { min-height: 48px; padding: 10px 14px; border-radius: 14px; }
.dl-btn[disabled] { opacity: .5; cursor: default; }
/* Un <a> est « inline » par défaut : sans ça, un lien-bouton ignore ses
   marges verticales et chevauche ce qui le précède (constaté le 2026-08-16
   sur la carte de progression de la formation). Portée volontairement
   limitée aux liens : les <button> gardent leur comportement d'origine. */
a.dl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}

/* petit bouton « lire à voix haute » attaché à un texte */
.dl-say {
  border: none; background: var(--dl-accent-soft); color: var(--dl-accent);
  border-radius: 999px; width: 38px; height: 38px; cursor: pointer;
  font-size: 1.05rem; vertical-align: middle; flex: 0 0 auto;
}
.dl-say:hover { filter: brightness(.96); }

/* ── Grille de jeu (les cartes de l'enfant) ──────────────── */
.dl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.dl-card {
  background: var(--dl-card); border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius); padding: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; text-align: center;
}
.dl-card:hover { border-color: var(--dl-accent); }
.dl-card__img {
  width: 100%; aspect-ratio: 1/1; display: grid; place-items: center;
  background: #fff; border-radius: 14px; overflow: hidden;
}
.dl-card__img img, .dl-card__img svg { width: 86%; height: 86%; object-fit: contain; }
.dl-card { position: relative; }
.dl-voicetag {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  background: #eef2f6; color: #8b9aa8; border: 1px solid var(--dl-line);
}
.dl-voicetag.is-on { background: #E1EFDF; color: #2f8f5b; border-color: #BBD9B7; }

.dl-card__word {
  font-size: 1.1rem; font-weight: 700; color: var(--dl-ink);
  display: flex; align-items: center; gap: 6px;
}

/* Sur quel imagier travaille-t-on ? */
.dl-actif {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--dl-accent-soft); border-radius: 12px;
  padding: 9px 10px 9px 14px; margin: 0 0 12px; font-size: .92rem; color: #24425f;
}
.dl-actif strong { font-weight: 700; }
.dl-topact { display: flex; gap: 8px; align-items: center; }

/* Saisie du mot de passe parent — masquée, au-dessus de tout */
.dl-fond {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20, 32, 45, .45);
  display: grid; place-items: center; padding: 20px;
}
.dl-modale {
  background: var(--dl-card); color: var(--dl-ink);
  border-radius: 20px; padding: 22px; width: min(92vw, 380px);
  box-shadow: 0 18px 50px rgba(20, 40, 70, .25);
  font-family: 'Inter', system-ui, sans-serif;
}
.dl-modale h3 { font-size: 1.3rem; }
.dl-modale .dl-input { font-size: 1.05rem; }

/* Porte parent sur le compte de l'enfant : présente, mais pas attirante */
.dl-porte-parent { display: flex; justify-content: center; margin-top: 26px; }
.dl-porte-parent__b {
  font: inherit; font-size: .78rem; letter-spacing: .04em;
  color: #9fb0c0; background: none; border: none; cursor: pointer;
  padding: 10px 14px; opacity: .55;
}
.dl-porte-parent__b:hover { opacity: 1; color: var(--dl-accent); }

/* Aperçu « comme l'enfant » — bandeau réservé à l'adulte */
.dl-apercu {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #FFF8E7; border: 1px solid #F0DFB4; color: #4a3c1e;
  border-radius: 14px; padding: 8px 8px 8px 14px; margin-bottom: 12px;
  font-size: .9rem;
}
.dl-apercu .dl-btn { background: #fff; }

/* Rappel du prénom dans la barre du haut */
.dl-qui {
  background: var(--dl-accent-soft); color: var(--dl-accent);
  border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600;
}

/* ── Accueil adulte : les deux portes (Formation / Outil) ── */
.dl-portes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-top: 14px;
}
.dl-card--porte {
  align-items: flex-start; text-align: left; padding: 15px 16px; gap: 4px;
}
.dl-portes { gap: 10px; margin-top: 12px; }
.dl-card--porte.is-primary { border-color: var(--dl-accent); background: var(--dl-accent-soft); }
.dl-porte__ic { font-size: 1.9rem; line-height: 1; }
.dl-porte__t  { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 600; }
.dl-porte__d  { color: var(--dl-muted); font-size: .92rem; line-height: 1.45; }

/* ── Vue « focus » : une image + le micro ─────────────────── */
.dl-focus { text-align: center; padding-top: 8px; }
.dl-focus__stage {
  margin: 6px auto 18px; width: min(78vw, 420px); aspect-ratio: 1/1;
  background: #fff; border: 2px solid var(--dl-line); border-radius: 28px;
  display: grid; place-items: center; overflow: hidden;
}
.dl-focus__stage img, .dl-focus__stage svg { width: 82%; height: 82%; object-fit: contain; }
.dl-focus__word { font-size: 1.5rem; font-weight: 800; margin: 4px 0 14px; }
.dl-focus.is-win .dl-focus__stage {
  border-color: var(--dl-ok);
  animation: dl-burst .6s ease;
}
.dl-stars { font-size: 1.8rem; letter-spacing: 4px; min-height: 2rem; }
.dl-hint { color: var(--dl-muted); margin: 8px 0 0; }

/* ── L'objet s'éteint (mode « fais-le revenir ») ─────────────
   Jamais une disparition brutale : il reste une trace très pâle, pour ne pas
   inquiéter et pour soutenir la mémoire. C'est la voix qui le rallume. */
.dl-focus__stage.is-off > * { opacity: .06; transition: opacity .8s ease; }
.dl-focus__stage > * { transition: opacity .45s ease; }
.dl-focus__stage.is-off { border-style: dashed; }
/* « Presque » : il revient à moitié — l'effort a un effet visible */
.dl-focus__stage.is-half > * { opacity: .45; }

/* ── L'objet APPARAÎT (mode « dis un mot ») ──────────────────
   Le moment de récompense : il surgit et se pose. */
.dl-focus__stage.is-appearing > * { animation: dl-appear .65s cubic-bezier(.2,.9,.3,1.1) forwards; }
@keyframes dl-appear {
  from { opacity: 0; transform: scale(.6); }
  60%  { opacity: 1; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
.dl-focus__word--vide { color: var(--dl-muted); font-weight: 600; }
.dl-mic.is-waiting { box-shadow: 0 0 0 0 rgba(46,111,183,.55); animation: dl-callme 1.6s ease-out infinite; }
@keyframes dl-callme {
  0%   { box-shadow: 0 0 0 0 rgba(46,111,183,.5); }
  100% { box-shadow: 0 0 0 22px rgba(46,111,183,0); }
}

/* Jauge de niveau sonore — preuve que le micro capte */
.dl-level {
  width: min(70vw, 260px); height: 10px; margin: 10px auto 0;
  background: var(--dl-line); border-radius: 999px; overflow: hidden;
  opacity: .35; transition: opacity .2s ease;
}
.dl-level.is-on { opacity: 1; }
.dl-level__bar {
  display: block; height: 100%; width: 0%;
  background: var(--dl-accent); border-radius: 999px;
  transition: width .08s linear;
}

/* Bloc « apprendre sa voix » — visible sur la carte, pas caché en réglages */
.dl-teach {
  margin: 20px auto 0; max-width: 420px; text-align: left;
  background: var(--dl-card); border: 1px solid var(--dl-line);
  border-radius: 18px; padding: 14px 16px;
}
.dl-teach__t { margin: 0 0 4px; font-weight: 700; }
.dl-teach__d { margin: 0 0 12px; color: var(--dl-muted); font-size: .9rem; line-height: 1.45; }
.dl-teach .dl-btn { width: 100%; }

/* « Presque » : l'image frémit, sans jamais marquer l'échec en rouge */
.dl-focus__stage.is-near { animation: dl-near .55s ease; }
@keyframes dl-near {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* gros bouton micro */
.dl-mic {
  width: 108px; height: 108px; border-radius: 50%;
  border: none; background: var(--dl-accent); color: #fff;
  font-size: 2.6rem; cursor: pointer; margin: 6px auto;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(46,111,183,.30);
}
.dl-mic.is-listening { animation: dl-pulse 1.2s ease-in-out infinite; background: #d1495b; }

/* ── Espace parent ────────────────────────────────────────── */
.dl-parent h2 { font-family: Georgia, serif; font-weight: 600; }
.dl-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--dl-card); border: 1px solid var(--dl-line);
  border-radius: 16px; padding: 10px 12px; margin-bottom: 10px;
}
.dl-row__thumb { width: 54px; height: 54px; border-radius: 10px; background:#fff; display:grid; place-items:center; overflow:hidden; flex:0 0 auto; border:1px solid var(--dl-line);}
.dl-row__thumb img, .dl-row__thumb svg { width: 84%; height: 84%; object-fit: contain; }
.dl-row__word { font-weight: 700; flex: 1 1 auto; }
.dl-row__meta { color: var(--dl-muted); font-size: .85rem; }

/* ── Portes de sortie dans la formation (douces, jamais une pub) ── */
.dl-door {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--dl-line); border-left: 3px solid var(--dl-line);
  border-radius: 12px; padding: 12px 14px; background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.dl-door:hover { border-color: var(--dl-accent); background: var(--dl-accent-soft); }
.dl-door.is-paid { border-left-color: var(--dl-accent); }
.dl-door__k {
  display: block; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--dl-muted); margin-bottom: 3px;
}
.dl-door strong { display: block; font-size: 1rem; }
.dl-door__n { display: block; color: var(--dl-muted); font-size: .88rem; line-height: 1.45; margin-top: 2px; }
.dl-door__go { display: inline-block; margin-top: 7px; color: var(--dl-accent); font-weight: 600; font-size: .88rem; }

/* Action principale de l'espace parent : évidente, pleine largeur */
.dl-btn--large {
  width: 100%; font-size: 1.05rem; padding: 16px; min-height: 58px;
}

/* Sections repliées : on ne montre que ce qu'on vient chercher */
.dl-bloc {
  border-top: 1px solid var(--dl-line); margin-top: 6px; padding: 2px 0;
}
.dl-bloc > summary {
  cursor: pointer; padding: 14px 2px; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.dl-bloc > summary::-webkit-details-marker { display: none; }
.dl-bloc > summary::after { content: '▾'; color: var(--dl-muted); font-size: .9rem; }
.dl-bloc[open] > summary::after { content: '▴'; }
.dl-bloc > summary:hover { color: var(--dl-accent); }

/* Résultat du test de reconnaissance */
.dl-diag { margin-top: 10px; font-size: .95rem; line-height: 1.5; }
.dl-diag.is-ok { color: #2f8f5b; }
.dl-diag.is-ko { color: #a4632a; }

.dl-note {
  background: var(--dl-accent-soft); border-radius: 16px; padding: 14px 16px;
  color: #24425f; line-height: 1.5; margin: 16px 0;
}
.dl-note strong { color: var(--dl-accent); }

/* Confirmation d'export : ton rassurant */
.dl-note--ok { background: #E8F5EE; color: #1e4634; }
.dl-note--ok strong { color: #1e4634; }

/* Rappel de sauvegarde — invitation, jamais une alarme */
.dl-remind {
  background: #FFF8E7; border: 1px solid #F0DFB4; border-radius: 16px;
  padding: 14px 16px; margin: 16px 0; color: #4a3c1e; line-height: 1.5;
}
.dl-remind .dl-btn--primary { background: #8E7548; border-color: #8E7548; }

/* Marche à suivre numérotée (donner un accès à son enfant) */
.dl-steps { margin: 10px 0 16px; padding-left: 20px; }
.dl-steps li { margin-bottom: 9px; line-height: 1.5; color: var(--dl-ink); }

.dl-field { margin: 14px 0; }
.dl-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.dl-input {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--dl-line); background: #fff;
}
.dl-slider { width: 100%; }

.dl-bank {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px,1fr));
  gap: 10px; margin-top: 8px;
}
.dl-bank__item { border:1px solid var(--dl-line); border-radius:12px; background:#fff; aspect-ratio:1/1; display:grid; place-items:center; cursor:pointer; overflow:hidden;}
.dl-bank__item svg, .dl-bank__item img { width:80%; height:80%; }
.dl-bank__item.is-sel { border-color: var(--dl-accent); box-shadow: 0 0 0 2px var(--dl-accent-soft) inset; }

.dl-samples { display:flex; gap:8px; margin-top:8px; }
.dl-sample-dot { width:16px; height:16px; border-radius:50%; border:2px solid var(--dl-line); }
.dl-sample-dot.is-on { background: var(--dl-ok); border-color: var(--dl-ok); }

.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dl-muted { color: var(--dl-muted); }
.dl-center { text-align: center; }
.dl-hidden { display: none !important; }

/* ── Arrivée sur l'accueil : montée douce, en cascade ─────
   Le contenu est rendu en JS après le boot de mcw-reveal.js : on anime
   donc localement. Progressive enhancement : sans CSS/JS, tout est visible. */
/* ⚠️ Pas de fill-mode « both » ni « backwards » : ils appliquent l'état INITIAL
   (opacity 0) avant le démarrage. Dans un onglet inactif, les animations sont
   suspendues → le contenu resterait invisible pour toujours. Sans fill-mode
   amont, l'élément est visible par défaut et l'animation n'est qu'un bonus. */
.dl-hero, .dl-actif, .dl-portes, .dl-actions, .dl-signature {
  animation: dl-rise .5s cubic-bezier(.2,.7,.3,1) forwards;
}
.dl-actif     { animation-delay: .04s; }
.dl-portes    { animation-delay: .07s; }
.dl-actions   { animation-delay: .1s; }
.dl-signature { animation-delay: .14s; }
/* On n'anime QUE le mouvement : jamais l'opacité. Une animation gelée (onglet
   inactif, moteur ralenti) ne doit jamais pouvoir rendre le contenu invisible. */
@keyframes dl-rise { from { transform: translateY(10px); } to { transform: none; } }

/* ══════════════════════════════════════════════════════════
   LA SCÈNE — l'écran de l'enfant : il parle, l'objet apparaît.
   Un seul geste possible. Rien à lire, rien à choisir.
   ══════════════════════════════════════════════════════════ */
.dl-scene {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 74vh; text-align: center;
}
.dl-scene__stage {
  width: min(78vw, 460px); aspect-ratio: 1/1;
  display: grid; place-items: center; background: #fff;
  border: 3px dashed var(--dl-line); border-radius: 34px; overflow: hidden;
}
.dl-scene.is-win .dl-scene__stage { border-style: solid; border-color: var(--dl-ok); }
/* Éteinte : encore reconnaissable — c'est ce qu'il doit faire revenir. */
.dl-scene__stage > * { transition: opacity .5s ease; }
.dl-scene__stage.is-off > * { opacity: .2; }

/* Les propositions : ce qu'on peut lui montrer s'il ne sait pas quoi demander */
.dl-propos {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.dl-propos__i {
  flex: 0 0 auto; width: 92px; height: 92px; padding: 6px; cursor: pointer;
  background: #fff; border: 2px solid var(--dl-line); border-radius: 20px;
  display: grid; place-items: center; scroll-snap-align: start;
}
.dl-propos__i:hover, .dl-propos__i:active { border-color: var(--dl-accent); }
.dl-propos__i img, .dl-propos__i svg { width: 100%; height: 100%; object-fit: contain; }
.dl-body--enfant .dl-propos__i { width: 110px; height: 110px; border-radius: 24px; }
.dl-scene__stage img, .dl-scene__stage svg { width: 86%; height: 86%; object-fit: contain; }
.dl-scene__word {
  font-size: clamp(1.6rem, 7vw, 2.6rem); font-weight: 800; min-height: 1.2em;
  color: var(--dl-ink);
}
.dl-mic--geant {
  width: min(42vw, 168px); height: min(42vw, 168px);
  font-size: clamp(3rem, 12vw, 4.4rem);
}
/* « Je n'ai pas compris » : le micro fait non, doucement. Jamais de rouge. */
.dl-mic.is-again { animation: dl-again .6s ease; }
@keyframes dl-again {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
/* Micro indisponible (autorisation refusée, ou micro occupé par une autre app).
   Il faut que ça se VOIE sans un mot à lire : le micro s'éteint et se barre,
   sinon l'enfant touche dans le vide et le parent croit l'app cassée. */
.dl-mic.is-ko { background: var(--dl-muted); position: relative; }
.dl-mic.is-ko::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 50%;
  height: 4px; border-radius: 2px; background: #fff;
  transform: translateY(-50%) rotate(-38deg);
}
/* Écran d'attente (aucun mot appris encore) */
.dl-vide {
  min-height: 70vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; color: var(--dl-muted); text-align: center;
}
.dl-vide__ic { font-size: 4rem; opacity: .35; }

/* ══════════════════════════════════════════════════════════
   ESPACE ENFANT — conçu pour un enfant non verbal
   Règles : aucune lecture nécessaire, une seule chose à l'écran,
   cibles énormes, rien de décoratif. Tout le reste disparaît.
   ══════════════════════════════════════════════════════════ */
.dl-body--enfant .dl-app { padding: 10px 12px 24px; max-width: 900px; }

/* Ni titre d'app, ni consigne écrite, ni prénom : il ne lit pas. */
.dl-body--enfant .dl-top { display: none; }
.dl-body--enfant .dl-hint { display: none; }
.dl-body--enfant .dl-level { display: none; }

/* La grille : deux grandes images, rien d'autre. */
.dl-body--enfant .dl-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.dl-body--enfant .dl-card { padding: 10px; border-width: 2px; border-radius: 26px; }
.dl-body--enfant .dl-card__word { font-size: 1.5rem; font-weight: 800; }
.dl-body--enfant .dl-voicetag { display: none; }

/* Une image ouverte : elle occupe l'écran. */
.dl-body--enfant .dl-focus__stage {
  width: min(86vw, 520px);
  border-width: 3px; border-radius: 32px;
}
.dl-body--enfant .dl-focus__word { font-size: 2.1rem; font-weight: 800; }
/* Éteinte : bien plus visible qu'un cadre vide — il doit reconnaître
   ce qu'il va faire revenir. */
.dl-body--enfant .dl-focus__stage.is-off > * { opacity: .2; }

/* Le micro : la seule action possible, donc énorme. */
.dl-body--enfant .dl-mic {
  width: 150px; height: 150px; font-size: 3.6rem; margin-top: 14px;
}
.dl-body--enfant .dl-stars { font-size: 2.6rem; }

/* Retour : une grande cible ronde, sans mot. */
.dl-body--enfant .dl-retour {
  width: 68px; height: 68px; border-radius: 50%; font-size: 1.9rem;
  display: grid; place-items: center; padding: 0; min-height: 0;
  border: 2px solid var(--dl-line); background: #fff; cursor: pointer;
}
.dl-body--enfant .dl-retour:hover { background: var(--dl-accent-soft); }

/* ── Animations (sens, pas décoration) ───────────────────── */
@keyframes dl-pulse { 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.08);} }
@keyframes dl-burst { 0%{ transform:scale(.9);} 55%{ transform:scale(1.05);} 100%{ transform:scale(1);} }

@media (prefers-reduced-motion: reduce) {
  .dl-mic.is-listening { animation: none; outline: 3px solid #fff; }
  .dl-focus.is-win .dl-focus__stage { animation: none; }
  .dl-focus__stage.is-near { animation: none; outline: 3px solid var(--dl-accent); }
  .dl-focus__stage.is-appearing > * { animation: none; }
  .dl-mic.is-waiting { animation: none; outline: 3px solid var(--dl-accent-soft); }
  .dl-hero, .dl-actif, .dl-portes, .dl-actions, .dl-signature { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ══════════════════════════════════════════════════════════════════
   Bandeau bêta + retour à Célia (ADULTES SEULEMENT)
   L'app est ouverte à des familles qui la testent : elles doivent le
   savoir, et pouvoir répondre en deux gestes. Rien de tout ceci
   n'apparaît sur l'écran de l'enfant.
   ══════════════════════════════════════════════════════════════════ */
.dl-beta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 780px; margin: 16px auto 0; padding: 12px 16px;
  background: #FBF3E2; border: 1px solid #e6d3a8; border-radius: 16px;
}
.dl-beta__tag {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #8a5f12; background: #f3e2bd; border-radius: 999px; padding: 4px 10px;
}
.dl-beta__t { flex: 1 1 240px; margin: 0; font-size: .93rem; color: #5b4a20; line-height: 1.45; }
.dl-beta__b {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  background: #fff; color: #8a5f12; border: 1px solid #dcc48c;
  border-radius: 999px; padding: 9px 16px; min-height: 40px;
}
.dl-beta__b:hover { background: #f7ecd4; }
.dl-body--enfant .dl-beta,
.dl-body--enfant .dl-beta-fond { display: none !important; }

.dl-beta-fond {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 30, 45, .5);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.dl-beta-fond[hidden] { display: none; }
.dl-beta-modale {
  background: var(--dl-card); border-radius: var(--dl-radius);
  padding: 24px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
}
.dl-beta-modale h2 { margin: 0 0 8px; font-size: 1.5rem; }
.dl-beta-modale__d { margin: 0 0 18px; color: var(--dl-muted); font-size: .95rem; line-height: 1.55; }
.dl-beta-choix { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.dl-beta-choix label { display: flex; align-items: center; gap: 7px; font-size: .95rem; cursor: pointer; }
.dl-beta-label {
  display: block; margin: 14px 0 5px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dl-muted);
}
.dl-beta-opt { text-transform: none; letter-spacing: 0; }
.dl-beta-texte { resize: vertical; min-height: 96px; }
.dl-beta-astuce {
  margin: 16px 0 0; padding: 12px 14px;
  background: var(--dl-bg); border: 1px solid var(--dl-line); border-radius: 12px;
  font-size: .87rem; line-height: 1.55; color: var(--dl-muted);
}
.dl-beta-astuce a { color: var(--dl-accent); }
.dl-beta-msg { margin: 12px 0 0; font-size: .89rem; color: var(--dl-muted); min-height: 1.2em; }
.dl-beta-msg.is-ko { color: #b4553a; }
.dl-beta-ok {
  margin: 0 0 8px; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem; color: var(--dl-ok);
}
.dl-beta-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* Champ « capture d'écran » du retour bêta */
.dl-beta-aide { margin: 0 0 8px; font-size: .86rem; line-height: 1.5; color: var(--dl-muted); }
.dl-beta-fichier {
  display: block; width: 100%;
  font: inherit; font-size: .9rem;
  padding: 10px; border: 1px dashed var(--dl-line); border-radius: 12px;
  background: var(--dl-bg); cursor: pointer;
}
.dl-beta-fichier::file-selector-button {
  font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  margin-right: 10px; padding: 8px 14px;
  border: 1px solid var(--dl-line); border-radius: 999px;
  background: #fff; color: var(--dl-accent);
}
.dl-beta-fichiers { margin: 8px 0 0; font-size: .84rem; line-height: 1.45; color: var(--dl-muted); }
.dl-beta-fichiers.is-ok { color: var(--dl-ok); }
.dl-beta-fichiers.is-ko { color: #b4553a; }
