/* ==========================================================================
   Koversec — vitrine.
   Direction : éditorial × intelligence × data × investigation.
   Ivoire, encre navy, accent lime en signature. Zéro dépendance.
   ========================================================================== */

:root {
  --bg: #f5f4f0;
  --surface: #ebeae3;
  --surface-2: #e3e2d9;
  --text: #10142e;                /* encre navy — tonalité d'origine Koversec */
  --text-2: #4c5165;
  --muted: #666b7c;
  --dark: #0a0e26;
  --dark-2: #12173a;
  --accent: #c8ff00;
  --accent-ink: #5c6e00;          /* lime lisible en texte sur fond clair */
  --on-accent: #10142e;
  --border: rgba(16, 20, 46, .15);
  --border-strong: rgba(16, 20, 46, .34);
  --hair: rgba(16, 20, 46, .08);
  --header-bg: rgba(245, 244, 240, .84);
  --fil: rgba(16, 20, 46, .05);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg: #0b0f26;
  --surface: #121734;
  --surface-2: #181d3e;
  --text: #eef0f7;
  --text-2: #aab0c4;
  --muted: #7e8499;
  --dark: #070a1d;
  --dark-2: #101538;
  --accent: #c8ff00;
  --accent-ink: #b7e924;
  --on-accent: #10142e;
  --border: rgba(238, 240, 247, .14);
  --border-strong: rgba(238, 240, 247, .34);
  --hair: rgba(238, 240, 247, .07);
  --header-bg: rgba(11, 15, 38, .82);
  --fil: rgba(238, 240, 247, .05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #10142e; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 1px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -.03em; line-height: 1.05; }

.icon { vertical-align: -.14em; flex: 0 0 auto; }
.ac { color: var(--accent-ink); }

/* Labels techniques — signature typographique */
.eyebrow, .mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { display: block; margin: 0 0 22px; }
.eyebrow .tick { color: var(--accent-ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }

.section { padding: 110px 0; border-top: 1px solid var(--border); }

.section-head { max-width: 60rem; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); }
.section-sub { font-size: 17px; color: var(--text-2); max-width: 44ch; margin: 20px 0 0; }

/* --- Révélation au scroll ------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}
.site-header.scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
}

.brand { display: flex; align-items: center; color: var(--text); }
.brand-logo { height: 20px; width: 100px; display: block; --accent: currentColor; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity .2s;
}
.btn-contact:hover { opacity: .82; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--border-strong); }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Main ------------------------------------------------------------------ */
main { position: relative; z-index: 1; flex: 1; width: 100%; }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: 176px 0 110px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 660;
  letter-spacing: -.035em;
  margin: 0 0 26px;
}

.hero-sub { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 40ch; margin: 0 0 40px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -.01em;
  transition: opacity .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { font-family: 'IBM Plex Mono', monospace; font-weight: 400; }

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: .84; }

.btn-secondary { border: 1px solid var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }

/* Graphe relationnel du hero */
.hero-visual { position: relative; }
.hero-graph { width: 100%; height: auto; display: block; }

.hero-graph .g-link {
  stroke: var(--border-strong);
  stroke-width: 1;
  fill: none;
}
.hero-graph .g-dot { fill: var(--text); }
.hero-graph .g-dot-accent { fill: var(--accent); stroke: var(--border-strong); stroke-width: .5; }
.hero-graph .g-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  fill: var(--muted);
}
.hero-graph .g-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  transform-origin: center;
  transform-box: fill-box;
}

.js .hero-graph .g-link {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ksDraw 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.js .hero-graph .g-node {
  opacity: 0;
  animation: ksNode .7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.hero-graph .g-ring { animation: ksPulse 3.4s ease-in-out infinite; animation-delay: 1.6s; }

@keyframes ksDraw { to { stroke-dashoffset: 0; } }
@keyframes ksNode { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ksPulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: .25; transform: scale(1.35); }
}

.hero-caption {
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Marquee ----------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 22px 0;
}
/* 4 copies de la liste dans le HTML : -50% = 2 copies, le motif se répète
   toutes les copies → boucle sans couture même sur écran large. */
.marquee-track {
  display: flex;
  width: max-content;
  animation: ksMarquee 80s linear infinite;
}
.marquee-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marquee-list li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  padding: 0 34px;
  position: relative;
}
.marquee-list li::after {
  content: "";
  position: absolute;
  right: -3px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  background: var(--accent);
  border: 1px solid var(--border-strong);
}
@keyframes ksMarquee { to { transform: translateX(-50%); } }

/* --- Section 04 · Le problème -------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: start;
}

.problem h2 { font-size: clamp(32px, 4.8vw, 58px); max-width: 16ch; }
.problem-lines {
  margin: 44px 0 0;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.45;
}
.problem-lines span { display: block; color: var(--text-2); }
.problem-lines span b { font-weight: 640; color: var(--text); }
.problem-note { margin: 36px 0 0; font-size: 16px; color: var(--text-2); max-width: 40ch; }

/* Chaîne OSINT */
.chain { padding: 6px 0 0 4px; }
.chain-title { margin: 0 0 30px; letter-spacing: .18em; }
.chain ol { list-style: none; margin: 0; padding: 0; }
.chain li {
  position: relative;
  padding: 0 0 26px 26px;
}
.chain li:last-child { padding-bottom: 0; }
.chain li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px; bottom: -6px;
  width: 1px;
  background: var(--border-strong);
}
.chain li:last-child::before { display: none; }
.chain li::after {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--text);
}
.chain li:last-child::after { background: var(--accent); }
.chain .c-key {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
}
.chain .c-val { font-size: 13.5px; color: var(--muted); }

