/* ============================================================
   DÉCLIC — « formulaire officiel apaisé »
   Encre navy · indigo de tampon · vert de validation.
   Identité conservée : le récépissé et la case de formulaire.
   Tokens sémantiques + mode clair/sombre.
   ============================================================ */

:root {
  color-scheme: light dark;

  /* — surfaces — */
  --paper: #E7ECF2;
  --surface: #FBFCFE;
  --surface-2: #EEF2F7;

  /* — encre / texte — */
  --ink: #16233F;
  --ink-70: rgba(22, 35, 63, 0.70);
  --ink-55: rgba(22, 35, 63, 0.55);
  --ink-30: rgba(22, 35, 63, 0.30);
  --ink-12: rgba(22, 35, 63, 0.12);
  --line: rgba(22, 35, 63, 0.14);
  --rule: rgba(22, 35, 63, 0.05);

  /* — accents sémantiques — */
  --accent: #2E39A8;
  --accent-strong: #232C86;
  --accent-soft: rgba(46, 57, 168, 0.10);
  --valid: #157A56;
  --valid-soft: rgba(21, 122, 86, 0.12);
  --warn: #9A5A12;
  --warn-soft: rgba(154, 90, 18, 0.12);

  /* — composants — */
  --chip-bg: #16233F;
  --chip-fg: #F3F6FB;
  --btn-fg: #FBFCFE;
  --ring: #2E39A8;

  --shadow-card: 0 1px 2px rgba(22, 35, 63, 0.05), 0 6px 18px -12px rgba(22, 35, 63, 0.35);

  /* — familles — */
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* — rythme (8px) — */
  --r1: 4px; --r2: 8px; --r3: 12px; --r4: 16px; --r5: 24px; --r6: 32px; --r7: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1424;
    --surface: #141C33;
    --surface-2: #1B2542;
    --ink: #E7ECF6;
    --ink-70: rgba(231, 236, 246, 0.72);
    --ink-55: rgba(231, 236, 246, 0.55);
    --ink-30: rgba(231, 236, 246, 0.32);
    --ink-12: rgba(231, 236, 246, 0.14);
    --line: rgba(231, 236, 246, 0.16);
    --rule: rgba(255, 255, 255, 0.045);
    --accent: #93A0FF;
    --accent-strong: #B3BCFF;
    --accent-soft: rgba(147, 160, 255, 0.16);
    --valid: #54CBA0;
    --valid-soft: rgba(84, 203, 160, 0.16);
    --warn: #E0A24B;
    --warn-soft: rgba(224, 162, 75, 0.16);
    --chip-bg: #2C3760;
    --chip-fg: #EAEEFA;
    --btn-fg: #0D1424;
    --ring: #93A0FF;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -14px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
  /* trame de lignes façon papier réglé */
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 31px, var(--rule) 31px, var(--rule) 32px
  );
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); }

/* ---------- Coquille ---------- */
.coquille { max-width: 680px; margin: 0 auto; padding: var(--r5) var(--r4) 104px; }

header.entete {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--r3);
  padding: var(--r2) 0 var(--r4);
  border-bottom: 2px solid var(--ink);
  margin-bottom: var(--r5);
}
/* double filet façon en-tête officiel */
header.entete::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: var(--accent);
}
.logo {
  font-family: var(--display); font-weight: 700; font-size: 1.7rem;
  letter-spacing: -0.02em; line-height: 1;
}
.logo .point { color: var(--accent); }
.entete-droite { display: flex; align-items: center; gap: var(--r3); }
.entete .devise {
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-70);
  text-transform: uppercase; letter-spacing: 0.1em; text-align: right;
}
.btn-langue {
  flex: none; cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.04em; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 9px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.btn-langue:hover { border-color: var(--accent); color: var(--accent); }
.btn-langue:active { transform: scale(0.95); }
.btn-langue:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

@media (max-width: 420px) {
  .entete .devise { display: none; }
}

/* ---------- Navigation onglets ---------- */
nav.onglets {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--line);
  display: flex; justify-content: center; gap: var(--r1);
  padding: var(--r2) var(--r2) calc(var(--r2) + env(safe-area-inset-bottom));
}
nav.onglets a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 84px; min-height: 48px; padding: 6px 10px;
  font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-55); text-decoration: none; border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}
