/* ==========================================================================
   Squltur — feuille de style unique
   Polices auto-hébergées (OFL), aucun appel externe.
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jakarta-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/jakarta-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jakarta-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/jakarta-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/jakarta-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/jakarta-800.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/jakarta-800-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #14171A;
  --text: #3A4048;
  --muted: #646A75;            /* ajusté : 5,0:1 sur --paper (AA) */
  --paper: #F6F5EF;
  --grid: rgba(20, 23, 26, .05);
  --card: #FFFFFF;
  --line: #E4E2DA;
  --lime: #D4F26A;
  --lime-strong: #C2E83A;
  --ok: #3F6B12;
  --ok-bg: #F4FAE6;
  --ok-line: #D3E8A8;
  --sky: #E6ECF5;

  --s1: #FDEEE6; --p1: #F26B4A; --n1: #B8421F;
  --s2: #E8EDFD; --p2: #4D6BF2; --n2: #3451D1;
  --s3: #F1FADC; --p3: #9BD42A; --n3: #3F6B12;

  --on-ink: #C9CED5;           /* texte secondaire sur fond encre : 11:1 */

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --shadow-soft: 0 1px 2px rgba(20, 23, 26, .04), 0 10px 30px -14px rgba(20, 23, 26, .18);
  --shadow-card: 0 1px 2px rgba(20, 23, 26, .05), 0 22px 48px -22px rgba(20, 23, 26, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { overflow-x: clip; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
svg { flex: none; }
button { font: inherit; color: inherit; }

a { color: var(--ink); text-decoration-color: var(--lime-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.demo :focus-visible { outline-color: var(--lime); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Surligneur & soulignement ---------- */
.mark {
  color: var(--ink);
  font-style: italic;
  font-weight: 800;
  padding: 0 .12em 0 .1em;
  margin-inline: -.02em -.04em;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0 55%;
  background-size: 100% 86%;
  border-radius: .1em .24em .14em .28em / .26em .12em .3em .14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .6s cubic-bezier(.65, 0, .35, 1);
}
.mark.is-pending { background-size: 0% 86%; }
.mark--hero { animation: mark-in .6s .35s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes mark-in { from { background-size: 0% 86%; } }

.em { font-style: italic; font-weight: 800; }

.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg {
  position: absolute; left: -3%; bottom: -.2em;
  width: 106%; height: .32em; overflow: visible; pointer-events: none;
}
.scribble path {
  fill: none; stroke: var(--p3); stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: draw .7s .95s ease-out both;
}
.scribble path + path { animation-delay: 1.2s; opacity: .85; }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font); font-size: 1rem; font-weight: 500; line-height: 1.25; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .ico { width: 1.2em; height: 1.2em; }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 22px -12px rgba(20, 23, 26, .7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 5px rgba(212, 242, 106, .6), 0 16px 30px -14px rgba(20, 23, 26, .6);
}
.btn-primary.is-done { background: var(--ok); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(20, 23, 26, .24); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 239, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled { background: rgba(246, 245, 239, .9); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--lime); color: var(--ink); font-weight: 800; font-size: 19px; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(20, 23, 26, .1);
}
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { display: inline-block; padding: 8px 0; color: var(--text); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime-strong); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-toggle { display: none; }

@media (max-width: 919px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer;
  }
  .nav-toggle .ico { width: 22px; height: 22px; }
  .nav-toggle .ico-close { display: none; }
  .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ico-close { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: none; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 8px clamp(20px, 4vw, 40px) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 23, 26, .3);
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-menu .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(64px, 8vw, 104px);
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.hero::before {
  top: -220px; right: -200px; width: 820px; height: 620px;
  background: radial-gradient(closest-side, rgba(212, 242, 106, .6), rgba(212, 242, 106, .18) 55%, rgba(212, 242, 106, 0));
}
.hero::after {
  top: -240px; left: -260px; width: 900px; height: 640px;
  background: radial-gradient(closest-side, rgba(230, 236, 245, 1), rgba(230, 236, 245, .5) 55%, rgba(230, 236, 245, 0));
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-kicker { max-width: 48rem; color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.05rem); font-style: italic; }
.hero-title {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -.03em;
}
.hero-title .l { display: block; }
.hero-title .l + .l { margin-top: .06em; }
.hero-sub {
  max-width: 36em; margin-top: clamp(24px, 3vw, 32px);
  color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-meta { margin-top: 20px; color: var(--muted); font-size: .92rem; }
.hero-meta span { margin-inline: .45em; }

/* ---------- Documents (bon de commande / CSV) ---------- */
.doc {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 36px);
  color: var(--text); font-size: .95rem; line-height: 1.5;
}
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.doc-title { color: var(--ink); font-size: 1.3em; font-weight: 800; letter-spacing: .01em; }
.doc-no { color: var(--muted); font-size: .88em; white-space: nowrap; }
.doc-addr { margin-top: 14px; }
.doc-table { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: .92em; }
.doc-table th { padding: 8px 6px; border-bottom: 1.5px solid #CFCDC4; color: var(--ink); font-weight: 700; text-align: left; white-space: nowrap; }
.doc-table td { padding: 10px 6px; border-bottom: 1px solid #EEEDE7; transition: background-color .35s; }
.doc-table th:first-child, .doc-table td:first-child { padding-left: 0; }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 0; }
.doc-table .num, .csv-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-table td:first-child { white-space: nowrap; }
.doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 28px; }
.doc-foot em { color: var(--muted); font-size: .9em; }
.doc-foot strong { color: var(--ink); font-weight: 700; white-space: nowrap; }

.csv {
  overflow: hidden;
  background: var(--card); border: 1.5px solid var(--ok-line); border-radius: 18px; box-shadow: var(--shadow-card);
  font-size: .95rem;
}
.csv-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: var(--ok-bg); border-bottom: 1px solid var(--ok-line);
  color: var(--ok); font-family: var(--mono); font-size: .9em; font-weight: 500; overflow-wrap: anywhere;
}
.csv-head .ico { width: 20px; height: 20px; }
.csv-scroll { overflow-x: auto; }
.csv-table { width: 100%; border-collapse: collapse; color: var(--ink); font-family: var(--mono); font-size: .84em; line-height: 1.45; }
.csv-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFBF8; color: var(--muted); font-weight: 400; text-align: left; white-space: nowrap; }
.csv-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.csv-table th + th, .csv-table td + td { border-left: 1px solid var(--line); }
.csv-table td:first-child { min-width: 8ch; }
.csv-table td:nth-child(2), .csv-table td:nth-child(3) { white-space: nowrap; }
.csv-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: var(--ok); font-weight: 500; }
.csv-foot .ico { width: 20px; height: 20px; stroke-width: 2.4; }

.arrow-dot {
  display: grid; place-items: center; width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); box-shadow: 0 12px 26px -12px rgba(20, 23, 26, .7);
}
.arrow-dot svg { width: 46%; height: 46%; fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Animation PDF → CSV (hero) ---------- */
.flow {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.06fr); align-items: center;
  gap: clamp(16px, 3vw, 36px);
  width: 100%; max-width: 1080px; margin: clamp(56px, 7vw, 88px) auto 0;
  text-align: left;
}
.flow .doc { font-size: .9rem; }
.flow .csv { font-size: .9rem; }
.flow .csv-table td:first-child { white-space: normal; }
.scan-line {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgba(212, 242, 106, 0), rgba(212, 242, 106, .5) 50%, rgba(212, 242, 106, 0)) no-repeat;
  background-size: 100% 90px; background-position: 0 -90px;
}
.flow.is-reading .scan-line { animation: scan 1.3s ease-in-out both; }
@keyframes scan {
  0% { opacity: 0; background-position: 0 -90px; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; background-position: 0 calc(100% + 90px); }
}
.flow.is-animated .csv-table tbody tr { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.flow.is-animated .csv-table tbody tr.is-on { opacity: 1; transform: none; }
.flow.is-animated .csv-foot { opacity: 0; transition: opacity .45s var(--ease); }
.flow.is-animated .csv-foot.is-on { opacity: 1; }
.flow .doc-table tr.is-hit td { background: rgba(212, 242, 106, .7); }
.flow.is-animated .arrow-dot { transition: transform .4s var(--ease); }
.flow.is-reading .arrow-dot { transform: scale(1.06); }

/* ---------- Bandeau formats ---------- */
.formats {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px 44px; margin-top: clamp(48px, 6vw, 72px);
}
.formats-group { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }
.formats-group + .formats-group { position: relative; }
.label-caps { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  background: rgba(255, 255, 255, .65); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-size: .9rem; font-weight: 500; white-space: nowrap;
}
.pill .ico { width: 16px; height: 16px; color: var(--muted); stroke-width: 1.7; }
@media (min-width: 1000px) {
  .formats-group + .formats-group::before {
    content: ""; position: absolute; left: -22px; top: 50%; width: 1px; height: 28px; margin-top: -14px; background: var(--line);
  }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 136px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--lime-strong); box-shadow: inset 0 0 0 1px rgba(20, 23, 26, .14); }