.js .chain li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .chain.in li { opacity: 1; transform: none; }
.js .chain.in li:nth-child(1) { transition-delay: .05s; }
.js .chain.in li:nth-child(2) { transition-delay: .17s; }
.js .chain.in li:nth-child(3) { transition-delay: .29s; }
.js .chain.in li:nth-child(4) { transition-delay: .41s; }
.js .chain.in li:nth-child(5) { transition-delay: .53s; }
.js .chain.in li:nth-child(6) { transition-delay: .65s; }
.js .chain.in li:nth-child(7) { transition-delay: .77s; }

/* --- Section 05 · Positionnement ------------------------------------------ */
.position-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: start;
}
.position-sticky { position: sticky; top: 120px; }
.position h2 { font-size: clamp(34px, 4.6vw, 56px); max-width: 15ch; }
.position p { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 44ch; margin: 30px 0 0; }
.position p b { color: var(--text); font-weight: 620; }

.method-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.method-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--border);
  transition: opacity .4s;
}
.method-steps .m-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  padding-top: 4px;
  transition: color .3s;
}
.method-steps .m-name {
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -.02em;
  transition: color .3s;
}
.method-steps .m-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 38ch;
}
.js .method-steps li { opacity: .38; }
.js .method-steps li.active { opacity: 1; }
.method-steps li.active .m-num { color: var(--accent-ink); }

/* --- Section 06 · Expertises ------------------------------------------------ */
.expertise {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  padding: 62px 0;
  border-top: 1px solid var(--border);
}
.expertise:first-of-type { border-top: 0; padding-top: 0; }
.expertise:last-of-type { padding-bottom: 0; }

.exp-id .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 10px;
}
.exp-id .t {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.expertise h3 { font-size: clamp(26px, 3vw, 38px); max-width: 20ch; }
.expertise .exp-desc { font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 52ch; margin: 22px 0 26px; }

.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.exp-tags li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 2px;
}

.exp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 580;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 3px;
  transition: border-color .2s;
}
.exp-link:hover { border-color: var(--text); }

/* --- Section 07 · Cas d'usage ---------------------------------------------- */
.usecases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.uc { border-bottom: 1px solid var(--border); }
.uc-head {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 30px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
  transition: padding .3s var(--ease);
}
.uc-head .u-num { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); transition: color .3s; }
.uc-head .u-title { font-size: clamp(20px, 2.6vw, 30px); font-weight: 620; letter-spacing: -.02em; transition: transform .3s var(--ease); }
.uc-head .u-plus {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .35s var(--ease);
  text-align: center;
  line-height: 1;
}
.uc.open .u-plus { transform: rotate(45deg); color: var(--text); }
.uc.open .u-num { color: var(--accent-ink); }
.uc-head:hover .u-title { transform: translateX(6px); }

.uc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.uc.open .uc-body { grid-template-rows: 1fr; }
.uc-body > div { overflow: hidden; }
.uc-panel {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 0 4px 34px;
}
.uc-panel p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text-2); max-width: 52ch; }
.uc-panel .uc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.uc-panel .uc-meta span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
}
.uc-panel .exp-link { margin-top: 22px; }

/* --- Section 08 · Méthode (sombre) ------------------------------------------ */
.method-dark {
  background: var(--dark);
  color: #eef0f7;
  border-top: 1px solid var(--dark);
  --border: rgba(238, 240, 247, .14);
  --hair: rgba(238, 240, 247, .07);
  --muted: #7e8499;
  --text-2: #aab0c4;
}
.method-dark .section-head h2 { color: #eef0f7; }

.md-steps { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.md-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  padding: 0 0 46px;
}
.md-steps li:last-child { padding-bottom: 0; }
.md-steps li::before {
  content: "";
  position: absolute;
  left: 27px; top: 46px; bottom: 6px;
  width: 1px;
  background: var(--border);
}
.md-steps li:last-child::before { display: none; }

.md-steps .s-num {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  background: var(--dark);
  position: relative;
  z-index: 1;
}
.md-steps .s-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
  padding-top: 4px;
}
.md-steps .s-title { font-size: 22px; font-weight: 620; letter-spacing: -.02em; color: #eef0f7; }
.md-steps .s-desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); max-width: 46ch; }

/* --- Section 09 · Pour qui --------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.audience {
  background: var(--bg);
  padding: 40px 32px 46px;
}
.audience .a-key {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 34px;
}
/* var(--text) et non l'héritage de .method-dark : les cartes sont sur fond
   var(--bg), clair en mode jour — le texte clair hérité y serait invisible. */
