/* Hallmark · shape: Feature Stack (draw e19ebf, used for the steps) · genre: atmospheric · theme: Darkroom (deal 2/3, seed courtier-automobile-qui-vend-6bed·3634c2b8·2026-11-19·r0) · redesign: full
 * hero: Counter (swap from Index: the eligibility check is the page's action) · nav: edge-aligned (swap from search-led: two destinations) · footer: letter close · imagery: the owner's Beacons video (Coverr), mono, hero and steps · signature: the eligibility check open in the first screen · darkroom: brand blue in place of amber, grain on wells
 * axes: dark/display-condensed/chromatic-blue · posture: restrained · contrast: pass · fold: pass · job: hire · copy: kept, 4 lines reworded · v2.0.0 */
/* Hallmark · answered F4 · the WhatsApp fill appears only in the result state, which replaces the intro and its Commencer button */
/* Hallmark · answered F15 · the four page splits share one 96px gap; 24px and 40px sit inside the quiz row and the footer */
/* Hallmark · reworded "Je vends votre voiture pour vous. Vous ne payez que si elle est vendue." to "Vous ne payez que si elle est vendue." · 58 caps the hero sentence at twelve words and the head already says it */
/* Hallmark · waive 28b · the steps clip sits below the fold and is not the LCP · it loads with preload none and only plays in view; the hero clip carries hero-poster.jpg */
/* Hallmark · dismissed 25 · the 44ch and 30ch blocks are two-line captions under a step numeral and a figure, not running prose */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, the library has no car photographs; the check itself leads the hero and the car pictures wait for Oumar's own */
@import url("./tokens.css");
@import url("./base.css");

/* chrome */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.nav__brand { display: block; line-height: 0; }
.nav__brand img { width: auto; height: 56px; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a:not(.btn) { color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent-line); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: 400 var(--text-lg)/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-md); }
.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); }
.link:hover { text-decoration-color: var(--color-accent-line); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* type */
h1, h2, .figure { text-transform: uppercase; line-height: 1.02; }
h1 { font-size: clamp(3.5rem, 7vw, 7rem); max-width: 11ch; }
h2 { font-size: clamp(2.75rem, 4vw + 0.5rem, 4.5rem); }
h3 { font-weight: 400; text-transform: uppercase; line-height: 1.05; font-size: var(--text-2xl); }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); color: var(--color-muted); }

/* sections */
.section { padding-block: var(--section-gap) 0; }
.section--l { padding-block: var(--section-gap-l) 0; }
.well { background: var(--color-paper-2); padding-block: var(--section-gap-s); margin-top: var(--section-gap); }
.grained { position: relative; isolation: isolate; }
.grained::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 9 -4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 200px 200px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }

/* hero: the check is the visual */
.hero { min-height: calc(100dvh - 73px); display: grid; align-items: center; padding-block: var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); align-content: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.hero__line { display: inline-block; }

