/* ================================================================
   WBG Immo : monde « Implantation »
   Terrain borné au cordeau, fond vert forêt (jamais de rouge). Quatre encres plates, aucun dégradé,
   aucun verre, aucune ombre portée. Angles droits partout.
================================================================ */

@font-face {
  font-family: "Big Shoulders Stencil Display";
  src: url("../fonts/big-shoulders-stencil-display.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ground: #244A2E;
  --ground-deep: #1A3722;
  --earth: #2A1209;
  --chalk: #F4F3EF;
  --stake: #FFB000;
  --forest: #2F5D3A;
  --muted: #5B4A42;
  --rule: #D9D4CB;

  --display: "Big Shoulders Stencil Display", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
  --section: clamp(64px, 9vw, 120px);
  --header: 68px;

  /* grain de terre : petit motif SVG, fixe, sans réseau */
  --grain: 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 .02 0 0 0 0 .09 0 0 0 0 .04 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
  scrollbar-color: var(--ground) var(--chalk);
  accent-color: var(--ground);
  caret-color: var(--ground);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--earth);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
::selection { background: var(--stake); color: var(--earth); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 3px solid var(--stake); outline-offset: 3px; }
.on-chalk :focus-visible, .band--chalk :focus-visible, .top :focus-visible { outline-color: var(--earth); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--stake); color: var(--earth); padding: 12px 16px; font-weight: 700;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type ───────────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
  text-wrap: balance;
}
h1.display { font-size: clamp(2.875rem, 8vw, 4.75rem); }
h2.display { font-size: clamp(2.25rem, 5.4vw, 3.75rem); }
h3 { font: 700 1.25rem/1.25 var(--body); }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.5; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ── Boutons : têtes de piquet ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 14px 24px;
  background: var(--stake); color: var(--earth);
  font: 700 1.0625rem/1.2 var(--body);
  text-decoration: none; border: 2px solid var(--stake);
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.btn:hover { background: var(--chalk); border-color: var(--chalk); }
.band--chalk .btn:hover { background: var(--earth); color: var(--chalk); border-color: var(--earth); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: var(--chalk); color: var(--earth); border-color: var(--chalk); }
.band--chalk .btn--line:hover { background: var(--earth); color: var(--chalk); border-color: var(--earth); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* ── Piquet numéroté ────────────────────────────────────────── */
.stake {
  --w: 36px;
  width: var(--w); height: calc(var(--w) * 1.22);
  display: inline-grid; place-items: start center; padding-top: calc(var(--w) * .12);
  background: var(--stake); color: var(--earth);
  font: 900 calc(var(--w) * .56)/1 var(--display);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  flex: none;
}
.stake--lg { --w: 48px; }

/* ── Bandes ─────────────────────────────────────────────────── */
.band { padding-block: var(--section); position: relative; }
.band--ground { background: var(--ground) var(--grain); color: var(--chalk); }
.band--chalk { background: var(--chalk); color: var(--earth); }
.band--deep { background: var(--ground-deep); color: var(--chalk); border-top: 2px solid var(--chalk); }
.band--chalk + .band--chalk { border-top: 2px solid var(--earth); }
.band--ground .muted, .band--deep .muted { color: var(--chalk); }
.band--ground a:not(.btn), .band--deep a:not(.btn) { text-decoration-thickness: 2px; }

.stakehead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: clamp(28px, 5vw, 56px); }
.stakehead .stake { margin-top: .3em; }

/* ── En-tête ────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--chalk); border-bottom: 2px solid var(--earth);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header); }
.brand img { height: 36px; width: auto; }
.top-nav { display: none; align-items: center; gap: clamp(14px, 1.6vw, 28px); font: 600 .9375rem/1 var(--body); }
.top-nav a { text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.top-nav a:hover, .top-nav a[aria-current] { border-bottom-color: var(--stake); }
.top-nav .n, .menu .n { font: 900 .875rem/1 var(--display); color: var(--forest); margin-right: .4em; letter-spacing: .02em; }
.top .btn { min-height: 44px; padding: 10px 18px; }
.top-cta { display: none; }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 14px; border: 2px solid var(--earth); font: 700 .9375rem/1 var(--body);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--earth); color: var(--chalk); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(88vw, 340px);
  background: var(--chalk); border: 2px solid var(--earth); padding: 8px;
  display: grid;
}
.menu nav a { padding: 14px 12px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule); }
.menu nav a:last-child { border-bottom: 0; }
.menu nav a:hover { background: var(--stake); }

@media (min-width: 1120px) {
  .top-nav { display: flex; }
  .top-cta { display: inline-flex; }
  .menu { display: none; }
}

/* ── Hero : le terrain borné ────────────────────────────────── */
.hero { padding-block: clamp(40px, 7vw, 96px); overflow-x: clip; }
.hero .wrap { max-width: 1320px; padding-inline: max(var(--gutter), 28px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.75fr) minmax(0, .8fr); } }

