/* ==========================================================================
   StopFrais — landing page
   Direction : « le relevé corrigé au stylo rouge »
   Mobile first. Aucune dépendance externe.
   ========================================================================== */

/* ---------- Polices (auto-hébergées, licence SIL OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F3EEE4;
  --paper-deep: #E9E1D2;
  --card: #FBF8F2;
  --ink: #15241D;
  --ink-soft: #46534B;
  --ink-faint: #6B746D;
  --rule: #D3C9B7;
  --red: #C23519;
  --red-soft: #F6DDD3;
  --green: #1D6647;
  --green-soft: #DCEBDF;
  --yellow: #F2D46B;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(21, 36, 29, .06), 0 18px 40px -22px rgba(21, 36, 29, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain papier très léger */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.14 0 0 0 0 0.11 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; font-variation-settings: "SOFT" 50, "WONK" 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
strong { font-weight: 650; }
small { font-size: .82em; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 10px; color: var(--paper); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 800px; }

.red { color: var(--red); }
.green { color: var(--green); }

/* Traits « stylo » dessinés */
.draw path, path.draw { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* svg.draw (traits étirés) : révélation de gauche à droite */
.js svg.draw { clip-path: inset(-20% 100% -20% -5%); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1) .2s; }
.js .is-drawn svg.draw { clip-path: inset(-20% -5% -20% -5%); }
/* path.draw (courbes du graphique) : tracé progressif */
.js path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1) .2s; }
.js .is-drawn path.draw { stroke-dashoffset: 0; }

mark.todo {
  background: repeating-linear-gradient(-45deg, #FBE7A1 0 8px, #F7DC86 8px 16px);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: .85em;
}

/* ---------- Bandeau réglementaire ---------- */
.notice-bar {
  background: var(--ink);
  color: #E8E2D5;
  font-size: .8rem;
  text-align: center;
  padding: 7px var(--gutter);
  line-height: 1.4;
}
.notice-bar p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 228, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }

.logo {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  margin: 0;
}
.logo:hover { color: var(--ink); }
.logo__stop { font-weight: 800; }
.logo__frais { position: relative; display: inline-block; margin-left: .06em; font-style: italic; font-weight: 500; color: var(--ink-soft); }
.logo__strike { position: absolute; left: -4%; top: 38%; width: 108%; height: 40%; overflow: visible; }
.logo__strike path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.logo--small { font-size: 1.15rem; }

