/* Charte Hôpital Saint Camille : rouge du logo, fond clair chaleureux.
   Mobile d'abord. Aucune police ni bibliothèque à télécharger : tout est en CSS. */
:root {
  --brand: #de261a;          /* rouge du logo (blanc dessus : contraste 6,2:1) */
  --brand-600: #c41f14;
  --brand-700: #9e180f;
  --brand-50: #fff3f2;
  --brand-100: #fde3e0;

  --ink: #191717;
  --ink-2: #4a4545;
  --muted: #6f6868;
  --bg: #f7f4f3;
  --card: #ffffff;
  --line: #ebe5e3;
  --error: #b42318;
  --focus: #2563eb;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(40, 16, 12, 0.06);
  --shadow: 0 1px 2px rgba(40, 16, 12, 0.05), 0 8px 24px -6px rgba(40, 16, 12, 0.12);
  --shadow-brand: 0 10px 24px -8px rgba(222, 38, 26, 0.55);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Icônes (SVG Lucide, couleur = celle du texte) ---------- */
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.solid { fill: currentColor; stroke: none; }

/* ---------- Barre du haut ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.appbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 20px;
}
.appbar img { display: block; width: 44px; height: 44px; flex: none; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: var(--brand); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.4px; text-transform: uppercase; }
.brand-city { color: var(--muted); font-weight: 600; font-size: 0.8rem; }

main { max-width: 560px; margin: 0 auto; padding: 0 20px 24px; }

/* Apparition douce de chaque écran */
.screen { animation: enter 0.35s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

h1, h2 { letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 8px 0 20px; }
h1:focus, h2:focus { outline: none; }
.small, .hint { font-size: 0.88rem; color: var(--muted); }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin: 16px 0 0;
  padding: 28px 24px 64px;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(150deg, #ec3b2c 0%, var(--brand) 45%, var(--brand-700) 100%);
  box-shadow: var(--shadow-brand);
}
/* Croix en filigrane, rappel du logo */
.hero::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -40px;
  width: 190px;
  height: 190px;
  background: rgba(255, 255, 255, 0.1);
  clip-path: polygon(36% 0, 64% 0, 64% 36%, 100% 36%, 100% 64%, 64% 64%, 64% 100%, 36% 100%, 36% 64%, 0 64%, 0 36%, 36% 36%);
  transform: rotate(-8deg);
}
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.hero h1 { position: relative; z-index: 1; font-size: 1.75rem; line-height: 1.18; margin: 14px 0 10px; color: #fff; }
.hero .lead { position: relative; z-index: 1; margin: 0; font-size: 1.08rem; color: rgba(255, 255, 255, 0.92); }

.cards { display: grid; gap: 12px; margin-top: -40px; position: relative; z-index: 2; padding: 0 8px; }
.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 84px;
  padding: 16px 18px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s;
}
.action-card:hover { border-color: var(--brand-100); box-shadow: 0 1px 2px rgba(40,16,12,.05), 0 14px 30px -8px rgba(40,16,12,.18); }
.action-card:active { transform: scale(0.98); }
.action-text { display: flex; flex-direction: column; flex: 1; }
.action-title { font-size: 1.2rem; font-weight: 800; }
.action-sub { font-size: 0.9rem; color: var(--muted); }
.chevron { color: var(--brand); }

.badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  color: var(--brand);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.badge .icon { width: 26px; height: 26px; }
.badge.sm { width: 42px; height: 42px; border-radius: 12px; }
.badge.sm .icon { width: 22px; height: 22px; }

.trust { list-style: none; margin: 22px 0 0; padding: 0 8px; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-2); }
.trust .icon { width: 20px; height: 20px; color: var(--brand); }

/* ---------- En-tête des étapes ---------- */
.screen-top { display: flex; align-items: center; gap: 14px; padding: 16px 0 4px; }
.back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.back:active { transform: scale(0.94); }
.steps { flex: 1; display: grid; gap: 6px; }
.steps-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.steps-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.steps-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ec3b2c, var(--brand-600)); }
.step-1 { width: 50%; }
.step-2 { width: 100%; }

