/* =====================================================================
   SaisIA — site vitrine
   Charte SaisIA (RealCMB Group) : bleu #2E60CC · bleu profond #1F46A1
   marine #0B1A3A · ciel #6F95E8 · émeraude IA #2FD39C / #0A8F68 · rouge alerte #E50000
   Polices : Chivo (titres) · IBM Plex Sans (texte) · IBM Plex Mono
   ===================================================================== */

:root {
  --brand: #2E60CC;
  --brand-deep: #1F46A1;
  --navy: #0B1A3A;
  --sky: #6F95E8;
  --alert: #E50000;
  --alert-deep: #B30000;
  --ok: #10B981;
  --warn: #F59E0B;
  --ia: #0A8F68;                    /* émeraude « IA » sur fond clair (4,6:1) */
  --ia-bright: #2FD39C;             /* émeraude sur fond sombre */
  --ia-strong: #0A8F68;

  --bg: 246 248 251;
  --surface: 255 255 255;
  --muted: 241 244 249;
  --line: 226 232 240;
  --ink: 15 23 42;
  --sub: 90 101 120;
  --brand-soft: 234 240 252;

  /* Navigation et focus (contrastes vérifiés WCAG AA) */
  --focus: #1F46A1;                 /* 8,1:1 sur fond clair */
  --focus-halo: rgba(46, 96, 204, .28);
  --nav-hover-bg: 226 234 250;
  --nav-hover-fg: #0B1A3A;
  --nav-active-bg: 214 226 250;
  --nav-active-fg: #1F46A1;         /* 6,6:1 sur le fond actif ; barre 4,4:1 */
  --nav-active-bar: #2E60CC;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(11,26,58,.04), 0 4px 16px rgba(11,26,58,.06);
  --shadow-lift: 0 2px 6px rgba(11,26,58,.06), 0 18px 48px rgba(11,26,58,.12);
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1180px;
  --header-h: 64px;

  --font-sans: "IBM Plex Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: Chivo, "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

.dark {
  --bg: 7 13 26;
  --surface: 13 22 40;
  --muted: 19 30 52;
  --line: 32 45 70;
  --ink: 230 236 245;
  --sub: 148 163 184;
  --brand-soft: 22 38 74;
  --focus: #9FBAF5;                 /* 10:1 sur fond sombre */
  --focus-halo: rgba(111, 149, 232, .35);
  --nav-hover-bg: 30 46 80;
  --nav-hover-fg: #F1F5FD;
  --nav-active-bg: 36 60 112;
  --nav-active-fg: #E3ECFF;         /* 9,1:1 sur le fond actif ; barre 3,7:1 */
  --nav-active-bar: #6F95E8;
  --ia: #2FD39C;
  --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw + 11px, 17px);
  line-height: 1.6;
  color: rgb(var(--ink));
  background: rgb(var(--bg));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.08rem, 1.4vw, 1.25rem); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--focus-halo); }
