/* ==========================================================================
   TickMark — feuille de style du site
   Charte : bleu TickMark #1F4FC8, marine #0B1A33, police Archivo.
   Direction : la page d'un dossier de révision bien composé. Fond papier,
   filets fins, chiffres alignés, une colonne de repères à gauche.
   Le vu (tick mark) et le double trait du total sont les seuls ornements.
   Coins coupés à 45° réservés aux éléments de marque (boutons, plateaux, initiales).
   ========================================================================== */

/* Police Archivo (variable : graisse 400 à 800, largeur 100 à 125 %), hébergée avec le site :
   aucune requête vers Google. Licence SIL OFL 1.1, voir assets/fonts/OFL.txt */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Papier et encre */
  --bg: #F4F2ED;
  --bg-alt: #EBE8E1;
  --surface: #FFFFFF;
  --ink: #0B1A33;
  --ink-2: #29344B;
  --muted: #5D6577;
  --line: #D8D3C8;
  --rule: #0B1A33;
  --accent: #1F4FC8;
  --accent-hover: #173FA6;
  --accent-soft: #E2E8F6;
  --on-accent: #FFFFFF;
  --ok: #17784A;
  --ok-soft: #DFEEE4;
  --warn: #9A5B00;
  --warn-soft: #F6EBD3;
  /* Bandes marine (machine dédiée) */
  --band: #0B1A33;
  --band-ink: #EEF2F8;
  --band-muted: #A9B5C7;
  --band-accent: #8DB2FF;
  --band-line: rgba(255, 255, 255, 0.14);
  /* Emblème */
  --mark-plate: #0B1A33;
  --mark-tick: #7AA7FF;
  --mark-bars: #FFFFFF;
  /* Plateau des illustrations du logiciel : marine uni, quadrillé comme une feuille de compte */
  --stage: #0B1A33;
  --stage-grid: rgba(255, 255, 255, 0.06);
  --stage-edge: transparent;
  /* Documents imprimés (restent clairs dans les deux thèmes) */
  --paper: #FFFFFF;
  --paper-2: #FBFBF9;
  --paper-ink: #0B1A33;
  --paper-muted: #5A6477;
  --paper-line: #E6E3DC;
  --paper-edge: rgba(11, 26, 51, 0.08);
  --paper-shadow: 0 1px 2px rgba(3, 10, 26, 0.25), 0 24px 48px -20px rgba(3, 10, 26, 0.65);
  --paper-shadow-sm: 0 14px 30px -16px rgba(11, 26, 51, 0.28);
  /* Mise en page */
  --gutter: clamp(16px, 2.2vw, 28px);
  --cut: 12px;
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* Courbes nettes : départ rapide, arrivée douce */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A101C;
    --bg-alt: #0F1727;
    --surface: #121B2D;
    --ink: #EEF2F8;
    --ink-2: #C9D2DF;
    --muted: #96A2B5;
    --line: #243149;
    --rule: #C9D2DF;
    --accent: #8DB2FF;
    --accent-hover: #B3CBFF;
    --accent-soft: #16233D;
    --on-accent: #0B1A33;
    --ok: #5CC98E;
    --ok-soft: #12271C;
    --warn: #F0B35A;
    --warn-soft: #2A2113;
    --band: #050A14;
    --band-line: rgba(255, 255, 255, 0.10);
    --mark-plate: #FFFFFF;
    --mark-tick: #1F4FC8;
    --mark-bars: #0B1A33;
    --stage: #050A14;
    --stage-edge: rgba(255, 255, 255, 0.08);
    --paper: #EEF2F8;
    --paper-2: #E7ECF3;
    --paper-ink: #0B1A33;
    --paper-muted: #4F5A6E;
    --paper-line: #D6DDE8;
    --paper-edge: rgba(255, 255, 255, 0.10);
    --paper-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
    --paper-shadow-sm: 0 18px 36px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--ink); font-weight: 600; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
.narrow { max-width: 760px; }
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
}
.skip-link:focus { top: 12px; color: var(--bg); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Coins coupés à 45°, comme l'emblème : réservés aux éléments de marque */
.cut {
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

/* ---------- Emblème et logo ---------- */
.mark { display: block; flex-shrink: 0; }
.mark-plate { fill: var(--mark-plate); }
.mark-tick { fill: none; stroke: var(--mark-tick); stroke-width: 11; stroke-linejoin: miter; stroke-linecap: butt; }
.mark-bars { fill: var(--mark-bars); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .mark { width: 28px; height: 28px; }
.wordmark { font-family: var(--font); font-weight: 700; font-stretch: 112%; font-size: 20px; letter-spacing: -0.01em; line-height: 1; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { white-space: nowrap; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn, .nav-links .btn:hover { color: var(--bg); }
/* Page en cours : soulignée du double trait, comme un total vérifié */
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 calc(100% - 3px) / 100% 1px no-repeat;
  padding-bottom: 7px; margin-bottom: -7px;
}

/* Menu « trois barres » des petits écrans */
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: transparent; cursor: pointer;
  place-content: center; gap: 5px; color: var(--ink);
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.2s var(--ease), opacity 0.15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-menu[hidden] { display: none; }
.nav-menu:not([hidden]) { animation: menu-in 0.2s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-menu .wrap { display: flex; flex-direction: column; padding-block: 4px 24px; }
.nav-menu a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 18px; font-weight: 500; }
.nav-menu .btn { margin-top: 20px; }
.nav-menu a[aria-current="page"] { color: var(--accent); }

/* ---------- Boutons et liens ---------- */
.btn {
  --cut: 7px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15.5px/1 var(--font); letter-spacing: 0.005em;
  padding: 16px 24px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.16s var(--ease);
}
.btn:hover { color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent); color: var(--on-accent); }
}
.btn:active { transform: scale(0.97); }
.btn-sm { font-size: 14px; padding: 11px 16px; --cut: 6px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); clip-path: none; }
.btn-ghost:hover { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--ink); color: var(--bg); }
}
/* Lien souligné, comme une référence dans un dossier */
.tlink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 600; font-size: 15.5px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color 0.15s ease;
}
.tlink:hover { color: var(--accent); }
.tlink svg, .go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; transition: transform 0.2s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tlink:hover svg, a:hover > .go svg { transform: translateX(3px); }
}