/* ---------- Choix en cartes ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend, .field-label { display: block; font-weight: 700; font-size: 0.95rem; color: var(--ink-2); margin: 18px 0 8px; padding: 0; }
.opt { font-weight: 500; color: var(--muted); }

.choices { display: grid; gap: 10px; }
.opt-card { display: block; cursor: pointer; }
.opt-body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 14px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease);
}
.opt-card:active .opt-body { transform: scale(0.985); }
.opt-text { display: flex; flex-direction: column; flex: 1; }
.opt-title { flex: 1; font-weight: 700; font-size: 1.05rem; }
.opt-sub { font-size: 0.86rem; color: var(--muted); }
.opt-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line);
  color: transparent;
  transition: all 0.15s;
}
.opt-check .icon { width: 16px; height: 16px; stroke-width: 3; }
/* Variante deux colonnes (plainte / suggestion) : icône au-dessus, coche dans le coin */
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.two .opt-body { position: relative; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 108px; padding: 14px; }
.choices.two .opt-check { position: absolute; top: 12px; right: 12px; }
.opt-card input:checked + .opt-body { border-color: var(--brand); background: var(--brand-50); }
.opt-card input:checked + .opt-body .opt-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt-card input:focus-visible + .opt-body { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Champs ---------- */
.field { position: relative; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.field-chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }

select, textarea, input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select, .field input { min-height: 56px; padding: 0 44px 0 46px; }
select { -webkit-appearance: none; appearance: none; cursor: pointer; }
textarea { display: block; min-height: 170px; padding: 14px 16px; resize: vertical; }
::placeholder { color: #a39b9a; }
select:focus, textarea:focus, input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(222, 38, 26, 0.14);
}
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.counter { text-align: right; font-size: 0.82rem; color: var(--muted); margin: 6px 2px 0; }
.contact-fields { animation: enter 0.3s var(--ease) both; }
.hint { margin: 14px 0 0; }

/* Erreur : trait rouge à gauche, pas de symbole. */
.error {
  color: var(--error);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 8px 0 0;
  padding: 2px 0 2px 10px;
  border-left: 3px solid var(--error);
  animation: enter 0.2s var(--ease) both;
}
.error:empty { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { color: #fff; border: 0; background: linear-gradient(180deg, #e8352a, var(--brand-600)); box-shadow: var(--shadow-brand); }
.btn-primary:disabled { opacity: 0.65; cursor: wait; box-shadow: none; }
.btn-ghost { color: var(--brand-700); background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }

/* Bouton d'action toujours visible en bas de l'écran */
.actions {
  position: sticky;
  bottom: 0;
  margin: 24px -20px 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(247, 244, 243, 0));
  pointer-events: none; /* le dégradé ne doit jamais bloquer un clic sur le contenu dessous */
}
.actions > * { pointer-events: auto; }
/* En mode vocal, le bouton d'enregistrement est l'élément principal : rien ne doit le recouvrir. */
.is-vocal .actions { position: static; background: none; padding-top: 4px; }
/* Page de confirmation : rien à valider, le bouton reste à sa place (il ne doit pas cacher « Copier »). */
#screen-done .actions { position: static; background: none; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--brand-700);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.link-btn:active { background: var(--brand-50); }
.link-btn .icon { width: 18px; height: 18px; }

/* ---------- Enregistreur vocal ---------- */
.recorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 18px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.timer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.timer small { font-size: 1rem; font-weight: 600; color: var(--muted); align-self: flex-end; padding-bottom: 8px; }
.rec-dot { display: none; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.recording .rec-dot { display: inline-block; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

/* Barres de niveau qui bougent avec la voix */
.meter { display: flex; align-items: center; justify-content: center; gap: 4px; height: 36px; margin: 8px 0 4px; }
.meter span { width: 5px; height: 100%; border-radius: 3px; background: var(--brand-100); transform: scaleY(0.12); transition: transform 0.08s linear, background 0.2s; }
.recording .meter span { background: var(--brand); }

.rec-bar { width: 100%; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.rec-bar div { height: 100%; width: 0; background: var(--brand); transition: width 0.25s linear; }

.rec-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.rec-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #ec3b2c, var(--brand-600));
  box-shadow: var(--shadow-brand);
  transition: transform 0.15s var(--ease);
}
.rec-circle .icon { width: 34px; height: 34px; }
.rec-main:active .rec-circle { transform: scale(0.94); }
.rec-main.is-stop .rec-circle { background: var(--ink); box-shadow: 0 10px 24px -8px rgba(25, 23, 23, 0.6); }
.rec-main.is-play .rec-circle { color: var(--brand); background: var(--brand-50); border: 2px solid var(--brand-100); box-shadow: none; }
.rec-main.is-play .icon { margin-left: 4px; }
.rec-label { font-size: 1rem; }

/* Ondes qui pulsent autour du bouton pendant l'enregistrement */
.recording .rec-circle::before,
.recording .rec-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: pulse 1.8s var(--ease) infinite;
}
.recording .rec-circle::after { animation-delay: 0.9s; }
@keyframes pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.6); opacity: 0; } }

