/*
 * StockSys — page produit (site-next).
 * Concept : « le comptoir, la nuit puis le jour ». Ouverture cinéma sur fond encre avec la vidéo,
 * puis un monde de travail clair et exact où chaque chiffre est en mono tabulaire.
 * Polices auto-hébergées (CSP font-src 'self') : Inter variable (titres 800, texte 400/500),
 * IBM Plex Mono (montants, comptes, versions, touches).
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1f1f1f;
  --paper: #f7f7f5;
  --white: #ffffff;
  --text: #111113;
  --text-2: #3f3f46;
  --muted: #6b6b73;
  --line: #e3e3e0;
  --line-2: #cfcfca;
  --teal: #14b8a6;
  --teal-ink: #0f766e;
  --teal-soft: #ccfbf1;
  --orange: #f97316;
  --orange-ink: #c2410c;
  --on-ink: #fafafa;
  --on-ink-2: #c9c9cf;
  --on-ink-muted: #8d8d97;
  --line-ink: rgba(255, 255, 255, 0.12);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 56px);
  --top-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
}

img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
a { color: var(--teal-ink); }
button { font: inherit; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--white); color: var(--text); padding: 0.75em 1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

[id] { scroll-margin-top: calc(var(--top-h) + 12px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Titres : Inter 800, interlettrage serré ; jamais de majuscules d'étiquette. */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.section-title { margin-bottom: 12px; }
.section-lead { color: var(--text-2); max-width: 60ch; margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  white-space: nowrap; will-change: transform;
  transition: transform 0.35s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.925rem; }
.btn-primary { background: var(--teal); color: var(--ink); }
.btn-primary:hover { background: #2dd4bf; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost-dark { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-dark:hover { border-color: var(--on-ink); background: rgba(255, 255, 255, 0.06); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.55); border-color: rgba(20, 25, 51, 0.22); }
.hero .btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.8); }
.btn svg { flex: none; }

/* ---------- En-tête ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--top-h);
  color: var(--on-ink);
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.top.is-scrolled { background: rgba(10, 10, 10, 0.92); border-bottom-color: var(--line-ink); }
/* en haut de page, au-dessus de la scène claire du héro : barre claire (redevient sombre au défilement ou menu ouvert) */
.top:not(.is-scrolled):not(:has(.main-nav.is-open)) { color: var(--text); background: rgba(240, 242, 250, 0.72); border-bottom-color: rgba(20, 25, 51, 0.06); }
.top-bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 1.125rem; }
.brand svg { flex: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin-right: -10px; background: transparent; border: 0; color: inherit; cursor: pointer; border-radius: 8px;
}
.nav-toggle path { transition: transform 0.3s var(--ease-out), opacity 0.2s; transform-origin: 11px 11px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-a { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-b { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-c { transform: translateY(-4.5px) rotate(-45deg); }

.main-nav {
  position: absolute; top: var(--top-h); left: 0; right: 0;
  display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 20px; background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--line-ink);
}
.main-nav.is-open { display: flex; }
.main-nav a { color: var(--on-ink-2); text-decoration: none; padding: 12px 4px; font-weight: 500; border-radius: 6px; }
.main-nav a:hover { color: var(--on-ink); }
.main-nav .nav-cta { margin-top: 8px; color: var(--ink); align-self: flex-start; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: transparent; border: 0; }
  .main-nav a { padding: 6px 0; font-size: 0.95rem; }
  .main-nav .nav-cta { margin: 0 0 0 8px; padding: 10px 18px; }
  .top:not(.is-scrolled) .main-nav a:not(.nav-cta) { color: var(--text-2); }
  .top:not(.is-scrolled) .main-nav a:not(.nav-cta):hover { color: var(--text); }
}

/* ---------- Héro : le dépôt en mouvement ----------
 * Mobile d'abord : titre, accroche courte et boutons, puis la scène bord à bord (≈ 45 % de l'écran),
 * puis deux chiffres ; aucun texte sur la 3D, à part les bulles attachées aux objets. Écran large
 * (≥ 600 px et plus large que haut) : la scène occupe tout le héro et le texte se pose sur le sol nu que
 * la composition laisse à gauche — aucun objet ne passe derrière. La composition 4:3 (affiche, vidéo et
 * 3D au même pixel) est placée par la CSS sur le calque .hero-comp, dont js3d/scene.js lit le rectangle.
 * Chiffres et bulles sont du texte (js3d/story.js).
 */
.hero, .gerant {
  --hud-ink: #141933;
  --hud-muted: #5d657f;
  --hud-blue: #2f5fe0;
  --hud-ok: #14805e;
  --hud-ok-bg: #dcf5e9;
  --hud-run: #2f5fe0;
  --hud-run-bg: #e3eaff;
  --hud-warn: #b4520a;
  --hud-warn-bg: #ffecd6;
  --hud-idle: #5d657f;
  --hud-idle-bg: #eceef5;
  --wave: #1eaee9;
  --om: #f47b20;
  --cash: #3fa66b;
  --credit: #7c4ddb;
  --ground: #e4e7f4; /* sol de la scène (C.ground de js3d/scene.js) */
}
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--top-h) + 8px) 0 18px;
  background: linear-gradient(180deg, #f3f5fb 0%, var(--ground) 72%);
  color: var(--text);
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; display: grid; gap: 10px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* téléphone : la note d'essai (argument commercial) reste, en plus petit, pour que la scène paraisse vite */
.hero-copy > .hero-note:not(.hero-note--small) { font-size: 0.8125rem; line-height: 1.4; }
@media (min-width: 600px) { .hero-copy > .hero-note:not(.hero-note--small) { font-size: 0.875rem; line-height: 1.55; } }
.hero-title {
  font-size: clamp(1.875rem, 1.1rem + 4.2vw, 3rem);
  line-height: 1.02; letter-spacing: -0.04em; max-width: 14ch; color: var(--ink);
}
.hero-lead-more { display: none; } /* téléphone : l'accroche courte, le bouton reste visible sans défiler */
.hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease-out) forwards; }
.hero-line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-line:nth-child(3) > span { animation-delay: 0.24s; }
.hero-line--accent > span { color: var(--teal-ink); }
@keyframes rise { to { transform: translateY(0); } }