.plot { position: relative; padding: clamp(52px, 5vw, 68px) clamp(28px, 5vw, 72px); }
.cord { position: absolute; background: var(--chalk); }
.cord--t, .cord--b { left: 0; right: 0; height: 2px; }
.cord--l, .cord--r { top: 0; bottom: 0; width: 2px; }
.cord--t { top: 0; transform-origin: left; }
.cord--r { right: 0; transform-origin: top; }
.cord--b { bottom: 0; transform-origin: right; }
.cord--l { left: 0; transform-origin: bottom; }
.plot .stake { position: absolute; transform: translate(-50%, -62%); }
.plot .s1 { left: 0; top: 0; } .plot .s2 { left: 100%; top: 0; }
.plot .s3 { left: 100%; top: 100%; } .plot .s4 { left: 0; top: 100%; }
.plot h1 { margin-bottom: clamp(20px, 3vw, 32px); }
.plot .lead { max-width: 40ch; margin-bottom: clamp(24px, 3vw, 32px); }

.checks { list-style: none; margin: clamp(24px, 3vw, 32px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; font-size: .9375rem; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 10px; height: 10px; background: var(--stake); flex: none; }

.hero-phone { display: none; }
@media (min-width: 960px) { .hero-phone { display: block; } }
.phone { border: 3px solid var(--earth); background: var(--earth); }
.phone img { width: 100%; height: auto; }
.hero-phone .phone { border-color: var(--chalk); max-width: 300px; margin-inline: auto; }
figcaption { font-size: .9375rem; }
.hero-phone figcaption { margin-top: 12px; color: var(--chalk); text-align: center; }

@keyframes pull-x { from { transform: scaleX(0); } }
@keyframes pull-y { from { transform: scaleY(0); } }
@keyframes plant { from { opacity: 0; translate: 0 -18px; } }
@media (prefers-reduced-motion: no-preference) {
  .cord--t { animation: pull-x 900ms cubic-bezier(.16, 1, .3, 1) .15s backwards; }
  .cord--r { animation: pull-y 900ms cubic-bezier(.16, 1, .3, 1) .45s backwards; }
  .cord--b { animation: pull-x 900ms cubic-bezier(.16, 1, .3, 1) .75s backwards; }
  .cord--l { animation: pull-y 900ms cubic-bezier(.16, 1, .3, 1) 1.05s backwards; }
  .plot .stake { animation: plant 600ms cubic-bezier(.16, 1, .3, 1) backwards; }
  .plot .s1 { animation-delay: .05s; } .plot .s2 { animation-delay: .35s; }
  .plot .s3 { animation-delay: .65s; } .plot .s4 { animation-delay: .95s; }
}

/* classes utilitaires de page (remplacent les styles en ligne) */
.intro { margin-bottom: 40px; }
.after { margin-top: 40px; }
.after-lg { margin-top: 48px; }
.unit.tight { margin: 12px 0 0; }
.lead--plain { font-weight: 400; max-width: 44ch; }
.band--tight { padding-block: clamp(40px, 6vw, 80px); }
.band--flush { padding-block: 0; }
.chart-block { margin-top: clamp(40px, 6vw, 72px); }
.h-sub { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 20px; }

/* ── Étapes ─────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: none; }
.steps li { position: relative; padding-left: 64px; }
.steps li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: -40px; width: 2px; background: var(--earth); }
.steps li:last-child::before { display: none; }
.steps .stake { position: absolute; left: 0; top: 0; }
.steps h3 { margin-bottom: 8px; padding-top: 4px; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { padding: 56px 0 0; }
  .steps li::before { left: 0; right: -32px; top: 20px; bottom: auto; width: auto; height: 2px; }
  .steps .stake { left: 0; top: 0; }
}

/* ── Écrans de l'app ────────────────────────────────────────── */
.screens {
  list-style: none; margin: 0; padding: 0 var(--gutter) 8px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.screens li { flex: 0 0 min(64vw, 240px); scroll-snap-align: start; }
.screens figure { margin: 0; }
.screens .phone { margin-bottom: 14px; }
.screens h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.screens figcaption p { margin: 0; font-size: .9375rem; color: var(--muted); }
@media (min-width: 1000px) {
  .screens { overflow: visible; padding-inline: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .screens li { flex: none; }
}
.screens-wrap { max-width: 1180px; margin-inline: auto; }
.screens-note { margin-top: 32px; }

/* ── Groupe ─────────────────────────────────────────────────── */
.group { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .group { grid-template-columns: 1fr 1fr; } }
.group ol { margin: 24px 0 0; padding-left: 1.25em; }
.group li { margin-bottom: 10px; }
.overprint { background: var(--chalk); padding: clamp(20px, 4vw, 40px); }
.overprint svg { width: 100%; height: auto; }
.overprint .a { fill: var(--stake); }
.overprint .b { fill: var(--forest); }
.overprint text { font: 700 15px var(--body); fill: var(--earth); }
.overprint text.on-b { fill: var(--chalk); }
.overprint .cap { margin: 14px 0 0; color: var(--muted); font-size: .9375rem; }

/* ── Simulateur ─────────────────────────────────────────────── */
.sim { display: grid; gap: clamp(28px, 5vw, 56px); }
@media (min-width: 900px) { .sim { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.field { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.field output { font-variant-numeric: tabular-nums; color: var(--forest); font-weight: 700; }
.field small { display: block; margin-top: 8px; color: var(--muted); font-size: .875rem; }
input[type="number"] {
  width: 100%; min-height: 52px; padding: 10px 14px; font: 600 1.125rem var(--body);
  background: #fff; color: var(--earth); border: 2px solid var(--earth); border-radius: 0;
}
input[type="number"]:focus-visible { outline: 3px solid var(--stake); outline-offset: 2px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--earth); }
input[type="range"]::-moz-range-track { height: 4px; background: var(--earth); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 32px; margin-top: -14px;
  background: var(--stake); border: 2px solid var(--earth); border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 28px; background: var(--stake); border: 2px solid var(--earth); border-radius: 0; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.choices label {
  display: grid; place-items: center; min-height: 52px; padding: 8px; text-align: center;
  border: 2px solid var(--earth); margin-left: -2px; font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.choices label:first-child { margin-left: 0; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) { background: var(--earth); color: var(--chalk); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--stake); outline-offset: 2px; position: relative; z-index: 1; }

.result { background: var(--ground) var(--grain); color: var(--chalk); padding: clamp(24px, 4vw, 40px); position: relative; }
.result .big { font: 900 clamp(3.5rem, 11vw, 6rem)/.9 var(--display); color: var(--stake); font-variant-numeric: tabular-nums; }
.result .unit { font-weight: 600; margin: 4px 0 24px; }
.cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin: 8px 0 12px; position: relative; padding: 14px; }
.cells i { aspect-ratio: 1; background: var(--ground-deep); }
.cells i.on { background-color: var(--forest); background-size: 8px 8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-2 2l4-4M0 8l8-8M6 10l4-4' stroke='%23F4F3EF' stroke-width='1.5'/%3E%3C/svg%3E"); }
.cells .cord { background: var(--chalk); }
.facts { display: grid; gap: 0; margin: 20px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(244, 243, 239, .55); }
.facts dt { font-weight: 400; }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.sim-note { margin-top: 16px; font-size: .9375rem; }
.elapsed { margin-top: 8px; }
.elapsed label { display: flex; justify-content: space-between; font-weight: 600; font-size: .9375rem; }
.elapsed input[type="range"]::-webkit-slider-runnable-track { background: var(--chalk); }
.elapsed input[type="range"]::-moz-range-track { background: var(--chalk); }
.nojs-note { display: none; padding: 20px; border: 2px solid currentColor; font-weight: 600; }
html:not(.js) .needs-js { display: none !important; }
html:not(.js) .nojs-note { display: block; }

/* page simulateur avancé */
.chart { background: #fff; border: 2px solid var(--earth); padding: 12px; }
.chart svg { width: 100%; height: auto; }
.chart .axis { stroke: var(--earth); stroke-width: 2; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ground); stroke-width: 4; stroke-linejoin: round; }
.chart .area { fill: var(--forest); opacity: .22; }
.chart .goal { stroke: var(--earth); stroke-width: 2; stroke-dasharray: 8 6; }
.chart text { font: 600 12px var(--body); fill: var(--muted); }
table.miles { width: 100%; border-collapse: collapse; margin-top: 24px; font-variant-numeric: tabular-nums; }
table.miles caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
table.miles th, table.miles td { text-align: left; padding: 12px 8px; border-top: 1px solid var(--earth); }
table.miles td:last-child, table.miles th:last-child { text-align: right; }

/* ── Garanties et FAQ ───────────────────────────────────────── */
.rules { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--earth); }
.rules .mark { width: 16px; height: 16px; margin: 6px 0 0 4px; background: var(--stake); }
.rules li { display: grid; grid-template-columns: 56px 1fr; gap: 8px 16px; padding: 24px 0; border-bottom: 2px solid var(--earth); }
.rules h3 { margin-bottom: 4px; }
.rules p { margin: 0; color: var(--muted); grid-column: 2; }
@media (min-width: 860px) {
  .rules li { grid-template-columns: 56px minmax(0, 18rem) minmax(0, 1fr); align-items: start; }
  .rules h3 { margin: 4px 0 0; }
  .rules p { grid-column: auto; }
}
.faq { border-top: 2px solid var(--earth); }
.faq details { border-bottom: 2px solid var(--earth); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; min-height: 64px; font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--stake); font: 900 1.5rem/1 var(--display); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 24px; }
.faq .a p { margin: 0; color: var(--muted); }

/* ── Contact et pied de page ────────────────────────────────── */
.contact { display: grid; gap: clamp(32px, 6vw, 64px); }
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr .8fr; align-items: end; } }
.soon { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.soon span { border: 2px dashed var(--chalk); padding: 12px 16px; font-weight: 600; }
.soon small { display: block; font-weight: 400; font-size: .8125rem; }
.contact address { font-style: normal; display: grid; gap: 10px; font-size: 1.125rem; }
.contact address a { font-weight: 700; }
.foot { padding-block: 48px 40px; font-size: .9375rem; }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot .word { font: 900 2rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.foot h2 { font: 700 .875rem/1 var(--body); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-block; padding: 6px 0; }
.foot .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--chalk); }

/* ── Pages internes : lecture ───────────────────────────────── */
.page-hero { padding-block: clamp(40px, 7vw, 88px); }
.crumbs { margin: 0 0 20px; font-size: .9375rem; }
.crumbs a { text-decoration-thickness: 2px; }
.page-hero p { margin: 16px 0 0; font-weight: 600; }
.doc { display: grid; gap: 40px; padding-block: var(--section); }
@media (min-width: 1000px) { .doc { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: .9375rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--earth); }
.toc a { display: block; padding: 8px 14px; text-decoration: none; }
.toc a:hover { background: var(--stake); }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header) + 24px); align-self: start; } }
.prose { max-width: 68ch; }
.prose h2 { font: 800 clamp(1.5rem, 3vw, 1.875rem)/1.15 var(--body); margin: 2.5em 0 .6em; padding-top: 1em; border-top: 2px solid var(--earth); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p, .prose li { color: var(--earth); }
.prose strong { font-weight: 700; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--forest); text-decoration-thickness: 2px; font-weight: 600; }
.doc-links { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .menu, .skip { display: none; }
  .band--ground, .band--deep { background: none; color: #000; }
}

/* ── Mouvement : le cordeau se tend, les piquets se plantent ──────
   Tout est visible par défaut. Les entrées au défilement n'existent que
   si le navigateur sait les piloter (animation-timeline) et si
   prefers-reduced-motion ne demande pas de les retirer. */
.stakehead h2 { position: relative; padding-bottom: .16em; }
.stakehead h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: currentColor; transform-origin: left; }
.cells i { transition: background-color .2s ease-out; }
.btn svg { transition: translate .2s cubic-bezier(.16, 1, .3, 1); }
.btn:hover svg { translate: 5px 0; }
.btn:active { translate: 0 2px; }

