/* ═══════════════════════════════════════════════════════════════════════
   BrandVolt - Base layer
   Tokens, body, container, buttons, nav, type - shared by all pages.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand (verrouillé - voir doc cadrage V1.1) */
  --brand-amber:      #fbbf24;
  --brand-amber-700:  #f59e0b;

  /* Neutrals - zinc ramp */
  --zinc-50:  #FAFAFA;
  --zinc-100: #F5F5F5;
  --zinc-200: #E4E4E7;
  --zinc-300: #D4D4D8;
  --zinc-400: #A1A1AA;
  --zinc-500: #71717A;
  --zinc-600: #52525B;
  --zinc-700: #3F3F46;
  --zinc-800: #27272A;
  --zinc-900: #18181B;
  --black:    #0A0A0A;

  /* Light mode */
  --bg:        var(--zinc-50);
  --bg-soft:   #FFFFFF;
  --bg-elev:   #FFFFFF;
  --ink:       var(--black);
  --ink-2:     var(--zinc-600);
  --ink-3:     var(--zinc-500);
  --ink-4:     var(--zinc-400);
  --line:      var(--zinc-200);
  --line-strong: var(--zinc-300);

  /* Accent */
  --accent:        var(--brand-amber);
  --accent-hover:  var(--brand-amber-700);
  --accent-ink:    var(--black);
  --accent-soft:   rgba(251, 191, 36, 0.12);
  --accent-ring:   rgba(251, 191, 36, 0.32);

  /* Data viz */
  --positive: #10B981;
  --negative: #EF4444;

  /* Spacing */
  --pad-section-y: 120px;
  --pad-card: 36px;
  --gap-card: 24px;
  --gap-row: 14px;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-card: 0 1px 0 rgba(10,10,10,0.04), 0 0 0 1px rgba(10,10,10,0.04);
  --shadow-pop:  0 24px 60px -28px rgba(10,10,10,0.18), 0 0 0 1px rgba(10,10,10,0.06);
}

[data-theme="dark"] {
  --bg:        var(--black);
  --bg-soft:   var(--zinc-900);
  --bg-elev:   #131316;
  --ink:       var(--zinc-100);
  --ink-2:     var(--zinc-300);
  --ink-3:     var(--zinc-400);
  --ink-4:     var(--zinc-500);
  --line:      var(--zinc-800);
  --line-strong: var(--zinc-700);

  --shadow-card: 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-pop:  0 24px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
}

[data-density="compact"] {
  --pad-section-y: 84px;
  --pad-card: 26px;
  --gap-card: 18px;
  --gap-row: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 72px);
}

/* Eyebrow / pill / mono */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink-4); }
.btn-link {
  background: transparent;
  color: var(--ink-2);
  padding: 0;
  height: auto;
  border: none;
  font-weight: 500;
}
.btn-link:hover { color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

.display {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

hr.line {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

section {
  padding: var(--pad-section-y) 0;
  border-top: 1px solid var(--line);
}
section:first-of-type { border-top: none; }

/* Nav (shared) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand-logo { display: inline-flex; align-items: center; height: 28px; }
.brand-logo svg { height: 28px; width: auto; color: var(--ink); }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--ink-2);
}
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 900px) {
  .nav-links { display: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Section head (shared layout) */
.section-head {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.head-left .eyebrow { display: block; margin-bottom: 18px; }
.section-title {
  font-size: clamp(36px, 4.4vw, 56px);
  margin: 0;
}
.head-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.head-sub a { color: var(--ink); }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Direction variants (shared)
   ═══════════════════════════════════════════════════════════════════════ */

[data-direction="editorial"] .hero-title,
[data-direction="editorial"] .section-title,
[data-direction="editorial"] .cta-title,
[data-direction="editorial"] .transp-title {
  letter-spacing: -0.045em;
  font-weight: 600;
}
[data-direction="editorial"] .hero-title > span:last-child,
[data-direction="editorial"] .section-title > span:last-child,
[data-direction="editorial"] .cta-title > span:last-child,
[data-direction="editorial"] .transp-title > span:last-child {
  font-style: italic;
  font-weight: 500;
}

[data-direction="bold"] .hero-title,
[data-direction="bold"] .section-title,
[data-direction="bold"] .cta-title {
  font-weight: 700;
  letter-spacing: -0.045em;
}
[data-direction="bold"] .hero {
  position: relative;
}
[data-direction="bold"] .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Sélecteur de langue (Nav) */
.lang-tog { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-tog button { font: inherit; font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 5px 9px; border: none; background: transparent; color: var(--ink-3); cursor: pointer; transition: all .12s; }
.lang-tog button.on { background: var(--ink); color: var(--accent); }
.lang-tog button:not(.on):hover { color: var(--ink); }