/* ---------- Typographie ---------- */
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.035em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }
/* Repère de section, en marge gauche : numéro et intitulé */
.label {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.label .n { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--accent); }
.note { margin-top: 28px; color: var(--muted); font-size: 14.5px; max-width: 68ch; }
.fig-note { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ---------- Sections : filet en tête, repère à gauche, contenu à droite ---------- */
.part { padding-block: clamp(80px, 11vw, 136px); }
.part + .part { border-top: 1px solid var(--line); }
.part-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.part-head > .label { grid-column: 1 / 4; padding-top: 0.9em; }
.part-head > div { grid-column: 4 / 13; }
.part-head .lead { margin-top: 22px; }
.indent { margin-left: calc(25% + var(--gutter) / 4); }

/* ---------- Haut de page ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(20px, 3vw, 36px)); padding-bottom: clamp(56px, 8vw, 104px); }
.meta-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px;
  padding-block: 13px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.meta-row a { color: var(--muted); }
.meta-row a:hover { color: var(--ink); }
.meta-row .live { color: var(--ink); }
.meta-row .live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; background: var(--ok); vertical-align: 1px; }
.meta-row.crumbs { justify-content: flex-start; gap: 10px; }
.crumbs span::before { content: "/"; margin-right: 10px; color: var(--line); }
.hero h1, .page-hero h1 { margin-top: clamp(40px, 6vw, 80px); letter-spacing: -0.045em; line-height: 0.98; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); max-width: 19ch; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); max-width: 19ch; line-height: 1; }
.hero-sub {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: clamp(28px, 4vw, 48px);
}
.hero-sub > div { grid-column: 6 / 13; }
.hero-trial { display: inline-flex; align-items: flex-start; gap: 9px; margin-top: 22px; color: var(--ink); font-size: 15px; font-weight: 600; }
.hero-trial:hover { color: var(--accent); }
.hero-trial .tk { color: var(--ok); margin-top: 3px; }
.tk svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: butt; stroke-linejoin: miter; display: block; }
.hero-trust { margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.page-hero { padding-top: calc(var(--nav-h) + clamp(20px, 3vw, 36px)); padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero .story-q { grid-column: 6 / 13; }

/* Les trois différences, visibles dès l'arrivée : trois colonnes sous un filet d'encre */
.edge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--rule); }
.edge > div { display: flex; flex-direction: column; gap: 10px; padding: 22px var(--gutter) 0 0; }
.edge > div + div { padding-left: var(--gutter); border-left: 1px solid var(--line); }
.edge-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.edge-t { font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.edge p { color: var(--muted); font-size: 15.5px; }
.edge .tlink { align-self: flex-start; margin-top: auto; padding-top: 4px; font-size: 14.5px; }

/* ---------- Démo du haut de page ----------
   Le relevé est lu, les chiffres s'inscrivent un à un, chaque ligne reçoit son vu,
   et le solde final est souligné deux fois. */
.demo-wrap { margin-top: clamp(48px, 7vw, 88px); }
.stage {
  --cut: 18px;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.2fr); gap: clamp(14px, 2.2vw, 28px); align-items: center;
  padding: clamp(22px, 4.5vw, 64px);
  font-size: clamp(12px, 1.12vw, 13.5px);
  background: var(--stage);
  box-shadow: inset 0 0 0 1px var(--stage-edge);
}
/* Quadrillage discret, comme une feuille de comptabilité */
.stage::before, .screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--stage-grid) 1px, transparent 1px), linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.sheet {
  --accent: #1F4FC8; --accent-soft: #E2E8F6; --bg-alt: #F1F2F5; --ink-2: #29344B;
  position: relative; padding: 1.6em 1.7em;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  box-shadow: 0 0 0 1px var(--paper-edge), var(--paper-shadow);
}
.sheet-doc { overflow: hidden; }
.sheet-ledger { box-shadow: 0 0 0 1px var(--paper-edge), var(--paper-shadow), 0 60px 100px -40px rgba(3, 10, 26, 0.55); }
.sheet-label { font-size: 0.78em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-muted); }
.flow { --cut: 8px; width: 2.9em; height: 2.9em; display: grid; place-items: center; color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.flow svg { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.doc-title { font-weight: 700; font-size: 1.1em; margin-top: 0.45em; }
.doc-meta { font-family: var(--mono); font-size: 0.82em; color: var(--paper-muted); margin-top: 0.2em; overflow-wrap: anywhere; }
.doc-cols, .doc-row { display: grid; grid-template-columns: 3.4em 1fr auto; gap: 0.8em; align-items: baseline; padding-inline: 0.55em; }
.doc-cols { margin-top: 1.2em; padding-bottom: 0.5em; border-bottom: 1.5px solid var(--paper-ink); }
.doc-cols span { font-size: 0.76em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.doc-cols span:last-child { text-align: right; }
.doc-row { padding-block: 0.6em; border-bottom: 1px solid var(--paper-line); transition: background-color 0.3s ease; }
.doc-row:last-child { border-bottom: 0; }
.doc-row.bal { font-weight: 700; }
.doc-row .d, .doc-row .amt { font-family: var(--mono); font-size: 0.92em; }
.doc-row .d { color: var(--paper-muted); }
.doc-row .amt { text-align: right; }
.doc-row.is-read { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.beam {
  position: absolute; left: 0; right: 0; top: 0; height: 5em; pointer-events: none; opacity: 0;
  transform: translateY(-5em);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
}
.stage.is-scanning .beam { animation: beam 4.8s linear forwards; }
@keyframes beam { 0% { transform: translateY(-5em); opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(30em); opacity: 0; } }
.ledger-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.ledger-count { font-family: var(--mono); font-size: 0.85em; font-weight: 600; color: var(--accent); }
.ledger-meta { font-size: 0.88em; color: var(--paper-muted); margin-top: 0.35em; }
.lg-head, .lg-row, .lg-total { display: grid; grid-template-columns: 3.4em 1fr 1fr 3.6em 6em 1.9em; gap: 0.7em; align-items: center; padding-inline: 0.4em; }
.lg-head { margin-top: 1.2em; padding-bottom: 0.55em; border-bottom: 1.5px solid var(--paper-ink); }
.lg-head span { font-size: 0.76em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.lg-row { min-height: 3.3em; padding-block: 0.5em; border-bottom: 1px solid var(--paper-line); }
.lg-row > * { min-width: 0; }
.lg-row .t { font-family: var(--mono); font-size: 0.92em; white-space: nowrap; }
.lg-row .acc small { display: block; font-family: var(--font); font-size: 0.85em; color: var(--paper-muted); overflow: hidden; text-overflow: ellipsis; }
.lg-row .pj { display: inline-flex; align-items: center; gap: 0.25em; color: var(--paper-muted); }
.lg-row .pj svg { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lg-head .num, .lg-row .num, .lg-total .num { text-align: right; font-variant-numeric: tabular-nums; }
/* Les chiffres s'inscrivent comme à la machine à écrire */
.js .lg-row .t { clip-path: inset(0 100% 0 0); }
.js .lg-row.is-in .t { clip-path: inset(0 0 0 0); transition: clip-path 0.36s steps(7, end); }
.js .lg-row.is-in .t:nth-child(2) { transition-delay: 0.06s; }
.js .lg-row.is-in .t:nth-child(3) { transition-delay: 0.12s; }
.js .lg-row.is-in .t:nth-child(4) { transition-delay: 0.18s; }
.js .lg-row.is-in .t:nth-child(5) { transition-delay: 0.24s; }
.tick, .vu { display: inline-grid; place-items: center; justify-self: center; color: var(--accent); }
.tick svg { width: 1.25em; height: 1.25em; overflow: visible; }
.vu svg { width: 2em; height: 2em; overflow: visible; }
.tick polyline, .vu polyline, .ch-tick polyline { fill: none; stroke: currentColor; stroke-linejoin: miter; stroke-linecap: butt; }
.tick polyline { stroke-width: 2.6; stroke-dasharray: 18; stroke-dashoffset: 0; }
.js .lg-row .tick polyline { stroke-dashoffset: 18; }
.js .lg-row.is-in .tick polyline { stroke-dashoffset: 0; transition: stroke-dashoffset 0.3s var(--ease) 0.6s; }
.lg-total { padding-top: 0.9em; font-weight: 700; }
.lg-total .lbl { grid-column: 1 / 5; }
.lg-total .num { font-family: var(--mono); }
.lbl-run { display: none; }
.js .stage:not(.is-done) .lbl-run { display: inline; }
.js .stage:not(.is-done) .lbl-final { display: none; }
.js .lg-total { opacity: 0; transform: translateY(0.4em); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.js .lg-total.is-in { opacity: 1; transform: none; }
.dbl { display: flex; flex-direction: column; gap: 0.2em; margin-top: 0.3em; }
.dbl i { display: block; height: 2px; background: var(--paper-ink); transform-origin: right center; }
.js .dbl i { transform: scaleX(0); }
.js .stage.is-done .dbl i { transform: scaleX(1); transition: transform 0.4s var(--ease) 0.15s; }
.js .stage.is-done .dbl i + i { transition-delay: 0.27s; }
.vu polyline { stroke-width: 3; stroke-dasharray: 34; stroke-dashoffset: 0; }
.js .vu polyline { stroke-dashoffset: 34; }
.js .stage.is-done .vu polyline { stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s var(--ease) 0.6s; }
.ledger-foot { display: flex; flex-wrap: wrap; gap: 0.6em; margin-top: 1.3em; }
.js .stage:not(.is-done) .ledger-foot { opacity: 0; transform: translateY(0.4em); }
.js .stage.is-done .ledger-foot { transition: opacity 0.3s var(--ease) 0.9s, transform 0.3s var(--ease) 0.9s; }
.sheet .chip { font-size: 0.84em; padding: 0.5em 0.8em; }
.sheet .chip svg { width: 1.1em; height: 1.1em; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 10px; background: var(--accent-soft); color: var(--accent); }
.chip.neutral { background: var(--bg-alt); color: var(--ink-2); font-family: var(--mono); font-weight: 400; }
.chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }

/* ---------- Listes en lignes, séparées par des filets ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows > li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 8px; align-items: baseline;
  padding-block: clamp(22px, 2.6vw, 32px); color: var(--ink);
}
.row:hover { color: var(--ink); }
.row-n { grid-column: 1 / 2; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.row-t { grid-column: 2 / 6; font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; transition: color 0.15s ease; }
.row-d { grid-column: 6 / 10; color: var(--muted); font-size: 16px; }
.row-d .tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); vertical-align: 1px; }
.row-d a { font-weight: 600; }
.go { grid-column: 10 / 13; justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
a.row:hover .row-t { color: var(--accent); }
.rows.compact .row-d { grid-column: 6 / 13; }

/* ---------- Fonctionnement : étapes et visuel collant ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.how-visual { position: sticky; top: calc(var(--nav-h) + 40px); height: 440px; }
.layer {
  position: absolute; inset: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.layer.is-active { opacity: 1; transform: none; pointer-events: auto; }
.layer-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.file svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: square; stroke-linejoin: miter; }
.file .name { font-family: var(--mono); font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .src { font-size: 12px; color: var(--muted); white-space: nowrap; }
.layer.is-active .file { animation: drop 0.35s var(--ease) both; }
.layer.is-active .file:nth-child(3) { animation-delay: 0.05s; }
.layer.is-active .file:nth-child(4) { animation-delay: 0.1s; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.check-row .val { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; white-space: nowrap; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.neutral { background: var(--bg-alt); color: var(--ink-2); }
.entry { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.entry.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.entry .accs { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.entry .num { font-family: var(--mono); }
.entry-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.mini-btn { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.mini-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tree { font-family: var(--mono); font-size: 13.5px; line-height: 2; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.tree .t1 { padding-left: 20px; }
.tree .t2 { padding-left: 40px; color: var(--muted); }
.tree .t3 { padding-left: 60px; color: var(--muted); }
.tree .new { color: var(--ok); }
.exports { display: flex; gap: 8px; flex-wrap: wrap; }
.steps { display: flex; flex-direction: column; }
.step { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; transition: opacity 0.3s ease; }
.js .step { opacity: 0.3; }
.js .step.is-active { opacity: 1; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.step p { color: var(--muted); font-size: 17px; max-width: 460px; }

/* ---------- Classement : chaque écriture et sa pièce ---------- */
.vault { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.vault-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.vault-title { font-weight: 700; font-size: 15px; }
.vault-hint { font-size: 13px; color: var(--muted); }
.vault-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.vault-list { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-right: 1px solid var(--line); }
.v-row {
  appearance: none; border: 0; border-left: 3px solid transparent; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 3.3em minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline;
  padding: 14px 16px; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.v-row:hover { background: var(--bg); }
.v-row[aria-selected="true"] { background: var(--accent-soft); border-left-color: var(--accent); }
.v-date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.v-lib { font-weight: 600; font-size: 15.5px; }
.v-lib small { display: block; margin-top: 1px; font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--muted); }
.v-amt { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.v-chip {
  grid-column: 2 / -1; justify-self: start; max-width: 100%;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-chip svg, .badge svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; }
.v-chip.ok, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.v-chip.wait, .badge.wait { background: var(--warn-soft); color: var(--warn); }
.v-chip.sug, .badge.sug { background: transparent; color: var(--accent); border: 1px dashed currentColor; padding-block: 3px; }
.badge.plain { background: var(--bg-alt); color: var(--muted); }
.vault-preview { padding: 24px; background: var(--bg); }
.piece { display: flex; flex-direction: column; gap: 14px; }
.piece[hidden] { display: none; }
.piece:not([hidden]) { animation: piece-in 0.25s var(--ease) both; }
@keyframes piece-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.piece-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.piece-no { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.piece-paper {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--paper-ink);
  box-shadow: 0 0 0 1px var(--paper-edge), var(--paper-shadow-sm);
}
.piece-kind { font-weight: 700; font-size: 16px; }
.piece-from { margin-top: 2px; font-size: 13px; color: var(--paper-muted); }
.piece-lines { display: grid; gap: 9px; margin: 18px 0; }
.piece-lines i { display: block; height: 6px; background: var(--paper-line); }
.piece-lines i:nth-child(2) { width: 84%; }
.piece-lines i:nth-child(3) { width: 62%; }
.piece-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1.5px solid var(--paper-ink); font-size: 14px; }
.piece-total strong { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.piece-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.piece-path svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.piece-why { font-size: 14px; color: var(--ink-2); }

/* ---------- Bande marine : la machine dédiée ---------- */
.band { background: var(--band); color: var(--band-ink); }
.part.band + .part, .part + .part.band { border-top: 0; }
.band .h2, .band h3 { color: var(--band-ink); }
.band .lead { color: var(--band-muted); }
.band .label { color: var(--band-ink); }
.band .label .n { color: var(--band-accent); }
.band .tlink { color: var(--band-ink); }
.band .tlink:hover { color: var(--band-accent); }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--band-ink); }
.sec-grid.argu-4 { grid-template-columns: repeat(4, 1fr); }
.sec { padding: 28px var(--gutter) 34px 0; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--band-line); }
.sec + .sec { padding-left: var(--gutter); border-left: 1px solid var(--band-line); }
.sec-grid:not(.argu-4) .sec:nth-child(3) { padding-left: 0; border-left: 0; }
.sec-n { font-family: var(--mono); font-size: 13px; color: var(--band-accent); }
.sec h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.25; }
.sec p { color: var(--band-muted); font-size: 15.5px; }
.band-more { margin-top: 36px; }

/* ---------- Tableau de résultats, comme une feuille de révision ---------- */
.figures { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.figures th, .figures td { padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.figures thead td { border-bottom: 1px solid var(--rule); }
.figures thead th { padding-block: 0 12px; border-bottom: 1px solid var(--rule); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.figures tbody th { font-weight: 500; font-size: 17px; color: var(--ink); padding-right: 24px; }
.figures td.num { text-align: right; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.figures td.num small { font-size: 0.6em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.figures td.tk { width: 40px; padding-left: 16px; color: var(--accent); }
.figures thead th:last-child, .figures thead th.num { text-align: right; }
/* Le total juste : double trait sous la dernière ligne */
.figures tbody tr:last-child th, .figures tbody tr:last-child td { border-bottom: 4px double var(--rule); }

/* ---------- Deux colonnes séparées par un filet ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.pair > * { padding: 32px var(--gutter) 0 0; display: flex; flex-direction: column; gap: 14px; }
.pair > * + * { padding-left: clamp(24px, 3.5vw, 48px); border-left: 1px solid var(--line); }
.pair h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.pair > * > p:not([class]) { color: var(--muted); font-size: 16px; }
.pair .tree { margin-top: 8px; }
.pair .tlink { align-self: flex-start; margin-top: auto; }
.pair .label { margin-bottom: 4px; }
.big-figure { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.big-figure small { display: block; margin-top: 10px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.founders-row { display: flex; gap: 10px; }

/* ---------- Tarifs ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.price { padding: 32px var(--gutter) 34px 0; display: flex; flex-direction: column; gap: 10px; }
.price + .price { padding-left: clamp(24px, 3.5vw, 48px); border-left: 1px solid var(--line); }
.price-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.price-tag { padding: 3px 8px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; letter-spacing: 0.08em; }
.price-amount { margin-top: 6px; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-amount small { font-size: 0.32em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.price li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.price li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: butt; stroke-linejoin: miter; }
.price-note { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--muted); }
.price-fixed { margin-top: 0; padding-block: 18px; border-top: 4px double var(--rule); font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 600; color: var(--ink); }

/* ---------- Étapes numérotées ---------- */
.start { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.start li { list-style: none; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.start li strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.start li span { color: var(--muted); font-size: 15.5px; }
.start li .n { font-family: var(--mono); color: var(--accent); font-size: 13px; display: block; margin-bottom: 14px; }
.start-4 { grid-template-columns: repeat(4, 1fr); }
.part-body + .part-body, .vault + .start, .fig-note + .start, .start + .pair { margin-top: clamp(48px, 6vw, 72px); }
.part-head:last-child { margin-bottom: 0; }

/* ---------- À propos : le récit, les fondateurs, le nom ---------- */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.story-head { grid-column: 1 / 4; position: sticky; top: calc(var(--nav-h) + 40px); }
.chapters { grid-column: 4 / 11; }
.story-q { margin-top: 24px; max-width: 30ch; font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }
.chapters { position: relative; list-style: none; margin: 0; padding: 0; }
.chapters::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.chapter { position: relative; padding: 0 0 44px 56px; }
.chapter:last-child { padding-bottom: 0; }
.ch-tick { --cut: 7px; position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; background: var(--mark-plate); color: var(--mark-tick); }
.ch-tick svg { width: 15px; height: 15px; overflow: visible; }
.ch-tick polyline { stroke-width: 2.6; }
.ch-n { font-family: var(--mono); font-size: 13px; line-height: 28px; color: var(--accent); }
.ch-text { margin-top: 6px; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.15rem); line-height: 1.65; color: var(--ink-2); }
.person-head { display: flex; align-items: center; gap: 16px; }
.avatar {
  --cut: 9px;
  width: 52px; height: 52px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--mark-plate); color: var(--mark-tick);
  font-weight: 700; font-stretch: 112%; font-size: 18px; letter-spacing: 0.02em;
}
.person-name { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.person-role { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.person-text { color: var(--ink-2); font-size: 16px; }
.tag { align-self: flex-start; padding: 2px 10px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }
.why { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-top: clamp(48px, 6vw, 72px); padding-block: 28px; border-top: 1px solid var(--rule); border-bottom: 4px double var(--rule); }
.why .mark { width: 64px; height: 64px; }
.why h3 { font-size: 21px; letter-spacing: -0.02em; }
.why p { margin-top: 8px; max-width: 64ch; color: var(--ink-2); }

/* ---------- Questions fréquentes ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35;
  transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.plus { position: relative; width: 13px; height: 13px; flex-shrink: 0; color: var(--ink); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: currentColor; transition: transform 0.2s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.answer { padding-bottom: 24px; color: var(--ink-2); font-size: 16.5px; max-width: 68ch; }
.faq details[open] .answer { animation: open 0.2s var(--ease) both; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-group + .faq-group { margin-top: clamp(56px, 7vw, 88px); }
.faq-more { margin-top: 32px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card { max-width: 720px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: clamp(26px, 4vw, 44px); }
.person { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.person-mail { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.person-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-status { font-size: 14px; color: var(--ok); }
.copy-status:empty { display: none; }
.contact-addr { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- Formulaire de demande ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gutter); border-top: 1px solid var(--rule); padding-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; width: 100%;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 4px; }
.form-note { font-size: 14px; color: var(--muted); max-width: 46ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.person-phone { font-size: 18px; font-weight: 600; }
.person-phone a, .closing-phone a, .hero-trust a { color: var(--ink); border-bottom: 1px solid currentColor; }
.closing-phone { margin-top: 14px; font-size: 18px; color: var(--muted); }

/* ---------- Fin de page : prendre contact ---------- */
.closing { padding-block: clamp(80px, 11vw, 136px); border-top: 1px solid var(--line); }
.closing-title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.045em; }
.closing-mail {
  display: inline-block; margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--accent); border-bottom: 2px solid currentColor; padding-bottom: 4px; overflow-wrap: anywhere;
  transition: color 0.15s ease;
}
.closing-mail:hover { color: var(--ink); }
.closing-note { margin-top: 24px; color: var(--muted); max-width: 52ch; }
.closing-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--rule); padding-block: 48px 32px; font-size: 14.5px; color: var(--muted); }
.footer .logo .mark { width: 24px; height: 24px; }
.footer .wordmark { font-size: 17px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; }
.footer-brand { grid-column: 1 / 5; }
.footer-col { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-col:nth-child(2) { grid-column: 6 / 8; }
.footer-brand p { margin-top: 14px; max-width: 32ch; }
.footer-brand p + p { margin-top: 10px; }
.footer-h { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.footer a:not(.logo) { color: var(--muted); }
.footer a:not(.logo):hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Fonctionnalités : documents lus, compatibilité ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.doc-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc-list .icon { display: none; }
.doc-list strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.doc-list span:not(.icon) { color: var(--muted); font-size: 15.5px; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; align-items: start; }
.split > :first-child { grid-column: 1 / 6; }
.split > :last-child { grid-column: 7 / 13; }
.prose p { color: var(--ink-2); font-size: 17.5px; max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.table-wrap { overflow-x: auto; }
.compat { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compat th, .compat td { text-align: left; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compat thead th { padding-top: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); }
.compat tbody th { font-weight: 500; color: var(--ink); }
.compat tbody tr:last-child th, .compat tbody tr:last-child td { border-bottom: 4px double var(--rule); }
.compat td { white-space: nowrap; }
.compat td.yes { color: var(--ink); font-weight: 600; }
.compat td.yes svg { color: var(--accent); }
.compat td.no { color: var(--muted); }
.compat td svg { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2.6; }

/* ---------- Aperçu du logiciel : liste des écrans à gauche, écran à droite ----------
   Sur ordinateur, la liste sert de navigation. Sur téléphone, les écrans défilent du doigt. */
.tour { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; align-items: start; }
.tour .car-tabs { grid-column: 1 / 5; }
.tour .car-stage { grid-column: 5 / 13; min-width: 0; }
.car-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.car-tab {
  position: relative; appearance: none; width: 100%; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 8px; row-gap: 4px;
  padding: 16px 0 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; text-align: left; cursor: pointer;
  transition: color 0.15s ease;
}
.car-tab:hover { color: var(--ink); }
.ct-n { font-family: var(--mono); font-size: 13px; padding-top: 3px; }
.ct-t { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ct-d { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--muted); }
.car-tab[aria-current="true"] { color: var(--ink); }
.car-tab[aria-current="true"] .ct-n { color: var(--accent); }
/* Écran affiché : un trait d'encre le long de la ligne */
.car-tab::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 0.25s var(--ease); }
.car-tab[aria-current="true"]::before { transform: scaleX(1); }
.car-track {
  --peek: 0%;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - var(--peek)); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: 6px; }
.slide { margin: 0; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; transition: opacity 0.3s ease; }
.js .slide:not(.is-current) { opacity: 0.4; }
.slide figcaption { display: none; max-width: 640px; color: var(--muted); font-size: 15.5px; }
.slide figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; }
.car-ctrl { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.car-count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.car-btns { display: flex; gap: 8px; }
.car-btn {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.16s var(--ease);
}
.car-btn:active:not(:disabled) { transform: scale(0.95); }
.car-btn:disabled { opacity: 0.3; cursor: default; }
.car-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
.car-btn[data-prev] svg { transform: scaleX(-1); }

/* Fenêtre du logiciel, sur le même plateau marine que la démo du haut de page */
.screen {
  --cut: 16px;
  position: relative; isolation: isolate; flex: 1; display: flex;
  padding: clamp(14px, 3vw, 36px);
  background: var(--stage);
  box-shadow: inset 0 0 0 1px var(--stage-edge);
}
.app {
  flex: 1; display: flex; flex-direction: column; min-height: 390px; overflow: hidden;
  background: var(--surface); color: var(--ink); font-size: 13.5px; line-height: 1.45; border-radius: 4px;
  box-shadow: 0 0 0 1px var(--paper-edge), var(--paper-shadow);
}
.app-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-title { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { flex: 1; display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--bg); }
.side-h { padding: 0 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.side-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--ink-2); font-weight: 500; }
.side-i svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; }
.side-i.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.app-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 20px; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.app-h { font-size: 16px; font-weight: 700; }
.app-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.app-tag { padding: 2px 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.app-sub { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.app-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--accent); }
.app-hint svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; }
.app .mini-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; white-space: nowrap; }
.app-head .mini-btn { align-self: center; }
.mini-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
.drop { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.drop svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: square; }
.a-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); }
.a-row svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: square; }
.a-row .name, .s-card .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.a-row .kind { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.e-table, .r-table { border: 1px solid var(--line); background: var(--surface); }
.e-row, .r-row { display: grid; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.e-row { grid-template-columns: 3.4em minmax(0, 1.6fr) 4.4em 4.4em 5.6em 5.8em; }
.r-row { grid-template-columns: minmax(0, 1.7fr) 6.2em 6.2em 5.2em 4.6em; }
.e-row:last-child, .r-row:last-child { border-bottom: 0; }
.e-row > span, .r-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-th, .r-th { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.e-row:not(.e-th) > span:nth-child(1), .e-row:not(.e-th) > span:nth-child(3), .e-row:not(.e-th) > span:nth-child(4),
.e-row:not(.e-th) .num, .r-row:not(.r-th) .num { font-family: var(--mono); font-size: 12.5px; }
.e-row .num, .r-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.e-row .status, .r-row .status { justify-self: start; }
.e-row.is-focus { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.e-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.s-card .e-actions { grid-column: auto; }
.j-entry { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--accent); background: var(--accent-soft); }
.j-date, .j-amt { font-family: var(--mono); font-size: 12.5px; }
.j-lib { font-weight: 600; }
.j-lib small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.s-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.s-card.is-top { border: 1px dashed var(--accent); }
.sug-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons span { padding: 3px 8px; background: var(--bg-alt); color: var(--ink-2); font-size: 12px; }
.x-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.x-opt small { grid-column: 2; font-size: 12px; font-weight: 400; color: var(--muted); }
.x-opt .radio { grid-row: span 2; width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 50%; }
.x-opt.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.x-opt.is-on .radio { border: 5px solid var(--accent); }
.app .tree { padding: 10px 14px; font-size: 12.5px; line-height: 1.9; }
.app .tree div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Pages légales et pages simples ---------- */
.legal { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 96px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.05; }
.legal .updated { color: var(--muted); margin-top: 12px; font-size: 15px; }
.legal h2 { font-size: 21px; letter-spacing: -0.015em; margin-top: 44px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0 0; }
.legal address { font-style: normal; line-height: 1.7; color: var(--ink-2); }
.legal .box { margin-top: 16px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.simple { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; text-align: center; }
.simple .logo { margin-bottom: 40px; }
.simple .logo .mark { width: 40px; height: 40px; }
.simple .wordmark { font-size: 26px; }
.simple h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.05; }
.simple .lead { margin: 16px auto 0; }
.simple .alt { color: var(--ink-2); margin-top: 20px; }
.simple .alt strong { user-select: all; }
.simple .sign { margin-top: 28px; font-weight: 600; }
.simple .sign span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.simple .back { margin-top: 32px; }

/* ---------- Responsive ---------- */
/* Les libellés complets du menu ne tiennent plus sur une ligne : place aux trois barres */
@media (max-width: 1100px) {
  .nav-links a:not(.btn) { display: none; }
  .js .nav-links { display: none; }
  .js .nav-toggle { display: grid; }
}
@media (max-width: 960px) {
  .sec-grid.argu-4 { grid-template-columns: repeat(2, 1fr); }
  .argu-4 .sec:nth-child(3) { padding-left: 0; border-left: 0; }
  .start-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:nth-child(2) { grid-column: span 4; }
}
@media (max-width: 860px) {
  /* Une seule colonne : le repère passe au-dessus du titre */
  .part-head > .label, .part-head > div, .hero-sub > div, .page-hero .story-q,
  .split > :first-child, .split > :last-child, .story-head, .chapters { grid-column: 1 / -1; }
  .part-head > .label { padding-top: 0; }
  .indent { margin-left: 0; }
  .story { row-gap: 40px; }
  .story-head { position: static; }
  .row-n { grid-column: 1 / 2; }
  .row-t { grid-column: 2 / -1; }
  .row-d, .rows.compact .row-d { grid-column: 2 / -1; }
  .go { grid-column: 2 / -1; justify-self: start; margin-top: 4px; }
  .edge { grid-template-columns: 1fr; }
  .edge > div { padding: 22px 0 26px; }
  .edge > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stage { grid-template-columns: minmax(0, 1fr); font-size: 12.5px; }
  .flow { justify-self: center; transform: rotate(90deg); }
  .vault-body { grid-template-columns: 1fr; }
  .vault-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .how { grid-template-columns: 1fr; gap: 0; }
  .how-visual { top: calc(var(--nav-h) + 8px); height: 300px; z-index: 2; }
  .how-visual::after { content: ""; position: absolute; left: -24px; right: -24px; top: -16px; bottom: -24px; background: var(--bg); z-index: -1; }
  .layer { padding: 20px; gap: 8px; }
  .layer .file:nth-child(n+5), .layer .check-row:nth-child(n+5), .layer .entry:nth-child(n+3) { display: none; }
  .step { min-height: 52vh; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec + .sec { padding-left: 0; border-left: 0; }
  .sec-grid.argu-4 { grid-template-columns: 1fr; }
  .price-grid, .pair { grid-template-columns: 1fr; }
  .price + .price, .pair > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 32px; }
  .start { grid-template-columns: 1fr; }
  /* Aperçu : onglets en ligne au-dessus des écrans, qui défilent du doigt */
  .tour .car-tabs, .tour .car-stage { grid-column: 1 / -1; }
  .car-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-top: 0; border-bottom: 1px solid var(--line); margin-inline: calc(-1 * clamp(20px, 4vw, 48px)); padding-inline: clamp(20px, 4vw, 48px); gap: 22px; }
  .car-tabs::-webkit-scrollbar { display: none; }
  .car-tab { width: auto; flex-shrink: 0; display: flex; gap: 8px; padding: 12px 0; border-bottom: 0; }
  .ct-d { display: none; }
  .ct-t { font-size: 15px; }
  .ct-n { padding-top: 1px; font-size: 12px; }
  .car-track { --peek: 8%; gap: 12px; }
  .slide figcaption { display: block; }
  .car-ctrl { display: flex; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
}
@media (max-width: 700px) {
  .app { min-height: 0; font-size: 12.5px; }
  .app-main { padding: 14px; }
  .a-row { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .a-row .kind { display: none; }
  /* Sur téléphone, les tableaux gardent l'essentiel */
  .e-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 9px 10px; }
  .e-row > :nth-child(1), .e-row > :nth-child(3), .e-row > :nth-child(4) { display: none; }
  .e-actions { grid-column: 1 / -1; }
  .r-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 9px 10px; }
  .r-row > :nth-child(3), .r-row > :nth-child(4) { display: none; }
  .x-opts { grid-template-columns: 1fr; }
  .figures tbody th { font-size: 15.5px; }
  .figures td.tk { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .how-visual::after { left: -20px; right: -20px; }
  .meta-row span:not(.live):not(:first-child) { display: none; }
  .footer-col, .footer-col:nth-child(2) { grid-column: span 6; }
  .stage { --cut: 12px; padding: 16px; font-size: 11.5px; }
  .sheet { padding: 1.3em 1.2em; }
  .lg-head, .lg-row, .lg-total { grid-template-columns: 3.1em 1fr 1fr 3em 5.6em 1.6em; gap: 0.5em; padding-inline: 0.2em; }
  .hero-actions .btn, .person-actions .btn { width: 100%; }
  .founders { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding: 20px 0; }
  .vault-bar { padding: 14px 18px; }
  .vault-list { padding: 8px; }
  .v-row { padding: 12px; gap: 4px 10px; }
  .vault-preview { padding: 18px; }
  .chapter { padding-left: 48px; }
  .why { grid-template-columns: 1fr; gap: 18px; }
  .why .mark { width: 52px; height: 52px; }
}

/* Téléphone : une version courte des textes, l'essentiel en premier */
.m-only { display: none; }
@media (max-width: 600px) {
  .m-hide { display: none !important; }
  .m-only { display: block; }
  /* Les trois différences : un titre par ligne, le détail est sur les pages dédiées */
  .edge { margin-top: 40px; }
  .edge > div { flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 0; }
  .edge p, .edge .tlink { display: none; }
  .edge-t { font-size: 1.1rem; }
  /* Démonstration : seulement les écritures proposées */
  .stage .sheet-doc, .stage .flow { display: none; }
}

/* Passage d'une page à l'autre en fondu (navigateurs récents) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-nav { view-transition-name: site-nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }

/* Mouvements réduits : on garde les fondus, on retire les déplacements */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .step { opacity: 1; }
}

/* ==========================================================================
   v3 — éléments ajoutés le 2026-11-20
   ========================================================================== */

/* Faits en bref sous les boutons du haut de page */
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 10px; height: 6px; border-top: 2px double currentColor; border-bottom: 2px solid currentColor; opacity: 0.55; }

/* Pour qui : deux listes côte à côte */
.fit-pair h3 { margin-bottom: 4px; }
.fit { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.fit li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.fit li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 5px; fill: none; stroke: var(--ok); stroke-width: 2.6; }
.fit-no li { color: var(--muted); }
.fit .dash { flex-shrink: 0; width: 12px; height: 2px; margin: 12px 2px 0; background: var(--muted); }

/* Tableau de comparaison : texte sur plusieurs lignes */
.compat.compare { min-width: 640px; }
.compat.compare td { white-space: normal; width: 32%; }
.compat.compare th[scope="row"] { width: 36%; }
.compat.compare td.yes { color: var(--ink); }
.band .compat th, .band .compat td { border-bottom-color: var(--band-line); color: var(--band-muted); }
.band .compat thead th { color: var(--band-muted); border-bottom-color: var(--band-ink); }
.band .compat tbody th, .band .compat td.yes { color: var(--band-ink); }
.band .compat tbody tr:last-child th, .band .compat tbody tr:last-child td { border-bottom-color: var(--band-ink); }
.band .note { color: var(--band-muted); }

/* État des fonctions */
.compat.status { min-width: 520px; }
.compat.status th[scope="row"] { white-space: normal; padding-right: 32px; }
.compat td.wip { color: var(--warn); font-weight: 600; }
.compat td.wip::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border: 2px solid currentColor; border-radius: 50%; vertical-align: 0; }
.sub-h { margin-top: clamp(48px, 6vw, 72px); margin-bottom: 18px; font-size: 21px; letter-spacing: -0.02em; }

/* Bouton d'action sous une suite d'étapes */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: clamp(36px, 5vw, 56px); margin-left: calc(25% + var(--gutter) / 4); }
.cta-note { font-size: 14.5px; color: var(--muted); }

/* Seuil de rentabilité */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 28px var(--gutter); align-items: start; border-top: 1px solid var(--rule); padding-top: 28px; }
.calc input { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; max-width: 180px; }
.calc-hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin: 0; }
.calc-out > div { border-left: 1px solid var(--line); padding-left: var(--gutter); }
.calc-out dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.calc-out dd { margin: 8px 0 0; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc-out dd small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.calc-out p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .cta-row { margin-left: 0; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .calc-out { grid-template-columns: 1fr; }
  .calc-out > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}

/* Petits écrans : les tableaux de comparaison et d'état passent en lignes empilées */
@media (max-width: 640px) {
  .compat.compare, .compat.status { min-width: 0; }
  .compat.compare thead, .compat.status thead { display: none; }
  .compat.compare tr, .compat.status tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .compat.compare tbody tr:last-child, .compat.status tbody tr:last-child { border-bottom: 4px double var(--rule); }
  .compat.compare th, .compat.compare td, .compat.status th, .compat.status td,
  .compat.compare tbody tr:last-child th, .compat.compare tbody tr:last-child td,
  .compat.status tbody tr:last-child th, .compat.status tbody tr:last-child td { display: block; width: auto; padding: 3px 0; border: 0; white-space: normal; }
  .compat.compare th[scope="row"] { width: auto; margin-bottom: 4px; }
  .compat.compare td::before { content: attr(data-label) " : "; font-weight: 600; }
  .compat.status td { font-size: 14.5px; }
  .band .compat.compare tr { border-bottom-color: var(--band-line); }
  .band .compat.compare tbody tr:last-child { border-bottom-color: var(--band-ink); }
}