.hero-lead { margin: 0; max-width: 54ch; font-size: 1rem; line-height: 1.5; color: var(--text-2); opacity: 0; animation: fade 0.9s ease 0.5s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; opacity: 0; animation: fade 0.9s ease 0.7s forwards; }
/* le libellé dépend de l'appareil et de la version publiée (« Télécharger pour Windows (v0.1.17, 28 Mo) ») :
   jamais plus large que la colonne, retour à la ligne équilibré plutôt qu'un débordement */
.hero-actions .btn { min-height: 48px; max-width: 100%; min-width: 0; white-space: normal; text-wrap: balance; text-align: center; }
.hero-actions .btn-lg { padding: 14px 22px; font-size: 1rem; }
@media (min-width: 600px) { .hero-actions .btn-lg { padding: 17px 28px; font-size: 1.05rem; } }
.hero-note { color: var(--text-2); font-size: 0.875rem; max-width: 70ch; opacity: 0; animation: fade 0.9s ease 0.9s forwards; }
.hero-note--small { color: var(--muted); font-size: 0.875rem; line-height: 1.45; opacity: 1; animation: none; }
@keyframes fade { to { opacity: 1; } }

/* Encart « installer sur mon PC » (téléphone, Mac, Linux) */
.send-panel { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.86); max-width: 560px; box-shadow: 0 8px 28px rgba(36, 52, 110, 0.1); }
.send-panel-title { font-weight: 600; }
.send-panel-text { color: var(--text-2); margin-top: 6px; font-size: 1rem; }
.send-panel-url { margin-top: 10px; font-family: var(--mono); font-size: 0.875rem; color: var(--teal-ink); word-break: break-all; }
.send-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.send-panel-actions .btn { min-height: 44px; }
.send-panel-status { margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); min-height: 1.2em; }

