/* ============ 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: 600 19px/1 var(--font-n); letter-spacing: -0.03em; color: var(--ink); }
.logo-mark { width: 24px; height: 24px; flex: none; display: block; }
/* Logo Gardefil : un seul trait, bouts ronds ; blanc pur en thème sombre, couleur du texte en thème clair (blanc invisible sur fond clair). */
.lm-c { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .logo { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: #FFFFFF; } }
@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; }
.split:has(.dash.tilt) { perspective: 1800px; }
.dash.tilt { transform: rotateY(var(--dry, 0deg)) rotateX(var(--drx, 0deg)); transform-origin: 40% 50%; transition: transform .25s cubic-bezier(.2,.7,.2,1); will-change: transform; backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .dash.tilt { transform: none; } }
.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; }
.flow { display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.flow-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; }
.flow-list li { flex: 1 1 auto; display: flex; border-bottom: 1px solid var(--line); }
.flow-list li:last-child { border-bottom: 0; }
/* chaque étape : titre + 2 à 3 lignes, toujours visibles ; l'étape active est en pleine encre, les autres atténuées ;
   une barre verte (6 s, durée identique pour chaque étape) se remplit sous l'étape active : --p vient de script.js */
.flow-step { all: unset; box-sizing: border-box; position: relative; width: 100%; display: grid; grid-template-columns: 31px 1fr; gap: 0; align-content: center; padding: 18px 24px 20px; cursor: pointer; color: var(--muted); transition: color .2s, background .2s; }
.flow-step b { display: block; font: 500 16px/1.3 var(--font-h); letter-spacing: -0.02em; color: inherit; }
.flow-step small { display: block; margin-top: 5px; font-size: 14px; line-height: 1.45; color: var(--muted); transition: color .2s; }
.flow-step .n { font: 400 13px/1.7 var(--font-n); color: var(--dim); }
.flow-step:hover { color: var(--ink); }
.flow-step.is-on { color: var(--ink); background: var(--surface); }
.flow-step.is-on small { color: var(--ink); }
.flow-step.is-on .n { color: #1D9E75; }
.flow-step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #1D9E75; transform-origin: 0 50%; transform: scaleX(0); }
.flow-step.is-on::after { transform: scaleX(var(--p, 0)); }
.flow-step:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* la colonne 3D prend la hauteur de la liste (aucun vide) : le canvas remplit le cadre */
.flow-illu { position: relative; min-height: 0; }
.flow-illu[data-3d] canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* captures d'écran (une par étape, fondu doux) : images claire et sombre, l'une masquée selon le thème */
.flow-shots { position: relative; align-self: stretch; min-height: 380px; margin: 0; background: linear-gradient(135deg, #e6f7ef 0%, #a9e2cb 52%, #5cc09a 100%); }
:root[data-theme="dark"] .flow-shots { background: linear-gradient(135deg, #0a2a21 0%, #11523f 55%, #1D9E75 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flow-shots { background: linear-gradient(135deg, #0a2a21 0%, #11523f 55%, #1D9E75 100%); } }
@media (max-width: 960px) { .flow-shots { align-self: auto; min-height: 0; aspect-ratio: 880 / 600; } }
.flow-shots .shot { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.flow-shots .shot.is-on { opacity: 1; }
.flow-shots img { display: block; width: 100%; height: auto; }
/* animations des captures (immobilier) : l'état par défaut est l'état FINAL (mouvement réduit, sortie en fondu, avant le script) ;
   le script pose .is-go sur la figure de l'étape active (et la reprend à chaque passage) : un seul mouvement sobre par étape, fini vers 4-4,5 s (tenu jusqu'à 6 s). */
.flow-shots .sb { position: relative; width: 100%; container-type: inline-size; }
.flow-shots .cq { position: absolute; height: auto; pointer-events: none; }
.flow-shots .hl { position: absolute; border-radius: 6px; background: rgba(29,158,117,.16); box-shadow: 0 0 0 1px rgba(29,158,117,.35); opacity: 0; pointer-events: none; }
.flow-shots .cnt { position: absolute; text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; counter-reset: n var(--n, 0); pointer-events: none; }
.flow-shots .t-clair .cnt { color: #1a1a1a; } .flow-shots .t-sombre .cnt { color: #f2f2f2; }
.flow-shots .cnt::after { content: attr(data-t); }
@supports (width: round(down, 7px, 2px)) {
  .flow-shots .cnt::after { content: counter(n) attr(data-u); }
  /* montants avec espace des milliers : trois compteurs (milliers, centaines, dizaines-unités) tirés du même --n animé */
  .flow-shots .cnt[data-g] { counter-reset: k round(down, calc(var(--n) / 1000), 1) h round(down, calc(mod(var(--n), 1000) / 100), 1) c mod(var(--n), 100); }
  .flow-shots .cnt[data-g]::after { content: counter(k) "\202f" counter(h) counter(c, decimal-leading-zero) attr(data-u); }
}
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.flow-shots .cnt { --n: var(--v); }
@keyframes cq-fondu { from { opacity: 0; } }
@keyframes cq-glisse { from { opacity: 0; transform: translateY(-10px); } }
@keyframes cq-pose { from { opacity: 0; transform: translateY(-8px); } }
@keyframes cq-hl { 0% { opacity: 0; } 22% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cq-compte { from { --n: 0; } }
.flow-shots .shot.is-go .a-fondu { animation: cq-fondu 1.05s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0s) * 1.5) both; }
.flow-shots .shot.is-go .a-glisse { animation: cq-glisse 1.2s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0s) * 1.5) both; }
.flow-shots .shot.is-go .a-pose { animation: cq-pose 1.2s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0s) * 1.5) both; }
.flow-shots .shot.is-go .hl { animation: cq-hl 1.65s ease calc(var(--d, 0s) * 1.5) both; }
.flow-shots .shot.is-go .cnt { animation: cq-compte 2.25s cubic-bezier(.16,.84,.3,1) calc(var(--d, 0s) * 1.5) both; }
@media (prefers-reduced-motion: reduce) { .flow-shots .shot .cq, .flow-shots .shot .hl, .flow-shots .shot .cnt { animation: none !important; } }
.flow-shots .t-sombre { display: none; }
:root[data-theme="dark"] .flow-shots .t-clair { display: none; }
:root[data-theme="dark"] .flow-shots .t-sombre { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flow-shots .t-clair { display: none; } :root:not([data-theme="light"]) .flow-shots .t-sombre { display: block; } }
@media (prefers-reduced-motion: reduce) { .flow-shots .shot { transition: none; } }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; } .flow-list { border-right: 0; border-top: 1px solid var(--line); } .flow-illu { order: -1; min-height: 0; } }
/* téléphone (≤ 768 px) et mouvement réduit : la liste seule, pleine largeur, sans scène 3D */
@media (max-width: 768px) { .flow { grid-template-columns: 1fr; } .flow-illu { display: none; } .flow-list { border-top: 0; } .flow-step { padding: 16px 18px 18px; } }
@media (prefers-reduced-motion: reduce) { .flow-illu { display: none; } .flow { grid-template-columns: 1fr; } .flow-list { border-right: 0; border-top: 0; } .flow-step, .flow-step small { transition: none; } }
.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: 900px) { .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: 899px) {
  .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; list-style: disc; }
