/* AAAS.ma — Design system v4 (refonte 2026)
   Layout concept : console nocturne — fond encre, une seule lueur violet→rose qui guide l'œil vers l'action,
   titres serif éditoriaux à italique lumineuse, étiquettes mono comme des logs d'agent.
   Identité conservée : #0A0A0D / #6E0DD0 / #9B66FF / #FF3CAC, Sora (H1, navigation) + Helvetica Neue gras (titres, boutons) + Inter (textes), comme le site actuel. */

:root {
  --bg: #0A0A0D;
  --bg-2: #101014;
  --surface: #15151A;
  --surface-2: #1A1A21;
  --surface-3: #22222B;
  --text: #F2F2F4;
  --muted: #A3A3AD;
  --dim: #6B6B77;
  --violet: #6E0DD0;
  --glow: #9B66FF;
  --pink: #FF3CAC;
  --ok: #03E78B;
  --warn: #FFB547;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);
  --grad: linear-gradient(135deg, #6E0DD0 0%, #FF3CAC 100%);
  --grad-soft: linear-gradient(135deg, rgba(110,13,208,.18), rgba(255,60,172,.10));
  --display: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: Menlo, Monaco, 'Courier New', monospace;
  --radius-card: 24px;
  --radius: 14px;
  --radius-btn: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 80px -10px rgba(155,102,255,0.45);
  --shadow-elev: 0 24px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  --wrap: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg, video { max-width: 100%; height: auto; display: block; }
svg:not([width]) { width: 1.1em; height: 1.1em; flex: none; }
a { color: inherit; text-decoration: none; }
main p a:not(.btn):not(.link-arrow), .prose a:not(.btn):not(.link-arrow), .fa a, .empty a { color: var(--glow); text-decoration: underline; text-decoration-color: rgba(155,102,255,.4); text-underline-offset: 3px; }
main p a:hover, .prose a:hover, .fa a:hover { text-decoration-color: var(--glow); }
.prose .card, .prose .post-card { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(155,102,255,.35); }

[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap-narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.band { background: var(--bg-2); border-block: 1px solid var(--border); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--glow); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.eyebrow.plain::before { display: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
.h1, h1.h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.6vw, 92px);
  line-height: .98; letter-spacing: -.025em;
}
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.02em; }
.h1 i, .h2 i, .h3 i { font-style: italic; color: var(--glow); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.h4 { font-size: 16px; font-weight: 600; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 780px; }
.sec-head.center { margin-inline: auto; justify-items: center; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head-row .sec-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,60,172,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255,60,172,.7), var(--shadow-glow); }
.btn-ghost { border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--glow); background: rgba(155,102,255,.08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { color: var(--glow); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10,10,13,.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.topbar { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--grad-soft); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar a { color: var(--text); }
.topbar .tb-right { display: flex; gap: 18px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { height: 30px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s;
}
.menu > li > a:hover, .menu > li > button:hover, .menu > li > a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.04); }
.menu .chev { width: 10px; height: 10px; transition: transform .3s; }
.has-mega:hover .chev, .has-mega.open .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(760px, 92vw); padding: 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-elev), var(--shadow-glow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; border-radius: 14px; transition: background .2s; }
.mega a:hover { background: var(--surface-2); }
.mega .mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--glow); }
.mega .mi svg { width: 20px; height: 20px; }
.mega strong { display: block; font-size: 14.5px; font-weight: 600; }
.mega span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding: 14px 14px 6px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1200px) {
  .burger { display: grid; }
  .nav-cta .btn-ghost { display: none; }
  .menu {
    position: fixed; inset: calc(env(safe-area-inset-top, 0px) + 72px) 0 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    padding: 16px var(--gutter-r) calc(120px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; visibility: hidden; pointer-events: none;
  }
  .nav-open .menu { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--text); }
  .mega { position: static; transform: none; width: 100%; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; box-shadow: none; margin: 8px 0; background: var(--bg-2); }
  .has-mega:hover .mega, .has-mega:focus-within .mega { transform: none; }
  .has-mega.open .mega { display: grid; transform: none; }
  .topbar .tb-left { display: none; }
}
@media (max-width: 520px) { .nav-cta .btn-primary { display: none; } .topbar .tb-right a + a { display: none; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .04em; margin-bottom: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--dim); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 100px); }
.hero::after { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(110,13,208,.35), rgba(255,60,172,.10) 55%, transparent 75%); pointer-events: none; z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 13.5px; color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--ok); }
.hero-visual { position: relative; aspect-ratio: 772/1024; max-width: 460px; justify-self: end; width: 100%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hero-visual::before { content: ""; position: absolute; inset: 10% 5% 20%; background: var(--grad); filter: blur(80px); opacity: .45; z-index: -1; border-radius: 50%; }
.agent-log {
  position: absolute; left: -12%; bottom: 14%; width: min(320px, 80%);
  background: rgba(21,21,26,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 16px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7;
  box-shadow: var(--shadow-elev);
}
.agent-log .row { display: flex; gap: 10px; color: var(--muted); }
.agent-log .row b { color: var(--ok); font-weight: 500; }
.agent-log .row em { color: var(--pink); font-style: normal; }
.agent-log .hd { display: flex; justify-content: space-between; color: var(--text); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.agent-log .live { color: var(--ok); }
.agent-log .live::before { content: "●"; margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero-simple { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.hero-simple .h1 { font-size: clamp(42px, 5.6vw, 76px); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 360px; }
  .agent-log { left: 0; }
}

/* ---------- Logos marquee ---------- */
.stack { padding-block: 28px; border-block: 1px solid var(--border); background: var(--bg-2); }
.stack-inner { display: flex; align-items: center; gap: 28px; }
.stack-label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); flex: 0 0 auto; max-width: 160px; line-height: 1.5; }
.marquee { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track img { height: 26px; width: auto; filter: grayscale(1) brightness(1.8); opacity: .65; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .stack-label { display: none; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: clamp(22px, 2.4vw, 32px); position: relative; min-width: 0;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s;
}
a.card:hover, .card.hover:hover { border-color: rgba(155,102,255,.45); transform: translateY(-3px); background: var(--surface-2); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--glow); margin-bottom: 20px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card .more { margin-top: 22px; display: inline-flex; gap: 8px; color: var(--glow); font-weight: 600; font-size: 14.5px; }
.card-feature { background: linear-gradient(160deg, rgba(110,13,208,.22), rgba(21,21,26,1) 55%); border-color: rgba(155,102,255,.35); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: rgba(3,231,139,.25); background: rgba(3,231,139,.06); }
.chip.vio { color: var(--glow); border-color: rgba(155,102,255,.3); background: rgba(155,102,255,.08); }
.chip.pink { color: var(--pink); border-color: rgba(255,60,172,.3); background: rgba(255,60,172,.07); }
.price-from { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.price-from b { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--text); letter-spacing: -.01em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.stat { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .v span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

/* ---------- Answer box (GEO / AIO) ---------- */
.answer {
  border: 1px solid rgba(155,102,255,.35); background: linear-gradient(135deg, rgba(110,13,208,.14), rgba(21,21,26,.6));
  border-radius: 20px; padding: 22px 24px; margin-block: 28px;
}
.answer .ah svg { width: 14px; height: 14px; }
.answer .ah { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--glow); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.answer p { margin: 0; color: var(--text); font-size: 16.5px; }
.answer ul { margin: 10px 0 0; padding-left: 18px; color: var(--text); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: s; }
.step { counter-increment: s; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--glow); letter-spacing: .2em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.step .num::before { content: "0" counter(s); font-size: 13px; padding: 4px 9px; border-radius: 8px; border: 1px solid rgba(155,102,255,.35); background: rgba(155,102,255,.08); }
.step .dur { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 6px 0 18px; }
.step ul, .checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.step li, .checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); font-size: 15px; }
.step li::before, .checks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(3,231,139,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303E78B' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.console { background: #0D0D11; border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-elev); }
.console-hd { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.console-hd i { width: 10px; height: 10px; border-radius: 50%; background: #2b2b33; display: inline-block; }
.console-hd i:first-child { background: var(--pink); } .console-hd i:nth-child(2) { background: var(--warn); } .console-hd i:nth-child(3) { background: var(--ok); }
.console-hd span { margin-left: 8px; }
.console pre { margin: 0; padding: 20px; font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: var(--text); overflow-x: auto; }
.console .c { color: var(--dim); } .console .k { color: var(--glow); } .console .s { color: var(--ok); } .console .p { color: var(--pink); }
.chat { padding: 18px; display: grid; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.bubble.u { justify-self: end; background: var(--surface-3); border-bottom-right-radius: 4px; }
.bubble.a { background: linear-gradient(135deg, rgba(110,13,208,.35), rgba(255,60,172,.18)); border: 1px solid rgba(155,102,255,.3); border-bottom-left-radius: 4px; }
.bubble small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--text); }
td { color: var(--muted); }

/* ---------- Testimonials / cases ---------- */
.quote { display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.35; letter-spacing: -.01em; }
.quote .who { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.quote .who strong { display: block; font-size: 15px; }
.quote .who span { font-size: 13.5px; color: var(--muted); }
.kpi-pill { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(3,231,139,.08); color: var(--ok); border: 1px solid rgba(3,231,139,.25); }

.case { display: grid; grid-template-columns: 300px 1fr; gap: 0; padding: 0; overflow: hidden; }
.case-side { padding: 30px; background: linear-gradient(170deg, rgba(110,13,208,.28), rgba(255,60,172,.08)); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.case-kpi .v { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; }
.case-kpi .l { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.case-body { padding: 30px; display: grid; gap: 18px; }
.case-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.case-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.case-cols h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 6px; font-weight: 500; }
.case-cols p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-side { border-right: 0; border-bottom: 1px solid var(--border); } .case-cols { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .3s; }
.faq details[open] { border-color: rgba(155,102,255,.35); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 18px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--glow); line-height: 1; transition: transform .3s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .fa { padding: 0 22px 22px; color: var(--muted); }
.faq .fa p { margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-elev); position: relative; }
.form-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(155,102,255,.6), transparent 40%, transparent 60%, rgba(255,60,172,.45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.form-card h2, .form-card h3 { margin-bottom: 6px; }
.form-card .fsub { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 500; color: var(--muted); }
.field label .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 4px rgba(155,102,255,.15); }
.field input[aria-invalid="true"] { border-color: var(--pink); }
.field .err { font-size: 12.5px; color: var(--pink); min-height: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13.5px; color: var(--muted); cursor: pointer; transition: all .2s; }
.opt input:checked + span { border-color: var(--glow); color: var(--text); background: rgba(155,102,255,.14); }
.opt input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 6px; }
.form-foot .btn { flex: 1 1 auto; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.reassure span::before { content: "✓ "; color: var(--ok); }
.hp { position: absolute; left: -9999px; }
.form-success { text-align: center; padding: 24px 6px; display: grid; gap: 14px; justify-items: center; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(3,231,139,.12); display: grid; place-items: center; color: var(--ok); }
.form-success .tick svg { width: 30px; height: 30px; }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.form-success p { margin: 0; color: var(--muted); max-width: 42ch; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 72px); background: radial-gradient(120% 140% at 0% 0%, rgba(110,13,208,.55), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255,60,172,.35), transparent 50%), var(--surface); border: 1px solid rgba(155,102,255,.3); }
.cta-band .split { align-items: center; }
.cta-band .h2 { margin-bottom: 16px; }

/* ---------- Blog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-group { display: grid; gap: 10px; margin-bottom: 18px; }
.filter-group > span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.fchip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13.5px; color: var(--muted); transition: all .2s; background: transparent; }
.fchip:hover { color: var(--text); border-color: var(--glow); }
.fchip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-body h3 { font-size: 19px; line-height: 1.35; }
.post-body p { font-size: 14.5px; }
.post-meta { display: flex; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: auto; padding-top: 8px; }
.thumb-art { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb-art .lbl { position: absolute; left: 16px; top: 16px; }
.thumb-art .big { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); font-style: italic; color: rgba(255,255,255,.92); letter-spacing: -.02em; text-align: center; line-height: 1; padding: 0 16px; }
.t1 { background: radial-gradient(80% 90% at 20% 20%, rgba(110,13,208,.9), transparent 60%), radial-gradient(70% 80% at 90% 90%, rgba(255,60,172,.6), transparent 60%), #120c1d; }
.t2 { background: radial-gradient(80% 90% at 80% 10%, rgba(255,60,172,.7), transparent 60%), radial-gradient(70% 80% at 10% 100%, rgba(110,13,208,.8), transparent 60%), #160c18; }
.t3 { background: radial-gradient(90% 90% at 50% 0%, rgba(155,102,255,.75), transparent 60%), radial-gradient(60% 60% at 100% 100%, rgba(3,231,139,.35), transparent 60%), #0d0d16; }
.t4 { background: radial-gradient(80% 90% at 0% 100%, rgba(255,60,172,.55), transparent 60%), radial-gradient(70% 80% at 100% 0%, rgba(110,13,208,.85), transparent 60%), #100b18; }
.thumb-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle at center, #000, transparent 75%); mask-image: radial-gradient(circle at center, #000, transparent 75%); }

/* Article */
.article-hero { padding-block: clamp(32px, 5vw, 56px) 32px; }
.article-hero .h1 { font-size: clamp(38px, 5vw, 66px); margin-bottom: 20px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); margin-top: 22px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; flex: 0 0 auto; }
.byline strong { color: var(--text); display: block; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }
.article-aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.toc h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; font-size: 13.5px; color: var(--muted); padding: 6px 8px; border-radius: 8px; line-height: 1.4; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--dim); padding-top: 2px; }
.toc a:hover, .toc a.active { color: var(--text); background: rgba(155,102,255,.1); }
.mobile-toc { display: none; margin-bottom: 24px; }
@media (max-width: 1000px) { .mobile-toc { display: block; } .mobile-toc summary { cursor: pointer; font-weight: 600; } }
.prose { font-size: 17.5px; line-height: 1.78; color: #DCDCE2; max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; color: var(--text); margin-top: 2em; letter-spacing: -.015em; }
.prose h3 { font-size: 21px; color: var(--text); margin-top: 1.6em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--glow); }
.prose strong { color: var(--text); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--glow); font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--text); }
.prose .table-wrap { font-size: 15px; }
.prose .table-wrap table { min-width: 560px; }
.keytakeaways { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; }
.keytakeaways h2 { font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: .18em; text-transform: uppercase; color: var(--glow) !important; margin: 0 0 12px !important; font-weight: 500; }
.keytakeaways ul { margin: 0; }
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 70; }