/* --- la scène : bande bord à bord sur téléphone, sans cadre (bords fondus dans le fond du héro) --- */
.hero-scene {
  position: relative; z-index: 0; container-type: size; overflow: hidden;
  height: clamp(250px, 45svh, 560px); margin-top: 10px; background: var(--ground);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
/*
 * La composition 4:3 et sa « boîte d'action » (le dépôt, ses quais, le rayonnage, la boutique), en
 * fractions de la composition. Elle est mise à l'échelle pour que la boîte tienne dans la région
 * [--rl, --rr] × [--rt, --rb] du cadre, centrée en largeur, placée en hauteur selon --ay (0 en haut,
 * 0,5 au milieu), sans jamais laisser de vide (couverture). Sur téléphone, la boîte va du rayonnage à la
 * file du comptoir et se cale en haut de la bande : le dépôt la remplit, et paraît dès le premier écran.
 */
.hero-comp { position: absolute; inset: 0; }
@supports (width: 1cqw) {
  .hero-comp {
    --bx0: 0.485; --bx1: 0.875; --by0: 0.24; --by1: 0.745; --ay: 0;
    --rl: 10px; --rr: calc(100cqw - 10px); --rt: 8px; --rb: calc(100cqh - 16px);
    --cw: max(min((var(--rr) - var(--rl)) / (var(--bx1) - var(--bx0)), (var(--rb) - var(--rt)) / ((var(--by1) - var(--by0)) * 0.75)), 100cqw, 133.34cqh);
    inset: auto; width: var(--cw); height: calc(var(--cw) * 0.75);
    left: clamp(100cqw - var(--cw), (var(--rl) + var(--rr) - (var(--bx0) + var(--bx1)) * var(--cw)) / 2, 0px);
    top: clamp(100cqh - var(--cw) * 0.75, var(--rt) + var(--ay) * (var(--rb) - var(--rt) - (var(--by1) - var(--by0)) * var(--cw) * 0.75) - var(--by0) * var(--cw) * 0.75, 0px);
  }
}
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.hero-video, .hero-canvas { opacity: 0; transition: opacity 0.7s ease; }
.hero-video.is-playing, .hero-canvas.is-on { opacity: 1; }

/* --- bulles attachées aux objets : position de l'affiche ici (fractions de la composition) ; la 3D et la
   vidéo les suivent image par image (transform posé par js3d/hero.js, jamais de style en ligne) --- */
.tag {
  position: absolute; z-index: 2; left: calc(var(--tx, 0.5) * 100%); top: calc(var(--ty, 0.5) * 100%);
  transform: translate(-50%, calc(-100% - 9px));
  display: grid; justify-items: center; padding: 4px 9px; border-radius: 9px;
  background: #fff; color: var(--hud-ink); box-shadow: 0 6px 18px rgba(36, 52, 110, 0.18), 0 1px 2px rgba(36, 52, 110, 0.12);
  font-size: 12px; line-height: 1.25; white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity 0.35s ease, translate 0.5s var(--ease-out), visibility 0s linear 0.35s;
  --tone: var(--hud-blue);
}
.is-tracked .tag { left: 0; top: 0; } /* la 3D ou la vidéo pose la position (style.transform) */
.tag.is-on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.35s ease, translate 0.5s var(--ease-out), visibility 0s; }
.tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #fff; transform: rotate(45deg); border-radius: 0 0 2px 0; }
.tag b { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; }
.tag b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.tag span { color: var(--hud-muted); font-variant-numeric: tabular-nums; }
.tag[data-tone="warn"] { --tone: var(--om); }
.tag[data-tone="warn"] b { color: var(--hud-warn); }
.tag[data-tone="ok"] { --tone: var(--cash); }
.tag[data-tone="credit"] { --tone: var(--credit); }
/* position des objets à l'instant de l'affiche (t = 6,6 s), relevée dans la scène (même cadrage) */
.tag[data-tag="expire"] { --tx: 0.7863; --ty: 0.3011; }
.tag[data-tag="reception"] { --tx: 0.7492; --ty: 0.4138; }
.tag[data-tag="sale"] { --tx: 0.7328; --ty: 0.6067; }
.tag[data-tag="credit"] { --tx: 0.6378; --ty: 0.4352; }

/* --- deux chiffres (trois en large) et le badge « En direct », sous la scène sur téléphone --- */
.hero-live {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  max-width: var(--wrap); margin: 6px auto 0; padding: 0 var(--gutter); color: var(--hud-ink);
}
.hero-live .hud-live { order: 2; }
.hero-kpis { display: flex; gap: 20px; margin: 0; }
.hero-kpis div { display: grid; gap: 1px; min-width: 0; }
.hero-kpis dt { font-size: 12px; color: var(--hud-muted); white-space: nowrap; }
.hero-kpis dd { margin: 0; font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-kpis small { font-size: 0.75em; font-weight: 600; color: var(--hud-muted); }
.hero-kpis [data-kpi="creances"] { display: none; }
.hero-kpis .is-flash dd { animation: kpi-flash 1.1s ease-out; }
@keyframes kpi-flash { 0% { color: var(--hud-blue); } 100% { color: var(--hud-ink); } }

/* --- badge « En direct · HH:MM » (héro et tableau du gérant) --- */
.hud-live {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 5px 10px; border-radius: 99px; font-weight: 650; font-size: 12px; line-height: 1.3; white-space: nowrap; color: var(--hud-ink);
  background: rgba(255, 255, 255, 0.86); border: 1px solid #fff; box-shadow: 0 4px 14px rgba(36, 52, 110, 0.12);
}
/* « Mis à jour à HH:MM », le libellé du tableau de bord (rafraîchi chaque minute) : pas de pastille qui pulse */
.hud-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hud-ok); box-shadow: 0 0 0 3px var(--hud-ok-bg); }
.hud-live-time { font-variant-numeric: tabular-nums; }
.hud-live:has(.hud-live-time:empty) { display: none; }

/* ---------- Ce que voit le gérant : les panneaux du tableau de bord, en cartes (jamais interactifs) ----------
 * Mêmes chiffres que la scène (story.js) ; une colonne sur téléphone, deux puis trois en large. */
