@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/raleway-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/raleway-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }

/* Get My Refund — v2
   Concept : une page = un écran. Papier clair teinté violet, encre presque noire,
   violet de marque réservé à l'action et à l'argent. Une lueur violette en fond
   se déplace d'une page à l'autre ; chaque page entre en cascade. */

:root {
  --paper: #FBFAFD;
  --surface: #FFFFFF;
  --tint: #F3ECFC;
  --ink: #17151B;
  --muted: #625C6C;
  --line: #E6E0ED;
  --brand: #B96BFC;
  --action: #7A2FD0;
  --action-hover: #6322B5;
  --ok: #1F7A4D;
  --ok-bg: #E6F4EC;

  --display: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --h1: clamp(2.4rem, 5.4vw, 4.4rem);
  --h2: clamp(2rem, 3.8vw, 3.1rem);
  --lead: clamp(1.05rem, 1.4vw, 1.2rem);

  --header: 72px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--action); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.v { color: var(--action); }
.eyebrow { font-family: var(--body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--action); font-weight: 600; }
.lead { font-size: var(--lead); color: var(--muted); max-width: 34rem; }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Fond : lueur qui se déplace selon la page ---------- */
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura i {
  position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%;
  filter: blur(90px); opacity: .5; transition: transform 1.4s var(--ease), opacity 1.4s var(--ease);
}
.aura i:nth-child(1) { background: radial-gradient(circle, #E3CCFF 0%, transparent 65%); transform: translate(48vw, -22vh); }
.aura i:nth-child(2) { background: radial-gradient(circle, #F6E3FF 0%, transparent 65%); transform: translate(-20vw, 40vh); opacity: .7; }
body[data-route="principe"] .aura i:nth-child(1) { transform: translate(-14vw, -24vh); }
body[data-route="principe"] .aura i:nth-child(2) { transform: translate(55vw, 45vh); }
body[data-route="etapes"] .aura i:nth-child(1) { transform: translate(60vw, 30vh); }
body[data-route="etapes"] .aura i:nth-child(2) { transform: translate(-25vw, -20vh); }
body[data-route="tarif"] .aura i:nth-child(1) { transform: translate(52vw, -10vh) scale(1.1); }
body[data-route="tarif"] .aura i:nth-child(2) { transform: translate(-10vw, 55vh); }
body[data-route="equipe"] .aura i:nth-child(1) { transform: translate(-22vw, 10vh); }
body[data-route="equipe"] .aura i:nth-child(2) { transform: translate(50vw, -30vh); }
body[data-route="contact"] .aura i:nth-child(1) { transform: translate(20vw, 50vh); }
body[data-route="contact"] .aura i:nth-child(2) { transform: translate(60vw, -30vh); }
body[data-route="commencer"] .aura i { opacity: .28; }

/* Grain très léger pour éviter l'aplat numérique */
.aura::after {
  content: ""; position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Barre de progression de navigation ---------- */
.loadbar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--brand); opacity: 0; }
.loadbar.go { animation: load .7s var(--ease) forwards; }
@keyframes load { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- En-tête ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: var(--header);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; flex-direction: column; line-height: .86; font-family: "Raleway", sans-serif; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.015em; text-decoration: none; color: var(--ink); }
.logo .r { color: var(--brand); }
.logo .r b { color: var(--ink); font-weight: 800; }

.nav { position: relative; display: flex; align-items: center; gap: 4px; }
.nav a.link {
  position: relative; z-index: 1; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .25s;
}
.nav a.link:hover { color: var(--ink); }
.nav a.link.active { color: var(--ink); }
.nav .pill {
  position: absolute; z-index: 0; top: 50%; height: 36px; border-radius: 999px; background: var(--tint);
  transform: translateY(-50%); transition: left .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0;
}
.header-cta { margin-left: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-content: center; justify-items: center; gap: 5px; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: grid; }
}

/* Menu mobile plein écran */
.mmenu {
  position: fixed; inset: 0; z-index: 35; background: var(--paper);
  padding: calc(var(--header) + env(safe-area-inset-top, 0px) + 24px) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
body.menu-open .mmenu { opacity: 1; visibility: visible; }
.mmenu nav { display: grid; gap: 4px; }
.mmenu nav a {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; padding: 6px 0;
  opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s;
}
.mmenu nav a.active { color: var(--action); }
body.menu-open .mmenu nav a { opacity: 1; transform: none; }
body.menu-open .mmenu nav a:nth-child(2) { transition-delay: .04s; }
body.menu-open .mmenu nav a:nth-child(3) { transition-delay: .08s; }
body.menu-open .mmenu nav a:nth-child(4) { transition-delay: .12s; }
body.menu-open .mmenu nav a:nth-child(5) { transition-delay: .16s; }
body.menu-open .mmenu nav a:nth-child(6) { transition-delay: .2s; }
.mmenu .btn { width: 100%; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 24px; min-height: 52px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 10px 26px -12px rgba(122, 47, 208, .65); }
.btn-primary::after { /* reflet qui balaie le bouton au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { background: var(--action-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(122, 47, 208, .75); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; min-height: 42px; font-size: .9rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .5; cursor: progress; transform: none; }

/* ---------- Pages ---------- */
main { flex: 1; display: grid; }
.page {
  grid-area: 1 / 1; min-height: calc(100svh - var(--header) - 64px - env(safe-area-inset-top, 0px));
  display: grid; align-content: center; padding-block: clamp(32px, 6vh, 72px);
}
.page.leaving { animation: leave .26s var(--ease) forwards; pointer-events: none; }
@keyframes leave { to { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
.page.play .r { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 75ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.page.play .r-line { animation: line 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 75ms + 200ms); transform-origin: 0 50%; }
@keyframes line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 22px; align-content: start; min-width: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 46rem; }

/* ---------- Accueil ---------- */
.hero h1 .under { position: relative; white-space: nowrap; }
.hero h1 .under::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 4px;
  background: var(--brand); opacity: .35; z-index: -1; transform-origin: 0 50%;
}
.page.play .hero h1 .under::after { animation: line .9s var(--ease) .55s both; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 6vh, 64px); border-top: 1px solid var(--line); }
.stats > div { padding: 18px 18px 0 0; display: grid; gap: 2px; min-width: 0; }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats strong { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Relevé (objet signature) ---------- */
.receipt-zone { position: relative; padding: 18px 0 30px; min-width: 0; }
.receipt {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 26px 24px; box-shadow: 0 1px 0 rgba(23,21,27,.04), 0 30px 60px -32px rgba(90, 30, 160, .38);
  max-width: 440px; margin-left: auto;
}
@media (max-width: 920px) { .receipt { margin: 0 auto; } }
.receipt::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: -8px; height: 9px;
  background: radial-gradient(circle at 7px -2px, transparent 7px, var(--surface) 7.5px) repeat-x; background-size: 14px 9px;
}
.rc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.rc-title { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.rc-ref { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,122,77,.45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(31,122,77,0); } }
.rc-lines { list-style: none; margin: 0; padding: 16px 0 8px; display: grid; gap: 12px; }
.rc-lines li { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; }
.rc-lines li span:first-child { color: var(--muted); }
.amt { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-lines .minus .amt { color: var(--muted); }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.rc-total span:first-child { font-weight: 600; }
.rc-total .amt { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.5rem); color: var(--action); letter-spacing: -0.02em; }
.rc-note { margin-top: 12px; font-size: .78rem; color: var(--muted); }
.toast {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px 12px 12px;
  box-shadow: 0 18px 40px -18px rgba(23,21,27,.6); max-width: 290px;
}
.toast .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.toast strong { display: block; font-size: .86rem; }
.toast small { display: block; font-size: .76rem; color: #BDB5C8; }
.page.play .toast { animation: pop .7s var(--ease) 1.6s both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 920px) { .receipt-zone { padding-bottom: 0; display: grid; justify-items: center; } .toast { position: relative; margin-top: 22px; } }
@keyframes popc { from { opacity: 0; transform: translate(-50%, 16px) scale(.94); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- Le principe ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trio article {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  display: grid; gap: 14px; align-content: start; min-width: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.trio article:hover { transform: translateY(-4px); border-color: #D7CBE6; box-shadow: 0 24px 40px -30px rgba(90,30,160,.4); }
.trio .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--action); display: grid; place-items: center; }
.trio p { color: var(--muted); font-size: .95rem; }
.trio article.hl { background: var(--ink); border-color: var(--ink); color: #fff; }
.trio article.hl p { color: #C9C1D3; }
.trio article.hl .ico { background: rgba(185,107,252,.18); color: var(--brand); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
.foot-cta { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.foot-cta p { color: var(--muted); font-size: .92rem; }

/* ---------- Étapes ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 0; right: 25%; top: 23px; height: 2px; background: var(--brand); transform-origin: 0 50%; }
.page.play .timeline::after { animation: line 1.2s var(--ease) .35s both; }
.timeline li { position: relative; z-index: 1; display: grid; gap: 10px; padding-right: 22px; align-content: start; min-width: 0; }
.timeline .dot {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 500; font-size: .9rem; background: var(--surface); border: 2px solid var(--line); color: var(--ink);
}
.timeline li.us .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.timeline li.end .dot { background: var(--action); border-color: var(--action); color: #fff; }
.timeline .when { font-family: var(--mono); font-size: .74rem; color: var(--action); letter-spacing: .04em; margin-top: 6px; }
.timeline p { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before, .timeline::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline::after { bottom: 25%; transform-origin: 50% 0; }
  .page.play .timeline::after { animation-name: vline; }
  .timeline li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding-right: 0; }
  .timeline li > :not(.dot) { grid-column: 2; }
  .timeline .dot { grid-row: 1 / span 3; }
  .timeline .when { margin-top: 0; }
}
@keyframes vline { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.docs { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.docs .lbl { font-size: .9rem; font-weight: 600; margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.chip b { font-family: var(--mono); font-weight: 500; font-size: .74rem; color: var(--action); }

/* ---------- Tarif ---------- */
.pct { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 15vw, 10.5rem); line-height: .82; letter-spacing: -0.05em; color: var(--action); }
.pct small { font-size: .45em; letter-spacing: -0.02em; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promise li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.promise svg { flex: none; color: var(--ok); }
.sim { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: .9rem; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 10px 15px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface);
  font-size: .88rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.seg label:hover { border-color: var(--muted); }
.seg label:active { transform: scale(.96); }
.seg input:checked + label { border-color: var(--action); background: var(--tint); color: var(--action); font-weight: 600; }
.seg input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.sim .receipt { max-width: none; margin: 0; }
.flash { animation: flash .5s var(--ease); }
@keyframes flash { 0% { transform: translateY(-4px); opacity: .35; } 100% { transform: none; opacity: 1; } }

/* ---------- Équipe ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 14px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.person:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(90,30,160,.4); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: #fff; background: var(--ink); position: relative; }
.avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px dashed var(--brand); opacity: .6; }
.person .role { font-size: .88rem; color: var(--muted); }
.person .school { font-family: var(--mono); font-size: .74rem; color: var(--action); }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; } }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); font-size: .93rem; }
.facts strong { font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-align: right; }

/* ---------- Contact ---------- */
.channels { display: grid; gap: 12px; }
.channel {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  text-decoration: none; color: var(--ink); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.channel:hover { border-color: var(--action); color: var(--ink); transform: translateX(4px); box-shadow: 0 18px 30px -26px rgba(90,30,160,.5); }
.channel .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--action); display: grid; place-items: center; }
.channel small { display: block; color: var(--muted); font-size: .8rem; }
.channel strong { font-weight: 600; overflow-wrap: anywhere; }
.channel .go { color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.channel:hover .go { transform: translateX(4px); color: var(--action); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 30px 60px -48px rgba(90,30,160,.5); min-width: 0; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--action); background: var(--surface); box-shadow: 0 0 0 4px var(--tint); }
.mono-input { font-family: var(--mono) !important; letter-spacing: .05em; text-transform: uppercase; }
.err { color: #B3261E; font-size: .8rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .drop { border-color: #C2362B; }
.field.invalid .err { display: block; }
.field.invalid { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.hidden-field { position: absolute; left: -9999px; }

/* Parcours "Commencer" */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .flow { grid-template-columns: 1fr; } }
.steps-nav { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.steps-nav li { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--muted); font-weight: 500; transition: color .3s; }
.steps-nav .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; transition: all .35s var(--ease); background: var(--surface); }
.steps-nav li.current { color: var(--ink); }
.steps-nav li.current .n { border-color: var(--action); color: var(--action); box-shadow: 0 0 0 5px var(--tint); }
.steps-nav li.done .n { background: var(--action); border-color: var(--action); color: #fff; }
@media (max-width: 920px) {
  .steps-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-nav li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .8rem; padding: 0; }
}
.fstep { display: grid; gap: 16px; }
.fstep.in { animation: stepIn .5s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.fstep.in-back { animation: stepBack .5s var(--ease) both; }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.fstep h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.nav-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 6px; }
.btn-back { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; padding: 12px 0; }
.btn-back:hover { color: var(--ink); }

.doc-row { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.doc-row:first-of-type { border-top: 0; padding-top: 0; }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.doc-head strong { font-size: .98rem; }
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.help { font-size: .82rem; color: var(--muted); }
.help summary { cursor: pointer; color: var(--action); font-weight: 500; width: fit-content; }
.help p, .help ol { margin: 8px 0 0; }
.help ol { padding-left: 1.2em; display: grid; gap: 3px; }
.drop {
  position: relative; border: 1.5px dashed var(--line); border-radius: 14px; padding: 16px; background: var(--paper);
  display: flex; align-items: center; gap: 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--action); background: var(--tint); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--action); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.drop .txt { display: grid; min-width: 0; }
.drop .txt strong { font-size: .9rem; }
.drop .txt span { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.drop.has-file { border-style: solid; border-color: var(--ok); background: #F2FAF5; }
.drop.has-file .ico { background: var(--ok); color: #fff; }
.size-meter { font-size: .8rem; color: var(--muted); }
.size-meter.over { color: #B3261E; font-weight: 600; }
.recap { margin: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.recap dt, .recap dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .86rem; min-width: 0; overflow-wrap: anywhere; }
.recap dt { color: var(--muted); background: var(--paper); }
.recap > :nth-last-child(-n+2) { border-bottom: 0; }
.mini-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--tint); }
.mini-total span { font-size: .88rem; color: var(--muted); }
.mini-total strong { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--action); font-variant-numeric: tabular-nums; }
.secure { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.secure svg { flex: none; color: var(--ok); margin-top: 2px; }

/* ---------- Pied de page compact ---------- */
.site-footer { height: 64px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 85%, transparent); }
.site-footer .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .78rem; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .site-footer { height: auto; padding-block: 16px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Barre d'action mobile ---------- */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); transition: transform .4s var(--ease);
  }
  .mobile-cta .btn { width: 100%; }
  body[data-route="commencer"] .mobile-cta, body.menu-open .mobile-cta { transform: translateY(110%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* Raleway a des chiffres « elzéviriens » par défaut : on force des chiffres alignés */
h1, h2, h3, .logo, .stats strong, .rc-total .amt, .pct, .facts strong, .mini-total strong, .avatar { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* Lien vers le tuto CEAM */
.tuto-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: .85rem; font-weight: 600; color: var(--action); text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--tint); transition: transform .25s var(--ease), background .2s; }
.tuto-link:hover { transform: translateX(3px); background: #EADDFB; color: var(--action); }

/* ---------- Téléphone : même typographie, tailles plus calmes ---------- */
@media (max-width: 600px) {
  :root { --h1: 2.15rem; --h2: 1.75rem; --lead: 1rem; --header: 64px; }
  h1, h2 { letter-spacing: -0.025em; line-height: 1.08; }
  h3 { font-size: 1.05rem; }
  .eyebrow { font-size: .72rem; }
  .btn { font-size: .95rem; padding: 15px 20px; min-height: 50px; }
  .ctas .btn { flex: 1 1 100%; }
  .rc-total .amt { font-size: 1.85rem; }
  .pct { font-size: 5.5rem; }
  .stats strong { font-size: 1.35rem; }
  .trio article, .person { padding: 20px; }
  .logo { font-size: 1.2rem; }
  .page { padding-block: 28px 40px; }
}