#rec-done { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rec-status { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); max-width: 320px; }
.recording .rec-status { color: var(--brand-700); font-weight: 700; }

.notice {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.notice p { margin: 0; color: var(--ink-2); }
.notice .btn { min-height: 52px; }

/* ---------- Confirmation ---------- */
.done { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 32px; }
.done-check { width: 88px; height: 88px; }
.done-check circle { fill: var(--brand-50); stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.6s var(--ease) forwards; }
.done-check path { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.35s 0.45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { margin: 18px 0 6px; font-size: 1.8rem; }
.done-text { margin: 0 0 22px; color: var(--ink-2); }

/* Encadré « Et maintenant ? » */
.next {
  width: 100%;
  margin: 0 0 16px;
  padding: 16px 16px 6px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.next-title { margin: 0 0 10px; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.next ul { list-style: none; margin: 0; padding: 0; }
.next li { display: flex; align-items: center; gap: 12px; padding: 0 0 12px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.4; }
.next li .badge.sm { width: 38px; height: 38px; border-radius: 11px; }
.next li .badge.sm .icon { width: 20px; height: 20px; }

.ref-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 18px 16px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.ref-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.reference { font-size: 1.9rem; font-weight: 800; letter-spacing: 1px; color: var(--brand-700); font-variant-numeric: tabular-nums; user-select: all; }
.done .small { margin: 10px 8px 18px; }

/* Champ piège hors écran (pas display:none, que certains robots détectent). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   Animations légères (transform/opacity uniquement : fluide même sur petit téléphone)
   ===================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Accueil : apparition en cascade */
.hero > * { animation: rise 0.6s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.16s; }
.cards > * { animation: rise 0.6s var(--ease) both; }
.cards > :nth-child(1) { animation-delay: 0.22s; }
.cards > :nth-child(2) { animation-delay: 0.3s; }
.trust li { animation: rise 0.5s var(--ease) both; }
.trust li:nth-child(1) { animation-delay: 0.42s; }
.trust li:nth-child(2) { animation-delay: 0.5s; }
.trust li:nth-child(3) { animation-delay: 0.58s; }

/* Bandeau : croix qui flotte + reflet de lumière qui passe une fois */
.hero::after { animation: float 9s ease-in-out infinite alternate; }
@keyframes float {
  from { transform: rotate(-8deg) translate(0, 0); }
  to { transform: rotate(-2deg) translate(-10px, -12px); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sheen 1.6s 0.7s var(--ease) both;
  pointer-events: none;
}
@keyframes sheen { to { transform: translateX(100%); } }

/* Cartes d'action : la flèche avance au survol, la pastille micro invite à parler */
.chevron { transition: transform 0.2s var(--ease); }
.action-card:hover .chevron, .action-card:focus-visible .chevron { transform: translateX(4px); }
#btn-speak .badge { position: relative; }
#btn-speak .badge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: invite 2.8s 1.2s ease-out infinite;
}
@keyframes invite {
  0% { opacity: 0.5; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1.45); }
}

/* Étapes : en-tête, titre et champs en cascade, barre qui se remplit */
.screen-top, .screen > h2 { animation: rise 0.45s var(--ease) both; }
.screen > h2 { animation-delay: 0.05s; }
#form-details > *, #form-contact > * { animation: rise 0.45s var(--ease) both; }
#form-details > :nth-child(2), #form-contact > :nth-child(2) { animation-delay: 0.08s; }
#form-details > :nth-child(3), #form-contact > :nth-child(3) { animation-delay: 0.12s; }
#form-details > :nth-child(4), #form-contact > :nth-child(4) { animation-delay: 0.16s; }
#form-details > :nth-child(n+5), #form-contact > :nth-child(n+5) { animation-delay: 0.2s; }
.step-1 { animation: grow-1 0.8s 0.15s var(--ease) both; }
.step-2 { animation: grow-2 0.8s 0.15s var(--ease) both; }
@keyframes grow-1 { from { width: 0; } to { width: 50%; } }
@keyframes grow-2 { from { width: 50%; } to { width: 100%; } }

/* Choix : la coche rebondit, l'icône fait un petit signe */
.opt-card input:checked + .opt-body .opt-check { animation: pop 0.35s var(--ease); }
.opt-card input:checked + .opt-body .badge { animation: nod 0.45s var(--ease); }
@keyframes pop { 0% { transform: scale(0.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg); } 65% { transform: rotate(6deg); } }

/* Erreur : petite secousse pour attirer l'œil */
.error { animation: shake 0.4s var(--ease) both; }
@keyframes shake {
  0% { opacity: 0; transform: translateX(0); }
  25% { opacity: 1; transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  100% { opacity: 1; transform: none; }
}

/* Bouton micro au repos : il « respire » pour inviter à appuyer */
#rec-start .rec-circle { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: var(--shadow-brand), 0 0 0 0 rgba(222, 38, 26, 0.25); }
  50% { box-shadow: var(--shadow-brand), 0 0 0 12px rgba(222, 38, 26, 0); }
}

/* Remerciement : halo autour de la coche, puis le contenu apparaît */
.done-badge { position: relative; display: grid; place-items: center; isolation: isolate; }
.done-badge::before,
.done-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-100);
  animation: halo 1.4s 0.5s var(--ease) both;
  z-index: -1;
}
.done-badge::after { animation-delay: 0.75s; }
@keyframes halo { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(2); opacity: 0; } }
.done-check { animation: pop 0.5s var(--ease) both; }
.done > h2, .done-text { animation: rise 0.5s 0.35s var(--ease) both; }
.ref-card { animation: rise 0.55s 0.5s var(--ease) both; }
.reference { display: inline-block; animation: pop 0.5s 0.75s var(--ease) both; }
.done .small { animation: rise 0.5s 0.6s var(--ease) both; }
.next { animation: rise 0.55s 0.7s var(--ease) both; }
.next li { animation: rise 0.45s var(--ease) both; }
.next li:nth-child(1) { animation-delay: 0.85s; }
.next li:nth-child(2) { animation-delay: 0.95s; }
.next li:nth-child(3) { animation-delay: 1.05s; }
#screen-done .actions { animation: rise 0.5s 1.1s var(--ease) both; }

/* Respect du réglage « réduire les animations » du téléphone */
@media (prefers-reduced-motion: reduce) {
  /* Durée ET délai à zéro : sinon les éléments restent invisibles pendant leur délai de départ. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero::before { display: none; } /* reflet lumineux inutile */
}

@media (min-width: 600px) {
  .hero { padding: 36px 32px 72px; }
  .hero h1 { font-size: 2rem; }
}