.gerant { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); background: linear-gradient(180deg, var(--ground) 0, var(--paper) 360px); color: var(--hud-ink); }
.gerant-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.gerant-head .section-title { margin: 0; }
.gerant .section-lead { margin-bottom: 24px; }
.gerant-grid { display: grid; gap: 14px; font-size: 13px; line-height: 1.35; }
.gerant-grid p, .gerant-grid ul, .gerant-grid ol { margin: 0; padding: 0; list-style: none; }
.hud-card { min-width: 0; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px -22px rgba(36, 52, 110, 0.45); }
.gerant-grid .mono, .gerant-grid b { font-variant-numeric: tabular-nums; }
.hud-sub { font-size: 12px; color: var(--hud-muted); }
.hud-inv li.is-flash { animation: hud-flash-row 1.1s ease-out; }
@keyframes hud-flash-row { 0% { background: rgba(244, 123, 32, 0.3); } 100% { background: transparent; } }

.hud-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--hud-ok); background: var(--hud-ok-bg); }
.hud-pill[data-tone="run"] { color: var(--hud-run); background: var(--hud-run-bg); }
.hud-pill[data-tone="idle"] { color: var(--hud-idle); background: var(--hud-idle-bg); }
.hud-pill[data-tone="warn"] { color: var(--hud-warn); background: var(--hud-warn-bg); }
.hud-title { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 14px; }
.hud-title svg { color: var(--hud-blue); flex: none; }

/* fiche du dépôt et inventaire */
.hud-depot-head { display: flex; gap: 10px; align-items: center; }
.hud-depot-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #e6ecff; }
.hud-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hud-blue); }
.hud-depot-name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.hud-status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(20, 25, 51, 0.08); color: var(--hud-muted); }
.hud-status b { color: var(--hud-ink); font-size: 15px; font-weight: 750; }
.hud-section { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 700; }
.hud-section span + span { font-weight: 500; color: var(--hud-muted); }
.hud-inv { margin-top: 4px; }
.hud-inv li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 8px; border-bottom: 1px solid rgba(20, 25, 51, 0.05); }
.hud-inv li:last-child { border-bottom: 0; }
.hud-inv-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-inv b { font-weight: 700; }
.hud-pico { width: 22px; height: 22px; }

/* encaissé par moyen de paiement : espèces + Wave + Orange Money + crédit = CA du jour */
.hud-pay-who { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--hud-blue); white-space: nowrap; }
.hud-pay { position: relative; display: flex; height: 8px; margin-top: 12px; border-radius: 99px; overflow: hidden; background: var(--om); --cash: 48.1%; --wave: 36.7%; }
/* dans la barre, --cash et --wave sont des largeurs (posées par story.js), pas des couleurs */
.hud-pay-c { width: var(--cash); background: #3fa66b; transition: width 0.6s ease; }
.hud-pay-w { width: var(--wave); background: #1eaee9; transition: width 0.6s ease; }
.hud-pay-o { flex: 1; background: var(--om); }
.hud-pay-legend { display: grid; gap: 2px; margin-top: 10px; }
.hud-pay-legend li { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; color: var(--hud-muted); transition: background-color 0.4s; }
.hud-pay-legend li[data-pay="credit"] { margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(20, 25, 51, 0.08); border-radius: 0 0 6px 6px; }
.hud-pay-legend b { margin-left: auto; color: var(--hud-ink); font-weight: 650; }
.hud-pay-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--cash); }
.hud-pay-legend li[data-pay="wave"] i { background: var(--wave); }
.hud-pay-legend li[data-pay="om"] i { background: var(--om); }
.hud-pay-legend li[data-pay="credit"] i { background: var(--credit); }
#contenu[data-pay="wave"] li[data-pay="wave"], #contenu[data-pay="om"] li[data-pay="om"], #contenu[data-pay="cash"] li[data-pay="cash"] { background: #eef2ff; color: var(--hud-ink); }
.hud-paycard > .hud-sub { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(20, 25, 51, 0.08); }