/* Commencer: one signal, a soft colour step; the keyboard gets the same step plus the ring; label and size never change */
#start { transition: background-color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
#start:hover, #start:focus-visible { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
#start:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (hover: none) { #start { background: var(--color-accent); } #start:active { background: var(--color-accent-deep); } }
@media (prefers-reduced-motion: reduce) { #start, #start:active { transition: background-color var(--dur-short) linear; transform: none; } }

/* hero entrance: once, from a visible end state, no bounce, no zoom; the buttons never move */
@keyframes hero-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes hero-settle { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__line { animation: hero-rise 520ms var(--ease-out) both; }
  .hero__line + .hero__line { animation-delay: 110ms; }
  .hero .lead { animation: hero-rise 520ms var(--ease-out) 240ms both; }
  #intro > :not(.nav-row) { animation: hero-settle 680ms var(--ease-out) 80ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__line, .hero .lead, #intro > * { animation: none; opacity: 1; transform: none; }
}

/* the eligibility panel */
.panel { background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule); padding: var(--space-xl); min-height: 520px; display: grid; align-content: start; gap: var(--space-md); }
.panel h2 { font-weight: 400; font-size: var(--text-section); max-width: 18ch; }
.panel .hint { color: var(--color-ink-2); max-width: 48ch; }
.promise { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; }
.promise li { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); }
.promise li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.panel .nav-row, .card .nav { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.panel .nav-row .btn { flex: 1; }
.privacy { margin-top: var(--space-sm); max-width: 60ch; }
.progress { height: 2px; background: var(--color-rule); overflow: hidden; }
.progress div { height: 100%; width: 100%; background: var(--color-accent-line); transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-long) var(--ease-out); }
.step-label { font-size: var(--text-sm); color: var(--color-muted); }
.card { display: grid; gap: var(--space-md); }
.card h2 { font-weight: 400; font-size: var(--text-3xl); max-width: 22ch; }
.opts { display: grid; gap: var(--space-xs); }
.opt { display: block; width: 100%; min-height: 52px; text-align: left; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 0; background: transparent; color: var(--color-ink); font: 400 var(--text-md)/1.4 var(--font-body); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.opt:hover { border-color: var(--color-ink-2); background: var(--color-paper-3); }
.opt:active { background: var(--color-paper-3); }
.opt:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
#stepCard h2:focus, #result .badge:focus { outline: none; } /* cibles de focus du quiz, pas des contrôles */
.opt.sel { border-color: var(--color-accent-line); background: var(--color-paper-3); }
.lbl { display: block; font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-xs); }
.card select, .card input[type=text], .card input[type=number] { width: 100%; min-height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; appearance: none; -webkit-appearance: none; }
.card select { background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--space-2xl); }
.card select:focus-visible, .card input:focus-visible { outline-color: var(--color-focus); }
.card select:disabled { opacity: 0.55; cursor: not-allowed; background-color: var(--color-paper-2); color: var(--color-muted); }
.card .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.err { min-height: 1lh; font-size: var(--text-sm); color: var(--color-error); }
.btn.ghost { border-color: var(--color-rule); color: var(--color-ink-2); }
.btn.toend { flex: 1; color: var(--color-ink); border-color: var(--color-accent-line); }
.btn.wa { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); flex: 1; }
.btn.wa:hover { background: var(--color-accent-deep); }
.badge { justify-self: start; padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid currentColor; font-size: var(--text-sm); }
.badge.ok { color: var(--color-success); }
.badge.warn { color: var(--color-ink); }
.badge.ko { color: var(--color-error); }
ul.notes { margin: 0; padding-left: var(--space-lg); color: var(--color-ink-2); display: grid; gap: var(--space-2xs); }
.recap { white-space: pre-line; padding: var(--space-md); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); color: var(--color-ink-2); font-size: var(--text-sm); }
.card .small a { color: var(--color-ink); }

/* steps: one photograph held while three stages pass */
.stack { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.stack__visual { position: sticky; top: calc(72px + var(--space-xl)); }
.photo { margin: 0; aspect-ratio: 4 / 5; min-height: 440px; }
.photo--wide { aspect-ratio: 16 / 9; min-height: 360px; }
.stack__steps { list-style: none; counter-reset: step; margin: var(--space-2xl) 0 0; padding: 0; display: grid; }
.stack__steps li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); min-height: 240px; align-content: start; }
.stack__steps li::before { content: counter(step); font: 200 clamp(5rem, 8vw, 8rem)/0.9 var(--font-display); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.stack__steps p { color: var(--color-ink-2); margin-top: var(--space-sm); max-width: 44ch; }

/* figures as an edition */
.edition { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-2xl); }
.edition > div { padding-inline: var(--space-xl); border-left: var(--rule-hair) solid var(--color-rule); display: grid; align-content: start; gap: var(--space-sm); }
.edition > div:first-child { padding-left: 0; border-left: 0; }
.figure { font-family: var(--font-display); font-weight: 200; font-size: clamp(4.5rem, 9vw, 9.5rem); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; color: var(--color-ink); white-space: nowrap; }
.figure--lit { color: var(--color-accent-line); }
.edition p { color: var(--color-ink-2); max-width: 30ch; }
.guarantee { margin-top: var(--space-lg); max-width: 60ch; }
.edition__note { margin-top: var(--space-2xl); display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: baseline; justify-content: space-between; border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-lg); }

/* who */
.who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.who__text { display: grid; gap: var(--space-lg); }
.who__name { font: 400 var(--text-title)/1.2 var(--font-display); text-transform: uppercase; }
.who__count { display: grid; gap: var(--space-2xs); padding-block: var(--space-lg); border-block: var(--rule-hair) solid var(--color-rule); }
.who__count .figure { font-size: clamp(4rem, 7vw, 7.5rem); font-variant-numeric: tabular-nums; }
.who__text p { color: var(--color-ink-2); }