.h2 { margin-top: 18px; max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; }
.h2--wide { max-width: 24ch; line-height: 1.12; }
@media (min-width: 720px) { .h2--wide .mark { white-space: nowrap; } }
.lead { max-width: 62ch; margin-top: 20px; color: var(--text); }
.section-head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head--center .h2 { margin-inline: auto; }

/* Le problème */
.problem-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.problem-head .lead { margin-top: 0; }
.stats-caption { margin-top: clamp(48px, 6vw, 72px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.stat { padding: 28px 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); }
.stat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.stat-icon .ico { width: 22px; height: 22px; stroke-width: 1.6; }
.stat-num { margin-top: 22px; color: var(--ink); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.stat-num small { margin-left: .15em; color: var(--muted); font-size: .42em; font-weight: 500; letter-spacing: 0; }
.stat p:last-child { margin-top: 12px; }
.note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* Comment ça marche */
.steps-wrap { position: relative; margin-top: clamp(64px, 8vw, 96px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: 24px; }
.steps-thread { position: absolute; left: 6%; top: 12%; width: 88%; height: 76%; z-index: 0; overflow: visible; pointer-events: none; }
.steps-thread path { fill: none; stroke: rgba(20, 23, 26, .38); stroke-width: 1.6; stroke-dasharray: 5 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.step { position: relative; z-index: 1; }
.step--1 { rotate: -2deg; }
.step--2 { rotate: 1deg; margin-top: 104px; }
.step--3 { rotate: -1.5deg; margin-top: 28px; }
.step-card { position: relative; padding: 11px; background: var(--card); border-radius: 28px; box-shadow: 0 2px 4px rgba(20, 23, 26, .04), 0 26px 50px -22px rgba(20, 23, 26, .3); }
.step-inner { min-height: 300px; padding: 46px 28px 40px; border-radius: 20px; }
.step--1 .step-inner { background: var(--s1); border: 1px solid rgba(242, 107, 74, .16); }
.step--2 .step-inner { background: var(--s2); border: 1px solid rgba(77, 107, 242, .14); }
.step--3 .step-inner { background: var(--s3); border: 1px solid rgba(155, 212, 42, .3); }
.pin { position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; box-shadow: 0 7px 10px -4px rgba(20, 23, 26, .45); }
.step--1 .pin { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .7) 0 10%, rgba(255, 255, 255, 0) 24%), radial-gradient(circle at 40% 36%, #FF9478, var(--p1) 58%, #C9452A); }
.step--2 .pin { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .7) 0 10%, rgba(255, 255, 255, 0) 24%), radial-gradient(circle at 40% 36%, #8EA3FF, var(--p2) 58%, #2D46C4); }
.step--3 .pin { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .7) 0 10%, rgba(255, 255, 255, 0) 24%), radial-gradient(circle at 40% 36%, #C8F06A, var(--p3) 58%, #6FA01A); }
.step-num { display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.step--1 .step-num { color: var(--n1); }
.step--2 .step-num { color: var(--n2); }
.step--3 .step-num { color: var(--n3); }
.step h3 { margin-top: 18px; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -.02em; }
.step p { margin-top: 12px; font-size: 1rem; line-height: 1.6; }
.tag {
  position: absolute; z-index: 2; padding: 9px 18px;
  background: var(--lime); border-radius: 12px; box-shadow: 0 10px 18px -10px rgba(20, 23, 26, .45), inset 0 0 0 1px rgba(20, 23, 26, .06);
  color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.step--1 .tag { right: -10px; bottom: -20px; rotate: -4deg; }
.step--2 .tag { left: -22px; top: -58px; rotate: -3deg; }
.step--3 .tag { right: -14px; bottom: -22px; rotate: 4deg; }

/* Exemple avant / après */
.compare {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.06fr);
  grid-template-areas: "lb . la" "tabs . ." "doc arrow csv";
  gap: 0 clamp(16px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 72px);
}
.compare-label { margin-bottom: 18px; }
.compare-label--before { grid-area: lb; }
.compare-label--after { grid-area: la; color: var(--ok); }
.compare-label--after::before { background: var(--ok); }
.compare-label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--muted); vertical-align: 2px; }
.tabs { grid-area: tabs; display: inline-flex; flex-wrap: wrap; gap: 6px; justify-self: start; margin-bottom: 18px; padding: 5px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  background: transparent; border: 0; border-radius: 999px; color: var(--text); font-size: .93rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tab .ico { width: 17px; height: 17px; stroke-width: 1.7; }
.tab:hover { background: rgba(20, 23, 26, .05); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.doc-stage { grid-area: doc; display: grid; }
.tabpanel { grid-area: 1 / 1; transition: opacity .35s var(--ease); }
.tabpanel[hidden] { display: block; visibility: hidden; opacity: 0; }
.compare-arrow { grid-area: arrow; }
.compare-csv { grid-area: csv; }
.compare-note { max-width: 62ch; margin-top: 40px; color: var(--muted); font-size: 1rem; }

/* Variante scan */
.doc--scan {
  background: #EEEDE8; color: #2E3033;
  rotate: -1.2deg; filter: grayscale(1) contrast(1.04);
  box-shadow: 0 1px 2px rgba(20, 23, 26, .08), 0 22px 44px -22px rgba(20, 23, 26, .35);
  text-shadow: 0 0 .6px rgba(0, 0, 0, .45);
}
.doc--scan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .09)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .018) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
}
.doc--scan .doc-title, .doc--scan .doc-foot strong, .doc--scan .doc-table th { color: #1E2023; }
.doc--scan .doc-table th { border-bottom-color: #9A9A96; }
.doc--scan .doc-table td { border-bottom-color: #D2D1CB; }
.doc--scan .doc-no, .doc--scan .doc-foot em { color: #55585E; }
.punch { position: absolute; left: 10px; width: 12px; height: 12px; border-radius: 50%; background: #CFCEC8; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.punch--a { top: 30%; }
.punch--b { top: 64%; }

/* Variante mail */
.mail { padding: 0; }
.mail-bar { display: flex; align-items: center; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #FAFAF7; }
.mail-bar i { width: 10px; height: 10px; border-radius: 50%; background: #DDDBD2; }
.mail-bar b { margin-left: 10px; color: var(--muted); font-size: .82em; font-weight: 500; }
.mail-meta { padding: 16px clamp(20px, 3vw, 32px) 14px; border-bottom: 1px solid var(--line); font-size: .92em; }
.mail-meta p { display: flex; gap: 12px; }
.mail-meta p + p { margin-top: 4px; }
.mail-meta span { flex: none; width: 4.2em; color: var(--muted); }
.mail-meta strong { color: var(--ink); font-weight: 700; }
.mail-body { padding: 18px clamp(20px, 3vw, 32px) 6px; }
.mail-body p + p { margin-top: 12px; }
.mail .doc-foot { margin-top: 10px; padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px); }

/* Pour qui */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 64px); }
.aud { padding: 28px 24px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.aud:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.aud-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.aud-icon .ico { width: 26px; height: 26px; stroke-width: 1.5; }
.aud h3 { margin-top: 22px; font-size: 1.14rem; line-height: 1.3; letter-spacing: -.01em; }
.aud p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Bande rassurante */
.reassure { padding-block: 44px; background: rgba(255, 255, 255, .5); border-block: 1px solid var(--line); }
.reassure-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 36px; }
.reassure-list li { display: flex; align-items: flex-start; gap: 14px; }
.reassure-list .ico { width: 26px; height: 26px; margin-top: 1px; color: var(--ok); stroke-width: 1.6; }
.reassure-list h3 { font-size: 1.02rem; line-height: 1.35; }
.reassure-list p { margin-top: 4px; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Démo */
.demo {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px 64px;
  padding: clamp(28px, 6vw, 72px);
  background: var(--ink); border-radius: 28px; color: var(--on-ink);
}
.demo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.demo::after {
  content: ""; position: absolute; z-index: -1; top: -260px; right: -220px; width: 640px; height: 560px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 242, 106, .22), rgba(212, 242, 106, 0));
}
.eyebrow--lime { color: var(--lime); }
.eyebrow--lime::before { background: var(--lime); box-shadow: none; }
.demo .h2 { color: #fff; max-width: 15ch; font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.14; }
.demo .lead { color: var(--on-ink); }
.mini-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.mini-steps li { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; color: #fff; font-size: .95rem; font-weight: 500; line-height: 1.35; }
.mini-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .85rem; font-weight: 800; }
.demo-card { position: relative; padding: clamp(22px, 3.5vw, 36px); background: var(--paper); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); color: var(--text); }
.demo-address {
  margin-top: 10px; color: var(--ink);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}
.demo-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.demo-actions .btn { flex: 1 1 220px; }
.demo-fine { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(212, 242, 106, .55), 0 16px 32px -12px rgba(20, 23, 26, .6);
  font-size: .95rem; font-weight: 500;
  opacity: 0; translate: -50% 16px; pointer-events: none; transition: opacity .25s, translate .25s var(--ease);
}
.toast:empty { display: none; }
.toast.is-visible { opacity: 1; translate: -50% 0; }
.demo-contact {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--on-ink); font-size: 1rem;
}
.demo-contact strong { color: #fff; font-weight: 700; }
.demo-contact a { color: var(--lime); font-weight: 700; text-decoration-color: rgba(212, 242, 106, .45); }
.demo-contact a:hover { text-decoration-color: var(--lime); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 72px; align-items: start; }
.faq-side .lead a { font-weight: 700; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .25s, border-color .25s; }
.faq-list details[open] { border-color: #D6D3C7; box-shadow: var(--shadow-soft); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; border-radius: 18px; cursor: pointer; list-style: none;
  color: var(--ink); font-size: 1.06rem; font-weight: 700; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover .plus { background: var(--lime); border-color: var(--lime-strong); }
.plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); transition: transform .25s var(--ease), background-color .2s, border-color .2s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); }
.plus::after { rotate: 90deg; }
details[open] .plus { transform: rotate(45deg); background: var(--lime); border-color: var(--lime-strong); }
.faq-answer { padding: 0 24px 22px; max-width: 62ch; }

/* Pied de page */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; color: var(--muted); font-size: .95rem; }
.footer-links a { color: var(--text); }

/* Mentions légales */
.legal { padding-block: clamp(56px, 8vw, 96px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.legal-body { max-width: 62ch; margin-top: 40px; }
.legal-body h2 { margin-top: 44px; font-size: 1.35rem; letter-spacing: -.01em; }
.legal-body p, .legal-body ul { margin-top: 12px; }
.legal-body li + li { margin-top: 6px; }
.legal-card { margin-top: 40px; padding: clamp(24px, 4vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.todo { padding: 1px 6px; border-radius: 4px; background: #FFE45C; color: var(--ink); font-weight: 700; box-shadow: 0 0 0 2px #FFE45C; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.legal-back { margin-top: 48px; }

/* ---------- Apparition au défilement ---------- */
[data-reveal] { transition: opacity .7s var(--ease), translate .7s var(--ease); }
[data-reveal].is-pending { opacity: 0; translate: 0 22px; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reassure-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo .h2 { max-width: 20ch; }
}

@media (max-width: 900px) {
  .problem-head { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 520px; margin-inline: auto; }
  .steps-thread { display: none; }
  .step, .step--1, .step--2, .step--3 { rotate: none; margin-top: 0; }
  .step-inner { min-height: 0; }
  .step .tag, .step--1 .tag, .step--2 .tag, .step--3 .tag {
    position: relative; inset: auto; display: inline-block; margin: -18px 0 0 22px; rotate: -2deg;
  }
  .step--2 .tag { rotate: 2deg; }

  .flow, .compare { grid-template-columns: minmax(0, 1fr); }
  .flow { max-width: 560px; gap: 14px; }
  .flow .arrow-dot, .compare .arrow-dot { rotate: 90deg; margin-inline: auto; }
  .compare {
    grid-template-areas: "lb" "tabs" "doc" "arrow" "la" "csv";
    max-width: 620px; margin-inline: auto;
  }
  .compare-arrow { margin-block: 22px; }
  .compare-label--after { margin-top: 4px; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 400px; }
  .hero-ctas .btn { width: 100%; }
  .formats { flex-direction: column; gap: 18px; }
  .audience, .reassure-list { grid-template-columns: minmax(0, 1fr); }
  .mini-steps { grid-template-columns: minmax(0, 1fr); }
  .mini-steps li { flex-direction: row; align-items: center; }
  .demo { border-radius: 22px; }
  .demo-actions .btn { width: 100%; }
  .doc, .csv { font-size: .86rem; }
  .flow .doc, .flow .csv { font-size: .8rem; }
  .csv-table th, .csv-table td { padding: 10px 8px; }
  .csv-head, .csv-foot { padding-inline: 14px; }
  .faq-list summary { padding: 18px; font-size: 1rem; }
  .faq-answer { padding: 0 18px 20px; }
  .tabs { justify-self: stretch; flex-wrap: nowrap; gap: 2px; padding: 4px; }
  .tab { flex: 1 1 auto; justify-content: center; min-height: 38px; padding-inline: 8px; font-size: .88rem; white-space: nowrap; }
  .tab .ico { display: none; }
}

@media (max-width: 400px) {
  .csv-table th, .csv-table td { padding: 10px 6px; }
  .flow .doc-addr { display: none; }
  .flow .doc-table th:nth-child(2), .flow .doc-table td:nth-child(2) { display: none; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  [data-reveal].is-pending { opacity: 1; translate: none; }
  .mark.is-pending { background-size: 100% 86%; }
}
