/* ============================================================
   WAVEAUTH — Design System v2
   Charte officielle : Persian Blue / Rich Black / Beige / Pale
   Typo : Source Code (monospace) + Cormorant Garamond (serif logo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');

/* --- Tokens --- */
:root {
  /* Palette officielle */
  --blue:        #2A4395;
  --blue-deep:   #1F3375;
  --blue-soft:   #3B57B3;
  --black:       #06130A;
  --black-soft:  #1A2218;
  --beige:       #DCCBC0;
  --beige-deep:  #C9B5A5;
  --pale:        #FDFAF8;
  --pale-warm:   #F6F0EA;
  --white:       #FFFFFF;
  --ink-muted:   #6F6C68;
  --line:        #E6DED5;
  --line-blue:   rgba(42, 67, 149, 0.18);

  /* Typo */
  --font-mono:   'Source Code Pro', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif:  'Cormorant Garamond', 'Times New Roman', Georgia, serif;

  /* Échelles */
  --max-w: 1320px;
  --nav-h: 76px;
  --section-py: 120px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --t: 0.25s cubic-bezier(.4,0,.2,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-mono);
  background: var(--pale);
  color: var(--black);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--pale); }

/* --- Skip link --- */
.skip-link {
  position: absolute; top: -999px; left: 0;
  background: var(--black); color: var(--pale);
  padding: 12px 20px; z-index: 9999;
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.skip-link:focus { top: 0; }

/* --- Typography utility classes --- */
.serif-blue {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--blue);
}

/* --- CTA Band typography --- */
.cta-band .cta-title { color: var(--pale); }
.cta-band .cta-lead { color: rgba(253, 250, 248, 0.78); }
.cta-band .cta-btn-outline { color: var(--pale); border-color: var(--pale); }
.cta-band .cta-btn-outline:hover { background: var(--pale); color: var(--black); border-color: var(--pale); }

/* --- Solution page specific styles --- */
.solution-nav {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.solution-nav a {
  background: var(--pale);
  padding: 18px 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
  transition: background var(--t), color var(--t);
}
.solution-nav a:first-child { color: var(--blue); }
.solution-nav a:hover { background: var(--pale-warm); color: var(--blue); }

.solution-section { padding: 60px 0 var(--section-py); }
.mono-label-mb { margin-bottom: 8px; }
.mock-divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin: 12px 0;
}
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.flex-column { display: flex; flex-direction: column; gap: 10px; }
.export-item {
  padding: 16px 18px;
  border: 1.5px solid var(--blue);
  background: var(--pale);
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-divider { text-align: center; margin-top: 48px; height: 0; border: none; }

/* --- Cookie bar title --- */
.cookie-title {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before {
  content: ""; width: 24px; height: 1px; background: currentColor;
}
.kicker--muted { color: var(--ink-muted); }
.kicker--beige { color: var(--beige-deep); }
.kicker--pale { color: rgba(253, 250, 248, 0.7); }
.kicker--pale::before { background: rgba(253, 250, 248, 0.7); }

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}
.h1 {
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.h3 {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: var(--black-soft);
  max-width: 60ch;
  font-weight: 400;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ============================================================
   LAYOUT GENERIC
   ============================================================ */
.container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
section { position: relative; }
.section-pad { padding: var(--section-py) 0; }

.bg-pale  { background: var(--pale); color: var(--black); }
.bg-warm  { background: var(--pale-warm); color: var(--black); }
.bg-white { background: var(--white); color: var(--black); }
.bg-blue  { background: var(--blue); color: var(--pale); }
.bg-beige { background: var(--beige); color: var(--black); }
.bg-black { background: var(--black); color: var(--pale); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo img { width: 38px; height: 38px; object-fit: contain; }
.nav-logo .wordmark {
  display: flex; flex-direction: column; line-height: 0.95;
}
.nav-logo .wm-top {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--black);
}
.nav-logo .wm-bot {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  font-weight: 500;
  color: var(--blue);
  margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--black-soft);
  text-transform: uppercase;
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--t);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn--solid {
  background: var(--blue); color: var(--pale);
  border-color: var(--blue);
}
.btn--solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--outline {
  background: transparent; color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--pale); }
.btn--dark {
  background: var(--black); color: var(--pale);
  border-color: var(--black);
}
.btn--dark:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost {
  background: transparent; color: var(--black);
  border-color: var(--black);
}
.btn--ghost:hover { background: var(--black); color: var(--pale); }
.btn--white {
  background: var(--pale); color: var(--blue);
  border-color: var(--pale);
}
.btn--white:hover { background: transparent; color: var(--pale); border-color: var(--pale); }
.btn--lg { padding: 16px 28px; font-size: 13px; }
.btn .arr { transition: transform var(--t); }
.btn:hover .arr { transform: translateX(4px); }

/* Hero button adjustments for responsiveness */
.hero-actions .btn {
  white-space: normal;
}

@media (max-width: 960px) {
  .hero-actions .btn {
    white-space: normal;
  }
}

/* Navigation buttons keep nowrap */
.nav-links .btn,
.nav-cta .btn,
.mobile-nav-cta .btn {
  white-space: nowrap;
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--black); transition: transform var(--t), opacity var(--t);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--pale); z-index: 99;
  padding: 32px 24px;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 18px 8px;
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-nav-cta {
  margin-top: 28px; display: flex; flex-direction: column; gap: 12px;
}
.mobile-nav .mobile-nav-cta .btn { justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   HERO — block composition, charte fidèle
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0 clamp(80px, 8vw, 140px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text { display: flex; flex-direction: column; gap: 32px; max-width: 640px; }
.hero h1 .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}
.hero h1 .blue { color: var(--blue); }
.hero-sub {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--black-soft);
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; width: 100%; }