/* suivi en cours */
.hud-track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hud-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 6px; margin-top: 8px; --progress: 75%; }
.hud-steps::before, .hud-steps::after { content: ""; position: absolute; top: 8px; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: #dfe4f3; }
.hud-steps::after { background: var(--hud-blue); right: auto; width: calc(var(--progress) * 0.8); transition: width 0.6s var(--ease-out); }
.hud-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 12px; line-height: 1.1; color: var(--hud-muted); }
.hud-step-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #dfe4f3; transition: background-color 0.3s, border-color 0.3s; }
.hud-steps li[data-state="done"] .hud-step-dot { background: var(--hud-blue); border-color: var(--hud-blue); }
.hud-steps li[data-state="now"] .hud-step-dot { border-color: var(--hud-blue); box-shadow: 0 0 0 4px rgba(47, 95, 224, 0.18); }
.hud-steps li[data-state="now"] { color: var(--hud-ink); font-weight: 650; }
.hud-track-card { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(230, 236, 255, 0.7); }
.hud-track-ico { flex: none; width: 34px; height: 26px; border-radius: 6px; background: var(--hud-blue); -webkit-mask: var(--ico-truck) center / contain no-repeat; mask: var(--ico-truck) center / contain no-repeat; }
.hud-track { --ico-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2h7l4 4v12H5V2Zm6 1.5V7h3.5L11 3.5ZM7 10h7V8.5H7V10Zm0 3h7v-1.5H7V13Zm0 3h5v-1.5H7V16Z'/%3E%3C/svg%3E"); }
.hud-track-text { min-width: 0; flex: 1; }
.hud-track-title { font-weight: 700; }
.hud-track-text .hud-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* caisses ouvertes (comme l'écran du même nom) */
.hud-count { margin-left: 2px; padding: 0 7px; border-radius: 99px; font-size: 12px; color: var(--hud-blue); background: var(--hud-run-bg); }
.hud-tills ul { margin-top: 8px; }
.hud-tills li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid rgba(20, 25, 51, 0.06); }
.hud-tills li:last-child { border-bottom: 0; }
.hud-till-who { display: grid; min-width: 0; }
.hud-till-who span, .hud-till-at { color: var(--hud-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-till-at { grid-column: 1; }
.hud-till-sales { grid-column: 2; grid-row: 1 / 3; font-weight: 700; white-space: nowrap; }
.hud-tills > .hud-sub { margin-top: 6px; }

/* --- tablette : accroche complète, trois chiffres ; tableau du gérant sur deux puis trois colonnes --- */
@media (min-width: 600px) {
  .hero-lead-more { display: inline; }
  .hero-kpis [data-kpi="creances"] { display: grid; }
}
@media (min-width: 720px) {
  .gerant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .gerant-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "depot pay docks" "depot track track"; }
  .hud-depot { grid-area: depot; }
  .hud-paycard { grid-area: pay; }
  .hud-tills { grid-area: docks; }
  .hud-track { grid-area: track; }
}

/*
 * --- écran large ou paysage (≥ 600 px, plus large que haut) : la scène en plein héro ---
 * Le texte (titre, accroche, boutons, puis la rangée de chiffres) occupe une colonne alignée sur la
 * grille de la page ; la région de la boîte d'action commence 24 px après elle, sur toute la hauteur
 * sous l'en-tête. La colonne et --rl partagent la même formule (34 % de la largeur du héro, bornée).
 */
@media (min-width: 600px) and (min-aspect-ratio: 5/4) {
  .hero { min-height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; row-gap: 12px; padding: calc(var(--top-h) + 10px) 0 16px; background: var(--ground); }
  .hero-copy, .hero-live { width: clamp(300px, 34%, 560px); max-width: none; margin: 0 0 0 max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter)); padding: 0; }
  .hero-copy { align-self: center; align-content: center; gap: 8px; }
  /* le titre suit la largeur de la colonne, et la hauteur de l'écran (1366 × 657 d'un navigateur ouvert) */
  .hero-title { max-width: none; font-size: clamp(2rem, min(3.6vw, 5.9vh), 3.6rem); }
  .hero-note { font-size: 0.875rem; }
  .hero-note--small { font-size: 0.8125rem; }
  .hero-scene { position: absolute; inset: 0; height: auto; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-comp {
    --bx0: 0.47; --bx1: 0.88; --by0: 0.24; --by1: 0.745; --ay: 0.5;
    --rl: calc(max(var(--gutter), (100cqw - var(--wrap)) / 2 + var(--gutter)) + clamp(300px, 34cqw, 560px) + 24px);
    --rr: calc(100cqw - 20px); --rt: calc(var(--top-h) + 4px); --rb: calc(100cqh - 10px);
  }
  .tag { display: flex; align-items: center; padding: 5px 10px; font-size: 13px; }
  .tag b + span::before { content: "·"; margin: 0 6px; color: #aab2cb; }
  .hero-live { justify-content: flex-start; gap: 10px 22px; margin-top: 0; }
  .hero-live .hud-live { order: 0; }
  .hero-kpis { gap: 22px; }
}
@media (min-width: 1440px) and (min-aspect-ratio: 5/4) and (min-height: 800px) {
  .hero-lead { font-size: 1.0625rem; }
  .hero-note { font-size: 0.9375rem; }
  .hero-kpis dd { font-size: 1.1875rem; }
}
/* écran peu haut (1366 × 768 moins le navigateur ≈ 657 px) ou colonne étroite (< 1100 px) : l'accroche courte,
   le héro tient en un écran quel que soit le libellé du bouton */
@media (min-width: 600px) and (min-aspect-ratio: 5/4) and (max-height: 720px), (min-width: 600px) and (max-width: 1099px) and (min-aspect-ratio: 5/4) {
  .hero-lead-more { display: none; }
  .hero-title { font-size: clamp(2rem, min(3.6vw, 5.9vh), 3.6rem); }
}
/* paysage de téléphone : peu de hauteur, l'essentiel seulement (titre, accroche courte, boutons) */
@media (min-width: 600px) and (min-aspect-ratio: 5/4) and (max-height: 540px) {
  .hero { padding-top: calc(var(--top-h) + 12px); padding-bottom: 12px; }
  .hero-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
  .hero-lead-more, .hero-note, .hero-live { display: none; }
  .hero-copy { gap: 10px; }
  .hero-actions .btn-lg { padding: 11px 18px; font-size: 0.95rem; }
  .tag { display: grid; padding: 4px 8px; font-size: 12px; }
  .tag b + span::before { content: none; }
}


/* ---------- Repères ---------- */
.facts { background: var(--ink); color: var(--on-ink); padding: 8px 0 56px; }
.facts-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-ink); }
.fact { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line-ink); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.fact:nth-child(odd) { border-right: 1px solid var(--line-ink); }
.fact:nth-child(even) { padding-left: 20px; }
.fact dt { font-size: 0.9rem; color: var(--on-ink-muted); line-height: 1.35; }
.fact dd { margin: 0; }
.num { font-family: var(--mono); font-weight: 500; font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--on-ink); }
@media (min-width: 900px) {
  .facts { padding-bottom: 72px; }
  .facts-row { grid-template-columns: repeat(4, 1fr); }
  .fact, .fact:nth-child(even) { padding: 32px 24px 32px 0; border-right: 1px solid var(--line-ink); border-bottom: 0; }
  .fact:nth-child(n+2) { padding-left: 24px; }
  .fact:last-child { border-right: 0; }
}

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Fonctions ---------- */
.features { padding: clamp(64px, 10vw, 128px) 0 clamp(24px, 4vw, 48px); }
.feature { display: grid; gap: 32px; align-items: center; padding-bottom: clamp(64px, 9vw, 120px); }
.feature-text p { margin-top: 16px; color: var(--text-2); font-size: 1.05rem; max-width: 52ch; }
.list { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; max-width: 56ch; }
.list li { position: relative; padding-left: 26px; color: var(--text-2); }
.list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px;
  border-left: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(-45deg) translate(1px, -2px);
}
.keys { margin-top: 22px !important; font-size: 0.9rem !important; color: var(--muted) !important; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
kbd { font-family: var(--mono); font-size: 0.8rem; padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--white); color: var(--text); }