nav.onglets a svg { width: 22px; height: 22px; stroke: currentColor; }
nav.onglets a:hover { color: var(--ink); }
nav.onglets a.actif { color: var(--accent); background: var(--accent-soft); }
nav.onglets a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Icônes ---------- */
.ico { display: inline-flex; }
.ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* ---------- Drapeaux (SVG inline) ---------- */
.drapeau { display: inline-flex; flex: none; line-height: 0; }
.drapeau svg {
  width: 21px; height: 14px; border-radius: 2.5px;
  box-shadow: 0 0 0 1px var(--ink-12), 0 1px 2px rgba(22, 35, 63, 0.12);
}
.categorie-titre .drapeau svg { width: 18px; height: 12px; }

/* ---------- Accueil / catalogue ---------- */
.accroche {
  font-size: 0.94rem; color: var(--ink-70); line-height: 1.6;
  margin: 0 0 var(--r4); max-width: 56ch;
}

.recherche {
  width: 100%; padding: 13px var(--r4); margin-bottom: var(--r5);
  font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.recherche::placeholder { color: var(--ink-55); }
.recherche:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.categorie-titre {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-70);
  margin: var(--r5) 0 var(--r3); display: flex; align-items: center; gap: var(--r2);
}
.categorie-titre .ico { color: var(--accent); }
.categorie-titre::after { content: ''; flex: 1; border-top: 1px dashed var(--ink-30); }

.carte-demarche {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px; padding: var(--r3) var(--r4); margin-bottom: var(--r2);
  font: inherit; color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.carte-demarche:hover {
  transform: translateY(-2px); border-left-color: var(--accent-strong);
  box-shadow: 0 2px 4px rgba(22, 35, 63, 0.06), 0 14px 30px -14px rgba(22, 35, 63, 0.45);
}
.carte-demarche:active { transform: translateY(0) scale(0.995); }
.carte-demarche:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.carte-demarche .titre { font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; }
.carte-demarche .sous { font-size: 0.88rem; color: var(--ink-70); margin-top: 3px; }
.carte-demarche .site { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); margin-top: var(--r2); }

/* ---------- Questionnaire ---------- */
.fil { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-55); letter-spacing: 0.04em; margin-bottom: var(--r1); }
.q-site a { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; padding-bottom: 1px; }
.q-site a:hover { color: var(--accent-strong); }
.q-site a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 3px; }
.cta-site { margin-top: var(--r4); text-align: center; }
h1.q-titre { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.02em; margin: var(--r1) 0; }
.q-site { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-bottom: var(--r5); }

.progression { height: 5px; background: var(--ink-12); border-radius: 99px; margin: 0 0 var(--r5); overflow: hidden; }
.progression > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1); }

.question-label { font-size: 1.12rem; font-weight: 600; line-height: 1.4; margin-bottom: var(--r1); }
.question-aide { font-size: 0.86rem; color: var(--ink-70); margin-bottom: var(--r4); }

.option {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px var(--r4); margin-bottom: var(--r2); font: inherit; font-size: 1rem; color: inherit;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease;
}
.option:hover { border-color: var(--accent); background: var(--accent-soft); }
.option:active { transform: scale(0.99); }
.option:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.option.choisie { border-color: var(--accent); background: var(--accent); color: var(--btn-fg); }

/* ---------- « Où trouver ce montant ? » ---------- */
.ou-trouver {
  margin: 0 0 var(--r4); border: 1.5px dashed var(--ink-30); border-radius: 10px;
  background: var(--surface-2); overflow: hidden;
}
.ou-trouver summary {
  display: flex; align-items: center; gap: var(--r2); cursor: pointer;
  padding: 10px var(--r3); font-size: 0.86rem; font-weight: 600; color: var(--accent);
  list-style: none; user-select: none;
}
.ou-trouver summary::-webkit-details-marker { display: none; }
.ou-trouver summary:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; border-radius: 10px; }
.ou-trouver .ou-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--accent); font-family: var(--mono); font-size: 0.66rem;
}
.ou-trouver[open] summary { border-bottom: 1px dashed var(--ink-30); }
.ou-trouver .ou-doc {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--ink-70);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: var(--r3) var(--r3) 0; line-height: 1.5;
}
.ou-trouver ol { padding: var(--r2) var(--r3) var(--r3) calc(var(--r3) + 18px); }
.ou-trouver li { font-size: 0.85rem; color: var(--ink-70); line-height: 1.55; margin-top: var(--r1); }
.ou-trouver li::marker { font-family: var(--mono); font-weight: 600; color: var(--accent); }