@keyframes rise { from { opacity: 0; translate: 0 28px; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-phone { animation: rise 900ms cubic-bezier(.16, 1, .3, 1) 1.2s backwards; }

  @supports (animation-timeline: view()) {
    .stakehead .stake,
    .steps .stake {
      animation: plant 1ms cubic-bezier(.16, 1, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
    .stakehead h2::after {
      animation: pull-x 1ms cubic-bezier(.16, 1, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 15% entry 85%;
    }
    .steps li::before {
      transform-origin: top;
      animation: pull-y 1ms linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }
    .rules li, .group > div, .result, .sim > div:first-child {
      animation: rise 1ms cubic-bezier(.16, 1, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    .overprint .a, .overprint .b {
      transform-box: fill-box; transform-origin: left;
      animation: pull-x 1ms cubic-bezier(.16, 1, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
    @media (min-width: 860px) {
      .steps li::before { transform-origin: left; animation-name: pull-x; }
    }
    @media (min-width: 1000px) {
      .screens li {
        animation: rise 1ms cubic-bezier(.16, 1, .3, 1) both;
        animation-timeline: view();
        animation-range: entry 0% entry 55%;
      }
      .screens li:nth-child(2) { animation-range: entry 8% entry 63%; }
      .screens li:nth-child(3) { animation-range: entry 16% entry 71%; }
      .screens li:nth-child(4) { animation-range: entry 24% entry 79%; }
    }
  }

  /* FAQ : la réponse se déplie au lieu d'apparaître d'un coup */
  @supports (interpolate-size: allow-keywords) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow: clip;
      transition: block-size .3s cubic-bezier(.16, 1, .3, 1), content-visibility .3s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}
