/* Overpaid — feuille de style.
   Une page claire et lisible ; le stylo rouge ne travaille que sur les objets
   (facture, Relevé, ticket). Mouvement : règles d'Emil Kowalski. */

@font-face { font-family: "Hanken Grotesk"; src: url(fonts/HankenGrotesk-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/IBMPlexMono-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/IBMPlexMono-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #F7F5EF;
  --paper: #FFFFFF;
  --thermal: #FBFAF5;
  --ink: #121210;
  --ink-2: #3A3933;
  --ink-3: #66625A;
  --line: #E6E1D6;
  --line-2: #D6D0C3;
  --pen: #B42318;
  --pen-soft: #F6E3E0;
  --green: #17603F;
  --green-soft: #E5EFE8;
  --seal: #7A1F1A;

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --nav: 68px;
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --sec: clamp(96px, 11vw, 152px);
  --r-card: 16px;
  --shadow: 0 1px 2px rgba(40, 32, 16, .06), 0 10px 32px -6px rgba(40, 32, 16, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); scrollbar-color: var(--line-2) transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--pen);
}
::selection { background: var(--pen-soft); color: var(--ink); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2.5px solid var(--pen); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; white-space: nowrap; }
.mono { font-family: var(--mono); }

h1 { font-size: clamp(3.25rem, 7.6vw, 6rem); font-weight: 680; line-height: .98; letter-spacing: -0.038em; }
h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); font-weight: 650; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.012em; }
.fine { font-size: 14px; color: var(--ink-3); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 17px; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--out), background-color 150ms ease, box-shadow 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-s { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-light { background: var(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #2A2925; }
  .btn-ghost:hover { background: rgba(18, 18, 16, .04); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
  .btn-light:hover { background: #fff; }
}

/* ---------- barre du haut ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: var(--nav);
  background: rgba(247, 245, 239, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 transparent; transition: box-shadow 200ms ease;
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: block; color: var(--ink); flex: none; }
.logo svg { height: 30px; width: auto; }
.logo .ring { fill: var(--seal); }
.links { position: relative; display: flex; gap: 4px; margin-left: auto; }
.links a { position: relative; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 8px; transition: color 150ms ease; }
.links a[aria-current="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--ink); } }
.links-ink {
  position: absolute; left: 0; bottom: 2px; height: 2px; width: 100px; border-radius: 2px;
  background: var(--pen); transform-origin: 0 50%; opacity: 0;
  transition: transform 450ms var(--in-out), opacity 200ms ease;
}

/* ---------- haut de page ---------- */
.hero { padding: clamp(48px, 8vh, 96px) 0 clamp(64px, 9vh, 104px); }
.lead { margin-top: 24px; max-width: 36rem; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.ask { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 37rem; }
.ask input {
  flex: 1 1 15rem; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px;
  background: var(--paper); border: 1.5px solid var(--line-2); font-size: 17px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ask input::placeholder { color: #8B867B; }
.ask input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18, 18, 16, .08); }
.ask input[aria-invalid="true"] { border-color: var(--pen); }
.ask-msg { flex-basis: 100%; font-size: 15px; color: var(--pen); }
.ask-msg:empty { display: none; }
.ask.is-done .ask-msg { color: var(--ink); font-weight: 550; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }

.slip {
  position: relative; margin-top: clamp(40px, 6vh, 64px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 64px 32px 26px; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.slip-t { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.slip-s { margin-top: 4px; font-size: 15px; color: var(--ink-3); }
.slip-sum { text-align: right; }
.slip-amt { display: inline-block; font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 650; line-height: 1; letter-spacing: -0.03em; }
.slip-note { margin-top: 12px; font-size: 17px; font-weight: 550; color: var(--pen); }
.pen-u { position: relative; display: inline-block; }

/* encre */
svg.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: var(--pen); }
svg.ink .ink-gray { fill: #9A9588; }

/* entrée du haut de page (une seule fois) */
.js .enter { animation: rise 640ms var(--out) both; animation-delay: var(--d, 0ms); }
.js h1.enter { --y: 18px; }
.js .slip.enter { --y: 14px; animation-duration: 720ms; }
.js .facts.enter { animation-name: fade; }
.js .slip-note { opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--out), transform 400ms var(--out); }
.js .slip-note.is-on { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(var(--y, 10px)); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- l'exemple ---------- */
.story { position: relative; }
.story-pin { position: sticky; top: var(--nav); height: calc(100svh - var(--nav)); display: flex; align-items: center; }
.story-in { display: grid; gap: clamp(20px, 3.4vh, 36px); }
.story-head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; }
.story-head p { max-width: 26rem; color: var(--ink-2); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.story-track > div { height: 58svh; }

.sheet { position: relative; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 6px 28px 4px; }
.sheet-h, .ln, .sheet-t { display: grid; grid-template-columns: minmax(0, 1fr) 170px 112px; align-items: center; }
.sheet-h { height: 44px; font-size: 13px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.sheet-h span:last-child { grid-column: 3; text-align: right; }
.ln { height: clamp(44px, 6.2vh, 54px); border-bottom: 1px solid var(--line); font-size: 17px; }
.ln-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-a { text-align: right; font-weight: 500; }
.ln-n { position: relative; height: 100%; }
.sheet-t { height: 56px; font-weight: 650; font-size: 17px; }
.sheet-t span:last-child { grid-column: 3; text-align: right; }

.finding { display: flex; flex-direction: column; padding: 28px 30px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow); }
.f-label { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.f-amt { margin-top: 2px; font-size: clamp(2.5rem, 4.4vw, 3.75rem); font-weight: 680; line-height: 1.05; letter-spacing: -0.035em; color: var(--green); }
.f-msgs { display: grid; margin-top: 28px; }
.f-msg { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); filter: blur(2px); pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, filter 150ms ease; }
.f-msg.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto;
  transition: opacity 300ms var(--out) 90ms, transform 300ms var(--out) 90ms, filter 300ms var(--out) 90ms; }
.f-t { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; text-wrap: balance; }
.f-msg p:not(.f-t) { color: var(--ink-2); }
.f-foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots li { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); position: relative; }
.dots li::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--pen); transform: scale(0); transition: transform 300ms var(--out); }
.dots li.is-on::after { transform: scale(1); }

/* mentions légales */
.nav-in > .logo + .btn { margin-left: auto; }
.legal { padding-top: calc(var(--nav) + 40px); padding-bottom: 96px; max-width: calc(46rem + 2 * var(--gut)); margin-left: 0; margin-right: auto; }
@media (min-width: 761px) { .legal { margin-left: max(0px, calc((100vw - var(--wrap)) / 2 - var(--gut))); } }
.legal h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 680; letter-spacing: -0.035em; line-height: 1.05; }
.legal-todo { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--pen-soft); color: var(--seal); font-size: 16px; }
.legal section { margin-top: 44px; }
.legal h2 { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; }
.legal section p { margin-top: 10px; color: var(--ink-2); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { margin-top: 56px; }

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 18px clamp(40px, 6vw, 96px); margin-bottom: clamp(36px, 4.5vw, 56px); }
.sec-head p { max-width: 30rem; font-size: 1.1875rem; color: var(--ink-2); }

/* ticket */
.ticket-sec { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(48px, 6vw, 96px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 120px); align-items: center; }
.copy p { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-2); max-width: 30rem; }
.copy .fine { font-size: 14px; color: var(--ink-3); margin-top: 28px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticket { margin: 0 clamp(0px, 4vw, 48px) 0 0; filter: drop-shadow(0 14px 22px rgba(40, 32, 16, .13)) drop-shadow(0 1px 1px rgba(40, 32, 16, .08)); }
.ticket-paper {
  width: 340px; padding: 30px 26px; background: var(--thermal); color: #1A1A17; font-size: 13px; line-height: 23px;
  -webkit-mask: radial-gradient(circle 5.5px at 6px 0, #0000 98%, #000) 0 0 / 12px 51% repeat-x, radial-gradient(circle 5.5px at 6px 100%, #0000 98%, #000) 0 100% / 12px 51% repeat-x;
          mask: radial-gradient(circle 5.5px at 6px 0, #0000 98%, #000) 0 0 / 12px 51% repeat-x, radial-gradient(circle 5.5px at 6px 100%, #0000 98%, #000) 0 100% / 12px 51% repeat-x;
}
.ticket-paper p { white-space: nowrap; }
.t-brand { text-align: center; font-weight: 500; font-size: 16px; letter-spacing: .5em; margin-bottom: 4px; }
.t-c { text-align: center; }
.t-l { display: flex; justify-content: space-between; gap: 16px; }
.t-b { font-weight: 500; }
.t-green { color: var(--green); font-size: 15px; }
.t-cut { height: 18px; background: linear-gradient(90deg, #9C988A 50%, transparent 0) 0 50% / 9px 1.5px repeat-x; }
.t-thanks { margin-top: 4px; }
.js .ticket { clip-path: inset(0 0 100% 0); transform: translateY(-10px); }
.js .ticket.is-on { clip-path: inset(0 0 -40px 0); transform: none; transition: clip-path 1300ms steps(18, end), transform 1300ms linear; }

/* Relevé */
.doc { position: relative; background: var(--paper); border-radius: 6px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.doc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 20px; border-bottom: 1.5px solid var(--ink); }
.doc-t { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; }
.doc-s { margin-top: 2px; font-size: 15px; color: var(--ink-3); }
.doc-logo svg { height: 22px; width: auto; color: var(--ink); }
.doc-logo .ring { fill: var(--seal); }
.doc-cols, .doc-line { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 112px 120px; gap: 16px; align-items: center; }
.doc-cols { padding: 14px 0 8px; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.doc-cols span:nth-child(3) { text-align: right; }
.doc-line { min-height: 58px; border-bottom: 1px solid var(--line); font-size: 17px; }
.d-p { font-size: 13.5px; color: var(--ink-3); }
.d-a { text-align: right; font-weight: 550; }
.d-pen { position: relative; height: 100%; min-height: 44px; }
.doc-tot { margin-top: 18px; display: grid; gap: 12px; max-width: calc(100% - 136px); }
.doc-tot p { display: flex; justify-content: space-between; gap: 16px; }
.doc-tot p:first-child { font-size: 1.25rem; font-weight: 650; }
.doc-tot p:first-child .num { color: var(--green); }
.doc-part { color: var(--ink-3); font-size: 16px; }
.stamp { position: absolute; left: 47%; bottom: clamp(14px, 2vw, 26px); width: clamp(180px, 24vw, 240px); height: auto; color: var(--seal); opacity: 0; transform: rotate(-8deg) scale(1.35); pointer-events: none; }
.stamp.is-on { animation: thud 420ms var(--out) forwards; }
.doc.is-hit { animation: hit 260ms var(--out); }
@keyframes thud { 0% { opacity: 0; transform: rotate(-8deg) scale(1.35); } 60% { opacity: .92; transform: rotate(-8deg) scale(.97); } 100% { opacity: .9; transform: rotate(-8deg) scale(1); } }
@keyframes hit { 30% { transform: translateY(2px); } }

/* tarif */
.calc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); }
.coins { display: flex; gap: 12px; }
.coins-cap { display: grid; grid-template-columns: calc(var(--coin) * 3 + 24px) var(--coin); gap: 26px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink-3); text-align: center; white-space: nowrap; }
.js .coins-cap { opacity: 0; transition: opacity 400ms var(--out) 1300ms; }
.js .coins.is-on + .coins-cap { opacity: 1; }
.coins-box { --coin: 76px; }
.coin { display: grid; place-items: center; width: var(--coin); height: var(--coin); border-radius: 50%; font: 500 17px var(--mono); color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1.5px rgba(23, 96, 63, .28); }
.coin-us { color: var(--bg); background: var(--ink); box-shadow: none; }
.js .coins .coin { transition: opacity 500ms var(--out), transform 500ms var(--out); transition-delay: var(--cd, 0ms); }
.js .coins:not(.is-on) .coin { opacity: 0; transform: translateY(10px) scale(.96); }
.js .coins.is-on .coin-us { transform: translateX(14px); transition: opacity 500ms var(--out) var(--cd), transform 600ms var(--in-out) 900ms; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-l { flex-basis: 100%; font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.chips button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 160ms var(--out); }
.chips button:active { transform: scale(0.97); }
.chips button[aria-checked="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .chips button[aria-checked="false"]:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); } }
.split-out { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 48px; margin-top: 28px; }
.split-out p { display: grid; gap: 2px; }
.split-out span { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.keep strong { font-size: clamp(2.5rem, 4.6vw, 3.75rem); font-weight: 680; letter-spacing: -0.035em; line-height: 1.05; color: var(--green); }
.part strong { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.calc .fine { margin-top: 20px; }

/* étapes */
.tl { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 44px; }
.tl-rail { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tl-fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.tl-step { position: relative; }
.tl-step::before { content: ""; position: absolute; left: 0; top: -44px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow 250ms ease, background-color 250ms ease; z-index: 1; }
.tl-step.is-on::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px var(--bg); }
.tl-when { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.tl-step h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.tl-step p:last-child { margin-top: 10px; color: var(--ink-2); font-size: 17px; }

/* engagements et questions */
.q-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); }
.vows { display: grid; gap: 28px; margin-top: 40px; }
.vows li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.vows svg { width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vows p { margin-top: 4px; color: var(--ink-2); font-size: 17px; }
.faq-t { margin-bottom: 24px; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-of-type { border-top: 1px solid var(--line-2); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--out); }
.qa[open] summary svg { transform: rotate(180deg); }
.qa-a p { padding: 0 32px 22px 0; color: var(--ink-2); font-size: 17px; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 280ms var(--out), opacity 200ms ease, content-visibility 280ms allow-discrete; }
  .qa[open]::details-content { block-size: auto; opacity: 1; }
}

/* fin */
.close { background: var(--ink); color: var(--bg); padding: clamp(96px, 12vw, 160px) 0; }
.close h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); max-width: 15em; }
.close-swap { display: grid; margin-top: 40px; max-width: 37rem; }
.close-swap > * { grid-area: 1 / 1; }
.ask-dark { margin-top: 0; }
.ask-dark input { background: #1D1D1A; border-color: #3A3934; color: var(--bg); }
.ask-dark input::placeholder { color: #9D988C; }
.ask-dark input:focus { border-color: var(--bg); box-shadow: 0 0 0 4px rgba(247, 245, 239, .12); }
.ask-dark input[aria-invalid="true"] { border-color: #F08C80; }
.ask-dark .ask-msg { color: #F4A99F; }
.close :focus-visible { outline-color: var(--bg); }
.close-s { margin-top: 18px; font-size: 16px; color: #B9B4A8; }
.done { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; }
.done.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 350ms var(--out) 120ms, transform 350ms var(--out) 120ms; }
.done-t { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.done p:not(.done-t) { margin-top: 8px; color: #D6D1C5; }
.ask.is-gone { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; }

/* pied */
.foot { padding: 40px 0 48px; font-size: 15px; color: var(--ink-3); }
.foot-in { display: flex; align-items: center; gap: 24px; }
.foot .logo svg { height: 22px; }
.foot-r { margin-left: auto; }

/* barre téléphone */
.mbar { display: none; }

/* ---------- tailles moyennes ---------- */
@media (max-width: 1100px) {
  .links a:nth-child(4) { display: none; }
  .sheet-h, .ln, .sheet-t { grid-template-columns: minmax(0, 1fr) 128px 100px; }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 72px; padding-top: 0; }
  .tl-rail, .tl-step::before { display: none; }
  .stamp { left: auto; right: 16px; bottom: -72px; width: 190px; }
  .releve-sec { padding-bottom: calc(var(--sec) + 48px); }
}
@media (max-width: 900px) and (min-width: 761px) {
  .sheet-h, .ln, .sheet-t { grid-template-columns: minmax(0, 1fr) 0 92px; }
  .ln { font-size: 16px; }
  .ln-n { visibility: hidden; }
}

/* ---------- téléphone ---------- */
@media (max-width: 760px) {
  :root { --nav: 60px; }
  body { font-size: 17px; }
  .links { display: none; }
  .nav-in { justify-content: space-between; }
  .logo svg { height: 26px; }
  .ask .btn { flex: 1 1 100%; }
  .facts { flex-direction: column; gap: 4px; }
  .slip { flex-direction: column; align-items: stretch; padding: 22px 20px 20px; gap: 6px; }
  .slip-sum { text-align: left; padding-top: 54px; }
  .slip-note { margin-top: 10px; }

  .story-pin { align-items: flex-start; padding-top: 16px; }
  .story-head { display: block; }
  .story-head h2 { font-size: 1.875rem; }
  .story-head p { display: none; }
  .story-in { gap: 14px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sheet { padding: 2px 16px 0; }
  .sheet-h, .ln, .sheet-t { grid-template-columns: minmax(0, 1fr) 0 92px; }
  .sheet-h { height: 34px; }
  .ln { height: clamp(34px, 5vh, 42px); font-size: 15px; }
  .ln-n { visibility: hidden; }
  .sheet-t { height: 42px; font-size: 15px; }
  .finding { padding: 16px 18px; }
  .f-label { font-size: 13px; }
  .f-amt { font-size: 2.125rem; }
  .f-msgs { margin-top: 8px; }
  .f-t { font-size: 1.125rem; margin-bottom: 2px; }
  .f-msg p:not(.f-t) { font-size: 15px; line-height: 1.45; }
  .f-foot { padding-top: 12px; }
  .f-foot .btn { min-height: 44px; }
  .story-track > div { height: 62svh; }

  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .ticket { margin: 0 auto; }
  .ticket-paper { width: min(340px, calc(100vw - 40px)); padding: 26px 20px; font-size: 12.5px; }

  .doc-cols { display: none; }
  .doc-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l a" "p pen"; gap: 2px 12px; padding: 12px 0; }
  .d-l { grid-area: l; font-size: 16px; }
  .d-a { grid-area: a; }
  .d-p { grid-area: p; }
  .d-pen { grid-area: pen; min-height: 30px; width: 84px; justify-self: end; }
  .doc-tot { max-width: none; }
  .doc-tot p:first-child { font-size: 1.0625rem; }
  .stamp { width: 160px; left: auto; right: 8px; bottom: -64px; }
  .releve-sec { padding-bottom: calc(var(--sec) + 24px); }

  .calc { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .coins-box { --coin: 60px; }
  .coin { font-size: 15px; }

  .tl { grid-template-columns: minmax(0, 1fr); row-gap: 36px; padding-left: 36px; }
  .tl-rail { display: block; left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .tl-fill { transform: scaleY(0); transform-origin: 50% 0; }
  .tl-step::before { display: block; left: -36px; top: 2px; }

  .q-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { flex-wrap: wrap; gap: 8px 20px; }
  .foot-r { margin-left: 0; flex-basis: 100%; }
  .foot { padding-bottom: 104px; }

  .mbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247, 245, 239, .9); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform 300ms var(--out);
  }
  .mbar .btn { width: 100%; }
  .mbar.is-on { transform: none; }
}

/* ---------- mouvement réduit : on garde les fondus, on enlève les déplacements ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .enter { animation-name: fade; animation-delay: 0ms; animation-duration: 300ms; }
  .f-msg, .f-msg.is-on, .done, .done.is-on { transform: none; filter: none; transition-property: opacity; transition-delay: 0ms; }
  .js .ticket, .js .ticket.is-on { clip-path: none; transform: none; transition: none; }
  .js .coins .coin, .js .coins.is-on .coin-us { transform: none; transition: opacity 300ms ease; }
  .coins-cap { gap: 12px; }
  .js .coins-cap { transition: opacity 300ms ease; }
  .stamp.is-on { animation: none; opacity: .9; transform: rotate(-8deg); }
  .doc.is-hit { animation: none; }
  .links-ink, .mbar, .tl-fill { transition: none; }
}
