/* =============================================================================
 * Clustraly  site vitrine (mobile-first). Feuille partagée, mise en cache.
 * Polices auto-hébergées (subset latin). Aucun asset tiers.
 * ========================================================================== */

/* ---- FONTS (self-hosted, cached once for the whole site) ---- */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/syne-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-400.woff2') format('woff2');
}

/* ---- TOKENS ---- */
:root {
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-body:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono:
    'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --bg: #f5f6fb;
  --bg-2: #eceffa;
  --surface: #fff;
  --surface-2: #f1f3fb;
  --ink: #12131c;
  --ink-soft: #3d4256;
  --muted: #666c82;
  --faint: #8b90a4;
  --border: #e3e6f2;
  --hair: #edeff7;
  --brand-1: #5b57f0;
  --brand-2: #0aa9c9;
  --brand-deep: #4740d6;
  --brand-ink: #413ac9;
  --brand-bg: #ecebfe;
  --glow: rgba(91, 87, 240, 0.28);
  --gold: #c2620a;
  --gold-soft: #fbe6cf;
  --shadow-s:
    0 1px 2px rgba(20, 24, 50, 0.05), 0 4px 12px -6px rgba(20, 24, 50, 0.1);
  --shadow-m:
    0 2px 6px rgba(20, 24, 50, 0.06), 0 24px 48px -24px rgba(20, 24, 50, 0.24);
  --radius: 16px;
  --maxw: 1200px;
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080910;
    --bg-2: #0c0e18;
    --surface: #111320;
    --surface-2: #161a29;
    --ink: #eef1fa;
    --ink-soft: #c3c8db;
    --muted: #8b91a7;
    --faint: #666c82;
    --border: #20233a;
    --hair: #191c2e;
    --brand-1: #8b93ff;
    --brand-2: #38d6f0;
    --brand-deep: #6f74ff;
    --brand-ink: #aab0ff;
    --brand-bg: #161634;
    --glow: rgba(139, 147, 255, 0.42);
    --gold: #fbbf24;
    --gold-soft: #2f2510;
    --shadow-s:
      0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
    --shadow-m:
      0 2px 8px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme='light'] {
  --bg: #f5f6fb;
  --bg-2: #eceffa;
  --surface: #fff;
  --surface-2: #f1f3fb;
  --ink: #12131c;
  --ink-soft: #3d4256;
  --muted: #666c82;
  --faint: #8b90a4;
  --border: #e3e6f2;
  --hair: #edeff7;
  --brand-1: #5b57f0;
  --brand-2: #0aa9c9;
  --brand-deep: #4740d6;
  --brand-ink: #413ac9;
  --brand-bg: #ecebfe;
  --glow: rgba(91, 87, 240, 0.28);
  --gold: #c2620a;
  --gold-soft: #fbe6cf;
  --shadow-s:
    0 1px 2px rgba(20, 24, 50, 0.05), 0 4px 12px -6px rgba(20, 24, 50, 0.1);
  --shadow-m:
    0 2px 6px rgba(20, 24, 50, 0.06), 0 24px 48px -24px rgba(20, 24, 50, 0.24);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #080910;
  --bg-2: #0c0e18;
  --surface: #111320;
  --surface-2: #161a29;
  --ink: #eef1fa;
  --ink-soft: #c3c8db;
  --muted: #8b91a7;
  --faint: #666c82;
  --border: #20233a;
  --hair: #191c2e;
  --brand-1: #8b93ff;
  --brand-2: #38d6f0;
  --brand-deep: #6f74ff;
  --brand-ink: #aab0ff;
  --brand-bg: #161634;
  --glow: rgba(139, 147, 255, 0.42);
  --gold: #fbbf24;
  --gold-soft: #2f2510;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  --shadow-m:
    0 2px 8px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---- RESET / BASE (mobile-first) ---- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--brand-1);
  color: #fff;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: var(--brand-ink);
  text-decoration: none;
}
img,
svg,
canvas {
  max-width: 100%;
  display: block;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  color: var(--brand-ink);
  padding: 0.08em 0.38em;
  border-radius: 5px;
}
:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 5px;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.serif {
  font-family: var(--font-serif);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip:focus {
  left: 0;
}
@media (min-width: 820px) {
  .wrap {
    padding: 0 24px;
  }
  body {
    font-size: 16.5px;
  }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    background 0.16s;
  white-space: nowrap;
  color: #fff;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow:
    0 8px 22px -8px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px -8px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-s);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--brand-1);
  color: var(--brand-ink);
}
.btn svg {
  width: 17px;
  height: 17px;
}