.header-cta {
  font-size: .88rem; font-weight: 600; text-decoration: none;
  padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  transition: background .2s, color .2s;
}
.header-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 700; font-size: 1.08rem;
  text-decoration: none; cursor: pointer;
  padding: 16px 26px; border-radius: var(--radius); border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn--primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 0 #8E240F;
}
.btn--primary:hover { color: #fff; background: #AD2E14; transform: translateY(1px); box-shadow: 0 3px 0 #8E240F; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(4px); box-shadow: 0 0 0 #8E240F; }

.btn-copy {
  font: inherit; font-size: .85rem; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-copy:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero__grid { display: grid; gap: 48px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.hero__title {
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.marked { position: relative; display: inline-block; font-style: italic; font-weight: 500; color: var(--red); }
.marked__line { position: absolute; left: -2%; bottom: -.06em; width: 104%; height: .22em; overflow: visible; }
.marked__line path { stroke: var(--red); stroke-width: 5; vector-effect: non-scaling-stroke; }

.hero__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; margin-bottom: 28px; }

/* ---------- Bloc d'inscription ---------- */
.signup { max-width: 560px; }
.signup__choice { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.signup__choice legend { padding: 0; font-weight: 650; font-size: .95rem; margin-bottom: 10px; }
.optional { font-weight: 400; color: var(--ink-faint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 9px 14px; min-height: 44px; align-items: center;
  border: 1.5px solid var(--rule); border-radius: 999px;
  background: var(--card); font-size: .92rem; line-height: 1.2;
  transition: border-color .15s, background .15s, color .15s;
}
.chip span small { color: var(--ink-faint); font-size: .78em; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:checked + span small { color: #B9C2BB; }
.chip input:checked + span::before { content: "✓"; font-weight: 700; margin-right: 2px; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.signup .btn { width: 100%; }
.signup__sub { font-size: .85rem; color: var(--ink-faint); margin: 10px 0 14px; }

.signup__fallback {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: .9rem; padding: 12px 14px;
  border: 1.5px dashed var(--rule); border-radius: var(--radius);
  margin-bottom: 12px;
}
.email {
  font-family: var(--f-mono); font-size: .9rem; font-weight: 600;
  background: var(--paper-deep); padding: 2px 8px; border-radius: 4px;
  word-break: break-all; user-select: all;
}
.copy-status { font-size: .85rem; font-weight: 600; color: var(--green); }
.signup__privacy { font-size: .8rem; color: var(--ink-faint); margin: 0; }

/* ---------- Visuel hero : fiche de relevé ---------- */
.hero__visual { margin: 0; }
.slip {
  position: relative;
  background: var(--card);
  padding: 22px 20px 26px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  --perf: radial-gradient(circle at 8px 0, transparent 6px, var(--card) 6.5px);
}
.slip::before, .slip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: radial-gradient(circle at 8px 8px, var(--paper) 5px, transparent 5.5px) 0 0 / 16px 16px repeat-x;
}
.slip::before { top: -8px; background-position: 0 0; transform: scaleY(-1); background-color: transparent; }
.slip::after { bottom: 0; }

.slip__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 6px;
}
.slip__tag { border: 1.5px solid var(--red); color: var(--red); padding: 1px 8px; border-radius: 3px; transform: rotate(3deg); font-weight: 700; }

.slip__rows { margin: 0; font-family: var(--f-mono); font-size: .88rem; }
.slip__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.slip__row dt { font-family: var(--f-body); }
.slip__row dt small { display: block; font-size: .78rem; color: var(--red); font-style: italic; }
.slip__row dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.slip__row--hidden { background: linear-gradient(transparent 0, var(--red-soft) 0) no-repeat; margin: 0 -10px; padding: 12px 10px; }

.struck { position: relative; display: inline-block; color: var(--red); }
.struck svg { position: absolute; left: -8%; top: 12%; width: 116%; height: 80%; overflow: visible; }
.struck path { stroke: var(--red); stroke-width: 2.6; vector-effect: non-scaling-stroke; }

.slip__note {
  position: relative;
  margin: 18px 0 0 56px;
  font-family: var(--f-display); font-style: italic; font-size: 1.12rem; line-height: 1.3;
  color: var(--red);
}
.slip__arrow { position: absolute; left: -54px; top: -14px; width: 46px; height: 32px; overflow: visible; }
.slip__arrow path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.visual-caption { font-size: .78rem; color: var(--ink-faint); margin-top: 16px; text-align: right; font-family: var(--f-mono); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--rule); }
.section-num {
  font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--red); margin-bottom: 14px; font-weight: 600;
}
.section-title { font-size: clamp(2rem, 7vw, 3.4rem); max-width: 18em; margin-bottom: 22px; font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 96; }
.section-lead { color: var(--ink-soft); max-width: 40em; margin-bottom: 32px; }

/* ---------- Problème ---------- */
.problem__intro { display: grid; gap: 0; max-width: 44em; color: var(--ink-soft); margin-bottom: 40px; }
.problem__intro p:first-child { font-size: 1.12rem; color: var(--ink); }

.example {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 6px 6px 0 var(--ink);
}
.example__head { display: grid; gap: 12px; margin-bottom: 20px; }
.stamp {
  justify-self: start;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--red); border: 2px solid var(--red); padding: 4px 10px; border-radius: 3px;
  transform: rotate(-2deg);
}
.example__setup { font-size: 1.05rem; margin: 0; }

.example__body { display: grid; gap: 24px; }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 5; }
.chart__ylabels text, .chart__xlabels text { font-family: var(--f-mono); font-size: 17px; fill: var(--ink-faint); }
.chart__ylabels text { text-anchor: end; }
.chart__xlabels text { text-anchor: middle; }
.chart__xlabels text:first-child { text-anchor: start; }
.chart__xlabels text:last-child { text-anchor: end; }
.chart__area { fill: var(--red-soft); opacity: .7; }
.chart__line { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.chart__line--low { stroke: var(--green); }
.chart__line--high { stroke: var(--red); stroke-dasharray: none; }
.chart__dot--low { fill: var(--green); }
.chart__dot--high { fill: var(--red); }

.figures { margin: 0; display: grid; gap: 10px; align-content: start; }
.figure { padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.figure dt { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.figure dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.figure--low dd { color: var(--green); }
.figure--high dd { color: var(--red); }
.figure--gap { border: 0; background: var(--ink); color: var(--paper); padding: 16px 18px; border-radius: var(--radius); margin-top: 6px; }
.figure--gap dt { color: #C9D0CA; }
.figure--gap dd { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; color: #fff; }
.figure--gap p { font-size: .88rem; color: #C9D0CA; margin: 4px 0 0; }
.swatch { width: 18px; height: 4px; border-radius: 2px; flex: none; }
.swatch--low { background: var(--green); }
.swatch--high { background: var(--red); }

.example__foot { font-size: .82rem; color: var(--ink-faint); margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }

.fees { margin-top: 56px; }
.fees__title { font-size: 1.5rem; margin-bottom: 20px; }
.fees__grid { display: grid; gap: 14px; }
.fee { position: relative; padding: 20px 20px 20px 64px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--rule); }
.fee .fee__num {
  position: absolute; left: 18px; top: 16px; margin: 0;
  font-family: var(--f-display); font-style: italic; font-size: 2rem; font-weight: 500; line-height: 1; color: var(--red);
}
.fee h4 { font-size: 1.15rem; margin-bottom: 6px; }
.fee p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Étapes ---------- */
.how { background: var(--paper-deep); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 36px 76px; }
.step::before {
  content: ""; position: absolute; left: 27px; top: 58px; bottom: 6px; width: 0;
  border-left: 2px dashed var(--ink-faint);
}
.step:last-child::before { display: none; }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.7rem; font-weight: 700;
  border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--paper); transform: rotate(-8deg);
}
.step:nth-child(3) .step__num { background: var(--ink); color: var(--paper); }
.step h3 { font-size: 1.45rem; margin: 12px 0 8px; }
.step p { color: var(--ink-soft); max-width: 32em; }
.how__partner {
  margin-top: 40px; padding: 16px 18px; border-left: 4px solid var(--green);
  background: var(--card); font-size: .95rem; max-width: 44em;
}

/* ---------- Mockup relevé ---------- */
.statement {
  position: relative;
  background: var(--card);
  padding: 24px 16px 22px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--ink);
}
.statement__stamp {
  position: absolute; top: -18px; right: 10px; z-index: 2;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; line-height: 1.25; text-align: center;
  color: var(--red); border: 2.5px double var(--red); background: rgba(251, 248, 242, .92);
  padding: 6px 10px; border-radius: 4px; transform: rotate(6deg);
}
.statement__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 18px; }
.statement__label { font-family: var(--f-display); font-size: 1.5rem; font-weight: 650; margin: 0; }
.statement__meta { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-faint); margin: 2px 0 0; }

.horizon { display: flex; align-items: center; gap: 10px; }
.horizon__label { font-size: .82rem; color: var(--ink-soft); }
.horizon__switch { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
.horizon__switch button {
  font: inherit; font-size: .85rem; font-weight: 600; border: 0; background: transparent; color: var(--ink);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 36px;
}
.horizon__switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.kpis { display: grid; gap: 10px; margin: 0 0 22px; }
.kpi { padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.kpi dt { font-size: .82rem; color: var(--ink-soft); }
.kpi dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi--red dd { color: var(--red); }
.kpi--green { background: var(--green-soft); border-color: transparent; }
.kpi--green dd { color: var(--green); }

.results { width: 100%; border-collapse: collapse; font-size: .92rem; }
.results thead { display: none; }
.results tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 16px 0; border-top: 1px dashed var(--rule); }
.results tbody tr:first-child { border-top: 2px solid var(--ink); }
.results th[scope="row"], .results td { display: block; text-align: left; padding: 0; font-weight: 400; }
.results th[scope="row"] { grid-column: 1 / -1; }
.results td[data-label="Alternative"] { grid-column: 1 / -1; padding: 10px 12px; background: var(--green-soft); border-radius: var(--radius); }
.results td::before {
  content: attr(data-label); display: block;
  font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint);
}
.results td[data-label="Alternative"]::before { color: var(--green); content: "Alternative repérée"; }
.results .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.results .num small { display: block; font-weight: 400; color: var(--ink-faint); font-size: .8rem; }
.results .red { color: var(--red); }
.results .green { color: var(--green); }

.fund, .alt { display: block; font-weight: 650; font-family: var(--f-body); }
.alt { color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tags > span {
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .02em;
  padding: 1px 6px; border-radius: 3px; background: var(--paper-deep); color: var(--ink-soft);
}
.tags .pct { font-weight: 700; }
.pct--red { color: var(--red); }
.tags .pct--green { background: var(--green); color: #fff; }
.is-flagged .fund { position: relative; }
.is-flagged .fund::after {
  content: "ligne la plus coûteuse"; display: inline-block; white-space: nowrap; margin: 4px 0 0; vertical-align: 2px;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--red); padding: 2px 6px; border-radius: 3px;
}

.statement__note {
  font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--red);
  margin: 18px 0 0; line-height: 1.35;
}
.statement__foot { font-size: .78rem; color: var(--ink-faint); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }

/* ---------- FAQ ---------- */
.faq__list { border-top: 2px solid var(--ink); margin-top: 28px; }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--f-body); font-size: 1.3rem; font-weight: 400;
  border: 1.5px solid var(--ink); border-radius: 50%; transition: transform .2s, background .2s;
}
.qa[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.qa summary:hover { color: var(--red); }
.qa__body { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }
.qa__body ul { margin: 0 0 1em; padding-left: 1.2em; }
.qa__body li { margin-bottom: 4px; }
.qa__body li::marker { color: var(--red); }

/* ---------- Inscription bas de page ---------- */
.signup-section { border-top: 0; padding-top: 24px; }
.signup-card {
  background: var(--ink); color: var(--paper);
  border-radius: 10px; padding: 36px 20px;
  position: relative; overflow: hidden;
}
.signup-card::before {
  content: "−€"; position: absolute; right: -10px; bottom: -40px;
  font-family: var(--f-display); font-weight: 800; font-size: 11rem; line-height: 1;
  color: rgba(243, 238, 228, .05); pointer-events: none;
}
.signup-card__title { font-size: clamp(1.9rem, 7vw, 3rem); margin-bottom: 14px; position: relative; }
.signup-card__lead { color: #C9D0CA; margin-bottom: 28px; max-width: 34em; position: relative; }
.marked--light { color: #FF8A6B; }
.marked--light .marked__line path { stroke: #FF8A6B; }

.signup--dark { position: relative; }
.signup--dark .optional, .signup--dark .signup__sub, .signup--dark .signup__privacy { color: #AEB8B0; }
.signup--dark .chip span { background: transparent; border-color: #4F5E56; color: var(--paper); }
.signup--dark .chip span small { color: #AEB8B0; }
.signup--dark .chip:hover span { border-color: var(--paper); }
.signup--dark .chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.signup--dark .chip input:checked + span small { color: var(--ink-soft); }
.signup--dark .btn--primary { box-shadow: 0 4px 0 #000; }
.signup--dark .btn--primary:hover { box-shadow: 0 3px 0 #000; }
.signup--dark .signup__fallback { border-color: #4F5E56; }
.signup--dark .email { background: #2A3A32; color: var(--paper); }
.signup--dark .btn-copy { color: var(--paper); }
.signup--dark .btn-copy:hover { background: var(--paper); color: var(--ink); }
.signup--dark .copy-status { color: #8FD3AE; }
.signup--dark :focus-visible { outline-color: #FF8A6B; }

/* ---------- Avertissements ---------- */
.warnings { padding: 48px 0; }
.warnings__title {
  font-family: var(--f-mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.warnings__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.warnings__list li {
  font-size: .9rem; color: var(--ink-soft); padding: 14px 16px;
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card);
}
.warnings__list strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--ink); padding: 32px 0 40px; }
.site-footer__inner { display: grid; gap: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { font-size: .92rem; }
.site-footer__small { font-size: .8rem; color: var(--ink-faint); margin: 0; }

/* ---------- Pages légales ---------- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); margin-bottom: 10px; }
.legal__updated { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-faint); margin-bottom: 36px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; padding-top: 20px; border-top: 1px solid var(--rule); }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--red); }
.legal dl { display: grid; gap: 4px 16px; margin: 0; }
.legal dt { font-weight: 650; color: var(--ink); margin-top: 10px; }
.legal dd { margin: 0; color: var(--ink-soft); }
.back-link { display: inline-block; margin-bottom: 28px; font-size: .9rem; }

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: clamp(4rem, 20vw, 9rem); color: var(--red); }
.notfound p { color: var(--ink-soft); margin: 12px auto 28px; max-width: 30em; }

/* Graphique lisible sur petit écran */
@media (max-width: 639px) {
  .chart__ylabels text, .chart__xlabels text { font-size: 30px; }
  .chart__xlabels text:nth-child(1), .chart__xlabels text:nth-child(2), .chart__xlabels text:nth-child(4) { display: none; }
  .chart__line { stroke-width: 6; }
}

/* ==========================================================================
   Tablette (≥ 640px)
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .signup .btn { width: auto; }
  .fees__grid { grid-template-columns: repeat(3, 1fr); }
  .fee { padding: 64px 20px 22px; }
  .fee .fee__num { top: 18px; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .example { padding: 30px 28px; }
  .statement { padding: 32px 28px 26px; }
  .signup-card { padding: 52px 44px; }
  .warnings__list { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .site-footer nav { justify-self: end; }
  .site-footer__small { grid-column: 1 / -1; }
}

/* ==========================================================================
   Desktop (≥ 960px)
   ========================================================================== */
@media (min-width: 960px) {
  body { font-size: 1.08rem; }
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: 1.4fr .85fr; align-items: center; gap: 56px; }
  .hero__title { font-size: 4.7rem; }
  .hero__visual { padding-top: 40px; }
  .slip { padding: 28px 28px 32px; }
  .section { padding: 104px 0; }
  .example__head { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .example__body { grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .step { padding: 80px 0 0; }
  .step::before { left: 70px; right: -30px; top: 27px; bottom: auto; width: auto; border-left: 0; border-top: 2px dashed var(--ink-faint); }
  .step h3 { margin-top: 0; }

  /* Tableau complet */
  .statement__stamp { top: -22px; right: 32px; font-size: .78rem; padding: 8px 14px; }
  .results thead { display: table-header-group; }
  .results thead th {
    font-family: var(--f-mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-faint); text-align: left; padding: 0 12px 10px; border-bottom: 2px solid var(--ink); vertical-align: bottom;
  }
  .results thead th.num { text-align: right; }
  .results tbody tr { display: table-row; border-top: 1px dashed var(--rule); }
  .results tbody tr:first-child { border-top: 0; }
  .results th[scope="row"], .results td { display: table-cell; padding: 16px 12px; vertical-align: middle; }
  .results td.num { text-align: right; white-space: nowrap; }
  .results td::before { display: none; }
  .results td[data-label="Alternative"] { background: var(--green-soft); border-radius: 0; border-left: 3px solid var(--green); }
  .results .is-flagged th, .results .is-flagged td:not([data-label="Alternative"]) { background: linear-gradient(var(--red-soft), var(--red-soft)); }
  .results .is-account th, .results .is-account td { border-top: 2px solid var(--ink); }
  .statement__note { font-size: 1.25rem; }
}

@media (min-width: 1200px) {
  .hero__title { font-size: 5.2rem; }
}

@media print {
  .notice-bar, .site-header, .signup, .signup-section { display: none; }
  body::before { display: none; }
}