/* Captures : fenêtre d'application posée en perspective, qui se redresse au défilement (bureau). */
.shot {
  position: relative; border-radius: 12px; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.35), 0 12px 24px -16px rgba(10, 10, 10, 0.2);
  transform-origin: center; will-change: transform;
}
.shot::before { content: ""; display: block; height: 22px; background: linear-gradient(#f4f4f2, #ecece9); border-bottom: 1px solid var(--line); }
.shot::after {
  content: ""; position: absolute; left: 10px; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 14px 0 0 var(--teal), 28px 0 0 var(--line-2);
}
.shot img { width: 100%; height: auto; }
@media (min-width: 960px) {
  /* La capture prend la colonne large, y compris dans les sections inversées : sans le
     second gabarit, l'image y tombait dans la colonne étroite et perdait un tiers de sa taille. */
  .feature { grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: clamp(32px, 4vw, 64px); }
  .feature--reverse { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); }
  .feature--reverse .feature-text { order: 2; }
  .feature--reverse .shot { order: 1; }
  .features { perspective: 1600px; }
  /* Inclinaison discrète : au-delà, le texte des tableaux se déforme et la capture ne s'y lit plus. */
  .shot--left { transform: perspective(1600px) rotateY(calc(-5deg * var(--tilt, 1))) rotateX(calc(1.5deg * var(--tilt, 1))); }
  .shot--right { transform: perspective(1600px) rotateY(calc(5deg * var(--tilt, 1))) rotateX(calc(1.5deg * var(--tilt, 1))); }
}

/* ---------- Signature : le journal ---------- */
.ledger-section { background: var(--ink); color: var(--on-ink); padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.ledger-section::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 60vw; height: 60vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16), rgba(20, 184, 166, 0) 60%); filter: blur(40px);
}
.ledger-grid { display: grid; gap: 40px; position: relative; }
.ledger-text p { margin-top: 16px; color: var(--on-ink-2); font-size: 1.05rem; max-width: 50ch; }
.ledger-example { color: var(--on-ink-muted) !important; font-size: 0.95rem !important; }
#ledger-replay { margin-top: 24px; }

