/* ============ Jetons ============ */
:root {
  --bg: #fcfcfc;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --ink: #1a1a1a;
  --ink-2: #4d4d4d;
  --muted: #737373;
  --dim: #999999;
  --line: #e6e6e6;
  --line-2: #d4d4d4;
  --btn-bg: #1a1a1a;
  --btn-fg: #ffffff;
  --face-top: #ffffff;
  --face-l: #f0f0f0;
  --face-r: #e2e2e2;
  --face-dark: #1a1a1a;
  --face-dark-fg: #ffffff;
  --hx-dt: #2a2a2a; --hx-dl: #1d1d1d; --hx-dr: #111111; --hx-slot: #202020; --hx-shadow: rgba(0,0,0,.13);
  --accent: #1a1a1a;
  --ph: #a15c00;
  --ph-bg: rgba(255, 170, 0, .08);
  --font-h: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --font-n: "Geist", "Inter", system-ui, sans-serif;
  --wrap: 1224px;
  --pad: clamp(16px, 4vw, 60px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d; --surface: #141414; --surface-2: #1c1c1c;
    --ink: #f2f2f2; --ink-2: #c7c7c7; --muted: #9b9b9b; --dim: #6e6e6e;
    --line: #262626; --line-2: #333333;
    --btn-bg: #f2f2f2; --btn-fg: #111111;
    --face-top: #1b1b1b; --face-l: #151515; --face-r: #101010;
    --face-dark: #f2f2f2; --face-dark-fg: #111111;
    --hx-dt: #f2f2f2; --hx-dl: #d4d4d4; --hx-dr: #b4b4b4; --hx-slot: #050505; --hx-shadow: rgba(255,255,255,.045);
    --ph: #f0b45a; --ph-bg: rgba(240, 180, 90, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0d; --surface: #141414; --surface-2: #1c1c1c;
  --ink: #f2f2f2; --ink-2: #c7c7c7; --muted: #9b9b9b; --dim: #6e6e6e;
  --line: #262626; --line-2: #333333;
  --btn-bg: #f2f2f2; --btn-fg: #111111;
  --face-top: #1b1b1b; --face-l: #151515; --face-r: #101010;
  --face-dark: #f2f2f2; --face-dark-fg: #111111;
  --hx-dt: #f2f2f2; --hx-dl: #d4d4d4; --hx-dr: #b4b4b4; --hx-slot: #050505; --hx-shadow: rgba(255,255,255,.045);
  --ph: #f0b45a; --ph-bg: rgba(240, 180, 90, .08);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.4 var(--font-b); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 500; margin: 0; color: var(--ink); }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.05em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; letter-spacing: -0.036em; }
h2 .dim { color: var(--dim); }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; }
.body { color: var(--muted); font-size: 16px; line-height: 1.4; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.45; }
.eyebrow { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.center { text-align: center; }
.narrow { max-width: 620px; margin-inline: auto; }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; border-radius: 4px; font-size: 14px; letter-spacing: -0.03em;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { border-color: var(--line-2); color: var(--ink); }
.btn-line { width: 100%; background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 16px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.i-play { width: 12px; height: 12px; fill: currentColor; }

/* ============ Placeholders « à remplacer » ============ */
[data-agence] { white-space: nowrap; }
.ph-note {
  margin-top: 22px; font-size: 13px; color: var(--ph);
  display: block; width: fit-content; max-width: 100%;
  padding: 6px 10px; border: 1px dashed currentColor; border-radius: 4px; background: var(--ph-bg);
}
.ph-note.center { margin-inline: auto; }
.ph-inline { color: var(--ph); border-bottom: 1px dashed currentColor; }

/* ============ Navigation ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 500 19px/1 var(--font-h); letter-spacing: -0.04em; }
.logo-mark { width: 24px; height: 24px; flex: none; display: block; }
.lm-c { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.lm-lens { fill: #1D9E75; transform-origin: 16px 16px; transition: transform .3s ease; }
.logo:hover .lm-lens { transform: scale(1.12); }
:root[data-theme="dark"] .lm-lens { fill: #5DCAA5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lm-lens { fill: #5DCAA5; } }
@keyframes lm-draw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14px; color: #666; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn, .menu-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; cursor: pointer; }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.menu-btn { display: none; gap: 5px; align-content: center; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu-mobile { display: flex; flex-direction: column; padding: 8px var(--pad) 20px; border-top: 1px solid var(--line); }
.menu-mobile[hidden] { display: none; }
.menu-mobile a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.menu-mobile .btn { margin-top: 18px; }

/* ============ Cadre : rails + repères « + » ============ */
.frame { max-width: calc(var(--wrap) + 2px); margin: 0 auto; border-inline: 1px solid var(--line); }
.sec { position: relative; padding: clamp(64px, 9vw, 110px) clamp(16px, 3vw, 30px); border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; }
.sec::before, .sec::after {
  content: "+"; position: absolute; top: -12px; width: 24px; height: 24px; line-height: 22px; text-align: center;
  font: 300 20px/22px var(--font-b); color: var(--dim); pointer-events: none;
}
.sec::before { left: -12.5px; }
.sec::after { right: -12.5px; }
.sec:first-child::before, .sec:first-child::after { display: none; }
.sec-head { margin-bottom: 56px; }
.sec-head .body { margin-top: 20px; }
.sec-head.left { max-width: 760px; }

/* ============ Hero ============ */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 0; text-align: center; overflow: hidden; }
.hero-text { max-width: 820px; margin: 0 auto; }
.hero h1 { max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.hero .lead { max-width: 620px; margin: 22px auto 30px; }
.hero .btn-row { justify-content: center; }
.hero-illu { margin: 40px auto 0; max-width: 1100px; }
.hero-illu svg { width: 100%; height: auto; display: block; }

/* ============ Bandeau pilote ============ */
.pilot-band { padding-block: 44px; }
.pilot-line { text-align: center; font-size: 17px; color: var(--muted); }
.pilot-line strong { color: var(--ink); font-weight: 500; }
.pilot-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px auto 0; max-width: 760px; }
.ph-slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px;
  border: 1px dashed var(--line-2); border-radius: 4px; color: var(--dim); font: 500 15px var(--font-h); letter-spacing: -0.02em;
}
.ph-slot small { font: 400 12px var(--font-b); color: var(--ph); }

/* ============ Tableau de bord (onglets + maquette) ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-text .body { margin: 20px 0 30px; max-width: 500px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tab {
  text-align: left; padding: 16px 18px; background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; transition: background .25s, border-color .25s;
}
.tab-t { font: 500 20px/1.2 var(--font-h); letter-spacing: -0.03em; color: var(--dim); transition: color .25s; }
.tab-d { font-size: 14px; color: var(--dim); line-height: 1.4; }
.tab.is-active { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.tab.is-active .tab-t { color: var(--ink); }
.tab.is-active .tab-d { color: var(--muted); }

.dash { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 0 18px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.18); overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); }
.dash-title { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-badge { margin: 14px 16px 4px; display: inline-block; font-size: 12px; color: var(--ph); border: 1px dashed currentColor; border-radius: 100px; padding: 3px 10px; background: var(--ph-bg); }
.dash-body { display: grid; gap: 10px; padding: 10px 16px 0; }
.dp { border: 1px solid var(--line); border-radius: 6px; padding: 14px; min-width: 0; transition: border-color .3s, box-shadow .3s; }
.dp.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dp-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.dp-h { font: 500 14px/1.2 var(--font-h); letter-spacing: -0.02em; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.dp-h small { font: 400 11.5px var(--font-b); letter-spacing: 0; color: var(--dim); text-align: right; }
.night { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.night li { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 5px; background: var(--surface-2); min-width: 0; }
.night b { font: 500 26px/1 var(--font-n); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.night span { font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.urg li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.urg li:first-child { padding-top: 0; }
.urg li:last-child { border-bottom: 0; padding-bottom: 0; }
.a-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
.who { font: 400 11.5px var(--font-b); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 100px; padding: 2px 9px; white-space: nowrap; }
.load li { display: grid; grid-template-columns: 48px 1fr 22px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin-bottom: 9px; }
.load li:last-child { margin-bottom: 0; }
.ld-bar { display: block; height: 8px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.ld-bar b { display: block; height: 100%; width: var(--w); background: var(--ink); opacity: .55; border-radius: 2px; transition: width .7s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 120ms); }
.ld-bar b.hot { opacity: .95; }
.ld-v { font: 500 12.5px var(--font-n); text-align: right; font-variant-numeric: tabular-nums; }
.tg-v { font: 500 34px/1 var(--font-n); letter-spacing: -0.03em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.tg-v b { font-weight: 500; }
.tg-stack { display: flex; gap: 2px; height: 10px; border-radius: 2px; overflow: hidden; }
.tg-stack b { display: block; width: var(--w); background: var(--ink); transition: width .7s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 120ms); }
.tg-stack b:nth-child(1) { opacity: .9; } .tg-stack b:nth-child(2) { opacity: .65; } .tg-stack b:nth-child(3) { opacity: .4; } .tg-stack b:nth-child(4) { opacity: .22; }
.tg-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.tg-leg li { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.tg-leg i { width: 7px; height: 7px; border-radius: 1px; background: var(--ink); }
.tg-leg li:nth-child(1) i { opacity: .9; } .tg-leg li:nth-child(2) i { opacity: .65; } .tg-leg li:nth-child(3) i { opacity: .4; } .tg-leg li:nth-child(4) i { opacity: .22; }
.dash-note { font-size: 11.5px; color: var(--dim); padding: 0 2px; }
.dash.dash-pending .ld-bar b, .dash.dash-pending .tg-stack b { width: 0; }

/* ============ Méthode (accordéon + illustration) ============ */
.method { display: grid; grid-template-columns: 5fr 7fr; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 0; }
.acc-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px;
  padding: 22px 24px; font: 500 22px/1.2 var(--font-h); letter-spacing: -0.04em; color: var(--dim); transition: color .2s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover, .acc-item[open] summary { color: var(--ink); }
.acc-item .n { font: 400 13px var(--font-n); color: var(--dim); letter-spacing: 0; }
.acc-item p { padding: 0 24px 22px 55px; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 480px; }
.method .acc { border-right: 1px solid var(--line); background: var(--bg); }
.method-illu { display: grid; place-items: center; padding: 24px; position: relative;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center; }
.method-illu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, transparent 40%, var(--bg)); }
.method-illu svg { position: relative; width: 100%; max-width: 560px; height: auto; }

