/* ApexIA — studio d'automatisation IA. Bleu électrique / bleu nuit / noir. */
:root {
  --bg: #03050b;
  --bg-2: #060a16;
  --surface: #0a1122;
  --surface-2: #0e1730;
  --surface-3: #13203f;
  --line: rgba(130, 165, 255, 0.13);
  --line-strong: rgba(110, 160, 255, 0.32);
  --text: #eef3ff;
  --muted: #8e9bba;
  --steel: #b9c5dc;
  --blue: #2563ff;
  --electric: #3b82ff;
  --sky: #64b5ff;
  --cyan: #5ee0ff;
  --night: #0a1a4d;
  --glow: rgba(59, 130, 255, 0.45);
  --ok: #4ade9b;
  --warn: #ffc56b;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }
ul { padding-left: 1.2em; }
::selection { background: var(--electric); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--electric); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--sky)); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--steel); max-width: 62ch; }
.muted { color: var(--muted); }
.grad { color: var(--sky); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Fond ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 85%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: 0.55;
}
.bg-glow.a { width: 640px; height: 640px; left: -200px; top: -260px; background: radial-gradient(circle, #1a46c9, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.bg-glow.b { width: 560px; height: 560px; right: -220px; top: 30vh; background: radial-gradient(circle, #0a2a8a, transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(3, 5, 11, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.scrolled { border-color: var(--line); background: rgba(3, 5, 11, 0.82); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 34px; }
.logo b { color: var(--electric); font-weight: 700; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 13px; border-radius: 10px; font-size: 0.93rem; color: var(--steel);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: #fff; background: rgba(90, 140, 255, 0.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(59, 130, 255, 0.14); box-shadow: inset 0 0 0 1px var(--line-strong); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform 0.3s var(--ease), opacity 0.2s; border-radius: 2px; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 600 0.97rem/1 var(--font-body); cursor: pointer; overflow: hidden; isolation: isolate;
  transform: translate(var(--bx), var(--by)); transition: transform 0.25s var(--ease), box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #3b82ff, #1d4ed8 60%, #1e3a8a);
  box-shadow: 0 10px 34px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 44px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { color: var(--text); background: rgba(14, 23, 48, 0.6); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--sky); background: rgba(30, 60, 140, 0.25); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

/* ---------- Héros ---------- */
.hero { position: relative; padding: clamp(64px, 11vw, 140px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero canvas#reseau { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.85; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  background: rgba(14, 23, 48, 0.7); border: 1px solid var(--line); font-size: 0.84rem; color: var(--steel);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 155, 0.6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 155, 0); } }

/* Console animée du héros */
.console {
  position: relative; border-radius: 22px; padding: 1px;
  background: linear-gradient(140deg, rgba(100, 160, 255, 0.55), rgba(30, 60, 160, 0.15) 40%, rgba(94, 224, 255, 0.4));
  box-shadow: 0 40px 80px -30px rgba(20, 60, 200, 0.6);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform 0.6s var(--ease);
}
.console:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.console-in { border-radius: 21px; background: linear-gradient(180deg, #0a1328, #060b18); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 0.78rem var(--font-mono); color: var(--muted); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #233154; }
.console-bar i:first-child { background: #3b82ff; }
.console-bar span { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: rgba(255, 197, 107, 0.12); color: var(--warn); font-size: 0.7rem; }
.console-body { padding: 20px 20px 24px; font: 0.86rem/1.9 var(--font-mono); min-height: 300px; }
.console-body .l { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-body .l.on { opacity: 1; transform: none; }
.c-blue { color: var(--sky); } .c-ok { color: var(--ok); } .c-mut { color: var(--muted); } .c-warn { color: var(--warn); }
.console-progress { height: 3px; background: rgba(255, 255, 255, 0.06); margin: 6px 20px 20px; border-radius: 4px; overflow: hidden; }
.console-progress b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 0.6s var(--ease); }

/* ---------- Défilant ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: rgba(6, 10, 22, 0.6); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 500 0.95rem var(--font-display); color: var(--steel); white-space: nowrap; display: inline-flex; align-items: center; gap: 46px; }
.marquee span::after { content: "◆"; color: var(--electric); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 30px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(14, 23, 48, 0.75), rgba(8, 13, 28, 0.75));
  border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(59, 130, 255, 0.16), transparent 45%);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { font: 500 0.72rem var(--font-mono); letter-spacing: 0.04em; padding: 5px 9px; border-radius: 7px; background: rgba(59, 130, 255, 0.1); color: var(--sky); border: 1px solid rgba(59, 130, 255, 0.2); }
.tag.demo { background: rgba(255, 197, 107, 0.1); color: var(--warn); border-color: rgba(255, 197, 107, 0.25); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(59, 130, 255, 0.25), rgba(10, 26, 77, 0.6)); border: 1px solid var(--line-strong);
  color: var(--sky);
}
.icon svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; color: var(--sky); font-weight: 600; font-size: 0.93rem; }
.card-link:hover { color: #fff; }
.card-link svg, svg.arrow { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }
.span2 { grid-column: span 2; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card:nth-child(1) { grid-column: span 4; }
.bento .card:nth-child(2) { grid-column: span 2; }
.bento .card:nth-child(3), .bento .card:nth-child(4), .bento .card:nth-child(5) { grid-column: span 2; }
.bento .card:nth-child(6) { grid-column: span 3; }
.bento .card:nth-child(7) { grid-column: span 3; }

/* ---------- Offre express ---------- */
.express {
  position: relative; border-radius: 28px; padding: clamp(32px, 5vw, 60px); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #12307f 0%, #0a1430 45%, #050913 100%);
  border: 1px solid var(--line-strong);
}
.express::after {
  content: "48H"; position: absolute; right: -20px; bottom: -60px; font: 800 clamp(8rem, 20vw, 16rem)/1 var(--font-display);
  color: rgba(100, 160, 255, 0.07); letter-spacing: -0.06em; pointer-events: none;
}
.express-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; position: relative; z-index: 1; }
.conditions { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.conditions li { display: flex; gap: 12px; align-items: flex-start; color: var(--steel); font-size: 0.96rem; }
.conditions li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: rgba(74, 222, 155, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234ade9b' stroke-width='2.4'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.note { font-size: 0.85rem; color: var(--muted); background: rgba(59, 130, 255, 0.06); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 22px; }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.steps li { position: relative; counter-increment: s; padding-top: 74px; }
.steps li::before {
  content: "0" counter(s); position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font: 600 1rem var(--font-mono); color: #fff; background: linear-gradient(140deg, var(--electric), var(--night)); box-shadow: 0 10px 30px -8px var(--glow);
}
.steps p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--bg-2); padding: 28px 24px; }
.stat strong { display: block; font: 700 clamp(1.9rem, 3.4vw, 2.6rem)/1 var(--font-display); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Bandeau page ---------- */
.page-hero { padding: clamp(70px, 10vw, 120px) 0 clamp(40px, 6vw, 70px); position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; }
.crumbs { font: 500 0.8rem var(--font-mono); color: var(--muted); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--sky); }

/* ---------- Démo assistant ---------- */
.demo-box { border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(180deg, #0a1328, #060b18); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.demo-head .av { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, var(--electric), var(--night)); display: grid; place-items: center; }
.demo-head .av svg { width: 20px; }
.demo-log { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; max-height: 340px; overflow-y: auto; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 14px; font-size: 0.93rem; animation: msg 0.35s var(--ease) both; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: linear-gradient(135deg, #2f6fff, #1d4ed8); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.human { border-color: rgba(255, 197, 107, 0.4); }
@keyframes msg { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.chip { border: 1px solid var(--line-strong); background: rgba(14, 23, 48, 0.8); color: var(--steel); border-radius: 999px; padding: 8px 14px; font-size: 0.85rem; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { color: #fff; border-color: var(--sky); background: rgba(59, 130, 255, 0.15); }

/* Pipeline agents */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.node { padding: 20px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: center; position: relative; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.node b { display: block; font: 600 0.95rem var(--font-display); margin-top: 10px; }
.node small { color: var(--muted); font-size: 0.78rem; }
.node .icon { margin: auto; width: 44px; height: 44px; }
.node.active { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky), 0 16px 40px -12px var(--glow); transform: translateY(-4px); }
.node.done .icon { color: var(--ok); }

/* Tableau de bord démo */
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi strong { font: 700 2rem/1 var(--font-display); display: block; margin: 8px 0 4px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 10px; }
.bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--sky), var(--blue)); height: 0; transition: height 1s var(--ease); }

/* ---------- Ressources ---------- */
.resource { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.resource img { border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -30px rgba(20, 60, 200, 0.7); transform: rotate(-2deg); transition: transform 0.5s var(--ease); background: #fff; }
.resource:hover img { transform: rotate(0) scale(1.02); }
.resource .icon svg { width: 64px; height: 64px; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; font: 500 0.8rem var(--font-mono); color: var(--muted); margin: 14px 0 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 17, 34, 0.7); transition: border-color 0.3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font: 600 1.02rem var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 22px 22px; color: var(--steel); }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(6, 10, 22, 0.8); color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(59, 130, 255, 0.18); }
.field .err { color: #ff8a8a; font-size: 0.82rem; margin-top: 6px; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b6b; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--steel); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--electric); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(255, 197, 107, 0.35); background: rgba(255, 197, 107, 0.08); color: #ffe2b0; }
.alert.ok { border-color: rgba(74, 222, 155, 0.35); background: rgba(74, 222, 155, 0.07); color: #c9f7df; }
.alert pre { white-space: pre-wrap; font: 0.82rem/1.6 var(--font-mono); background: rgba(0, 0, 0, 0.3); padding: 12px; border-radius: 10px; margin: 12px 0 0; color: var(--steel); }

/* ---------- Texte légal ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--steel); }
.prose a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA final ---------- */
.cta-band {
  border-radius: 28px; padding: clamp(36px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(80% 120% at 50% 0%, rgba(59, 130, 255, 0.35), transparent 60%), var(--bg-2);
  border: 1px solid var(--line-strong);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin: 30px 0 0; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 34px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(6, 10, 22, 0.9)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font: 600 0.8rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--steel); font-size: 0.93rem; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(3deg); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s; transition-delay: calc(var(--i) * 45ms); }
.split.in .w { opacity: 1; transform: none; filter: none; }
.no-js .reveal, .no-js .split .w { opacity: 1; transform: none; filter: none; }

/* ---------- 404 ---------- */
.e404 { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.e404 strong { font: 800 clamp(7rem, 22vw, 14rem)/1 var(--font-display); letter-spacing: -0.06em; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: rgba(3, 5, 11, 0.97); border-bottom: 1px solid var(--line); padding: 14px 20px 24px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { padding: 14px 14px; font-size: 1.02rem; }
  .burger { display: grid; place-items: center; }
  .header-cta .btn { display: none; }
  .hero-grid, .express-grid, .resource { grid-template-columns: 1fr; }
  .console { transform: none; }
  .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card:nth-child(n) { grid-column: span 1; }
  .bento .card:nth-child(1) { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .resource img { max-width: 260px; }
}
@media (max-width: 640px) {
  .container { width: min(var(--max), 100% - 32px); }
  .g2, .g3, .g4, .bento, .steps, .form-row, .dash, .footer-grid { grid-template-columns: 1fr; }
  .bento .card:nth-child(n) { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 24px; }
  .hero-actions .btn { width: 100%; }
  .console-body { font-size: 0.76rem; min-height: 260px; }
  .span2 { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .split .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none; }
  @view-transition { navigation: none; }
}
