/* =============================================================================
   Previsi-Q — vitrine (previsi-q.com)
   Charte commune avec app.previsi-q.com : encre profonde, vert emeraude,
   Sora (titres) / Inter (texte) / JetBrains Mono (chiffres).
   ============================================================================= */

:root {
  --ink: #060c11;
  --ink-2: #0a131a;
  --surface: #0f1923;
  --surface-2: #131e2a;
  --line: rgba(160, 200, 186, 0.11);
  --line-2: rgba(160, 200, 186, 0.2);
  --text: #eaf2ee;
  --muted: #93a6a0;
  --faint: #5f7470;
  --emerald: #34d399;
  --emerald-2: #10b981;
  --emerald-glow: rgba(52, 211, 153, 0.22);
  --gold: #e8c97a;
  --danger: #f87171;
  --radius: 18px;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(52, 211, 153, .3); }
.num { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain discret sur toute la page */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--emerald); color: #03231a; box-shadow: 0 10px 30px -10px var(--emerald-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(52, 211, 153, .55); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, .15); }
.play svg { width: 10px; height: 10px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px;
  display: flex; align-items: center;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(6, 12, 17, .72); backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font: 700 18px/1 var(--display); letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--emerald); color: #03231a; font: 800 14px/1 var(--display); letter-spacing: -.02em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 8px 22px -8px var(--emerald-glow);
}
.nav-links { display: flex; gap: 4px; margin-left: 16px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14.5px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-login { color: var(--muted); font-size: 14.5px; padding: 8px 12px; }
.nav-login:hover { color: var(--text); }
@media (max-width: 900px) { .nav-links, .nav-login { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero canvas#fan { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(6, 12, 17, .92), transparent 70%),
    linear-gradient(180deg, rgba(6, 12, 17, .2), transparent 30%, transparent 70%, var(--ink));
}
.hero-inner { padding-top: 120px; padding-bottom: 120px; width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(12, 22, 31, .6); backdrop-filter: blur(10px);
  font-size: 13px; color: var(--muted); letter-spacing: .02em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.h-hero {
  margin: 26px 0 0; font: 600 clamp(44px, 8.2vw, 116px)/.96 var(--display); letter-spacing: -.045em; max-width: 11ch;
}
.h-hero .line { display: block; overflow: hidden; padding-bottom: .06em; }
.h-hero .line > span { display: inline-block; will-change: transform; }
.h-hero em { font-style: normal; color: var(--emerald); background: linear-gradient(100deg, #6ee7b7, var(--emerald) 45%, #0fb48a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { margin: 28px 0 0; max-width: 540px; font-size: clamp(16px, 1.5vw, 19px); color: #b9c8c2; line-height: 1.6; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { margin-top: 56px; display: flex; gap: clamp(18px, 4vw, 48px); flex-wrap: wrap; }
.hero-facts div { border-left: 1px solid var(--line-2); padding-left: 14px; }
.hero-facts b { display: block; font: 600 15px/1.3 var(--display); }
.hero-facts span { font-size: 13px; color: var(--muted); }

.kpi-float {
  position: absolute; right: clamp(16px, 6vw, 96px); bottom: clamp(90px, 16vh, 180px); z-index: 2;
  width: 290px; padding: 18px 18px 16px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(16, 29, 40, .82), rgba(8, 17, 26, .7)); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.kpi-float .tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }
.kpi-float .v { margin-top: 10px; font: 600 32px/1 var(--display); letter-spacing: -.03em; font-feature-settings: "tnum" 1; }
.kpi-float .v small { font: 500 13px var(--body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.kpi-float .l { margin-top: 6px; font-size: 13px; color: var(--muted); }
.kpi-float .bar { margin-top: 14px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.kpi-float .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--emerald), var(--gold)); transition: width 1.6s var(--ease); }
.kpi-float .row { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.kpi-float .row b { color: var(--text); font-family: var(--mono); font-weight: 500; }
@media (max-width: 1100px) { .kpi-float { display: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 12px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--emerald), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- bandeau défilant ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 56px; font: 500 15px var(--display); color: var(--muted); white-space: nowrap; letter-spacing: .01em; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(96px, 14vw, 180px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.h2 { margin: 18px 0 0; font: 600 clamp(32px, 5vw, 64px)/1.04 var(--display); letter-spacing: -.035em; max-width: 18ch; }
.h2 .soft { color: var(--faint); }
.lead { margin: 22px 0 0; max-width: 620px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }
.js .reveal { opacity: 0; transform: translateY(28px); }

/* constat — texte qui s'allume au défilement */
.statement { font: 500 clamp(26px, 3.6vw, 48px)/1.28 var(--display); letter-spacing: -.025em; max-width: 26ch; margin: 26px 0 0; }
.statement .w { color: rgba(234, 242, 238, .16); transition: color .2s; }
.statement .w.on { color: var(--text); }
.statement .w.hl.on { color: var(--emerald); }
.stats { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 clamp(34px, 4vw, 52px)/1 var(--display); letter-spacing: -.04em; }
.stat b sup { font-size: .45em; color: var(--emerald); margin-left: 4px; vertical-align: top; position: relative; top: .3em; }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 22ch; }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- produit : défilement avec écran collant ---------- */
.product-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); margin-top: 72px; }
.steps { display: flex; flex-direction: column; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.step.active { opacity: 1; }
.step .n { font: 500 13px var(--mono); color: var(--emerald); letter-spacing: .1em; }
.step h3 { margin: 14px 0 0; font: 600 clamp(26px, 2.8vw, 38px)/1.1 var(--display); letter-spacing: -.03em; }
.step p { margin: 16px 0 0; color: var(--muted); max-width: 44ch; }
.step ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.step li { display: flex; gap: 10px; font-size: 15px; color: #c3d1cb; }
.step li::before { content: ""; flex: none; margin-top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--emerald); }
.stage-col { position: relative; }
.stage { position: sticky; top: calc(50vh - min(300px, 34vw)); height: min(600px, 68vw); }
.step .stage-mobile { display: none; }

.window {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #0d1822, #09121a); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 120px -40px var(--emerald-glow);
}
.win-bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #1f2d38; }
.win-bar .url { margin-left: 14px; font: 12px var(--mono); color: var(--faint); padding: 5px 12px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.screens { position: absolute; inset: 44px 0 0; }
.screen { position: absolute; inset: 0; padding: 26px; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.screen.on { opacity: 1; transform: none; }
.scr-h { display: flex; justify-content: space-between; align-items: baseline; }
.scr-h b { font: 600 19px var(--display); letter-spacing: -.02em; }
.scr-h span { font-size: 12.5px; color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(52, 211, 153, .1); color: var(--emerald); border: 1px solid rgba(52, 211, 153, .25); }

/* écran 1 — import */
.sources { margin-top: 22px; display: grid; gap: 10px; }
.src { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.src .ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(52, 211, 153, .08); color: var(--emerald); font: 600 11px var(--mono); }
.src .t { flex: 1; min-width: 0; }
.src .t b { display: block; font-size: 14px; font-weight: 600; }
.src .t span { font-size: 12.5px; color: var(--muted); }
.src .ok { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .5s var(--ease); }
.src .ok svg { width: 12px; height: 12px; opacity: 0; transition: opacity .3s; }
.src.done .ok { background: var(--emerald); border-color: var(--emerald); }
.src.done .ok svg { opacity: 1; }
.quality { margin-top: 18px; display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 12px; border: 1px dashed var(--line-2); }
.ring { width: 64px; height: 64px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: rgba(255, 255, 255, .06); }
.ring .fg { stroke: var(--emerald); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; stroke-dasharray: 176; stroke-dashoffset: 176; transition: stroke-dashoffset 1.6s var(--ease); }
.quality b { font: 600 16px var(--display); }
.quality p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* écran 2 — liasse */
.sheet { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.sheet .r { display: grid; grid-template-columns: 46px 1fr 110px 110px; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: center; }
.sheet .r:first-child { border-top: 0; background: rgba(52, 211, 153, .9); color: #03231a; font-weight: 700; font-size: 12px; }
.sheet .r.tot { background: rgba(52, 211, 153, .06); font-weight: 600; }
.sheet .r .c { font-family: var(--mono); color: var(--emerald); font-size: 12px; }
.sheet .r:first-child .c { color: #03231a; }
.sheet .r .m { text-align: right; font-family: var(--mono); }
.checks { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* écran 3 — prévisions */
.fc-meta { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fc-meta div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fc-meta span { display: block; font-size: 11.5px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.fc-meta b { display: block; margin-top: 6px; font: 600 18px var(--mono); letter-spacing: -.02em; }
.fc-meta b.warn { color: var(--gold); }
.fc-chart { margin-top: 14px; height: calc(100% - 190px); min-height: 180px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .15); position: relative; }
.fc-chart svg { width: 100%; height: 100%; }

/* écran 4 — KAY & alertes */
.chat { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 86%; padding: 12px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.bub.me { align-self: flex-end; background: var(--emerald-2); color: #032118; border-bottom-right-radius: 4px; }
.bub.ai { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.ai b { color: var(--emerald); font-weight: 600; font-family: var(--mono); font-size: 13px; }
.alert { margin-top: 14px; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(248, 113, 113, .07); border: 1px solid rgba(248, 113, 113, .28); }
.alert .ai-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; background: rgba(248, 113, 113, .15); color: var(--danger); display: grid; place-items: center; font-weight: 700; }
.alert b { font-size: 14px; }
.alert p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 1023px) {
  .product-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .stage-col { display: none; }
  .step { min-height: 0; opacity: 1; padding: 44px 0; border-top: 1px solid var(--line); }
  .step .stage-mobile { display: block; position: relative; margin-top: 28px; }
  .step .stage-mobile .window { width: 640px; height: 540px; transform-origin: 0 0; }
  .step .stage-mobile .screen { opacity: 1; transform: none; }
}

/* ---------- KAY ---------- */
.kay { background: radial-gradient(70% 60% at 80% 40%, rgba(52, 211, 153, .07), transparent 70%), var(--ink-2); border-block: 1px solid var(--line); }
.kay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.kay-console {
  border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0c1720, #08111a);
  padding: 22px; min-height: 440px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8);
}
.kay-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kay-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: conic-gradient(from 200deg, var(--emerald), #0ea5a0, var(--gold), var(--emerald)); color: #03231a; font: 800 13px var(--display); }
.kay-head b { display: block; font: 600 15px var(--display); }
.kay-head span { font-size: 12.5px; color: var(--emerald); }
.kay-msgs { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.js .kay-msgs .bub { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.kay-msgs .bub.in { opacity: 1; transform: none; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.verif { display: flex; gap: 8px; flex-wrap: wrap; transition: opacity .6s; }
.js .verif { opacity: 0; }
.verif.in { opacity: 1; }
.kay-points { margin-top: 32px; display: grid; gap: 18px; }
.kay-points > div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.kay-points i { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--emerald); font: 600 13px var(--mono); font-style: normal; }
.kay-points b { display: block; font: 600 16px var(--display); }
.kay-points p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .kay-grid { grid-template-columns: 1fr; } }

/* ---------- Afrique : anneau des saisons ---------- */
.africa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.season { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
.season svg { width: 100%; height: 100%; overflow: visible; }
.season .arc { fill: none; stroke-width: 14; stroke-linecap: round; }
.season .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.season .center b { display: block; font: 600 clamp(16px, 2vw, 24px)/1.15 var(--display); letter-spacing: -.02em; }
.season .center span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.legend { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.legend > div { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; transform: translateY(1px); }
.legend span { color: var(--muted); font-size: 13px; }
.note { margin-top: 18px; font-size: 12.5px; color: var(--faint); }
@media (max-width: 900px) { .africa-grid { grid-template-columns: 1fr; } }

/* ---------- UEMOA ---------- */
.uemoa { border-top: 1px solid var(--line); }
.countries { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.country { background: var(--ink); padding: 26px 22px; display: flex; flex-direction: column; gap: 26px; transition: background .4s; }
.country:hover { background: var(--surface); }
.country .code { font: 500 12px var(--mono); color: var(--faint); letter-spacing: .1em; }
.country b { font: 600 19px/1.2 var(--display); letter-spacing: -.02em; }
.pillars3 { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .countries { grid-template-columns: 1fr 1fr; } }

/* ---------- sécurité ---------- */
.sec-cards { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(52, 211, 153, .12), transparent 60%);
}
.card:hover { border-color: rgba(52, 211, 153, .35); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(52, 211, 153, .08); color: var(--emerald); }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { margin: 22px 0 0; font: 600 18px/1.25 var(--display); letter-spacing: -.02em; }
.card p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 1000px) { .sec-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sec-cards { grid-template-columns: 1fr; } }

/* ---------- offres ---------- */
.plans { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan.featured { background: linear-gradient(180deg, rgba(52, 211, 153, .1), rgba(12, 22, 31, 1) 45%); border-color: rgba(52, 211, 153, .45); box-shadow: 0 40px 90px -40px rgba(52, 211, 153, .35); }
.plan .badge { position: absolute; top: -12px; left: 26px; padding: 5px 12px; border-radius: 999px; background: var(--emerald); color: #03231a; font: 700 11.5px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.plan h3 { margin: 0; font: 600 22px var(--display); letter-spacing: -.02em; }
.plan .tl { margin-top: 4px; font-size: 14px; color: var(--muted); }
.plan .price { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price b { font: 600 38px/1 var(--display); letter-spacing: -.04em; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan ul { margin: 26px 0 30px; padding: 26px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: #c3d1cb; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--emerald); }
.plan .btn { justify-content: center; width: 100%; }
.plans-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font: 500 17px/1.4 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .4s var(--ease), border-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { border-color: var(--emerald); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0; padding: 0 40px 24px 0; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.final { overflow: hidden; text-align: center; padding: clamp(110px, 16vw, 200px) 0; isolation: isolate; }
.final canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 50%, rgba(6, 12, 17, .2), var(--ink) 85%); }
.final .h2 { margin-inline: auto; max-width: 16ch; font-size: clamp(36px, 6vw, 84px); }
.final .lead { margin-inline: auto; }
.final .hero-actions { justify-content: center; }

/* ---------- pied de page ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--ink-2); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot p { color: var(--muted); font-size: 14px; max-width: 34ch; margin: 16px 0 0; }
.foot h4 { margin: 0 0 14px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.foot ul a { color: #c3d1cb; transition: color .2s; }
.foot ul a:hover { color: var(--emerald); }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- démo en fenêtre ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(3, 6, 9, .86); backdrop-filter: blur(10px); padding: 16px; }
.modal.open { display: grid; }
.modal-inner { position: relative; width: min(1200px, 100%); }
.modal-box { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 86vh; border-radius: 16px; overflow: hidden; border: 1px solid rgba(52, 211, 153, .35); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); background: #060c11; }
.modal-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close { position: absolute; top: -48px; right: 0; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(12, 22, 31, .9); cursor: pointer; font-size: 14px; }
@media (max-width: 700px) { .modal-box { aspect-ratio: auto; height: min(56vw, 70vh); } }

/* bouton WhatsApp flottant */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55); transition: transform .4s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; }

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