.ledger { background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-ink); font-size: 0.9rem; color: var(--on-ink-2); }
.ledger-doc .mono { color: var(--on-ink); margin-left: 6px; }
.ledger-state { font-family: var(--mono); font-size: 0.8rem; color: var(--teal); padding: 3px 9px; border: 1px solid rgba(20, 184, 166, 0.4); border-radius: 999px; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ledger-table th { text-align: left; font-weight: 500; color: var(--on-ink-muted); font-size: 0.78rem; padding: 10px 12px; border-bottom: 1px solid var(--line-ink); }
.ledger-table td { padding: 9px 12px; vertical-align: middle; }
.ledger-table th.amt, .ledger-table td.amt { text-align: right; white-space: nowrap; }
.ledger-table td.mono:first-child { color: var(--teal); }
.ledger-group td { padding: 12px 12px 4px; font-size: 0.78rem; color: var(--on-ink-muted); }
.ledger-line { transition: opacity 0.5s ease, transform 0.5s var(--ease-out); }
.js .ledger.is-armed .ledger-line { opacity: 0; transform: translateX(-10px); }
.ledger.is-armed .ledger-line.is-on { opacity: 1; transform: none; }
.ledger-line td.amt[data-amt] { color: var(--on-ink); }
.ledger-total td { padding: 12px; border-top: 1px solid var(--line-ink); font-weight: 600; color: var(--on-ink); }
.ledger-balance { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; font-size: 0.9rem; color: var(--on-ink-2); }
.ledger-eq { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-ink); font-family: var(--mono); font-weight: 500; transition: background-color 0.4s, border-color 0.4s, color 0.4s, transform 0.5s var(--ease-out); }
.ledger-ok { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; color: var(--on-ink-muted); transition: color 0.4s; }
.ledger.is-balanced .ledger-eq { background: var(--teal); border-color: var(--teal); color: var(--ink); transform: rotate(360deg); }
.ledger.is-balanced .ledger-ok { color: var(--teal); }
@media (min-width: 960px) {
  .ledger-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
}
@media (max-width: 480px) {
  .ledger-table { font-size: 0.82rem; }
  .ledger-table td, .ledger-table th { padding-left: 8px; padding-right: 8px; }
  .ledger-line td:nth-child(2) { font-size: 0.78rem; line-height: 1.25; }
}