/* Block-composition visual */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 420px;
  overflow: hidden;
}
.hv-block {
  position: absolute;
  border: 1px solid transparent;
}
.hv-block--blue1 { top: 0; right: 0; width: 64%; height: 38%; background: var(--blue); }
.hv-block--blue2 { bottom: 6%; left: 0; width: 42%; height: 30%; background: var(--blue); }
.hv-block--beige { bottom: 0; right: 22%; width: 38%; height: 26%; background: var(--beige); }
.hv-block--black { top: 22%; left: 18%; width: 24%; height: 24%; background: var(--black); }
.hv-block--card {
  top: 12%; left: 30%;
  width: 56%; height: 56%;
  background: var(--pale);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 60px -20px rgba(6, 19, 10, 0.18);
}
.hv-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hv-card-head .name { font-size: 11px; letter-spacing: 0.15em; font-weight: 600; text-transform: uppercase; }
.hv-card-head .status { font-size: 10px; letter-spacing: 0.15em; color: var(--blue); font-weight: 600; text-transform: uppercase; }
.hv-row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 11px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.hv-row span:first-child { color: var(--ink-muted); letter-spacing: 0.05em; }
.hv-row span:last-child { font-weight: 600; color: var(--black); }
.hv-row .ok { color: var(--blue); }
.hv-row .warn { color: #B5651D; }
.hv-pill {
  margin-top: auto;
  align-self: flex-start;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--blue); border: 1px solid var(--blue);
  padding: 5px 10px;
}