.legal li + li { margin-top: 10px; }
.legal ul + p { margin-top: 18px; }
.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 : grille compacte, mini-scène isométrique 120x80 + titre + texte */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px 20px; display: flex; flex-direction: column; min-height: 220px; }
.ind-illu { width: 120px; height: 80px; margin: 0 0 10px; flex: none; overflow: hidden; }
.ind-illu svg { display: block; width: 120px; height: 80px; max-width: 120px; max-height: 80px; }
.ind-n { margin: 0 0 4px; font-size: 12px; letter-spacing: .02em; color: var(--dim); }
.ind h3 { font-size: 17px; line-height: 1.25; margin: 0 0 6px; }
.ind p:not(.ind-n) { font-size: 14px; line-height: 1.4; color: var(--muted); margin: 0; }
.ind-legend { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 1099px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ind-grid { grid-template-columns: 1fr; } .ind { min-height: 0; } }
.cs-done .flow { animation-duration: 3.4s; }
@media (prefers-reduced-motion: reduce) { .dash .ld-bar b, .dash .tg-stack b { transition: none !important; } }
.cards-3 { grid-auto-rows: 1fr; }

.hx .g-lens { fill: #5DCAA5; stroke: none; }
:root[data-theme="dark"] .hx .g-lens { fill: #1D9E75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hx .g-lens { fill: #1D9E75; } }
/* illustrations des cartes « tous les jours » : hauteur plafonnée */
.cards-3 .card-illu { max-height: 190px; overflow: hidden; display: flex; justify-content: center; }
.cards-3 .card-illu svg { width: auto; height: 180px; max-width: 100%; }

/* Évite tout défilement horizontal dû aux repères décoratifs */
html, body { overflow-x: clip; }

/* Tarifs : bascule mensuel / annuel */
.billing { display: inline-flex; gap: 4px; padding: 4px; margin-top: 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.billing button { font: 500 14px var(--font-b, Inter, sans-serif); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.billing button small { font-size: 12px; color: #1D9E75; margin-left: 4px; }
.billing button.on { background: var(--ink); color: var(--bg); }
.billing button.on small { color: inherit; opacity: .8; }

/* Tableau de bord : week-end rejoué (fil d'activité en direct) */
.live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1D9E75; margin-right: 6px; vertical-align: 1px; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.wk-clock { font-family: var(--font-n); font-variant-numeric: tabular-nums; }
.feed { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; min-height: 120px; }
.feed li { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 6px 8px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); }
.feed time { font: 500 11.5px var(--font-n); color: var(--dim); font-variant-numeric: tabular-nums; }
.feed span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed em { font-style: normal; font-size: 11.5px; color: #1D9E75; white-space: nowrap; }
.feed li.in, .urg li.in { animation: feed-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } }
.urg { min-height: 96px; }
.night b { transition: color .3s; }
@media (max-width: 640px) { .feed li { grid-template-columns: 62px 1fr; } .feed em { display: none; } }

/* Mise en place : barre de progression sur le côté de l'étape ouverte */
.method .acc-item { position: relative; }
.acc-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #1D9E75; transform: scaleY(0); transform-origin: top; pointer-events: none; }
.acc-item:not([open]) .acc-prog { opacity: 0; }

/* Tarifs : 4 packages */
.plans.plans-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .plans.plans-4 { grid-template-columns: repeat(2, 1fr); } .plans.plans-4 .plan:nth-child(2) { border-right: 0; } .plans.plans-4 .plan:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 640px) { .plans.plans-4 { grid-template-columns: 1fr; } .plans.plans-4 .plan { border-right: 0; border-bottom: 1px solid var(--line); } .plans.plans-4 .plan:last-child { border-bottom: 0; } }
.flow-demo { margin: 18px 0 0; }
.flow-demo .btn { width: auto; }

/* Tarifs selon la taille : un curseur (tarifs.js), une offre ; sans JS, tableau de toutes les tranches */
.tarif { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; }
.tarif-top { padding: 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.tarif-inclus { padding: 30px; }
.tarif-q { display: block; font: 500 17px var(--font-n); margin-bottom: 14px; }
.tarif-choix input[type=range] { width: 100%; margin: 0; height: 28px; accent-color: var(--ink); cursor: pointer; }
.tarif-choix input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.tarif-ticks { position: relative; height: 22px; margin: 4px 8px 0; font-size: 12.5px; color: var(--muted); }
.tarif-ticks span { position: absolute; left: calc(var(--p) * 100%); transform: translateX(calc(var(--p) * -100%)); white-space: nowrap; cursor: pointer; }
.tarif-ticks span.on { color: var(--ink); font-weight: 500; }
.tarif-prix { padding-top: 6px; }
.tarif-taille { color: var(--ink-2); font-size: 15px; line-height: 1.4; min-height: 42px; }
.tarif-prix .price-sub { margin-top: 6px; }
.tarif-top .btn { width: 100%; margin-top: 4px; }
.tarif-notes { color: var(--muted); font-size: 13px; line-height: 1.5; }
.t-grand-note { color: var(--muted); }
.tarif.on .t-grand[data-off] { display: none; }
.tarif .checks li { border-bottom: 0; border-top: 1px solid var(--line); }
.tarif .checks li:first-child { border-top: 0; }
.tarif-toutes { margin-top: 18px; border: 1px solid var(--line); border-radius: 4px; }
.tarif-toutes summary { cursor: pointer; padding: 14px 20px; font: 500 15px var(--font-n); }
.tarif-toutes table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tarif-toutes th, .tarif-toutes td { text-align: left; padding: 10px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.tarif-toutes thead th { color: var(--muted); font-weight: 400; font-size: 13px; }
.tarif-toutes tbody th { font-weight: 500; }
.tarif-toutes td { font-variant-numeric: tabular-nums; }
#tarifs > .body.center { margin-top: 22px; }
@media (max-width: 900px) {
  .tarif { grid-template-columns: 1fr; }
  .tarif-top { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .tarif-top, .tarif-inclus { padding: 24px 20px; }
  .tarif-ticks { font-size: 11.5px; margin: 4px 4px 0; }
  .tarif-toutes th, .tarif-toutes td { padding: 9px 12px; font-size: 13.5px; }
}

/* Simulation 200 personas (01/12/2026) : message exact, limites, grandes équipes, fondateur, emplacements à fournir */
.ex-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.ex-grid h2 { margin-bottom: 14px; }
.ex-mail { margin: 20px 0 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.ex-head { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ex-head dt { color: var(--muted); }
.ex-head dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.ex-body { padding: 16px 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ex-body p + p { margin-top: 10px; }
.ex-note { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.ex-non li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.ex-non li:first-child { border-top: 0; }
.ex-non li::before, .ex-non li::after { content: ""; position: absolute; left: 3px; top: 21px; width: 12px; height: 1.4px; background: var(--muted); transform: rotate(45deg); }
.ex-non li::after { transform: rotate(-45deg); }
#equipes .checks { margin-top: 6px; }
.qui { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; max-width: 860px; margin: 0 auto; }
.qui-photo { width: 96px; height: 96px; border-radius: 50%; border: 1px dashed var(--line-2); background: var(--surface); display: grid; place-items: center; font: 500 34px var(--font-n); color: var(--muted); position: relative; overflow: hidden; }
.qui-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qui h2 { margin-bottom: 14px; }
.qui .body + .body { margin-top: 10px; }
.a-fournir { margin-top: 12px; display: inline-block; padding: 4px 10px; border: 1px dashed #c2410c; border-radius: 4px; color: #c2410c; font-size: 13px; }
:root[data-theme="dark"] .a-fournir { color: #fb923c; border-color: #fb923c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .a-fournir { color: #fb923c; border-color: #fb923c; } }
@media (max-width: 900px) { .ex-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .qui { grid-template-columns: 1fr; gap: 18px; } .qui-photo { width: 72px; height: 72px; font-size: 26px; } }

/* Tarifs par volume : info-bulle de la question (clavier et survol), mise en place sous le tableau */
.tarif-q label { cursor: default; }
.tarif-info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border: 1px solid var(--line-2); border-radius: 50%; font: 500 11px var(--font-n); color: var(--muted); cursor: help; vertical-align: 2px; }
.tarif-info:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tarif-bulle { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 240px; padding: 8px 10px; border-radius: 4px; background: var(--ink); color: var(--bg); font: 400 13px/1.4 var(--font-n); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.tarif-info:hover .tarif-bulle, .tarif-info:focus .tarif-bulle { opacity: 1; }
@media (max-width: 640px) { .tarif-bulle { left: auto; right: -8px; transform: none; } }
.tarif-mep { padding: 10px 20px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* Mobile (retours de Jos, 01/12) : titre du héros sur 3 à 4 lignes, 3D décollée des boutons */
@media (max-width: 640px) {
  .hero h1 { font-size: 31px; line-height: 1.08; letter-spacing: -0.035em; max-width: 16ch; }
  .hero .lead { font-size: 15.5px; }
}

/* ============ Appel final : carte centrée (retour de Jos, 01/12) ============
   Bordure au dégradé vert qui tourne lentement, halo doux, grille qui s'estompe, reflet qui suit la souris
   (--mx / --my posés par /script.js, ordinateur seulement). Effets coupés en mouvement réduit. */
@property --cta-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.cta-sec { display: block; }
.cta-card { --g: #1D9E75; position: relative; isolation: isolate; max-width: 880px; margin: 0 auto; padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 56px);
  border-radius: 20px; background: var(--surface); text-align: center; overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 80px -40px color-mix(in srgb, var(--g) 45%, transparent); }
.cta-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--cta-a), var(--line-2) 0deg, var(--line-2) 200deg, var(--g) 260deg, #7ee0b8 290deg, var(--g) 320deg, var(--line-2) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cta-tour 9s linear infinite; }
.cta-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--g) 14%, transparent), transparent 70%),
              radial-gradient(60% 55% at 50% 110%, color-mix(in srgb, var(--g) 18%, transparent), transparent 70%);
  transition: background-position .2s; }
@keyframes cta-tour { to { --cta-a: 360deg; } }
.cta-card .cta-grid { position: absolute; inset: 0; width: auto; height: auto; z-index: -1; opacity: .7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px; -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); }
.cta-card .cta-text { position: relative; max-width: 620px; margin: 0 auto; }
.cta-card h2 { text-wrap: balance; }
.cta-card .cta-text .body { margin: 16px auto 28px; max-width: 520px; }
.cta-card .btn-row { justify-content: center; }
.cta-small { margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cta-small a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.qui-id { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.qui-id a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .cta-card { border-radius: 16px; } .cta-card .btn-row .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .cta-card::before { animation: none; background: linear-gradient(135deg, var(--g), var(--line-2) 40%, var(--line-2) 60%, var(--g)); } .cta-card::after { background: radial-gradient(60% 55% at 50% 110%, color-mix(in srgb, var(--g) 18%, transparent), transparent 70%); } }

.ex-2 { margin-top: 32px; }

/* ===== Socle : 3 services nommés par métier, puis bloc « Votre cas n'est pas dans la liste ? » (02/12/2026) ===== */
.socle .card { padding: 26px 26px 28px; }
.socle h3 { font-size: 21px; min-height: 0; }
@media (min-width: 900px) { .cards-3.socle h3 { min-height: 2.6em; } }
.socle-n { font: 500 13px/1 var(--mono, ui-monospace, monospace); color: var(--muted); letter-spacing: .08em; margin-bottom: 14px; }
.socle .socle-b { color: var(--ink); font-size: 16px; line-height: 1.45; margin-bottom: 14px; }
.socle .socle-p { margin-top: auto; padding: 12px 0 0 14px; border-left: 2px solid var(--line-2); border-top: 0; font-size: 14.5px; line-height: 1.45; }
.complement { text-align: center; margin: 34px auto 0; max-width: 640px; font-size: 19px; line-height: 1.4; color: var(--ink); }
.aussi { text-align: center; margin: 14px auto 0; max-width: 720px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sm { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.sm-text .body { margin-top: 18px; max-width: 480px; }
.sm-cta { margin-top: 26px; }
.sm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.sm-list b { font-weight: 500; font-size: 16px; line-height: 1.3; color: var(--ink); }
.sm-list span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 900px) { .sm { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .sm-list { grid-template-columns: 1fr; } .complement { font-size: 17px; } }

/* Héros sur téléphone : étapes fixes à la place de la 3D (02/12/2026) */
.hero-mobile { display: none; }
@media (max-width: 768px) {
  .hero-mobile { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
  .hero-mobile li { text-align: left; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(127,127,127,.25); border-radius: 12px; background: rgba(127,127,127,.06); font-size: 14px; line-height: 1.35; }
  .hero-mobile .hm-h { font-variant-numeric: tabular-nums; opacity: .6; font-size: 12px; }
  .hero-mobile .hm-ok { color: #1a9e5c; font-weight: 600; }
}

/* ============ Gardefil (04/12/2026) ============ */
/* H1 : dernier mot animé (script.js). Les mots sont empilés dans une même cellule : la largeur est celle du plus long, rien ne bouge autour. */
.rot { display: inline-grid; vertical-align: bottom; text-align: left; justify-items: start; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.rot.sans-tr { transition: none; }
.hero h1 .nw { white-space: nowrap; }
/* Icônes 3D du titre (signature, horloge) : plaque extrudée (4 couches en profondeur + face avant),
   qui pivote doucement ; la signature se trace, les aiguilles tournent. Mouvement réduit : image fixe. */
.h-ico { position: relative; display: inline-block; width: .8em; height: .8em; vertical-align: -.06em; margin: 0 .02em;
  transform-style: preserve-3d; transform: perspective(500px) rotateX(10deg) rotateY(-24deg); animation: ico-pivot 7s ease-in-out infinite alternate;
  --ico-cote: color-mix(in srgb, var(--ink) 70%, var(--surface)); }
.h-ico-sign { width: .68em; height: .82em; }
.h-ico i { position: absolute; inset: 0; border-radius: .13em; background: var(--ico-cote); }
.h-ico-temps i { border-radius: 50%; }
.h-ico i:nth-child(1) { transform: translateZ(-.1em); } .h-ico i:nth-child(2) { transform: translateZ(-.075em); }
.h-ico i:nth-child(3) { transform: translateZ(-.05em); } .h-ico i:nth-child(4) { transform: translateZ(-.025em); }
.h-ico svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.h-ico .f { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.h-ico .l { stroke: var(--line-2); stroke-width: 2.6; }
.h-ico-temps .l { stroke: var(--ink); stroke-width: 2.4; }
.h-ico .b { stroke: var(--ink); stroke-width: 1.6; }
.h-ico .s { stroke: #1D9E75; stroke-width: 2.8; }
/* stylo : suit le trait de la signature (SMIL dans le SVG, même horloge que le tracé) */
.h-ico .pen-c { fill: var(--ink); stroke: var(--surface); stroke-width: 1; }
.h-ico .pen-p { fill: #1D9E75; }
.h-ico .hh, .h-ico .mm { transform-box: view-box; transform-origin: 50% 50%; }
.h-ico .hh path { stroke: var(--ink); stroke-width: 3.4; } .h-ico .mm path { stroke: #1D9E75; stroke-width: 2.6; }
.h-ico .hh { animation: ico-tour 36s linear infinite; } .h-ico .mm { animation: ico-tour 3s linear infinite; }
.h-ico .c { fill: var(--ink); }
@keyframes ico-pivot { from { transform: perspective(500px) rotateX(10deg) rotateY(-28deg); } to { transform: perspective(500px) rotateX(6deg) rotateY(22deg); } }
@keyframes ico-tour { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .h-ico, .h-ico .hh, .h-ico .mm { animation: none; } .h-ico .pen { display: none; } .h-ico .mm { transform: rotate(60deg); } }
/* Accueil : scène 3D sur ordinateur ; le schéma SVG reste sur téléphone, en mouvement réduit et si la 3D échoue */
.ix-3d { display: none; }
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  html.js:not(.no3d):not(.no3d-fixe) .ix-3d { display: block; }
  html.js:not(.no3d):not(.no3d-fixe) .ix-hero .ix-visual { display: none; }
}
.rot-w { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(-.32em); transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.rot-w.is-on { opacity: 1; transform: none; }
.rot-w.is-off { opacity: 0; transform: translateY(.32em); }
@media (prefers-reduced-motion: reduce) { .rot-w { transition: none; } }
/* Engagement sous les boutons du héros */
.hero-note { margin: 18px auto 0; max-width: 640px; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
html.intro .hero .hero-note { opacity: 0; animation: fade-up .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: .7s; }
/* Tableau de bord : bouton discret « Rejouer la semaine » */
.dash-replay { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0 18px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--muted); font: 400 12.5px var(--font-b); cursor: pointer; transition: color .2s, border-color .2s; }
.dash-replay:hover { color: var(--ink); border-color: var(--line-2); }
.dash-replay svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-replay[disabled] { opacity: .5; cursor: default; }
.foot-bot p + p { margin-top: 6px; font-size: 13px; }