/* ---- HEADER ---- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.hd.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border);
}
.hd-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand .ly {
  color: var(--brand-ink);
}
.nav {
  display: none;
  gap: 22px;
  margin-left: 10px;
}
.nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav a:hover {
  color: var(--ink);
}
.nav a[aria-current='page'] {
  color: var(--brand-ink);
}
.hd-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.15s;
}
.icon-btn:hover {
  color: var(--brand-ink);
  border-color: var(--brand-1);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.theme-dark-only {
  display: none;
}
:root[data-theme='dark'] .theme-dark-only {
  display: block;
}
:root[data-theme='dark'] .theme-light-only {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-dark-only {
    display: block;
  }
  :root:not([data-theme='light']) .theme-light-only {
    display: none;
  }
}
.hd-cta .btn {
  display: none;
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .hd-cta .btn {
    display: inline-flex;
  }
}

/* ---- HERO (home) ---- */
.hero {
  padding: 44px 0 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-s);
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--glow);
}
.hero-badge span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero h1 {
  font-size: clamp(32px, 7vw, 56px);
}
.hero h1 em {
  font-style: normal;
}
.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 20px 0 8px;
}
.hero-lead b {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}
.hero-trust {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.hero-trust b {
  color: var(--brand-ink);
  font-weight: 500;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 70% 20%, var(--brand-bg), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-m);
}
.hero-visual canvas {
  width: 100%;
  height: 100%;
}
.hv-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hv-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 45%, var(--glow), transparent 70%);
  opacity: 0.5;
  mix-blend-mode: screen;
}
@media (min-width: 940px) {
  .hero {
    padding: 72px 0 52px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
  }
}

/* ---- STATS ---- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.stats-in {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.stat {
  background: var(--bg);
  padding: 24px 18px;
  text-align: center;
}
.stat .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
}
@media (min-width: 760px) {
  .stats-in {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- SECTIONS ---- */
.sec {
  padding: 60px 0;
}
.sec-head {
  margin-bottom: 36px;
}
.sec-head.center {
  text-align: center;
  margin-inline: auto;
  max-width: 720px;
}
.sec-head .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(26px, 4.4vw, 40px);
}
.sec-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 62ch;
}
.sec-head.center p {
  margin-inline: auto;
}
@media (min-width: 820px) {
  .sec {
    padding: 78px 0;
  }
}

/* pipeline */
.pipe {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 15px;
  box-shadow: var(--shadow-s);
  counter-increment: step;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.step:hover {
  transform: translateY(-4px);
  z-index: 2;
  border-color: var(--brand-1);
  box-shadow: var(--shadow-m);
}
.step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-ink);
  font-weight: 500;
}
.step .num::before {
  content: '0' counter(step);
}
.step h3 {
  font-size: 15.5px;
  margin: 9px 0 5px;
}
.step p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.step .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-bg);
  color: var(--brand-ink);
}
.step .ic svg {
  width: 19px;
  height: 19px;
}
.pipe-flow {
  height: 3px;
  background: var(--hair);
  border-radius: 3px;
  margin-top: 22px;
  position: relative;
  overflow: hidden;
}
.pipe-flow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: var(--grad);
  border-radius: 3px;
  animation: flow 3.4s linear infinite;
}
@keyframes flow {
  to {
    left: 110%;
  }
}
@media (min-width: 680px) {
  .pipe {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1040px) {
  .pipe {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
  }
  .step {
    border-radius: 0;
  }
  .step:first-child {
    border-radius: 14px 0 0 14px;
  }
  .step:last-child {
    border-radius: 0 14px 14px 0;
  }
  .step + .step {
    border-left: none;
  }
}

/* feature grid / cards */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-s);
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
  position: relative;
  overflow: hidden;
  color: inherit;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: color-mix(in srgb, var(--brand-1) 40%, var(--border));
}
.card:hover::before {
  transform: scaleX(1);
}
.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-bg);
  color: var(--brand-ink);
  margin-bottom: 16px;
}
.card .ic svg {
  width: 23px;
  height: 23px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.card .more {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.card:hover .more svg {
  transform: translateX(3px);
}
.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--hair);
}
.tag.new {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: transparent;
  font-weight: 500;
}