/* Hero ticker */
.hero-ticker {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex; gap: 56px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.ticker-item::after {
  content: ""; width: 4px; height: 4px; background: var(--blue);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-band {
  background: var(--pale);
  border-block: 1px solid var(--line);
  padding: 40px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  padding: 0 8px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.stat-item:first-child { border-left: 1px solid var(--blue); }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--black);
  display: block;
  margin-bottom: 10px;
}
.stat-num .unit { color: var(--blue); }
.stat-lbl {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   PROBLEM / BENEFITS — Grid of cards (technical)
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 { max-width: 16ch; }
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head--center .kicker { justify-self: center; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-3 > * { background: var(--pale); }
.bg-blue .grid-3 { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.18); }
.bg-blue .grid-3 > * { background: var(--blue); }
.bg-black .grid-3 { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.12); }
.bg-black .grid-3 > * { background: var(--black); }

.tile {
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 280px;
  transition: background var(--t), transform var(--t);
  position: relative;
}
.tile:hover { background: var(--pale-warm); }
.bg-blue .tile:hover { background: var(--blue-deep); }
.bg-black .tile:hover { background: var(--black-soft); }
.tile-num {
  font-size: 11px; letter-spacing: 0.2em; font-weight: 600;
  color: var(--blue);
}
.bg-blue .tile-num, .bg-black .tile-num { color: var(--beige); }
.tile-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.bg-blue .tile-icon, .bg-black .tile-icon { border-color: var(--beige); color: var(--beige); }
.tile h3 {
  font-size: 17px; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.005em;
}
.bg-blue .tile h3, .bg-black .tile h3 { color: var(--pale); }
.tile p {
  font-size: 13.5px; line-height: 1.65; color: var(--black-soft);
}
.bg-blue .tile p, .bg-black .tile p { color: rgba(253,250,248,0.7); }

/* ============================================================
   HOW IT WORKS — Numbered horizontal flow
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 48px;
}
.flow::before {
  content: ""; position: absolute;
  top: 26px; left: 0; right: 0; height: 1px;
  background: var(--line);
  z-index: 0;
}
.flow-step {
  padding: 0 24px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
  border-left: 1px dashed var(--line);
  padding-left: 28px;
}
.flow-step:first-child { border-left: 0; padding-left: 0; }
.flow-num {
  width: 52px; height: 52px;
  background: var(--pale);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.05em;
}
.bg-blue .flow::before { background: rgba(255,255,255,0.2); }
.bg-blue .flow-step { border-left-color: rgba(255,255,255,0.2); }
.bg-blue .flow-num { background: var(--blue); border-color: var(--beige); color: var(--beige); }
.flow-step h3 { font-size: 18px; }
.flow-step p { font-size: 13.5px; color: var(--black-soft); line-height: 1.65; }
.bg-blue .flow-step h3 { color: var(--pale); }
.bg-blue .flow-step p { color: rgba(253,250,248,0.7); }

/* ============================================================
   FEATURE ROW (solution page)
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: 0; }
.feature-row.reverse > .feature-text { order: 2; }
.feature-row.reverse > .feature-visual { order: 1; }
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blue); font-weight: 600;
  margin-bottom: 18px;
}
.feature-title {
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 20px;
}
.feature-body {
  font-size: 16px; line-height: 1.75;
  color: var(--black-soft); margin-bottom: 28px;
  max-width: 50ch;
}
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 14px; color: var(--black-soft);
  padding: 4px 0;
}
.feature-list li::before {
  content: "→";
  color: var(--blue); font-weight: 600;
  font-family: var(--font-mono);
}

/* Visual mockups */
.feature-visual {
  background: var(--pale-warm);
  border: 1px solid var(--line);
  padding: 36px;
  min-height: 360px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.feature-visual::before {
  content: ""; position: absolute;
  top: -1px; left: -1px; width: 24px; height: 24px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}
.feature-visual::after {
  content: ""; position: absolute;
  bottom: -1px; right: -1px; width: 24px; height: 24px;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}

.mock-doc {
  background: var(--pale);
  border: 1px solid var(--line);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
}
.mock-doc-icon {
  width: 32px; height: 32px;
  background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  color: var(--black);
  letter-spacing: 0.05em;
}
.mock-doc-content { flex: 1; min-width: 0; }
.mock-doc-name {
  font-size: 12.5px; font-weight: 600; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-doc-meta { font-size: 10.5px; color: var(--ink-muted); letter-spacing: 0.04em; }
.mock-badge {
  font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 8px; flex-shrink: 0;
  border: 1px solid currentColor;
}
.mock-badge--ok { color: var(--blue); }
.mock-badge--warn { color: #B5651D; }

.mock-log {
  display: flex; gap: 14px; padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.mock-log:last-child { border-bottom: 0; }
.mock-log time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-muted); flex-shrink: 0; min-width: 92px;
}
.mock-log .dot { width: 6px; height: 6px; background: var(--blue); margin-top: 6px; flex-shrink: 0; }
.mock-log--ok .dot { background: var(--blue); }
.mock-log--final { color: var(--blue); font-weight: 600; }

.mock-tree {
  background: var(--pale); border: 1px solid var(--line);
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px;
}
.mock-tree-row {
  padding: 8px 12px;
  background: var(--pale-warm);
  font-weight: 500;
}
.mock-tree-row.lvl-1 { padding-left: 28px; background: var(--white); font-weight: 400; font-size: 11.5px; }
.mock-tree-row.lvl-2 { padding-left: 44px; background: var(--white); font-size: 10.5px; color: var(--ink-muted); }

/* ============================================================
   SECTEURS — Big block band
   ============================================================ */
.sectors-band {
  background: var(--blue);
  color: var(--pale);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.sectors-band::before {
  content: ""; position: absolute;
  top: 0; right: 6%; width: 240px; height: 80px;
  background: var(--pale); opacity: 0.05;
}
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.2);
  margin-top: 48px;
}
.sector-tag {
  background: var(--blue);
  padding: 28px 24px;
  font-size: 13px; letter-spacing: 0.05em;
  font-weight: 500;
  text-align: left;
  transition: background var(--t);
  position: relative;
  display: flex; align-items: center; gap: 12px;
}
.sector-tag::before {
  content: ""; width: 8px; height: 8px;
  background: var(--beige); flex-shrink: 0;
}
.sector-tag:hover { background: var(--blue-deep); }

/* ============================================================
   CASE TEASER GRID (home) + USE-CASE CARDS (cas-usage)
   ============================================================ */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.uc-card {
  background: var(--pale);
  padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
  transition: background var(--t);
  position: relative;
}
.uc-card:hover { background: var(--pale-warm); }
.uc-card .uc-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.25em; font-weight: 600;
  color: var(--blue);
}
.uc-card .uc-trigger {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
  padding: 6px 10px; align-self: flex-start;
  background: var(--beige);
  color: var(--black);
}
.uc-card h3 {
  font-size: 22px; line-height: 1.2; font-weight: 600;
}
.uc-card p {
  font-size: 14px; line-height: 1.7; color: var(--black-soft);
}
.uc-card ul {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.uc-card li {
  display: grid; grid-template-columns: 16px 1fr; gap: 8px;
  font-size: 13px; color: var(--black-soft);
}
.uc-card li::before {
  content: "✓"; color: var(--blue); font-weight: 700;
}
.uc-card .uc-foot {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500;
}
.uc-card .uc-foot .arr { color: var(--blue); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap {
  max-width: 880px; margin: 56px auto 0;
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.005em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-num {
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--blue); font-weight: 600;
}
.faq-toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; line-height: 1;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
}
.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--blue); border-color: var(--blue); color: var(--pale);
}
.faq-answer {
  grid-column: 2 / 3;
  padding-bottom: 24px;
  font-size: 14.5px; line-height: 1.75;
  color: var(--black-soft);
  max-width: 60ch;
}
.faq-item details, .faq-item summary, .faq-item .faq-answer { /* keep grid */ }
.faq-item > .faq-answer { padding-left: 76px; padding-right: 52px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--black);
  color: var(--pale);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute;
  top: 8%; left: 8%; width: 220px; height: 220px;
  background: var(--blue);
  z-index: 0;
}
.cta-band::after {
  content: ""; position: absolute;
  bottom: 12%; right: 16%; width: 140px; height: 140px;
  background: var(--beige); opacity: 0.85;
  z-index: 0;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 {
  color: var(--pale);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.05; margin-bottom: 20px;
  max-width: 18ch;
}
.cta-band h2 .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--beige);
}
.cta-band p {
  font-size: 16px; color: rgba(253,250,248,0.7);
  margin-bottom: 40px; max-width: 52ch;
}
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--pale);
  padding: 80px 0 32px;
  border-top: 1px solid var(--black-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-brand .nav-logo .wm-top { color: var(--pale); }
.footer-brand .nav-logo .wm-bot { color: var(--beige); }
.footer-brand .footer-tag {
  font-size: 13px; color: rgba(253,250,248,0.6);
  line-height: 1.65; max-width: 36ch;
}
.footer-col h4 {
  color: var(--beige);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px; color: rgba(253,250,248,0.75);
  transition: color var(--t);
}
.footer-col a:hover { color: var(--pale); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(253,250,248,0.45);
}
.footer-bottom .marks { display: flex; gap: 24px; flex-wrap: wrap; }

/* ============================================================
   FLOATING CTA + COOKIE BAR
   ============================================================ */
.floating-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--blue);
  color: var(--pale);
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: 1.5px solid var(--blue);
  box-shadow: 0 16px 40px -12px rgba(42,67,149,0.5);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background var(--t), transform var(--t);
}
.floating-cta:hover {
  background: var(--blue-deep); transform: translateY(-2px);
}