/* Sur les zones toujours sombres (accueil, encart démo), un contour clair reste visible dans les deux thèmes */
.hero :focus-visible, .cta > div :focus-visible, .legal-hero :focus-visible, .card--feature :focus-visible { outline-color: #CFDCF8; box-shadow: 0 0 0 6px rgba(207, 220, 248, .25); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section--muted { background: rgb(var(--muted)); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 60px); text-align: center; }
.section-head p { color: rgb(var(--sub)); font-size: 1.06em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand); background: rgb(var(--brand-soft));
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.dark .eyebrow { color: var(--sky); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ia-bright); }
.grad-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--sky) 55%, var(--brand-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-sans); cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(46,96,204,.7); }
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 12px 30px -8px rgba(46,96,204,.8); }
.btn--ghost { background: rgb(var(--surface)); color: rgb(var(--ink)); border-color: rgb(var(--line)); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(var(--bg) / .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: rgb(var(--line)); background: rgb(var(--bg) / .9); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: rgb(var(--ink)); text-decoration: none !important; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1; }
.brand-name .ia { color: var(--ia); }
.brand-sub { display: block; font: 500 10.5px/1 var(--font-mono); color: rgb(var(--sub)); letter-spacing: .06em; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; color: rgb(var(--sub)); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; text-decoration: none; transition: color .15s ease, background-color .15s ease; }
.nav a:hover { color: var(--nav-hover-fg); background: rgb(var(--nav-hover-bg)); text-decoration: none; }
.nav a:focus-visible { color: var(--nav-hover-fg); background: rgb(var(--nav-hover-bg)); outline-offset: 2px; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--nav-active-bar); transform: scaleX(0); transition: transform .2s ease; }
.nav a.is-active, .nav a[aria-current] { color: var(--nav-active-fg); background: rgb(var(--nav-active-bg)); font-weight: 600; }
.nav a.is-active::after, .nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); color: rgb(var(--ink)); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--nav-active-bar); color: var(--nav-active-fg); background: rgb(var(--nav-hover-bg)); }
.theme-toggle .moon { display: none; }
.dark .theme-toggle .sun { display: none; }
.dark .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }
.header-cta { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgb(var(--bg)); padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a:not(.btn) {
  transition: background-color .15s ease, color .15s ease;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: rgb(var(--ink)); border-bottom: 1px solid rgb(var(--line)); text-decoration: none;
}
.mobile-nav a:not(.btn)::after { content: "→"; color: var(--nav-active-bar); font-family: var(--font-sans); }
.mobile-nav a:not(.btn):hover, .mobile-nav a:not(.btn):focus-visible { background: rgb(var(--nav-hover-bg)); text-decoration: none; }
.mobile-nav a:not(.btn):focus-visible { outline-offset: -2px; }
.mobile-nav a.is-active:not(.btn), .mobile-nav a[aria-current]:not(.btn) { color: var(--nav-active-fg); background: rgb(var(--nav-active-bg)); box-shadow: inset 4px 0 0 var(--nav-active-bar); padding-left: 14px; border-radius: 8px 8px 0 0; }
.mobile-nav .btn { margin-top: 22px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(111,149,232,.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(47,211,156,.16), transparent 60%),
    linear-gradient(160deg, #0B1A3A 0%, #10275a 55%, #1F46A1 130%);
  padding: clamp(48px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px));
}
.hero::before { /* grille de fond */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .eyebrow { background: rgba(255,255,255,.1); color: #cfdcf8; }
.hero h1 { color: #fff; }
.hero h1 .accent { background: linear-gradient(100deg, #cfdcf8, #6F95E8 45%, #2FD39C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: #c9d4ea; max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 32px; padding: 0; list-style: none; color: #b7c5e3; font-size: 14px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 16px; height: 16px; color: #7ee2b8; flex: none; }

/* Mockup POS */
.mock-wrap { position: relative; perspective: 1400px; }
.mock {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #0d1628; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform: rotateY(-8deg) rotateX(4deg); transform-origin: left center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.mock-wrap:hover .mock { transform: rotateY(-2deg) rotateX(1deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0a1222; border-bottom: 1px solid rgba(255,255,255,.07); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3654; }
.mock-bar i:first-child { background: #2FD39C; }
.mock-bar span { margin-left: auto; font: 500 11px var(--font-mono); color: #7d8bab; }
.mock-body { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 340px; }
.mock-grid { padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.mock-chips { grid-column: 1 / -1; display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.mock-chips b { font: 600 10.5px var(--font-sans); color: #9fb0d4; background: #16223d; padding: 5px 9px; border-radius: 999px; }
.mock-chips b.on { background: var(--brand); color: #fff; }
.p-card { background: #142039; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 72px; }
.p-card .sw { width: 22px; height: 22px; border-radius: 6px; }
.p-card small { color: #a9b6d3; font-size: 10.5px; line-height: 1.25; }
.p-card strong { color: #fff; font: 600 12px var(--font-mono); margin-top: auto; }
.mock-cart { background: #0a1324; border-left: 1px solid rgba(255,255,255,.07); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-cart h4 { font: 700 12px var(--font-display); color: #fff; margin: 0 0 2px; display: flex; justify-content: space-between; }
.mock-cart h4 span { color: #7d8bab; font: 500 10.5px var(--font-mono); }
.c-line { display: flex; justify-content: space-between; font-size: 11px; color: #c4cfe6; padding-bottom: 7px; border-bottom: 1px dashed rgba(255,255,255,.08); }
.c-line b { font: 500 11px var(--font-mono); color: #fff; }
.c-total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; color: #fff; }
.c-total span { font-size: 11px; color: #9fb0d4; }
.c-total b { font: 700 20px var(--font-mono); }
.c-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.c-pay b { text-align: center; font: 600 11px var(--font-sans); padding: 9px 0; border-radius: 8px; background: #16223d; color: #dbe4f7; }
.c-pay b.cb { background: var(--brand); color: #fff; }
.mock-hash { font: 500 9.5px var(--font-mono); color: #5f7099; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.float-card {
  position: absolute; z-index: 2; background: rgb(255 255 255 / .96); color: #0f172a;
  border-radius: 14px; padding: 12px 14px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.45);
  display: flex; gap: 10px; align-items: flex-start; max-width: 250px; font-size: 12.5px; line-height: 1.4;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font: 700 13px var(--font-display); margin-bottom: 2px; }
.float-card .ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.float-card .ico svg { width: 16px; height: 16px; }
.float-card--ai { right: -18px; top: -26px; }
.float-card--ai .ico { background: linear-gradient(135deg, var(--brand), var(--ia-bright)); }
.float-card--nf { left: -26px; bottom: -24px; animation-delay: -3s; }
.float-card--nf .ico { background: var(--ok); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Bande de chiffres ---------- */
.stats { margin-top: -38px; position: relative; z-index: 3; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.stat { padding: clamp(18px, 3vw, 28px); border-right: 1px solid rgb(var(--line)); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--font-display); color: rgb(var(--ink)); letter-spacing: -.02em; }
.stat b em { font-style: normal; color: var(--brand); }
.stat span { color: rgb(var(--sub)); font-size: .9em; }

/* ---------- Cartes / bento ---------- */
.card {
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: clamp(20px, 2.6vw, 28px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--brand) 35%, rgb(var(--line))); }
.card p { color: rgb(var(--sub)); margin: 0; }
.tile-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  color: #fff; background: var(--brand);
}
.tile-ico svg { width: 22px; height: 22px; }
.tile-ico--deep { background: var(--brand-deep); }
.tile-ico--navy { background: var(--navy); }
.dark .tile-ico--navy { background: #22345f; }
.tile-ico--red { background: var(--alert); }
.tile-ico--sky { background: var(--sky); }
.tile-ico--ok { background: var(--ok); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { grid-column: span 2; }
.bento .card--wide { grid-column: span 3; }
.bento .card--feature {
  grid-column: span 3; grid-row: span 2; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #0B1A3A, #1F46A1); color: #fff; border-color: transparent;
}
.bento .card--feature p { color: #c9d4ea; }
.bento .card--feature h3 { color: #fff; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95em; }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ok); }
.card--feature .check-list li { color: #e3eaf8; }
.feature-visual { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.feature-visual span { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; font: 600 11px var(--font-mono); color: #cfdcf8; }
.feature-visual span:nth-child(4n) { background: rgba(229,0,0,.75); border-color: transparent; color: #fff; }
.feature-visual span:nth-child(3n+1) { background: rgba(46,96,204,.55); }

/* ---------- Section IA ---------- */
.ai-section { background: linear-gradient(180deg, rgb(var(--bg)) 0%, rgb(var(--brand-soft)) 100%); }
.ai-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ai-list { display: grid; gap: 12px; margin-top: 26px; }
.ai-item { display: flex; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); cursor: pointer; transition: border-color .2s, box-shadow .2s; text-align: left; width: 100%; font: inherit; color: inherit; }
.ai-item .tile-ico { margin: 0; width: 40px; height: 40px; flex: none; }
.ai-item .ai-t { display: block; margin: 2px 0 4px; font: 700 1.02rem/1.25 var(--font-display); letter-spacing: -.01em; }
.ai-item .ai-d { display: block; color: rgb(var(--sub)); font-size: .93em; line-height: 1.5; }
.ai-item[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(46 96 204 / .15); }
.ai-panel { background: #0d1628; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lift); color: #dbe4f7; overflow: hidden; }
.ai-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); font: 600 13px var(--font-sans); color: #fff; }
.ai-panel-head .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
.ai-panel-head small { margin-left: auto; font: 500 11px var(--font-mono); color: #7d8bab; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.ai-view { display: none; padding: 18px; min-height: 330px; }
.ai-view.is-active { display: block; animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1.1fr) 2fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-row .track { height: 8px; background: #1a2744; border-radius: 99px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--sky)); }
.bar-row .fill.low { background: linear-gradient(90deg, var(--alert), #ff6a6a); }
.bar-row b { font: 600 12px var(--font-mono); color: #fff; }
.ai-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #142039; font-size: 12.5px; line-height: 1.5; border-left: 3px solid var(--sky); }
.ai-note b { color: #fff; }

.alert-row { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: #142039; margin-bottom: 10px; font-size: 12.5px; }
.alert-row .lvl { flex: none; width: 8px; border-radius: 4px; background: var(--warn); }
.alert-row .lvl.high { background: var(--alert); }
.alert-row .lvl.info { background: var(--sky); }
.alert-row b { display: block; color: #fff; font-size: 13px; margin-bottom: 2px; }

.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg--ai { align-self: flex-start; background: #142039; border-bottom-left-radius: 4px; }
.msg--ai b { color: #fff; }
.chat-input { display: flex; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 14px; border-radius: 12px; background: #0a1222; border: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #6e7d9e; align-items: center; }
.chat-input span { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.chat-input svg { width: 15px; height: 15px; }

.report { font-size: 12.5px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.report-kpis div { background: #142039; border-radius: 10px; padding: 10px; }
.report-kpis small { display: block; color: #8a98b8; font-size: 10.5px; }
.report-kpis b { font: 700 15px var(--font-mono); color: #fff; }
.report-kpis b.up { color: #5ee0a9; }
.spark { height: 90px; display: flex; align-items: flex-end; gap: 5px; padding: 10px; background: #142039; border-radius: 10px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--sky), var(--brand)); opacity: .9; }
.spark i.hl { background: linear-gradient(180deg, #ff6a6a, var(--alert)); }

/* ---------- Conformité ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chain { margin-top: clamp(28px, 5vw, 48px); display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.chain-block { flex: 0 0 auto; min-width: 200px; scroll-snap-align: start; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 12px; padding: 14px; font: 500 11.5px/1.5 var(--font-mono); color: rgb(var(--sub)); box-shadow: var(--shadow-card); }
.chain-block b { display: block; font: 700 13px var(--font-display); color: rgb(var(--ink)); margin-bottom: 6px; }
.chain-block .h { color: var(--brand); word-break: break-all; }
.dark .chain-block .h { color: var(--sky); }
.chain-link { flex: 0 0 34px; display: grid; place-items: center; color: rgb(var(--sub)); }
.chain-link svg { width: 18px; height: 18px; }

.cert-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 16px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: #047857; font-weight: 700; font-size: 15px; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.dark .cert-badge { color: #5ee0a9; }
.cert-badge svg { width: 20px; height: 20px; }

/* ---------- Intégrations ---------- */
.integr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.integr { display: flex; gap: 14px; align-items: center; padding: 18px; }
.integr .mono { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 800 14px var(--font-display); color: #fff; background: var(--navy); letter-spacing: -.02em; }
.dark .integr .mono { background: #22345f; }
.integr h3 { margin: 0 0 2px; font-size: 1.02rem; }
.integr p { font-size: .9em; }
.tag { display: inline-block; font: 600 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: rgb(var(--brand-soft)); color: var(--brand); margin-top: 6px; }
.dark .tag { color: var(--sky); }

/* ---------- Domaines ---------- */
.domains { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.domain { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); font-weight: 600; }
.domain svg { width: 18px; height: 18px; color: var(--brand); }
.domain.is-live { border-color: var(--brand); background: rgb(var(--brand-soft)); }
.domain small { font: 600 10px var(--font-mono); text-transform: uppercase; color: var(--ok); }

/* ---------- Rôles ---------- */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.role { text-align: center; padding: 22px 14px; }
.role .avatar { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; font: 800 18px var(--font-display); }
.role h3 { font-size: 1rem; margin-bottom: 4px; }
.role p { font-size: .86em; }

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.stack-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack-item { padding: 16px; border-radius: 12px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.stack-item b { display: block; font-family: var(--font-display); }
.stack-item span { font-size: .88em; color: rgb(var(--sub)); }
.arch { background: #0d1628; color: #c4cfe6; border-radius: var(--radius-lg); padding: 20px; font: 500 12.5px/1.75 var(--font-mono); box-shadow: var(--shadow-lift); overflow-x: auto; white-space: pre; }
.arch .k { color: var(--sky); } .arch .r { color: #ff7b7b; } .arch .g { color: #6b7a9c; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: var(--radius); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgb(var(--muted)); color: var(--brand); font: 600 18px var(--font-sans); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: rgb(var(--sub)); padding-bottom: 18px; margin: 0; }

/* ---------- CTA / contact ---------- */
.cta {
  border-radius: clamp(18px, 3vw, 28px); padding: clamp(28px, 5vw, 56px); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(111,149,232,.35), transparent 60%), linear-gradient(140deg, #0B1A3A, #1F46A1);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start;
}
.cta h2 { color: #fff; }
.cta p { color: #c9d4ea; }
.cta .check-list li { color: #e3eaf8; }
.form { background: rgb(var(--surface)); color: rgb(var(--ink)); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); display: grid; gap: 14px; box-shadow: var(--shadow-lift); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.label { display: block; font: 600 11.5px var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--sub)); margin-bottom: 6px; }
.input { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid rgb(var(--line)); background: rgb(var(--bg)); color: rgb(var(--ink)); padding: 10px 12px; font: 16px var(--font-sans); }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(46 96 204 / .2); }
.form-note { font-size: 12.5px; color: rgb(var(--sub)); margin: 0; }
.form-status { font-size: 14px; line-height: 1.5; margin: 0; border-radius: 10px; }
.form-status:empty { display: none; }
.form-status[class*="is-"] { padding: 12px 14px; border: 1px solid; }
.form-status.is-success { background: #E7F8F0; color: #05603A; border-color: #A6E3C8; }
.form-status.is-error   { background: #FDECEC; color: #8E0F0F; border-color: #F5B5B5; }
.form-status.is-warning { background: #FFF6E0; color: #7A4B00; border-color: #F5D58A; }
.form-status.is-info    { background: rgb(var(--brand-soft)); color: var(--nav-active-fg); border-color: rgb(var(--nav-active-bg)); }
.dark .form-status.is-success { background: #0B2E22; color: #7EE2B8; border-color: #1C5C44; }
.dark .form-status.is-error   { background: #3A1014; color: #FFB4B4; border-color: #6E2228; }
.dark .form-status.is-warning { background: #33260A; color: #FFD98A; border-color: #6B5214; }
/* Champ piège anti-robots : invisible pour les visiteurs */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(var(--line)); margin-top: clamp(64px, 10vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--sub)); font-family: var(--font-sans); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: rgb(var(--ink)); }
.footer-brand p { color: rgb(var(--sub)); font-size: .93em; max-width: 340px; margin-top: 14px; }
.by-rcg { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: rgb(var(--sub)); }
.by-rcg img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(var(--line)); font-size: 13px; color: rgb(var(--sub)); }

/* Bouton retour en haut (mobile) */
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; box-shadow: var(--shadow-lift); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
  .float-card--ai { right: 8px; }
  .float-card--nf { left: 8px; }
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero .container, .ai-grid, .stack-grid, .cta { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .mock { transform: none; }
  .mock-wrap { max-width: 620px; margin: 24px auto 0; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card--wide { grid-column: span 1; }
  .bento .card--feature { grid-column: 1 / -1; grid-row: auto; }
  .trust-grid, .integr-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgb(var(--line)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ai-copy { text-align: left; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .brand-sub { display: none; }
  .brand img { width: 30px; height: 30px; }
  .hero-ctas .btn { width: 100%; }
  .hero-badges { gap: 8px 14px; font-size: 13px; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-grid { grid-template-columns: repeat(3, 1fr); padding: 12px; }
  .mock-grid .p-card:nth-child(n+8) { display: none; }
  .mock-cart { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .float-card { position: relative; inset: auto; max-width: none; margin-top: 12px; animation: none; }
  .float-card--ai { margin-top: 0; margin-bottom: 12px; }
  .bento, .trust-grid, .integr-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .roles .role:last-child { grid-column: 1 / -1; }
  .stack-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ai-view { min-height: 0; padding: 14px; }
  .ai-item { padding: 14px; gap: 12px; }
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-row .track { grid-column: 1 / -1; grid-row: 2; }
  .report-kpis { grid-template-columns: 1fr 1fr; }
  .report-kpis div:last-child { grid-column: 1 / -1; }
  .section-head { text-align: left; }
  .domains { justify-content: flex-start; }
  .chain-block { min-width: 76vw; }
}

@media (max-width: 380px) {
  body { font-size: 15px; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid rgb(var(--line)); }
  .stat:last-child { border-bottom: 0; }
  .mock-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-grid .p-card:nth-child(n+6) { display: none; }
  .roles { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-nav, .to-top, .float-card { display: none !important; }
  .hero { background: #0B1A3A !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================================
   Pages légales
   ===================================================================== */
.legal-hero { background: linear-gradient(160deg, #0B1A3A 0%, #10275a 60%, #1F46A1 140%); color: #fff; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(36px, 7vw, 72px)) 0 clamp(36px, 6vw, 60px); }
.legal-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: .3em; }
.legal-hero p { color: #c9d4ea; margin: 0; }
.breadcrumb { font: 500 12.5px var(--font-mono); color: #9fb0d4; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: #cfdcf8; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(32px, 5vw, 56px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; font-size: 14px; }
.legal-toc strong { font: 600 11.5px var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--sub)); margin-bottom: 8px; }
.legal-toc a { color: rgb(var(--sub)); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--nav-hover-fg); background: rgb(var(--nav-hover-bg)); text-decoration: none; }
.legal-toc a[aria-current="page"] { color: var(--nav-active-fg); border-left-color: var(--nav-active-bar); background: rgb(var(--nav-active-bg)); font-weight: 600; }
.legal-body { max-width: 760px; }
.legal-body section { padding-bottom: 8px; margin-bottom: 28px; border-bottom: 1px solid rgb(var(--line)); }
.legal-body section:last-of-type { border-bottom: 0; }
.legal-body h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal-body p, .legal-body li { color: rgb(var(--ink) / .86); }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: .4em; }
.legal-body dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px 20px; margin: 0 0 1em; }
.legal-body dt { font-weight: 600; color: rgb(var(--sub)); }
.legal-body dd { margin: 0; }
.legal-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; border: 1px solid rgb(var(--line)); border-radius: var(--radius); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .92em; min-width: 520px; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgb(var(--line)); vertical-align: top; }
.legal-body th { background: rgb(var(--muted)); font-weight: 600; }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-meta { font: 500 12.5px var(--font-mono); color: rgb(var(--sub)); }
mark.todo { background: color-mix(in srgb, var(--warn) 22%, transparent); color: inherit; padding: 1px 6px; border-radius: 5px; border: 1px dashed var(--warn); font-size: .95em; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .legal-toc::-webkit-scrollbar { display: none; }
  .legal-toc strong { display: none; }
  .legal-toc a { white-space: nowrap; border-left: 0; border: 1px solid rgb(var(--line)); border-radius: 999px; padding: 8px 14px; }
  .legal-toc a[aria-current="page"] { border-color: var(--nav-active-bar); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .legal-body dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-body dd { margin-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   SaisIA — composants spécifiques
   ===================================================================== */
/* File de revue (maquette d’accueil) */
.q-list { padding: 14px; display: grid; gap: 7px; align-content: start; }
.q-list .mock-chips { margin-bottom: 4px; }
.q-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px; align-items: center; background: #142039; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 9px 10px; }
.q-row.is-sel { border-color: rgba(47,211,156,.55); box-shadow: 0 0 0 1px rgba(47,211,156,.25) inset; }
.src { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 700 9.5px var(--font-mono); color: #fff; }
.src--x { background: #0A8F68; } .src--o { background: var(--brand); } .src--l { background: #6d4bd8; }
.q-main { min-width: 0; }
.q-main b { display: block; color: #fff; font: 600 11.5px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-main small { color: #8a98b8; font-size: 10px; }
.q-amt { font: 600 11.5px var(--font-mono); color: #fff; }
.conf { grid-column: 2 / -1; height: 4px; border-radius: 99px; background: #1a2744; overflow: hidden; }
.conf i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #2FD39C); }
.conf--rev i { background: linear-gradient(90deg, #F59E0B, #ffb84d); }
.c-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.c-line b.cr { color: #9fbaf5; }
.c-total b { color: #2FD39C; }
.c-pay b.cb { background: #0A8F68; }
.mock-hash { color: #6f87b5; }

/* Panneau IA : compléments */
.bar-row .fill.ok { background: linear-gradient(90deg, #0A8F68, #2FD39C); }
.alert-row .lvl.ok { background: #2FD39C; }
.entry { border-radius: 12px; overflow: hidden; background: #142039; font-size: 12.5px; }
.entry > div { display: grid; grid-template-columns: 70px minmax(0,1fr) 70px 70px; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.entry > div:last-child { border-bottom: 0; }
.entry > div span:nth-child(1), .entry > div span:nth-child(3), .entry > div span:nth-child(4) { font-family: var(--font-mono); color: #fff; }
.entry > div span:nth-child(3), .entry > div span:nth-child(4) { text-align: right; }
.entry .entry-head { background: #0a1222; color: #7d8bab !important; font: 600 10.5px var(--font-sans); text-transform: uppercase; letter-spacing: .06em; }
.entry .entry-head span { color: #7d8bab !important; font-family: var(--font-sans) !important; }
.arch .v { color: #2FD39C; }

.feature-visual--ledger span:nth-child(4n) { background: rgba(47,211,156,.8); color: #06301f; }

/* Étapes */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--brand-soft)); color: var(--brand); font: 600 13px var(--font-mono); }
.dark .steps li::before { color: var(--sky); }
.steps b { font-family: var(--font-display); font-size: 1.05rem; }
.steps span { color: rgb(var(--sub)); font-size: .95em; }

/* Calendrier de la réforme */
.ef-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: rgb(var(--line)); }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.timeline .v { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font: 700 15px var(--font-display); background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); color: var(--brand); }
.dark .timeline .v { color: var(--sky); }
.timeline li > div { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: var(--radius); padding: 16px 20px; }
.timeline h3 { font-size: 1.02rem; margin-bottom: 4px; }
.timeline p { color: rgb(var(--sub)); font-size: .95em; margin: 0; }
.timeline .done .v { background: var(--ia); border-color: var(--ia); color: #fff; }
.dark .timeline .done .v { color: #06301f; }
.timeline .current .v { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(46,96,204,.8); }
.timeline .current > div { border-color: var(--brand); }
.trust-grid--2 { grid-template-columns: 1fr 1fr; }

/* Publics */
.audience { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; align-items: stretch; }
.audience-card.is-main { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-card); }
.audience-card .tag { margin: 0 0 14px; }
.tag--ok { background: color-mix(in srgb, var(--ia) 14%, transparent); color: var(--ia); }
.dark .tag--ok { color: var(--ia); }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price h3 { margin-bottom: 8px; }
.price .tag { align-self: flex-start; margin: 0 0 12px; }
.price-v { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px !important; }
.price-v b { font: 800 clamp(1.8rem, 3vw, 2.3rem)/1 var(--font-display); color: rgb(var(--ink)); letter-spacing: -.02em; }
.price-v span { font: 500 12px var(--font-mono); color: rgb(var(--sub)); }
.price .check-list { margin-top: auto; padding-top: 16px; }
.price .check-list svg { color: var(--ia); }
.price.is-main { border-color: var(--ia); box-shadow: 0 0 0 1px var(--ia), var(--shadow-card); }
.price-note { text-align: center; color: rgb(var(--sub)); font-size: .9em; margin-top: 22px; }

@media (max-width: 1080px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: 1fr 1fr; }
  .audience-card.is-main { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .ef-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pricing, .audience, .trust-grid--2 { grid-template-columns: 1fr; }
  .q-row:nth-child(n+5) { display: none; }
  .timeline::before { left: 21px; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 12px; }
  .timeline .v { width: 44px; height: 44px; border-radius: 13px; font-size: 13px; }
  .timeline li > div { padding: 14px 16px; }
  .entry > div { grid-template-columns: 58px minmax(0,1fr) 58px 58px; padding: 9px 10px; font-size: 11.5px; }
  .roles .role:last-child { grid-column: 1 / -1; }
}