/* questions */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); }
.faq details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: 80px; padding-block: var(--space-md); cursor: pointer; list-style: none; font: 400 var(--text-title)/1.2 var(--font-display); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 200 var(--text-2xl)/1 var(--font-display); color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-ink-2); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 60ch; }

/* close */
.close { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; }
.close__actions { display: grid; gap: var(--space-sm); justify-items: start; }

/* footer: a letter close */
.foot { margin-top: var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl) var(--space-2xl); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-xl); align-items: end; }
.foot__sign { font: 200 var(--text-section)/1 var(--font-display); text-transform: uppercase; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); justify-content: flex-end; }
.foot__links a { color: var(--color-ink-2); }
.foot__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.credits { margin-top: var(--space-xl); font-size: var(--text-xs); color: var(--color-muted); max-width: 90ch; }
.credits a { color: var(--color-muted); }

@media (max-width: 60rem) {
  .hero { min-height: 0; }
  .hero__grid, .stack, .who, .faq, .close, .foot__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .stack__visual { position: static; }
  .edition { grid-template-columns: minmax(0, 1fr); }
  .edition > div { padding: var(--space-lg) 0; border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .edition > div:first-child { border-top: 0; }
  .foot__links { justify-content: flex-start; }
  .nav__links a:not(.btn) { display: none; }
  .panel { padding: var(--space-lg); min-height: 0; }
}
@media (max-width: 40rem) {
  .stack__steps li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); min-height: 0; }
  .card .row { grid-template-columns: minmax(0, 1fr); }
}

/* site vivant: each block rises once as it scrolls in, visible by default and without script */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 5) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* hero video: the Beacons clip, printed in the Darkroom way, under a scrim of the ground */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero > .container { position: relative; z-index: 2; }
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--color-paper); color: var(--color-ink); }
.hero__media video, .clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.7); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in oklab, var(--color-paper) 88%, transparent) 0%, color-mix(in oklab, var(--color-paper) 62%, transparent) 55%, color-mix(in oklab, var(--color-paper) 40%, transparent) 100%); }
.hero__pause, .clip__pause { position: absolute; right: var(--gutter); bottom: var(--space-lg); z-index: 3; background: color-mix(in oklab, var(--color-paper) 70%, transparent); }
.clip { position: relative; overflow: hidden; background: var(--color-paper-2); }
.clip__pause { right: var(--space-md); bottom: var(--space-md); }
html:not(.js) [data-loop-toggle] { display: none; }
@media (prefers-reduced-motion: reduce) { [data-loop] video { display: none; } }
.who__count--big { border: 0; padding: 0; justify-items: start; }
.who__count--big .figure { font-size: clamp(7rem, 16vw, 15rem); font-variant-numeric: tabular-nums; }

/* mobile: the check comes before the WhatsApp button, so Commencer sits in the first screen */
@media (max-width: 60rem) {
  .hero { padding-block: var(--space-lg) var(--space-2xl); }
  .hero__grid { gap: var(--space-lg); }
  .hero__text { display: contents; }
  .hero h1 { order: 1; font-size: clamp(2.5rem, 10vw, 3.25rem); max-width: none; text-align: center; }
  .hero .lead { order: 2; text-align: center; }
  #check { order: 3; }
  .hero__actions { order: 4; margin-top: 0; justify-content: center; }
  .panel { gap: var(--space-sm); }
  .promise li { padding-block: var(--space-xs); }
}

/* legal pages: same chrome and ground, a readable column */
.legal { padding-block: var(--space-3xl) 0; }
.legal__in { max-width: calc(860px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(3rem, 6vw, 5rem); max-width: none; margin-bottom: var(--space-sm); }
.legal h2 { font-size: var(--text-2xl); font-weight: 400; margin: var(--space-2xl) 0 var(--space-sm); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.legal p, .legal li { color: var(--color-ink-2); max-width: 70ch; }
.legal p + p { margin-top: var(--space-sm); }
.legal ul { padding-left: var(--space-lg); display: grid; gap: var(--space-2xs); }
.legal strong { color: var(--color-ink); font-weight: 400; }
.legal a { color: var(--color-ink); text-decoration-color: var(--color-accent-line); }
.legal a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; margin-block: var(--space-md); }
.legal th, .legal td { text-align: left; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.legal th { color: var(--color-ink); font-weight: 400; }
.legal td { color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