.cookie-bar {
  position: fixed; left: 24px; bottom: 24px; z-index: 250;
  max-width: 380px;
  background: var(--pale);
  border: 1px solid var(--line);
  padding: 20px 22px;
  box-shadow: 0 24px 60px -20px rgba(6, 19, 10, 0.25);
  display: none; flex-direction: column; gap: 14px;
  font-size: 12.5px; line-height: 1.6;
}
.cookie-bar.visible { display: flex; }
.cookie-bar p { color: var(--black-soft); }
.cookie-bar .row { display: flex; gap: 10px; }
.cookie-bar .btn { padding: 10px 16px; font-size: 11px; }

/* ============================================================
   PAGE HERO (internal pages)
   ============================================================ */
.page-hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute;
  right: -80px; top: 20%;
  width: 280px; height: 180px;
  background: var(--blue); opacity: 0.06;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .kicker { margin-bottom: 24px; }
.page-hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.04;
  max-width: 24ch; margin-bottom: 24px;
}
.page-hero h1 .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--blue); }
.page-hero-sub {
  font-size: 17px; color: var(--black-soft); line-height: 1.7;
  max-width: 56ch;
}

.breadcrumb {
  padding: 24px 0 0;
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-muted);
  display: flex; gap: 10px; align-items: center;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--line); }

