/* Carré Clair. Polices Archivo et Geist Mono (licence OFL), hébergées localement.
   Motif : le carré. Une entrée du registre = un carré ; plein = autorisée.
   Un rayon (2px), un vert, un rouge de correction réservé aux verdicts. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 400 700; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
:root {
  --bg: #fbfdfb; --field: #cfe5c6; --field-2: #e6f1e1; --ink: #10261a; --soft: #47584e; --line: #c3d1c5;
  --accent: #2c5a3b; --on-accent: #fbfdfb; --pen: #b3261a;
  --ok: #d3ead0; --ok-ink: #1f4a2b; --warn: #f6e3ae; --warn-ink: #5f4506; --bad: #f7d9d3; --bad-ink: #8c2515;
  --r: 2px; --gap: clamp(24px, 4vw, 64px); --section: clamp(64px, 9vw, 128px);
  --out: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-tap-highlight-color: rgba(44, 90, 59, .16); }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }

/* En-tête, sur le même fond que le premier écran */
header.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; padding: 8px 0; }
.brand::before { content: ""; width: 24px; height: 24px; border: 3px solid var(--ink); background: linear-gradient(var(--accent), var(--accent)) 100% 100% / 54% 54% no-repeat #fff; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav a { text-decoration: none; white-space: nowrap; padding: 10px 0; }
.nav a:not(.btn):hover { text-decoration: underline; color: var(--ink); }
.nav a.btn { padding: 10px 18px; font-size: 16px; }
body:not(:has(.legal)):not(:has(.report)) header.top { position: relative; isolation: isolate; }
body:has(.band) header.top::before { content: ""; position: absolute; z-index: -1; inset: -1px -50vw 0; background: var(--field); }

/* Titres et texte */
h1, h2, h3 { font-weight: 640; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1; letter-spacing: -.035em; font-stretch: 104%; margin-bottom: 24px; }
h1 em { font-style: normal; }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -.03em; font-stretch: 104%; margin-bottom: 18px; max-width: 18em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 6px; }
p { text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 32em; margin: 0 0 32px; }
.sub { color: var(--soft); max-width: 40em; margin: 0 0 44px; font-size: 18px; }
.micro { font-size: 15px; color: var(--soft); margin: 16px 0 0; max-width: 36em; }
.source { font-size: 15px; color: var(--soft); max-width: 46em; margin: 28px 0 0; }
.ref { font-family: var(--mono); font-size: 14px; color: var(--soft); white-space: nowrap; }
.btn { display: inline-block; background: var(--ink); color: var(--on-accent); font-weight: 560; font-size: 18px; line-height: 1.25; text-decoration: none; padding: 17px 26px; border-radius: var(--r); transition: background-color .18s var(--out), transform .18s var(--out); touch-action: manipulation; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.alt { display: inline-block; font-weight: 560; padding: 14px 0; margin-left: 24px; }

/* Premier écran : champ vert pleine largeur */
.band { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: var(--gap); align-items: center; padding: 32px 0 72px; }
.band::before { content: ""; position: absolute; z-index: -1; inset: -1px -50vw 0; background: var(--field); }
.band > * { min-width: 0; }
.band .micro, .band .ref { color: #2f4638; }

/* La phrase corrigée : ce que le client reçoit */
.sheet { margin: 0; background: #fff; border-radius: var(--r); padding: clamp(26px, 3vw, 44px); }
.sheet p { margin: 0; }
.sheet figcaption { font-size: 16px; color: var(--soft); padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.sheet .was { font-size: clamp(28px, 2.9vw, 42px); font-weight: 640; letter-spacing: -.025em; line-height: 1.1; }
.sheet .was .strike { background-size: 100% .09em; }
.sheet .now { font-size: clamp(21px, 1.9vw, 27px); font-weight: 560; line-height: 1.25; color: var(--accent); margin: 20px 0 12px; }
.sheet .cond { color: var(--soft); }
.sheet .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.strike { text-decoration: none; background: linear-gradient(var(--pen), var(--pen)) 0 56% / 100% 2px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Extrait de rapport */
.mock { background: #fff; border-radius: var(--r); padding: 26px 28px 10px; }
.mock-label { font-weight: 560; font-size: 16px; padding-bottom: 14px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.35; font-weight: 560; }
.row small { display: block; color: var(--soft); margin-top: 6px; font-size: 15.5px; font-weight: 400; line-height: 1.45; }
.row .ref { display: block; margin-top: 8px; font-weight: 400; color: var(--soft) !important; }
.pill { font-size: 14.5px; font-weight: 560; padding: 5px 10px; border-radius: var(--r); white-space: nowrap; }
.ok { background: var(--ok); color: var(--ok-ink); }
.warn { background: var(--warn); color: var(--warn-ink); }
.bad { background: var(--bad); color: var(--bad-ink); }

.trust { list-style: none; margin: 0; padding: 32px 0 0; display: grid; grid-template-columns: 1.5fr 1.5fr 1fr 1fr; gap: 20px var(--gap); font-size: 16px; line-height: 1.42; }

section { padding: var(--section) 0 0; }
main > section:last-of-type { padding-bottom: 0; }

/* Le registre en carrés : 57 x 41 = 2 337 */
.register { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.register svg { display: block; width: 100%; height: auto; }
.register .on { fill: var(--accent); }
.register .off { fill: #c9d6cb; }
.register dl { margin: 0; display: grid; gap: 24px; }
.register dt { font-size: clamp(38px, 4.4vw, 60px); font-weight: 640; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.register dd { margin: 8px 0 0; color: var(--soft); max-width: 26em; }

/* Mots vérifiés : un carré vide par entrée */
.words { display: grid; gap: 0; margin: 0; }
.words > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px var(--gap); align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.words dt { font-size: clamp(34px, 5.4vw, 76px); font-weight: 640; line-height: 1.05; letter-spacing: -.035em; font-stretch: 112%; }
.words dt .strike { background-size: 100% .07em; }
.words dd { margin: 0; }
.words p { margin: 10px 0 0; color: var(--soft); }
.cells { display: flex; flex-wrap: wrap; gap: 6px; }
.cells i { width: 22px; height: 22px; border: 2px solid #7f9385; }

.method { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--gap); align-items: start; }
.method > * { min-width: 0; }
.method .sub { margin-bottom: 0; }
.steps { list-style: none; counter-reset: s; margin: 0 0 24px; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 0 0 32px; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 640; font-size: 19px; }
.steps p { margin: 0; color: var(--soft); }

/* Le rapport, montré tel qu'il est livré */
.deliver { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.deliver > a { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); background: var(--field-2); padding: clamp(18px, 3vw, 44px); border-radius: var(--r); }
.deliver img { width: 100%; box-shadow: 0 1px 2px rgba(16, 38, 26, .12), 0 14px 32px -18px rgba(16, 38, 26, .45); }
.deliver .sub { margin-bottom: 8px; }
.deliver .alt { margin-left: 0; }
.verdicts { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
.verdicts dd { margin: 10px 0 0; color: var(--soft); font-size: 18px; }
.verdicts .pill { font-size: 17px; padding: 7px 14px; }
.prose p { margin: 0 0 16px; font-size: 18px; max-width: 40em; }
.page { padding-top: 40px; }
.page .lead { margin: 0; }

/* Tarifs : une offre vendue, les autres en retrait */
.plans { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 var(--gap); align-items: start; }
.plan { padding: 24px 0; border-top: 1px solid var(--line); }
.plan ul { list-style: none; margin: 14px 0 0; padding: 0; color: var(--soft); }
.plan.pick { grid-row: span 2; background: var(--field); border: 0; border-radius: var(--r); padding: clamp(28px, 4vw, 52px); }
.plan.pick h3 { font-size: 24px; }
.plan.pick ul { color: var(--ink); font-size: 19px; margin: 20px 0 32px; }
.price { margin: 0; font-size: 26px; font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price span { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--soft); }
.pick .price { font-size: clamp(56px, 7vw, 92px); line-height: 1; letter-spacing: -.04em; }
.pick .price span { color: var(--ink); }
.plan.pick:only-child { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 var(--gap); }
.plan.pick:only-child > :not(ul) { grid-column: 1; justify-self: start; }
.plan.pick:only-child ul { grid-area: 1 / 2 / span 3; align-self: center; margin: 0; }
.plan.pick:only-child .btn { margin-top: 28px; }
.plan .ask { display: inline-block; padding: 12px 0; font-weight: 560; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--gap); }
.cols p { margin: 0; color: var(--soft); }
.num { display: block; font-size: 46px; font-weight: 640; line-height: 1; letter-spacing: -.035em; margin-bottom: 12px; }

.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--gap); }
details { border-top: 1px solid var(--line); }
details p { margin: 0; padding: 0 40px 22px 0; color: var(--soft); max-width: 42em; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 600; font-size: 19px; line-height: 1.3; padding: 18px 0; min-height: 44px; touch-action: manipulation; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 16px; height: 16px; border: 3px solid var(--ink); }
details[open] > summary::after { background: var(--accent); border-color: var(--accent); }
summary:hover { color: var(--accent); }

.report { width: 100%; border-collapse: collapse; background: #fff; font-size: 16.5px; }
.report th { text-align: left; font-weight: 560; color: var(--soft); padding: 14px 20px 14px 0; border-bottom: 2px solid var(--ink); }
.report td { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.report td:first-child { font-weight: 560; }
.report td small { display: block; color: var(--soft); margin-top: 6px; font-size: 15px; }
.sum { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.sum .pill { font-size: 17px; padding: 8px 14px; }

.final { position: relative; isolation: isolate; margin-top: var(--section); padding: clamp(56px, 8vw, 104px) 0 !important; }
.final::before { content: ""; position: absolute; z-index: -1; inset: -1px -50vw 0; background: var(--field); }
.final h2 { max-width: 15em; margin-bottom: 28px; }
.final .micro { color: #2f4638; }
footer { padding: 32px 0 48px; font-size: 16px; color: var(--soft); }
footer a { display: inline-block; padding: 6px 0; }

.legal { max-width: 46em; padding: 48px 0 72px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 54px); }
.legal h2 { font-size: 21px; letter-spacing: -.01em; line-height: 1.25; margin: 38px 0 8px; }
.legal p { color: var(--soft); margin: 0 0 12px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  header.top { flex-wrap: wrap; justify-content: flex-start; height: auto; padding: 14px 0 8px; gap: 2px 22px; }
  header.top::after { content: ""; order: 1; flex-basis: 100%; }
  .nav { display: contents; }
  .nav a { font-size: 16px; }
  .nav a.btn { order: 1; margin-left: auto; }
  .nav a:not(.btn) { order: 2; padding: 10px 0; }
  .band, .register, .method, .plans, .faq, .deliver { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 22px 0 44px; gap: 36px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .plan.pick:only-child { display: block; }
  .plan.pick:only-child ul { margin: 20px 0 0; }
  .words > div { grid-template-columns: minmax(0, 1fr); }
  .report thead { display: none; }
  .report, .report tbody, .report tr, .report td { display: block; }
  .report tr { border-bottom: 1px solid var(--line); padding: 18px 0; }
  .report td { border: 0; padding: 5px 0; }
}
@media (max-width: 460px) {
  .verdicts { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 12px; }
  .band .alt { margin-left: 0; display: block; width: max-content; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .row .pill { justify-self: start; }
  .mock { padding: 20px 20px 6px; }
  .nav a:not(.btn) { font-size: 15.5px; }
  header.top { gap: 2px 14px; }
  .nav a.btn { padding: 12px 14px; font-size: 15.5px; }
}
@media (forced-colors: active) { .strike { text-decoration: line-through; } }