/* ---------- Hors ligne ---------- */
.offline { padding: clamp(72px, 10vw, 128px) 0; }
.offline-grid { display: grid; gap: 40px; align-items: center; }
.offline-text p { margin-top: 16px; color: var(--text-2); font-size: 1.05rem; max-width: 52ch; }
.lan { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 12px; }
.lan-svg { width: 100%; height: auto; font-family: var(--sans); }
.lan-link { stroke: var(--line-2); stroke-width: 2; fill: none; }
.lan-link--off { stroke-dasharray: 4 6; stroke: var(--line-2); }
.lan-pulse { stroke: var(--teal); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 26 400; stroke-dashoffset: 26; animation: pulse 3.6s linear infinite; }
.lan-pulse--2 { animation-delay: 0.9s; }
.lan-pulse--3 { animation-delay: 1.8s; }
.lan-pulse--4 { animation-delay: 2.7s; }
@keyframes pulse { to { stroke-dashoffset: -400; } }
.lan-node rect { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.5; }
.lan-node text { font-size: 13px; font-weight: 600; fill: var(--text); }
.lan-host rect { fill: var(--ink); }
.lan-host text { font-size: 14px; font-weight: 700; fill: var(--on-ink); }
.lan-host .lan-sub { font-size: 11px; font-weight: 400; fill: var(--teal); }
.lan-cloud path:first-child { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.lan-cut { stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
@media (min-width: 960px) {
  .offline-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
}

/* ---------- Comment ça marche ---------- */
.steps-section { padding: 0 0 clamp(72px, 10vw, 128px); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 28px 0 28px 64px; border-bottom: 1px solid var(--line-2); }
.step-n { position: absolute; left: 0; top: 26px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; background: var(--ink); color: var(--on-ink); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-2); max-width: 64ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { padding: 32px 0 0; border-bottom: 0; }
  .step-n { position: static; margin-bottom: 20px; }
}

/* ---------- Éditions ---------- */
.editions { padding: 0 0 clamp(72px, 10vw, 128px); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { vertical-align: top; padding-top: 22px; }
.compare tbody th { font-weight: 500; color: var(--text-2); width: 26%; }
.compare tbody td { color: var(--text); }
.compare tfoot td { border-bottom: 0; padding: 18px; }
.compare .ed-hi { background: rgba(20, 184, 166, 0.07); }
.compare thead .ed-hi { box-shadow: inset 0 3px 0 var(--teal); }
.ed-name { display: block; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.ed-for { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.yes { color: var(--teal-ink); font-weight: 600; }
.no { color: var(--muted); }
.compare tbody th:first-child { position: sticky; left: 0; background: var(--white); z-index: 1; }
.compare tfoot .btn { white-space: normal; text-align: center; }

/* ---------- Bascule mensuel / annuel ---------- */
.period-toggle { display: inline-flex; gap: 4px; margin: 0 0 24px; padding: 4px; border: 1.5px solid var(--line-2); border-radius: 999px; }
.period-choice { position: relative; display: block; }
.period-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.period-choice span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--text-2); transition: background-color 0.2s, color 0.2s; }
.period-choice input:checked + span { background: var(--ink); color: var(--on-ink); }
.period-choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.period-save { font-size: 0.78rem; font-weight: 500; color: var(--teal-ink); }
.period-choice input:checked + span .period-save { color: var(--on-ink-2); }

/* ---------- Ligne de tarif du comparatif ---------- */
.price-row td, .price-row th { padding-top: 20px; padding-bottom: 20px; }
.price { margin: 0; font-size: 1.4rem; font-weight: 700; }
@media (min-width: 720px) { .price { white-space: nowrap; } }
.price-period { font-size: 0.8rem; font-weight: 400; color: var(--muted); margin-left: 3px; }
.price-note { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Offre de lancement ---------- */
.launch-offer { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-2); }
.launch-offer strong { color: var(--text); }
.launch-offer a { color: var(--teal-ink); font-weight: 600; }

/* Téléphone : plus de défilement horizontal. Chaque ligne devient un bloc : la fonction en titre,
   les trois éditions en dessous ; la rangée des noms d'édition reste collée sous l'en-tête. */
@media (max-width: 719px) {
  .table-scroll { overflow: visible; }
  .compare { min-width: 0; font-size: 0.9rem; }
  .compare, .compare thead, .compare tbody, .compare tfoot, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare thead { position: sticky; top: var(--top-h); z-index: 2; background: var(--white); border-radius: 14px 14px 0 0; }
  .compare thead th:first-child, .compare tfoot td:first-child { display: none; }
  .compare th, .compare td { padding: 10px 10px; border-bottom: 0; }
  .compare thead th { padding-top: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .compare thead .ed-hi { box-shadow: inset 0 3px 0 var(--teal); }
  .ed-name { font-size: 1.1rem; }
  .ed-for { font-size: 0.75rem; }
  .compare tbody th { grid-column: 1 / -1; width: auto; position: static; padding: 14px 10px 4px; color: var(--text); font-weight: 600; }
  .compare tbody tr { border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tfoot tr { grid-template-columns: 1fr; gap: 8px; padding: 12px 10px 14px; border-top: 1px solid var(--line); }
  .compare tfoot td { padding: 0; }
  .compare tfoot .btn { width: 100%; }
  .price { font-size: 1.05rem; }
  .price-period { display: block; margin-left: 0; }
}

/* ---------- Achat en ligne (masqué tant que le serveur n'a pas d'offres) ---------- */
.buy { padding: 0 0 clamp(72px, 10vw, 128px); }
.buy-form { display: grid; gap: 18px; max-width: 520px; }
.buy-field { display: grid; gap: 6px; font-weight: 500; border: 0; padding: 0; margin: 0; min-width: 0; }
.buy-field input, .buy-field select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--white); color: var(--text); }
.buy-field legend { padding: 0; margin-bottom: 6px; }
.buy-choice { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; font-weight: 400; }
.buy-error { color: var(--orange-ink); }

/* ---------- Configuration ---------- */
.config { padding: 0 0 clamp(64px, 8vw, 96px); }
.config-row { display: grid; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.config h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.config-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-2); font-size: 0.95rem; }
@media (min-width: 900px) { .config-row { grid-template-columns: 26% 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 clamp(72px, 10vw, 128px); }
.faq-grid { display: grid; gap: 24px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-body { padding: 0 0 20px; color: var(--text-2); max-width: 70ch; }
.faq-body p { animation: fade 0.5s ease; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 26% 1fr; } }

/* ---------- Dernier appel ---------- */
.final { background: var(--ink); color: var(--on-ink); padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.04) 40%, rgba(249, 115, 22, 0) 70%); pointer-events: none;
}
.final-inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 16px; }
.final h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); }
.final p { color: var(--on-ink-2); font-size: 1.1rem; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- Pied ---------- */
.foot { background: var(--ink); color: var(--on-ink-2); border-top: 1px solid var(--line-ink); padding: 32px 0 40px; font-size: 0.9rem; }
.foot-inner { display: grid; gap: 24px; }
.foot-brand { display: flex; align-items: flex-start; gap: 14px; }
.foot-brand img { flex: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { color: var(--on-ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--on-ink); text-decoration: underline; }
@media (min-width: 900px) { .foot-inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-line > span { transform: none; }
  .hero-lead, .hero-actions, .hero-note { opacity: 1; }
  .hero-video, .hero-canvas { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .shot--left, .shot--right { transform: none; }
  .lan-pulse { display: none; }
  #ledger-replay { display: none; }
}