/* In-article lead magnet */
.promo {
  margin-block: 2.2em !important; border-radius: 22px; padding: clamp(22px, 3vw, 32px);
  background: radial-gradient(100% 120% at 0% 0%, rgba(110,13,208,.45), transparent 60%), radial-gradient(100% 120% at 100% 100%, rgba(255,60,172,.25), transparent 55%), var(--surface);
  border: 1px solid rgba(155,102,255,.4); font-size: 16px; line-height: 1.6; color: var(--text);
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.promo .ptag { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); }
.promo h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.12; margin: 0 !important; }
.promo p { margin: 0; color: var(--muted); }
.promo ul { margin: 0; padding-left: 1.2em; font-size: 15px; color: var(--text); }
.promo .inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.promo .inline-form input { min-height: 50px; padding: 0 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text); width: 100%; min-width: 0; }
.promo .inline-form input:focus { outline: none; border-color: var(--glow); }
.promo .small { font-size: 12px; color: var(--dim); }
@media (max-width: 640px) { .promo .inline-form { grid-template-columns: 1fr; } }
.side-offer { background: linear-gradient(170deg, rgba(110,13,208,.3), var(--surface) 60%); border: 1px solid rgba(155,102,255,.35); border-radius: 18px; padding: 20px; display: grid; gap: 10px; }
.side-offer strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.side-offer p { margin: 0; font-size: 13.5px; color: var(--muted); }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); margin-top: 48px; }
.author-box .avatar { width: 64px; height: 64px; font-size: 20px; }
.author-box p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Formation ---------- */
.course { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.course .post-thumb { aspect-ratio: 16/8; }
.course .play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); position: relative; z-index: 1; }
.course .play svg { width: 22px; height: 22px; margin-left: 3px; }
.course .dur { position: absolute; right: 14px; bottom: 12px; z-index: 1; font-family: var(--mono); font-size: 11px; background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 6px; }
.course .lock { font-family: var(--mono); font-size: 11px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ebook { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; }
.ebook-cover { aspect-ratio: 3/4; border-radius: 6px 12px 12px 6px; position: relative; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 10px 14px 30px -10px rgba(0,0,0,.7), inset 3px 0 0 rgba(255,255,255,.12); overflow: hidden; }
.ebook-cover b { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.05; position: relative; z-index: 1; }
.ebook-cover small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; position: relative; z-index: 1; opacity: .85; }
@media (max-width: 480px) { .ebook { grid-template-columns: 100px 1fr; gap: 16px; } }
.empty { text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 18px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: rgba(5,5,8,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal .form-card { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 20px; line-height: 1; z-index: 2; }

/* ---------- Agents ---------- */
.agent-card { display: flex; flex-direction: column; gap: 16px; }
.agent-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.agent-id { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; }
.agent-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.agent-card dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.agent-card dd { margin: 0; color: var(--muted); }
.agent-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.anatomy { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; position: relative; }
.anatomy .node { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; position: relative; }
.anatomy .node .k { font-family: var(--mono); font-size: 11px; color: var(--glow); letter-spacing: .14em; text-transform: uppercase; }
.anatomy .node h3 { font-size: 17px; margin: 10px 0 8px; }
.anatomy .node p { font-size: 13.5px; color: var(--muted); margin: 0; }
.anatomy .node:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--glow); font-size: 16px; z-index: 1; background: var(--bg); padding: 2px 0; }
@media (max-width: 1000px) { .anatomy { grid-template-columns: 1fr; } .anatomy .node:not(:last-child)::after { content: "↓"; right: auto; left: 24px; top: auto; bottom: -16px; transform: none; } }