/* ============ Cartes automatisations ============ */
.cards { display: grid; gap: 14px; }
.cards + .cards { margin-top: 14px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 26px 30px 30px; display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cards-4 .card { padding: 22px 22px 26px; }
.card-illu { margin: 0 -8px 18px; }
.card-illu svg { width: 100%; height: auto; display: block; }
.card h3 { margin-bottom: 10px; }
.cards-3 .card { padding: 22px 24px 28px; }
.cards-3 .card-illu { margin: 0 -6px 16px; }
.cards-3 h3 { font-size: 21px; }
.cards-3 .card p { font-size: 15px; }
@media (min-width: 1024px) { .cards-3 h3 { min-height: 2.4em; } }
.cards-4 h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.45; }

/* ============ Chiffres ============ */
.stats-sec { padding-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px calc(-1 * clamp(16px, 3vw, 30px)) 0; border-top: 1px solid var(--line); }
.stat { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-v { font: 500 clamp(34px, 3.6vw, 46px)/1 var(--font-h); letter-spacing: -0.04em; white-space: nowrap; }
.stat-v sup { font-size: .45em; vertical-align: super; }
.stat-l { color: var(--muted); font-size: 15px; line-height: 1.4; max-width: 240px; }
.stat-src { font-size: 12px; color: var(--dim); }

/* ============ Branchements ============ */
.integ { background-image: repeating-linear-gradient(45deg, transparent 0 22px, var(--line) 22px 23px), repeating-linear-gradient(-45deg, transparent 0 22px, var(--line) 22px 23px); background-blend-mode: normal; }
.integ > * { position: relative; }
.integ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin: 0 auto; }
.chip { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.chip b { display: block; font: 500 16px/1.2 var(--font-h); letter-spacing: -0.02em; }
.chip small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.chip-i { flex: none; width: 40px; height: 40px; border-radius: 6px; background: var(--face-dark); color: var(--face-dark-fg); display: grid; place-items: center; }
.chip-i svg { width: 20px; height: 20px; }

/* ============ Tarifs ============ */
.pricing-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 48px; }
.pilot-toggle { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.pilot-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 38px; height: 22px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; transition: background .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.pilot-toggle input:checked + .sw { background: var(--ink); border-color: var(--ink); }
.pilot-toggle input:checked + .sw::after { transform: translateX(16px); background: var(--bg); }
.pilot-toggle input:focus-visible + .sw { outline: 2px solid var(--ink); outline-offset: 2px; }
.tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--surface-2); color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; border: 1px solid var(--line); border-radius: 4px; }
.plan { border-right: 1px solid var(--line); display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.plan:last-child { border-right: 0; }
.plan-mid { background: var(--surface); }
.plan-top { padding: 30px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.plan-d { color: var(--muted); font-size: 15px; line-height: 1.4; min-height: 42px; }
.price { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pv { font: 400 clamp(28px, 2.6vw, 35px)/1.15 var(--font-n); letter-spacing: -0.02em; transition: opacity .2s; }
.pu, .price-sub { color: var(--muted); font-size: 14px; }
.price-sub strong { color: var(--ink); font: 500 16px var(--font-n); }
.plan-top .btn { margin-top: auto; width: 100%; }
.plan-top .price-sub { margin-bottom: 14px; }
.btn[aria-disabled="true"] { cursor: not-allowed; }
.pv.is-pilot { text-decoration: none; }
.pv-old { display: block; font: 400 14px var(--font-n); color: var(--dim); text-decoration: line-through; margin-bottom: 2px; }
.plan-bot { padding: 26px 30px 30px; }
.incl { font: 500 17px var(--font-n); margin-bottom: 14px; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 15px; width: 6px; height: 3.5px; border-left: 1.4px solid var(--muted); border-bottom: 1.4px solid var(--muted); transform: rotate(-45deg); }

/* ============ FAQ ============ */
.faq { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; }
.faq-head .body { margin-top: 20px; max-width: 320px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list .acc-item summary {
  font: 500 14px/1.4 var(--font-b); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  justify-content: space-between; align-items: center; padding: 22px 0;
}
.faq-list .acc-item summary::after { content: "+"; font: 300 24px/1 var(--font-b); color: var(--muted); transition: transform .25s; flex: none; }
.faq-list .acc-item[open] summary::after { transform: rotate(45deg); }
.faq-list .acc-item p { padding: 0 40px 24px 0; max-width: none; }

/* ============ CTA ============ */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; overflow: hidden; }
.cta-grid { position: absolute; left: 0; top: 0; width: 50%; height: 64px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 16px 16px; mask-image: linear-gradient(90deg, #000, transparent); -webkit-mask-image: linear-gradient(90deg, #000, transparent); }
.cta-text { position: relative; }
.cta-text .body { margin: 18px 0 28px; max-width: 420px; }
.cta-illu svg { width: 100%; max-width: 380px; height: auto; display: block; margin-left: auto; }

/* ============ Pied de page ============ */
.foot { border-top: 1px solid var(--line); padding: 56px clamp(16px, 3vw, 30px) 0; position: relative; }
.foot::before, .foot::after { content: "+"; position: absolute; top: -12px; width: 24px; height: 24px; text-align: center; font: 300 20px/22px var(--font-b); color: var(--dim); }
.foot::before { left: -12.5px; } .foot::after { right: -12.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 320px; }
.foot-t { font: 500 20px var(--font-h); letter-spacing: -0.03em; margin-bottom: 16px; }
.foot li { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.foot li a:hover { color: var(--ink); }
.foot-bot { margin-top: 44px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ============ Illustrations isométriques ============ */
.iso { color: var(--ink); }
.iso .f-top { fill: var(--face-top); }
.iso .f-l { fill: var(--face-l); }
.iso .f-r { fill: var(--face-r); }
.iso .f-dark { fill: var(--face-dark); }
.iso .f-top, .iso .f-l, .iso .f-r, .iso .f-dark { stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.iso .g { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.iso .g-inv { fill: none; stroke: var(--face-dark-fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.iso .link { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.iso .dot { fill: currentColor; }
.iso .belt-rib { stroke: currentColor; stroke-width: .8; opacity: .35; }
.iso .shadow { fill: currentColor; opacity: .05; }
.iso .flow { stroke-dasharray: 3 4; animation: flow 1.6s linear infinite; }
.iso .node { transition: opacity .3s; }
.iso .node.is-off { opacity: .35; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.geo { fill: none; stroke: var(--dim); stroke-width: 1.2; }

/* ============ Apparition au défilement ============ */
html.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease-out, transform .4s ease-out; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.now { transition: none; }

/* Entrée du hero : mots du titre un par un, puis texte, boutons, illustration */
html.intro .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
html.intro .hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
html.intro .hero .lead, html.intro .hero .btn-row { opacity: 0; animation: fade-up .8s cubic-bezier(.2,.7,.2,1) forwards; }
html.intro .hero .lead { animation-delay: .45s; }
html.intro .hero .btn-row { animation-delay: .6s; }
html.intro .hero-illu svg { opacity: 0; animation: fade-up 1.1s cubic-bezier(.2,.7,.2,1) .75s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-illu { will-change: transform; }

/* Titres de section : les mots passent du gris au noir au défilement */
h2 .fw { color: var(--dim); transition: color .35s ease; }
h2 .fw.on { color: var(--ink); }
h2 .fw-dim { color: var(--dim); }

/* Illustrations : paquets qui circulent, bacs qui flottent */
.iso .packet { fill: currentColor; }
.iso .bob { animation: bob 3.2s ease-in-out infinite; }
.iso .bob2 { animation-delay: -1.1s; }
.iso .bob3 { animation-delay: -2.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Bandeau qui défile en boucle (comme les logos du modèle) */
.marquee { display: flex; overflow: hidden; margin-top: 30px; gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; flex: none; gap: 0; animation: marquee 38s linear infinite; }
.marquee-track li { flex: none; padding: 0 22px; font: 500 18px/1.2 var(--font-h); letter-spacing: -.03em; color: var(--dim); white-space: nowrap; display: flex; align-items: center; gap: 22px; }
.marquee-track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); margin-left: 22px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Survols */
.btn-dark { position: relative; overflow: hidden; }
.btn-dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-dark:hover::after { transform: translateX(120%); }
.btn span[aria-hidden="true"] { display: inline-block; transition: transform .25s ease; }
.btn:hover span[aria-hidden="true"] { transform: translateX(3px); }
.btn-ghost:hover .i-play { transform: scale(1.2); }
.i-play { transition: transform .25s ease; }
.card-illu svg { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-illu svg { transform: scale(1.04) translateY(-3px); }
.card:hover { box-shadow: 0 18px 40px -28px rgba(0,0,0,.35); }
.plan { transition: background .25s; }
.plan:hover { background: var(--surface); }
.chip { transition: transform .25s, border-color .25s; }
.chip:hover { transform: translateY(-2px); border-color: var(--line-2); }
.stat-v { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .iso .bob { animation: none; }
  .marquee { overflow-x: auto; }
  .btn-dark::after { display: none; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .iso .flow { animation: none; }
  .btn, .card { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-3 h3 { min-height: 0; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .split, .faq, .cta, .pricing-head { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .method .acc { border-right: 0; border-bottom: 1px solid var(--line); }
  .method-illu { order: -1; border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .integ-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .cta-illu svg { margin: 0 auto; max-width: 300px; }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .dp-row { grid-template-columns: 1fr; }
  .night { grid-template-columns: 1fr 1fr; }
  .night li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .urg li { grid-template-columns: auto 1fr; }
  .urg .who { grid-column: 2; justify-self: start; }
  .pilot-slots { grid-template-columns: 1fr; max-width: 320px; }
  .integ-grid { grid-template-columns: 1fr; }
  .stat { padding: 28px 12px; }
  .stat-v { font-size: 30px; }
  .stat-l { font-size: 14px; }
  .acc-item summary { padding: 18px 16px; font-size: 19px; }
  .acc-item p { padding: 0 16px 18px 16px; }
  .faq-list .acc-item summary { padding: 18px 0; font-size: 13px; gap: 16px; }
  .faq-list .acc-item p { padding: 0 0 20px; }
  .plan-top, .plan-bot { padding: 24px 20px; }
  .card { padding: 22px 20px 24px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero .lead { font-size: 16px; }
  .sec::before, .sec::after, .foot::before, .foot::after { display: none; }
}

/* Option Rapports clients */
.addon { margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; border: 1px dashed var(--line-2); border-radius: 6px; }
.addon h3 { margin: 4px 0 8px; }
.addon-tag { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.addon-price { text-align: right; }
.addon-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 720px) { .addon { grid-template-columns: 1fr; padding: 20px; } .addon-price { text-align: left; } }

/* Pages légales */
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.55; max-width: 72ch; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; }

/* ============ Hero : scène « machine Lettrage » ============ */
.hx polygon { stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.hx .hx-t { fill: var(--face-top); } .hx .hx-l { fill: var(--face-l); } .hx .hx-r { fill: var(--face-r); }
.hx .hx-dt { fill: var(--hx-dt); } .hx .hx-dl { fill: var(--hx-dl); } .hx .hx-dr { fill: var(--hx-dr); }
.hx .hx-bt { fill: var(--face-l); } .hx .hx-sheet { fill: var(--face-l); }
.hx .hx-slot { fill: var(--hx-slot); }
.hx .hx-sh { fill: var(--hx-shadow); stroke: none; }
.hx .hx-ln-p { fill: none; stroke-width: .7; opacity: .35; }
.hx .hx-ln { stroke: var(--ink); stroke-width: .8; opacity: .4; fill: none; stroke-linecap: round; }
.hx .hx-ln.hx-strong { opacity: .9; stroke-width: 1.1; }
.hx .hx-ln.hx-handle { stroke-width: 2; opacity: .8; }
.hx .hx-slat-d { stroke: var(--bg); opacity: .25; }
.hx .hx-rib { stroke: var(--ink); stroke-width: .9; opacity: .3; }
.hx .hx-roll-o { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; }
.hx .hx-roll-i { fill: none; stroke: var(--face-top); stroke-width: 9.8; stroke-linecap: round; }
.hx .hx-lg { fill: none; stroke: var(--face-dark-fg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx .hx-lg-dot { fill: var(--face-dark-fg); }
.hx .hx-led { fill: var(--ink); stroke: none; }
.hx .hx-ring-l { fill: none; stroke: var(--ink); stroke-width: .8; opacity: .45; }
.hx .hx-pulse { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0; stroke-dasharray: 3 4; }
.hx .hx-moon { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; opacity: .55; }
.hx .hx-star { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; opacity: .5; }
.hx .hx-lab { font-size: 10.5px; fill: var(--muted); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.hx text { font-family: var(--font-n); }
.hx .hx-cf { fill: var(--surface); stroke: var(--ink); stroke-width: 1.1; }
.hx .hx-cb { fill: var(--face-r); stroke: var(--ink); stroke-width: 1.1; }
.hx .hx-cs { fill: var(--hx-shadow); filter: url(#hx-blur); }
.hx .hx-ok { fill: #22a06b; }
.hx .hx-okp { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx .hx-t1 { font-size: 14.5px; font-weight: 500; fill: var(--ink); }
.hx .hx-t2 { font-size: 12px; fill: var(--muted); }
.hx .hx-t3 { font-size: 11px; fill: var(--muted); letter-spacing: .04em; }
.hx .hx-t4 { font-size: 13.5px; }
.hx .hx-clk { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.hx .hx-lead { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 4; opacity: .4; }
.hx .g { stroke-width: 1.4; }
.hx.hx-narrow .hx-lab, .hx.hx-narrow .hx-card2, .hx.hx-narrow .hx-moon, .hx.hx-narrow .hx-star { display: none; }
.hx.hx-narrow .hx-t1 { font-size: 17px; } .hx.hx-narrow .hx-t2 { font-size: 14px; }

.hx.hx-anim .hx-roof { animation: hx-hop 2.4s ease-in-out infinite; }
.hx.hx-anim .hx-pulse { transform-box: fill-box; transform-origin: center; animation: hx-ring 2.4s ease-out infinite; }
.hx.hx-anim .hx-blink { animation: hx-blink 2.6s ease-in-out infinite; }
.hx.hx-anim .hx-star { animation: hx-twinkle 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hx.hx-anim .hx-card { transform-box: fill-box; transform-origin: 50% 100%; animation: hx-pop 6s infinite both; animation-delay: 1.6s; }
.hx.hx-anim .hx-card2 { animation-delay: 2s; }
.hx.hx-paused *, .hx.hx-paused { animation-play-state: paused !important; }
@keyframes hx-hop { 0%, 100% { transform: translateY(0); } 18% { transform: translateY(-3px); } 40% { transform: translateY(0); } }
@keyframes hx-ring { 0% { transform: scale(.97); opacity: .5; } 100% { transform: scale(1.14); opacity: 0; } }
@keyframes hx-blink { 0%, 100% { opacity: .15; } 45%, 60% { opacity: 1; } }
@keyframes hx-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .7; } }
@keyframes hx-pop {
  0% { opacity: 0; transform: translateY(16px) scale(.92); }
  5% { opacity: 1; transform: translateY(-6px) scale(1.02); }
  9% { transform: translateY(2px) scale(.995); }
  13%, 86% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) { .hx * { animation: none !important; } }

/* ============ Mini-scènes des cartes + frise de la méthode (même langage que le hero) ============ */
.cs polygon, .mx polygon { vector-effect: non-scaling-stroke; }
.cs .g, .cs .g-inv, .mx .g { stroke-width: 1.5; }
.hx .g-inv { fill: none; stroke: var(--face-dark-fg); stroke-linecap: round; stroke-linejoin: round; }
.cs .hx-cs { filter: none; }
.hx .hx-lab2 { font-size: 13px; font-weight: 500; fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.hx .hx-rip { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.hx .hx-prop { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }
.hx .hx-bar { fill: var(--line-2); stroke: none; }
.hx .hx-head { fill: var(--face-l); }
.hx .hx-faint { opacity: .22; }
.hx .hx-warn { fill: #e0952b; fill-opacity: .55; stroke: #e0952b; stroke-width: 1; }
.hx .hx-wd { fill: #e0952b; stroke: none; }
.hx .hx-wp { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.hx .hx-lp { fill: var(--surface); fill-opacity: .35; stroke: var(--ink); stroke-width: 1.6; }
.hx .hx-lph { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }

/* Frise « méthode » : tuiles en relief, allumées une à une */
.mx .mx-l { fill: var(--face-l); } .mx .mx-r { fill: var(--face-r); } .mx .mx-top { fill: var(--face-top); }
.mx .mx-lift { transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.mx .mx-g { opacity: .4; transition: opacity .4s, stroke .4s; }
.mx .mx-l, .mx .mx-r, .mx .mx-top { transition: fill .45s; }
.mx .mx-tile.on .mx-l { fill: var(--hx-dl); } .mx .mx-tile.on .mx-r { fill: var(--hx-dr); } .mx .mx-tile.on .mx-top { fill: var(--hx-dt); }
.mx .mx-tile.on .mx-g { stroke: var(--face-dark-fg); opacity: 1; }
.mx .mx-tile.on .mx-lift { transform: translateY(-6px); }
.mx .mx-tile.focus .mx-lift { transform: translateY(-12px); }
.mx .mx-ring { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .3s; }
.mx .mx-tile.focus .mx-ring { opacity: .7; }
.mx.mx-anim .mx-tile.focus .mx-ring { animation: mx-dash 1.4s linear infinite; }
@keyframes mx-dash { to { stroke-dashoffset: -14; } }
.mx .mx-tile { transition: opacity .35s; cursor: default; }
.mx.mx-done .mx-tile:not(.focus) { opacity: .62; }
.mx .mx-num { font: 500 16px var(--font-n); fill: var(--dim); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; transition: fill .3s; }
.mx .mx-num.on { fill: var(--muted); } .mx .mx-num.focus { fill: var(--ink); }
.mx .mx-ct { font-size: 17px; }
.mx .mx-card { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.mx .mx-card.on { opacity: 1; transform: none; }
.mx .mx-card.on { transition-delay: 0s; }
.mx.mx-paused * { animation-play-state: paused !important; }
.method-illu svg.mx { max-width: 600px; }
@media (max-width: 640px) { .method-illu { padding: 14px 8px; } .mx .mx-num { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .mx *, .cs * { animation: none !important; transition: none !important; } }
.acc-item summary small.when { font: 400 12px var(--font-n); letter-spacing: 0; color: var(--dim); margin-left: 6px; white-space: nowrap; }
.acc-item summary > span:not(.n) { flex: 1; }

/* Indicateurs : pictogramme + lecture départ -> aujourd'hui (sans chiffre) */
.ind { gap: 0; }
.ind-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ind-top .eyebrow { margin: 0; font-size: 14px; color: var(--muted); }
.ind-i { flex: none; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink); display: grid; place-items: center; background: var(--surface-2); }
.ind-i svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .ind h3 { min-height: 2.4em; } }
.ind-viz { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.iv-row { display: grid; grid-template-columns: 74px 1fr 16px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.iv-row > span { white-space: nowrap; }
.iv-bar { display: block; height: 9px; border-radius: 2px; position: relative; grid-column: 2; }
.iv-start { background: var(--surface-2); }
.iv-start b { display: block; height: 100%; width: 70%; background: var(--ink); opacity: .35; border-radius: 2px; transition: width .6s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 90ms); }
.iv-now { border: 1px dashed var(--line-2); background: transparent; }
.iv-arr { width: 16px; height: 16px; grid-column: 3; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s ease calc(.3s + var(--i, 0) * 90ms); }
.ind-grid.is-go .iv-arr, .ind-grid:not(.is-pending) .iv-arr { opacity: 1; }
.ind-grid.is-pending .iv-start b { width: 0; }
.ind-grid.is-pending .iv-arr { opacity: 0; }
.ind-legend { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.cs-done .flow { animation-duration: 3.4s; }
@media (prefers-reduced-motion: reduce) { .dash .ld-bar b, .dash .tg-stack b, .iv-start b, .iv-arr { transition: none !important; } }
.cards-3 { grid-auto-rows: 1fr; }