/* philosophy band */
.philo {
  background: linear-gradient(135deg, var(--brand-deep), #0a7fa0);
  color: #fff;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.philo::before,
.philo::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.philo::before {
  width: 320px;
  height: 320px;
  background: #8b93ff;
  top: -120px;
  left: -60px;
}
.philo::after {
  width: 280px;
  height: 280px;
  background: #38d6f0;
  bottom: -120px;
  right: -40px;
}
.philo .wrap {
  position: relative;
}
.philo .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}
.philo h2 {
  font-size: clamp(24px, 4.4vw, 38px);
  color: #fff;
  margin: 14px auto 16px;
  max-width: 18ch;
}
.philo p {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto;
}

/* ---- ARTICLE (feature child pages) ---- */
.crumb {
  padding: 18px 0 0;
}
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.crumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.crumb li + li::before {
  content: '/';
  color: var(--faint);
}
.crumb a {
  color: var(--brand-ink);
}
.crumb [aria-current] {
  color: var(--ink-soft);
}
.article {
  padding: 20px 0 40px;
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.article-head .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.article-head h1 {
  font-size: clamp(30px, 6vw, 46px);
  margin-bottom: 0;
}
.lead {
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 18px;
  font-family: var(--font-serif);
}
.lead b,
.lead strong {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
}
.tldr {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-1);
  border-radius: 12px;
  box-shadow: var(--shadow-s);
}
.tldr h2 {
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 12px;
}
.tldr ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tldr li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.tldr li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
}
.prose h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 38px 0 14px;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-size: 18px;
  margin: 26px 0 10px;
}
.prose p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.prose p b,
.prose p strong {
  color: var(--ink);
  font-weight: 600;
}
.prose ul.bul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 18px;
}
.prose ul.bul li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}
.prose ul.bul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad);
}
.prose a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-1) 40%, transparent);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--brand-1);
}
.faq-sec {
  margin-top: 40px;
}
.faq-sec > h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  margin-bottom: 16px;
}
.faqlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: '';
  position: absolute;
  background: var(--brand-1);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq summary .plus::before {
  width: 12px;
  height: 2.4px;
}
.faq summary .plus::after {
  width: 2.4px;
  height: 12px;
  transition: transform 0.25s;
}
.faq[open] summary .plus::after {
  transform: translate(-50%, -50%) scaleY(0);
}
.faq[open] summary {
  color: var(--brand-ink);
}
.faq .a {
  padding: 0 18px 16px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-s);
}
.panel h2 {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.rel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--hair);
}
.rel a:last-child {
  border-bottom: none;
}
.rel a:hover {
  color: var(--brand-ink);
}
.rel a .ar {
  margin-left: auto;
  color: var(--brand-ink);
}
.panel.cta {
  background: linear-gradient(135deg, var(--brand-deep), #0a7fa0);
  color: #fff;
  border: none;
}
.panel.cta h2 {
  color: rgba(255, 255, 255, 0.8);
}
.panel.cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  line-height: 1.5;
}
.panel.cta .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  width: 100%;
  justify-content: center;
}
.panel.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}
.backhome {
  margin-top: 14px;
  font-size: 14px;
}
@media (min-width: 960px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
  }
  .aside {
    position: sticky;
    top: 82px;
  }
}

/* ---- FINAL CTA + FOOTER ---- */
.final {
  text-align: center;
}
.final-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 24px;
  box-shadow: var(--shadow-m);
  position: relative;
  overflow: hidden;
}
.final-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 90% at 50% 0%,
    var(--brand-bg),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
}
.final-box > * {
  position: relative;
}
.final h2 {
  font-size: clamp(26px, 4.6vw, 42px);
  max-width: 18ch;
  margin: 0 auto 16px;
}
.final p {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 52ch;
  margin: 0 auto 26px;
}
.final .hero-cta {
  justify-content: center;
}
.ft {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 40px 0 30px;
}
.ft-in {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ft .brand {
  margin-bottom: 10px;
}
.ft .tl {
  font-size: 13px;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.5;
}
.ft-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.ft-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
  font-weight: 500;
}
.ft-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.ft-col a:hover {
  color: var(--brand-ink);
}
.ft-legal {
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
}
@media (min-width: 760px) {
  .ft-in {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ---- FOOTER v2 : maillage complet des 22 modules ---- */
.ft-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.ft-brand {
  max-width: 42ch;
}
.ft-nav {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}
.ft-modules {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.ft-modtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 20px;
  font-weight: 500;
}
.ft-modgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
}
@media (min-width: 640px) {
  .ft-modgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .ft-modgrid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.ft-note {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 90ch;
}
@media (min-width: 760px) {
  .ft-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ---- REVEAL / MOTION ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .reveal.d1 {
  transition-delay: 0.07s;
}
.js .reveal.d2 {
  transition-delay: 0.14s;
}
.js .reveal.d3 {
  transition-delay: 0.21s;
}
.js .reveal.d4 {
  transition-delay: 0.28s;
}
[id] {
  scroll-margin-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .pipe-flow::after {
    display: none;
  }
}