.champ-montant { display: flex; gap: var(--r2); }
.champ-montant input {
  flex: 1; padding: 13px var(--r4); font: inherit; font-size: 1.05rem; font-family: var(--mono);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.champ-montant input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--r2);
  cursor: pointer; font: inherit; font-weight: 600; font-size: 1rem;
  padding: 12px var(--r5); border-radius: 10px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--btn-fg); text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn.secondaire { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondaire:hover { background: var(--surface-2); border-color: var(--ink-30); }
.btn.tampon { background: var(--chip-bg); color: var(--chip-fg); border-color: var(--chip-bg); }
.btn.tampon:hover { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.barre-actions { display: flex; justify-content: space-between; gap: var(--r3); margin-top: var(--r5); }

/* ---------- Récapitulatif / récépissé ---------- */
.recepisse {
  position: relative; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 4px; padding: var(--r6) var(--r5) var(--r5); margin-top: var(--r2);
  box-shadow: var(--shadow-card);
}
/* bord perforé façon ticket */
.recepisse::before {
  content: ''; position: absolute; top: -7px; left: 14px; right: 14px; height: 7px;
  background-image: radial-gradient(circle at 6px 0, var(--paper) 5px, transparent 5.5px);
  background-size: 18px 7px; background-repeat: repeat-x;
}
.recepisse h2 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.recepisse .ref { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-55); margin: var(--r1) 0 var(--r4); }

.tampon-visa {
  position: absolute; top: var(--r4); right: var(--r4); transform: rotate(7deg);
  font-family: var(--mono); font-size: 0.64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 6px; padding: 5px 9px;
  opacity: 0.9; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .tampon-visa { animation: stampIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
}
@keyframes stampIn {
  0% { transform: rotate(7deg) scale(1.7); opacity: 0; }
  60% { opacity: 0.9; }
  100% { transform: rotate(7deg) scale(1); opacity: 0.9; }
}

.ligne-champ {
  display: grid; grid-template-columns: 96px 1fr auto; gap: var(--r3); align-items: start;
  padding: var(--r3) 0; border-bottom: 1px dashed var(--ink-30);
}
.ligne-champ:last-of-type { border-bottom: none; }

.actions-recepisse { margin-top: var(--r5); display: flex; gap: var(--r2); }
.ligne-champ .case {
  font-family: var(--mono); font-weight: 700; font-size: 0.82rem; line-height: 1.25;
  background: var(--chip-bg); color: var(--chip-fg);
  padding: 6px 8px; border-radius: 6px; text-align: center; word-break: break-word;
}
.ligne-champ .contenu .label { font-weight: 600; font-size: 0.95rem; }
.ligne-champ .contenu .valeur { font-family: var(--mono); font-size: 1.05rem; margin-top: 3px; color: var(--accent); }
.ligne-champ .contenu .conseil { font-size: 0.82rem; color: var(--ink-70); margin-top: var(--r1); line-height: 1.5; }
.btn-copier {
  cursor: pointer; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  border-radius: 8px; padding: 8px 11px; min-height: 34px;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn-copier:hover { background: var(--accent); border-color: var(--accent); color: var(--btn-fg); }
.btn-copier:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn-copier.copie { background: var(--valid); border-color: var(--valid); color: #fff; }

.floute { filter: blur(5px); user-select: none; pointer-events: none; }

.paywall {
  margin-top: var(--r4); padding: var(--r5); border: 1.5px solid var(--accent); border-radius: 12px;
  background: var(--accent-soft); text-align: center;
}
.paywall p { margin-bottom: var(--r3); font-size: 0.94rem; line-height: 1.55; }

.verdict { border-radius: 12px; padding: var(--r5); margin-top: var(--r2); border: 1.5px solid; }
.verdict.ok { border-color: var(--valid); background: var(--valid-soft); }
.verdict.alerte { border-color: var(--warn); background: var(--warn-soft); }
.verdict h2 { font-family: var(--display); font-weight: 700; margin-bottom: var(--r2); }

.notes { margin-top: var(--r4); font-size: 0.84rem; color: var(--ink-70); line-height: 1.55; }
.notes li { margin: var(--r2) 0 0 var(--r4); }

/* ---------- Calendrier ---------- */
.echeance {
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--r4); align-items: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: var(--r3) var(--r4); margin-bottom: var(--r2);
  box-shadow: var(--shadow-card);
}
.echeance.passee { opacity: 0.45; }
.echeance .date-bloc {
  text-align: center; font-family: var(--mono);
  border-right: 1px dashed var(--ink-30); padding-right: var(--r3);
}
.echeance .date-bloc .jour { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.echeance .date-bloc .mois { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-55); margin-top: 2px; }
.echeance .titre { font-weight: 600; font-size: 0.98rem; display: flex; align-items: center; gap: 7px; }
.echeance .detail { font-size: 0.82rem; color: var(--ink-70); margin-top: 2px; line-height: 1.45; }
.echeance .compte { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; color: var(--accent); margin-top: var(--r1); }

/* ---------- Rappel par e-mail ---------- */
.echeance .actions { display: flex; flex-direction: column; gap: 6px; }
.form-email {
  display: none;
  margin: -4px 0 var(--r2); padding: var(--r3) var(--r4);
  background: var(--surface-2); border: 1.5px dashed var(--ink-30);
  border-radius: 0 0 12px 12px;
}
.form-email.ouvert { display: block; animation: ecranEntre 0.25s ease both; }
.form-email-ligne { display: flex; gap: var(--r2); }
.form-email-ligne input {
  flex: 1; min-width: 0; padding: 11px var(--r3); font: inherit; font-size: 0.95rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-email-ligne input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-email-ligne .btn { padding: 10px var(--r4); font-size: 0.92rem; }
.form-email-note { font-size: 0.78rem; color: var(--ink-55); margin-top: var(--r2); line-height: 1.5; }
.form-email-msg { font-size: 0.82rem; margin-top: var(--r1); }
.form-email-msg.erreur { color: var(--warn); font-weight: 600; }
.form-email-ok { font-size: 0.9rem; color: var(--valid); font-weight: 600; line-height: 1.5; animation: ecranEntre 0.3s ease both; }

/* ---------- Tarifs ---------- */
.offre {
  position: relative; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 14px; padding: var(--r5); margin-bottom: var(--r3);
  box-shadow: var(--shadow-card);
}
.offre.star { border: 2px solid var(--accent); }
.offre .badge {
  position: absolute; top: -11px; left: var(--r4); background: var(--accent); color: var(--btn-fg);
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 11px; border-radius: 99px;
}
.offre h3 { font-family: var(--display); font-weight: 700; font-size: 1.18rem; }
.offre .prix { font-family: var(--mono); font-weight: 700; font-size: 1.6rem; margin: var(--r2) 0; font-variant-numeric: tabular-nums; }
.offre .prix small { font-size: 0.8rem; font-weight: 400; color: var(--ink-55); }
.offre p { font-size: 0.9rem; color: var(--ink-70); margin-bottom: var(--r4); line-height: 1.5; }

.bandeau-premium {
  background: var(--valid-soft); border: 1.5px solid var(--valid); border-radius: 12px;
  padding: var(--r4); margin-bottom: var(--r4); font-size: 0.94rem;
}
.bandeau-annule {
  background: var(--warn-soft); border: 1.5px solid var(--warn); border-radius: 12px;
  padding: var(--r4); margin-bottom: var(--r4); font-size: 0.94rem;
  animation: ecranEntre 0.3s ease both;
}

.vide { text-align: center; color: var(--ink-55); padding: var(--r7) 0; }

/* ============================================================
   EFFETS & MICRO-INTERACTIONS
   (tous désactivés d'office par prefers-reduced-motion)
   ============================================================ */

/* — entrée d'écran à chaque navigation — */
.ecran { animation: ecranEntre 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes ecranEntre {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* — recherche avec loupe — */
.zone-recherche { position: relative; margin-bottom: var(--r5); }
.zone-recherche .recherche { margin-bottom: 0; padding-left: 46px; }
.zone-recherche .loupe {
  position: absolute; left: var(--r4); top: 50%; transform: translateY(-50%);
  color: var(--ink-55); pointer-events: none; display: inline-flex;
  transition: color 0.18s ease;
}
.zone-recherche .loupe svg { width: 19px; height: 19px; }
.zone-recherche:focus-within .loupe { color: var(--accent); }

/* — cartes : apparition en cascade + flèche vivante — */
.carte-demarche { animation: carteEntre 0.35s ease both; }
@keyframes carteEntre {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.carte-demarche .site { transition: transform 0.18s ease, color 0.18s ease; }
.carte-demarche:hover .site { transform: translateX(4px); color: var(--accent-strong); }

/* — options : glissement au survol, coche sur le choix — */
.option { position: relative; padding-right: 44px; }
.option:hover { transform: translateX(3px); }
.option:active { transform: scale(0.99); }
.option.choisie::after {
  content: '✓'; position: absolute; right: var(--r4); top: 50%;
  transform: translateY(-50%); font-weight: 700;
  animation: cochePop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes cochePop {
  from { opacity: 0; transform: translateY(-50%) scale(0.4); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* — barre de progression : reflet animé — */
.progression > div { position: relative; overflow: hidden; }
.progression > div::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: reflet 1.8s ease-in-out infinite;
}
@keyframes reflet {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* — copie : la ligne s'illumine en vert — */
.ligne-champ.copie-flash { animation: ligneFlash 0.9s ease; border-radius: 8px; }
@keyframes ligneFlash {
  0% { background: var(--valid-soft); }
  100% { background: transparent; }
}
.btn-copier.copie { animation: cochePopBtn 0.25s ease; }
@keyframes cochePopBtn { 50% { transform: scale(1.1); } }

/* — récépissé : filigrane officiel — */
.recepisse::after {
  content: 'DÉCLIC'; position: absolute; left: 50%; top: 55%;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-family: var(--display); font-weight: 700; font-size: 4.4rem;
  letter-spacing: 0.12em; color: var(--ink); opacity: 0.04;
  pointer-events: none; user-select: none; white-space: nowrap;
}

/* — verdict : arrivée en rebond — */
.verdict { animation: verdictPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes verdictPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* — confettis (verdicts positifs) — */
.confettis { position: fixed; inset: 0; pointer-events: none; z-index: 99; overflow: hidden; }
.confettis span {
  position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px;
  opacity: 0.95; animation: confettiChute linear both;
}
@keyframes confettiChute {
  to { transform: translateY(105vh) rotate(560deg); opacity: 0.7; }
}

/* — navigation : icône qui rebondit à l'activation — */
nav.onglets a.actif svg { animation: navPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes navPop { 50% { transform: scale(1.2) translateY(-1px); } }

/* — échéances imminentes (J-7) — */
.echeance .compte.urgent {
  color: var(--warn); background: var(--warn-soft);
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  animation: pulseUrgent 1.8s ease-in-out infinite;
}
@keyframes pulseUrgent { 50% { opacity: 0.55; } }

/* — boutons & offres : relief au survol — */
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px -6px rgba(22, 35, 63, 0.4); }
.btn:active { transform: scale(0.98); box-shadow: none; }
.offre { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.offre:hover { transform: translateY(-3px); }

/* — « Où trouver ? » : contenu qui se déplie en douceur — */
.ou-trouver[open] .ou-doc,
.ou-trouver[open] ol { animation: ecranEntre 0.25s ease both; }
.ou-trouver summary .ou-ico { transition: transform 0.2s ease; }
.ou-trouver[open] summary .ou-ico { transform: rotate(360deg); background: var(--accent); color: var(--btn-fg); }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .coquille { padding: var(--r4) var(--r3) 104px; }
  .ligne-champ { grid-template-columns: 84px 1fr; }
  .ligne-champ .btn-copier { grid-column: 2; justify-self: start; }
  .echeance { grid-template-columns: 58px 1fr; }
  .echeance .actions { grid-column: 1 / -1; }
  h1.q-titre { font-size: 1.4rem; }
}