/* ---------- Team / about ---------- */
.person { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.person .avatar { width: 72px; height: 72px; font-size: 22px; }
.person h3 { margin-bottom: 2px; }
.person .role { font-family: var(--mono); font-size: 12px; color: var(--glow); letter-spacing: .06em; }
.person p { margin-top: 10px; }
.timeline { display: grid; gap: 0; border-left: 1px solid var(--border-strong); margin-left: 6px; }
.timeline .ti { padding: 0 0 28px 28px; position: relative; }
.timeline .ti::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--glow); }
.timeline .yr { font-family: var(--mono); font-size: 12px; color: var(--glow); }
.timeline h3 { font-size: 17px; margin: 4px 0; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--glow); border: 1px solid var(--border); }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: 15px; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 14.5px; user-select: all; }
.contact-item a:hover { color: var(--text); }
.copy { font-family: var(--mono); font-size: 11px; color: var(--glow); margin-left: 6px; user-select: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot-brand img { height: 34px; width: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 0 0 16px; max-width: 34ch; }
.foot-col h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--muted); }
.foot-col a:hover { color: var(--text); }
.foot-nap { font-style: normal; font-size: 13.5px; color: var(--muted); display: grid; gap: 10px; }
.foot-nap b { color: var(--text); font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--muted); }
.socials a:hover { color: var(--text); border-color: var(--glow); }
.socials svg { width: 17px; height: 17px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--dim); }
.foot-bottom a { color: var(--muted); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Floating ---------- */
.wa-float { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1fae5b; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(31,174,91,.6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; color: #fff; }
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: rgba(10,10,13,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .4s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; }
  .wa-float { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: 0; }
}

/* ---------- Reveal (visible at rest) ---------- */
.reveal { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.js .reveal.pre { transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal.pre { transform: none; }
}

/* misc */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kicker-num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mb-0 { margin-bottom: 0; }
.stack-v { display: grid; gap: 16px; }
.sticky-col { position: sticky; top: 110px; }
@media (max-width: 900px) { .sticky-col { position: static; } }
.note { font-size: 13px; color: var(--dim); }

/* split cards (services overview, featured post) */
[data-split="1"] { grid-template-columns: 1fr !important; }
@media (min-width: 860px) { [data-split="1"] { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) !important; } }
.cur { color: var(--text) !important; }

/* =========================================================
   v4.1 — Typographie du site actuel
   H1 + navigation : Sora 700 · H2/H3/boutons : Helvetica Neue 700 (italique violette)
   Textes : Inter 300 · Sur-titres : Inter 600 espacé
   ========================================================= */
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; }
p, li, dd, .lead, .muted, td, label, .fsub, .faq .fa, .prose { font-family: var(--sans); }
p, .lead, .prose, .faq .fa, .card p, .post-body p { font-weight: 300; }
.prose strong, .answer strong, td strong, b, strong { font-weight: 600; }
.h1, h1.h1, .hero-simple .h1, .article-hero .h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04;
}
.h1 { font-size: clamp(38px, 5.2vw, 66px); }
.hero-simple .h1 { font-size: clamp(36px, 4.6vw, 60px); }
.article-hero .h1 { font-size: clamp(32px, 4vw, 52px); }
.h1 i { font-style: normal; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.h2, .prose h2, .case-body h3, .form-success h3, .promo h3, .side-offer strong, .prose blockquote, .ebook-cover b, .thumb-art .big {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em;
}
.h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); }
.h2 i, .h3 i, .prose h2 i { font-style: italic; color: var(--glow); }
.h3, .h4 { font-family: var(--serif); font-weight: 700; }
.stat .v, .case-kpi .v, .price-from b { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
.stat .v { font-size: clamp(34px, 3.8vw, 52px); }
.case-kpi .v { font-size: 44px; }
.price-from b { font-size: 21px; }
.quote blockquote { font-family: var(--sans); font-weight: 400; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.thumb-art .big { font-style: normal; font-size: clamp(28px, 3vw, 42px); }
.eyebrow, .stack-label, .filter-group > span, .foot-col h2, .toc h2, .keytakeaways h2, .answer .ah, .promo .ptag, .case-cols h4, .anatomy .node .k, .stat .l, .agent-card dt, .timeline .yr {
  font-family: var(--sans) !important; font-weight: 600; letter-spacing: 0.14em;
}
.menu > li > a, .menu > li > button { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.01em; }
.btn { font-family: var(--serif); font-weight: 700; }
.mega strong { font-family: var(--serif); font-weight: 700; }

/* Mega-menu : centré sur la barre de navigation, jamais coupé */
.nav { position: relative; }
@media (min-width: 1201px) {
  .menu > li.has-mega { position: static; }
  .mega { left: 50%; top: calc(100% - 4px); width: min(820px, calc(100vw - 40px)); max-height: calc(100vh - 150px); overflow-y: auto; transform: translateX(-50%) translateY(6px); }
  .has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { transform: translateX(-50%) translateY(0); }
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
}

/* =========================================================
   Médias d'arrière-plan (images & vidéos) pour casser le texte
   ========================================================= */
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.bg-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bg-media img, .bg-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-media::after { content: ""; position: absolute; inset: 0; }
.ov-full::after { background: linear-gradient(180deg, rgba(10,10,13,.82), rgba(10,10,13,.72) 40%, rgba(10,10,13,.9)); }
.ov-soft::after { background: linear-gradient(180deg, rgba(10,10,13,.55), rgba(10,10,13,.45) 45%, rgba(10,10,13,.92)); }
.ov-left::after { background: linear-gradient(90deg, rgba(10,10,13,.97) 0%, rgba(10,10,13,.86) 38%, rgba(10,10,13,.35) 75%, rgba(10,10,13,.55) 100%), linear-gradient(0deg, rgba(10,10,13,1) 0%, transparent 30%); }
.ov-right::after { background: linear-gradient(270deg, rgba(10,10,13,.97) 0%, rgba(10,10,13,.86) 40%, rgba(10,10,13,.35) 78%, rgba(10,10,13,.6) 100%); }
.ov-band::after { background: linear-gradient(0deg, rgba(10,10,13,1) 0%, rgba(10,10,13,.25) 45%, rgba(10,10,13,.6) 100%); }
@media (max-width: 900px) { .ov-left::after, .ov-right::after { background: linear-gradient(180deg, rgba(10,10,13,.88), rgba(10,10,13,.8) 50%, rgba(10,10,13,.95)); } }
@media (prefers-reduced-motion: reduce) { .bg-media video { display: none; } }
.has-bg .card { background: rgba(21,21,26,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.has-bg .stats { background: rgba(21,21,26,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Bandeau image plein écran entre deux sections */
.media-band { min-height: clamp(320px, 46vw, 560px); display: flex; align-items: flex-end; border-block: 1px solid var(--border); }
.media-band .wrap { padding-block: clamp(40px, 6vw, 72px); }
.media-band .band-text { max-width: 640px; }
.media-band .band-text .h2 { margin-bottom: 14px; }
.media-band .band-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Visuel illustratif dans une colonne */
.figure { position: relative; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-elev); aspect-ratio: 4/3; max-width: 100%; }
.figure img, .figure video { width: 100%; height: 100%; object-fit: cover; }
.figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,13,.75)); }
.figure figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-size: 13.5px; color: var(--text); }

/* Vignettes photo (articles, formations, cas) */
.thumb-photo { position: absolute; inset: 0; }
.thumb-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.thumb-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,13,.15), rgba(10,10,13,.55)), linear-gradient(135deg, rgba(110,13,208,.25), transparent 60%); }
a.card:hover .thumb-photo img, .card.hover:hover .thumb-photo img { transform: scale(1.05); }
.post-thumb .lbl, .post-thumb .play, .post-thumb .dur { z-index: 2; }
.post-thumb .lbl { position: absolute; left: 16px; top: 16px; }
.post-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.case-side { position: relative; isolation: isolate; }
.case-side .thumb-photo { z-index: -1; }
.case-side .thumb-photo::after { background: linear-gradient(170deg, rgba(10,10,13,.6), rgba(10,10,13,.92) 70%), linear-gradient(135deg, rgba(110,13,208,.35), transparent 60%); }

/* Photo fondateur */
.person .photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(155,102,255,.5); }
.person { grid-template-columns: 96px 1fr; }
.author-box .photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.byline .photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ph { display: inline-block; flex: none; line-height: 0; }
.person .avatar { width: 96px; height: 96px; font-size: 26px; }
.article-hero.hero { padding-block: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 56px); }
.article-hero .lead, .hero-simple .lead { color: #C9C9D1; }
.menu > li > a, .menu > li > button { white-space: nowrap; }
@media (min-width: 1201px) { .menu > li > a, .menu > li > button { padding: 10px 11px; } }
.mega-foot .link-arrow { white-space: nowrap; flex: none; }