/* ============================================================
   FORM (contact)
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
.form-wrap {
  background: var(--pale);
  border: 1px solid var(--line);
  padding: 48px;
}
.form-section {
  border: 0; padding: 0;
}
.form-section + .form-section { margin-top: 36px; padding-top: 36px; border-top: 1px dashed var(--line); }
.form-section legend {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue);
  font-weight: 600; margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.form-section legend::before {
  content: ""; width: 8px; height: 8px; background: var(--blue);
}
.diag-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600;
  color: var(--black);
}
.form-group label .req { color: var(--blue); }
.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42,67,149,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%232A4395' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-hint { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.04em; }

.checkboxes-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkbox-item {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--black-soft);
  padding: 10px 12px; border: 1px solid var(--line);
  transition: border-color var(--t), background var(--t);
}
.checkbox-item:hover { border-color: var(--blue); }
.checkbox-item input { accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-item:has(input:checked) { border-color: var(--blue); background: rgba(42,67,149,0.04); }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--line);
  transition: border-color var(--t), background var(--t);
}
.radio-item:hover { border-color: var(--blue); }
.radio-item input { accent-color: var(--blue); margin-top: 4px; flex-shrink: 0; }
.radio-item:has(input:checked) { border-color: var(--blue); background: rgba(42,67,149,0.04); }
.radio-label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.radio-label strong { font-size: 13px; font-weight: 600; color: var(--black); }
.radio-label span { font-size: 12px; color: var(--ink-muted); line-height: 1.5; word-wrap: break-word; }

.form-submit {
  margin-top: 8px;
  background: var(--blue); color: var(--pale);
  padding: 18px 24px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1.5px solid var(--blue);
  cursor: pointer;
  transition: background var(--t);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.form-submit:hover { background: var(--blue-deep); }
.form-legal { font-size: 11px; color: var(--ink-muted); text-align: center; letter-spacing: 0.02em; line-height: 1.6; }

.form-success { display: none; padding: 56px 40px; text-align: center; background: var(--blue); color: var(--pale); border: 1px solid var(--blue); }
.form-success .check {
  width: 56px; height: 56px; margin: 0 auto 20px;
  border: 1.5px solid var(--beige); display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--beige);
}
.form-success h3 { color: var(--pale); font-size: 24px; margin-bottom: 12px; }
.form-success p { color: rgba(253,250,248,0.85); font-size: 14px; line-height: 1.7; }
.form-success a { color: var(--beige); text-decoration: underline; }

.contact-aside {
  position: sticky; top: calc(var(--nav-h) + 32px);
  display: flex; flex-direction: column; gap: 32px;
}
.aside-card {
  background: var(--blue); color: var(--pale);
  padding: 36px 32px;
  position: relative; overflow: hidden;
}
.aside-card::before {
  content: ""; position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: var(--beige); opacity: 0.95;
}
.aside-card > * { position: relative; z-index: 1; }
.aside-card h3 { color: var(--pale); font-size: 18px; margin-bottom: 14px; }
.aside-card p { font-size: 13px; line-height: 1.7; color: rgba(253,250,248,0.85); margin-bottom: 16px; }
.aside-list { display: flex; flex-direction: column; gap: 10px; }
.aside-list li {
  display: grid; grid-template-columns: 20px 1fr; gap: 8px;
  font-size: 12.5px; color: rgba(253,250,248,0.85);
}
.aside-list li::before {
  content: "→"; color: var(--beige); font-weight: 600;
}
.aside-card.alt { background: var(--pale); color: var(--black); border: 1px solid var(--line); }
.aside-card.alt::before { display: none; }
.aside-card.alt h3 { color: var(--black); }
.aside-card.alt p, .aside-card.alt li { color: var(--black-soft); }
.aside-card.alt li::before { color: var(--blue); }
.aside-mail {
  font-size: 14px; font-weight: 600; color: var(--blue);
  text-decoration: underline; letter-spacing: 0.02em;
  word-break: break-all;
}

/* ============================================================
   TABS (cas-usage filter)
   ============================================================ */
.tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--black-soft);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--t);
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--blue); border-color: var(--blue); color: var(--pale); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta .btn--outline { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .footer-grid .footer-col:nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --section-py: 80px; --nav-h: 68px; }
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 300px; max-width: 100%; aspect-ratio: auto; overflow: hidden; }
  .hv-block--blue1 { width: 48%; height: 28%; }
  .hv-block--blue2 { width: 32%; height: 22%; }
  .hv-block--beige { width: 28%; height: 20%; }
  .hv-block--black { width: 18%; height: 18%; }
  .hv-block--card { width: 80%; height: 80%; left: 10%; top: 10%; padding: 20px; }
  .hv-card-head .name { font-size: 10px; }
  .hv-card-head .status { font-size: 9px; }
  .hv-row { font-size: 10px; }
  .hv-pill { font-size: 8px; padding: 4px 8px; }
  .hero-text { max-width: 100%; }
  .hero-actions { gap: 12px; flex-direction: column; width: calc(100% + 48px); margin-left: -24px; margin-right: -24px; padding: 0 24px; }
  .hero-actions .btn { width: 100%; display: flex; white-space: normal; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item:nth-child(3) { border-left: 1px solid var(--blue); }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .flow::before { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .feature-row.reverse > .feature-text { order: 1; }
  .feature-row.reverse > .feature-visual { order: 2; }
  .uc-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { position: static; }
  .form-wrap { padding: 32px 24px; }
}

@media (max-width: 640px) {
  :root { --section-py: 64px; }
  .h1 { font-size: clamp(34px, 9vw, 52px); }
  .hero { padding: 48px 0 64px; }
  .hero-visual { min-height: 240px; }
  .hv-block--blue1 { width: 40%; height: 24%; }
  .hv-block--blue2 { width: 28%; height: 18%; }
  .hv-block--beige { width: 24%; height: 16%; }
  .hv-block--black { width: 16%; height: 16%; }
  .hv-block--card { width: 90%; height: 90%; left: 5%; top: 5%; padding: 16px; }
  .hv-card-head { padding-bottom: 8px; }
  .hv-card-head .name { font-size: 9px; }
  .hv-card-head .status { font-size: 8px; }
  .hv-row { font-size: 9px; padding: 6px 0; }
  .hv-pill { font-size: 7px; padding: 3px 6px; }
  .hero-text { gap: 24px; max-width: 100%; width: calc(100% + 48px); margin-left: -24px; margin-right: -24px; padding: 0 24px; }
  .hero-actions { width: 100%; flex-direction: column; gap: 10px; display: flex; }
  .hero-actions .btn { width: 100%; display: flex; justify-content: center; padding: 14px 20px; font-size: 12px; white-space: normal; }
  .hero-sub { font-size: 14px; max-width: 100%; line-height: 1.6; }
  .grid-3, .sectors-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .form-row, .checkboxes-group { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .floating-cta { right: 16px; bottom: 80px; padding: 12px 16px; font-size: 11px; }
  .cookie-bar { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .faq-item summary { grid-template-columns: 48px 1fr 28px; font-size: 14.5px; }
  .faq-item > .faq-answer { padding-left: 56px; padding-right: 0; }
  .form-wrap { padding: 24px 18px; }

  /* bg-blue section responsive */
  .bg-blue > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .bg-blue > .container > div[style*="grid-template-columns:1fr 1fr"] > div:last-child {
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
  }

  /* Footer cas d'usage styling for mobile */
  .footer-grid .footer-col:nth-child(3) {
    background: var(--blue);
    color: var(--pale);
    padding: 24px;
    margin: 0 -24px;
  }
  .footer-grid .footer-col:nth-child(3) h4,
  .footer-grid .footer-col:nth-child(3) a { color: var(--beige); }
}