.audience p { margin: 0; font-size: 21px; font-weight: 620; letter-spacing: -.02em; line-height: 1.4; color: var(--text); }
.audience p span { display: block; }

/* --- Section 10 · Piliers ------------------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillar { background: var(--bg); padding: 44px 40px 50px; }
.pillar .p-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent-ink); display: block; margin-bottom: 26px; }
.pillar h3 { font-size: 22px; letter-spacing: .04em; font-weight: 640; text-transform: uppercase; }
.pillar p { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 36ch; }

/* --- Section 11 · À propos -------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: start;
}
.about h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: .1em;
}
.about .a-lead { font-size: clamp(20px, 2.4vw, 28px); font-weight: 580; letter-spacing: -.02em; line-height: 1.4; margin: 30px 0 0; max-width: 24ch; }
.about .a-body { font-size: 16.5px; line-height: 1.7; color: var(--text-2); max-width: 46ch; margin: 26px 0 0; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 38px 0 0; padding: 0; list-style: none; }
.about-tags li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 13px;
}

.portrait {
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.portrait .mono { letter-spacing: .18em; }

/* --- Section 12 · CTA final ---------------------------------------------------- */
.cta-final {
  background: var(--accent);
  color: #10142e;
  border-top: 1px solid var(--border);
  padding: 130px 0;
}
.cta-final .eyebrow { color: rgba(16, 20, 46, .55); }
.cta-final h2 { font-size: clamp(36px, 5.4vw, 68px); max-width: 15ch; letter-spacing: -.035em; }
.cta-final p { font-size: 18px; line-height: 1.6; max-width: 42ch; margin: 30px 0 44px; color: rgba(16, 20, 46, .78); }
.cta-final :focus-visible { outline-color: #10142e; }
.btn-dark { background: #10142e; color: var(--accent); font-size: 16px; padding: 18px 32px; }
.btn-dark:hover { opacity: .86; }
.cta-final .cta-mail {
  display: inline-block;
  margin-left: 26px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(16, 20, 46, .72);
  border-bottom: 1px solid rgba(16, 20, 46, .4);
  padding-bottom: 2px;
}
.cta-final .cta-mail:hover { color: #10142e; border-color: #10142e; }

/* --- Footer ----------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: #aab0c4;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 40px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}
.footer-brand-block .brand-logo { height: 22px; width: 110px; color: #eef0f7; --accent: #c8ff00; }
.footer-baseline {
  margin: 20px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7e8499;
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7e8499;
  margin: 0 0 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: #aab0c4; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #eef0f7; }

.footer-bottom {
  border-top: 1px solid rgba(238, 240, 247, .1);
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7e8499;
}

/* Compat pages légales (ancien footer simple) */
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 40px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 640; font-size: 15px; letter-spacing: -.3px; color: #eef0f7; }
.footer-brand .ac { color: var(--accent); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #aab0c4; }
.footer-links a:hover { color: #eef0f7; }
.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 34px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #7e8499;
}
.footer-copy a { color: #7e8499; }
.footer-copy a:hover { color: #eef0f7; }

/* --- Pages légales ------------------------------------------------------------------ */
.legal { max-width: 720px; margin: 0 auto; padding: 150px 40px 110px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; }
.legal .eyebrow { margin-bottom: 16px; }
.legal h2 { font-size: 20px; font-weight: 640; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.legal strong { color: var(--text); }
.legal a { color: var(--accent-ink); border-bottom: 1px solid var(--border-strong); }

/* --- Responsive --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid, .problem-grid, .position-grid, .about-grid { gap: 52px; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .header-inner { padding: 0 24px; height: 64px; }
  .section { padding: 84px 0; }
  .hero { padding: 136px 0 84px; }

  .hero-grid, .problem-grid, .position-grid, .about-grid { grid-template-columns: 1fr; }
  .position-sticky { position: static; }
  .expertise { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }

  .main-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .main-nav {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .main-nav a { display: block; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-burger { display: flex; }
  .btn-contact { display: none; }
  .nav-open .site-header, .site-header.nav-open {
    background: var(--bg);
    border-bottom-color: var(--border);
  }

  .uc-head { grid-template-columns: 48px 1fr 24px; padding: 24px 0; }
  .uc-panel { grid-template-columns: 1fr; padding: 0 0 30px; }
  .cta-final { padding: 96px 0; }
  .cta-final .cta-mail { display: block; margin: 26px 0 0; width: fit-content; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 44px; }
  .footer-bottom-inner, .footer-main, .footer-copy { padding-left: 24px; padding-right: 24px; }
  .legal { padding: 120px 24px 84px; }
}

@media (max-width: 600px) {
  .audience-grid, .pillars { grid-template-columns: 1fr; }
  .pillar, .audience { padding: 32px 26px 38px; }
  .hero h1 { letter-spacing: -.025em; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .marquee-list li { padding: 0 22px; font-size: 12px; }
}

/* --- Préférences ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal, .js .chain li, .js .hero-graph .g-node { opacity: 1; transform: none; }
  .js .hero-graph .g-link { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js .method-steps li { opacity: 1; }
  .marquee-track { animation: none; }
}
