/* ============================================================
   S2I CONSULTING — Design System & Global Styles
   Thème clair éditorial, codes des grands cabinets :
   encre bleu nuit, accent émeraude discipliné, filets fins.
   Toutes les classes sont contractuelles (5 500+ pages générées).
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors — light editorial */
  --bg: #fbfcfd;
  --bg-2: #f1f5f8;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --line: #e4eaf0;
  --line-strong: #cdd8e2;

  --text: #0c1b29;        /* encre bleu nuit */
  --muted: #47586a;
  --muted-2: #708193;

  --navy: #0c1b29;        /* blocs sombres : CTA, footer, boutons */
  --navy-2: #12283d;

  --brand: #0d9c76;       /* émeraude accessible — accent signature */
  --brand-2: #0d6fc4;     /* azur travaillé — liens techniques */
  --brand-3: #5f4bd8;     /* violet de soutien */
  --danger: #d4384f;
  --warn: #b97a1f;

  /* variantes vives : héritées du logo, décoratives uniquement */
  --grad-brand: linear-gradient(120deg, #18e0a8 0%, #36b6ff 100%);
  --grad-text: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 100%);
  --glass: #ffffff;

  /* Typography */
  --font-display: "Geist", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing / layout */
  --container: 1200px;
  --container-wide: 1340px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  /* Shadows — froides et douces */
  --shadow-sm: 0 1px 2px rgba(12,27,41,.06);
  --shadow: 0 12px 32px -12px rgba(12,27,41,.14);
  --shadow-glow: 0 16px 44px -16px rgba(12,27,41,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: rgba(13,156,118,.18); }

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

/* ---------- Language visibility ---------- */
html[lang="en"] [data-lang="fr"] { display: none !important; }
html[lang="fr"] [data-lang="en"] { display: none !important; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-wide { max-width: var(--container-wide); }
.section { padding: clamp(60px, 8vw, 116px) 0; position: relative; }
.section-sm { padding: clamp(40px, 6vw, 76px) 0; }

/* Eyebrow : tiret émeraude + mono majuscule — la signature */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12; font-weight: 700; letter-spacing: -.025em;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }

.lead { font-size: clamp(1.03rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 16px 0 14px; }

/* ---------- Buttons : navy plein / contour ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600; font-size: .96rem;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--navy);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,253,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(12,27,41,.07); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em; font-family: var(--font-display); }
.brand .logo { width: 32px; height: 32px; flex: none; }
.brand b { font-weight: 800; }
.brand span { color: var(--text); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 9px 13px; color: var(--muted);
  font-size: .94rem; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px;
  background: var(--brand);
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  background: var(--surface);
}
.lang-switch button {
  background: transparent; color: var(--muted); border: 0;
  padding: 7px 12px; transition: color .2s, background .2s;
}
.lang-switch button.active { background: var(--navy); color: #ffffff; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-strong);
  width: 42px; height: 42px; border-radius: 8px; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(52px, 8vw, 108px) 0 clamp(44px, 6vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { margin: 20px 0; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; color: var(--muted-2); font-size: .82rem; }
.hero-trust strong { color: var(--text); }

.hero-visual { position: relative; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-glow);
  position: relative;
}
.hero-card::before { content: none; }
.hero-card h4 { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.meter { margin-bottom: 16px; }
.meter:last-child { margin-bottom: 0; }
.meter .meter-top { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 7px; }
.meter .meter-top span:last-child { font-family: var(--font-mono); color: var(--brand); font-weight: 600; }
.meter .track { height: 7px; border-radius: 100px; background: var(--bg-2); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 100px; background: var(--grad-brand); width: 0; transition: width 1.4s var(--ease); }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 15px; font-size: .82rem; box-shadow: var(--shadow);
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.float-badge.tl { top: -20px; left: -24px; }
.float-badge.br { bottom: -20px; right: -18px; }

/* ---------- Trustbar / certifications ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--surface); }
.trustbar p { text-align: center; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; font-family: var(--font-mono); }
.cert-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cert-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 8px 15px; font-size: .84rem; font-weight: 600; color: var(--muted);
  background: var(--surface);
  transition: border-color .2s, color .2s;
}
.cert-chip:hover { border-color: var(--navy); color: var(--text); }
.cert-chip svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Stat counters ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
  transition: box-shadow .25s, border-color .25s;
}
.stat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; top: -1px; left: 24px; width: 44px; height: 3px; background: var(--brand); }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat .num small { font-size: 1.3rem; }
.stat .label { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(13,156,118,.09);
  border: 1px solid rgba(13,156,118,.2);
  color: var(--brand);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card .card-list { margin-top: 16px; display: grid; gap: 8px; }
.card .card-list li { display: flex; gap: 9px; font-size: .92rem; color: var(--muted); }
.card .card-list li::before { content: ""; flex: none; margin-top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.card-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 600; font-size: .92rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Service card big */
.service-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted-2); }

/* ---------- Process / steps ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .step-no {
  width: 50px; height: 50px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--brand);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 70ch; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.split.rev .split-media { order: 2; }
.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list .ck {
  flex: none; width: 26px; height: 26px; border-radius: 6px; margin-top: 1px;
  display: grid; place-items: center; background: rgba(13,156,118,.09); color: var(--brand);
  border: 1px solid rgba(13,156,118,.22);
}
.check-list .ck svg { width: 15px; height: 15px; }
.check-list b { display: block; margin-bottom: 2px; }
.check-list span.txt { color: var(--muted); font-size: .95rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-bottom: 0; }
.panel-row .pk { color: var(--muted); font-size: .92rem; }
.panel-row .pv { font-weight: 700; font-family: var(--font-mono); color: var(--brand); }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--brand); }
.badge-ok svg { width: 14px; height: 14px; }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.case-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.case-top { padding: 26px 28px 0; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: .7rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 600; }
.tag.green { color: var(--brand); border-color: rgba(13,156,118,.35); background: rgba(13,156,118,.06); }
.tag.blue { color: var(--brand-2); border-color: rgba(13,111,196,.3); background: rgba(13,111,196,.05); }
.case-card h3 { margin-bottom: 10px; }
.case-card .case-desc { color: var(--muted); font-size: .96rem; padding: 0 28px; }
.case-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 24px; background: var(--line); border-top: 1px solid var(--line); }
.case-metrics div { background: var(--surface-2); padding: 16px; text-align: center; }
.case-metrics .m-num { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.case-metrics .m-lab { font-size: .74rem; color: var(--muted-2); margin-top: 2px; }

/* full case study article */
.case-article { max-width: 820px; margin-inline: auto; }
.case-article h2 { margin: 40px 0 16px; }
.case-article h3 { margin: 30px 0 12px; }
.case-article p { margin-bottom: 16px; color: var(--muted); }
.case-article ul.dotted li { display: flex; gap: 11px; color: var(--muted); margin-bottom: 10px; }
.case-article ul.dotted li::before { content: ""; flex: none; margin-top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.quote {
  border-left: 3px solid var(--brand); padding: 8px 0 8px 24px; margin: 28px 0;
  font-size: 1.2rem; font-style: italic; color: var(--text);
}
.quote cite { display: block; margin-top: 12px; font-size: .9rem; font-style: normal; color: var(--muted-2); }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.quote-card p { font-size: 1.02rem; }
.quote-card .who { display: flex; align-items: center; gap: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-weight: 700; color: #fff; }
.quote-card .who b { display: block; }
.quote-card .who span { color: var(--muted-2); font-size: .85rem; }
.stars { color: var(--warn); letter-spacing: 2px; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .photo {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--navy); display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 700; color: #fff;
  font-family: var(--font-display);
}
.team-card .role { color: var(--brand); font-size: .88rem; font-weight: 600; }
.team-card .bio { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 10px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 28px 36px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.tl-item .yr { font-family: var(--font-mono); color: var(--brand); font-weight: 700; font-size: .9rem; }
.tl-item h4 { margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--surface); transition: border-color .2s; }
.faq-item.open { border-color: var(--line-strong); }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); padding: 19px 22px; font-size: 1.03rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { flex: none; transition: transform .3s; color: var(--brand); }
.faq-q .chev svg { width: 20px; height: 20px; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--muted); }

/* ---------- CTA band : bloc navy plein, code cabinet ---------- */
.cta-band {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px); text-align: center;
}
.cta-band::before, .cta-band::after { content: none; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 28px; color: #b9c7d4; }
.cta-band .gradient-text {
  background: linear-gradient(100deg, #2fe6b4, #6cc6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: #e8eef4; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px,5vw,56px); align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(13,111,196,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 14px; }
.form-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form-success { display: none; padding: 15px 18px; border-radius: var(--radius-sm); background: rgba(13,156,118,.08); border: 1px solid rgba(13,156,118,.3); color: var(--brand); margin-bottom: 18px; font-weight: 500; }
.form-success.show { display: block; }
.form-error { display: none; padding: 15px 18px; border-radius: var(--radius-sm); background: rgba(212,56,79,.07); border: 1px solid rgba(212,56,79,.32); color: #a82a3e; margin-bottom: 18px; font-weight: 500; }
.form-error.show { display: block; }

/* ---- Pot de miel : masqué visuellement, invisible aux lecteurs d'écran ---- */
.hp-field {
  position: absolute !important;
  left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* ---- CAPTCHA ---- */
.captcha .captcha-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
}
.captcha-challenge {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 54px;
  min-width: 170px;
}
.captcha-canvas { display: block; }
.captcha-question {
  display: none;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
  padding: 12px 18px;
  font-variant-numeric: tabular-nums;
}
/* Bascule visuel ⇄ question accessible */
.captcha[data-mode="text"] .captcha-canvas { display: none; }
.captcha[data-mode="text"] .captcha-question { display: block; }

.captcha-tools { display: flex; flex-direction: column; gap: 6px; }
.captcha-btn {
  width: 34px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.captcha-btn:hover { color: var(--brand); border-color: var(--brand); }
.captcha-btn svg { width: 15px; height: 15px; }

.captcha input[data-captcha-input] {
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.captcha input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(212,56,79,.12);
}
.captcha-error {
  display: none;
  margin-top: 8px;
  font-size: .85rem;
  color: var(--danger);
  font-weight: 500;
}
.captcha-error.show { display: block; }
.captcha-help {
  margin-top: 8px;
  font-size: .8rem;
  color: var(--muted-2);
  line-height: 1.5;
}
@media (max-width: 560px) {
  .captcha .captcha-row { grid-template-columns: 1fr auto; }
  .captcha input[data-captcha-input] { grid-column: 1 / -1; }
}

.contact-aside { display: grid; gap: 16px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .ci { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(13,111,196,.07); border: 1px solid rgba(13,111,196,.2); color: var(--brand-2); }
.contact-line .ci svg { width: 20px; height: 20px; }
.contact-line b { display: block; }
.contact-line span { color: var(--muted); font-size: .92rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: clamp(52px,7vw,96px) 0 clamp(28px,4vw,46px); text-align: center; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 90%);
}
.page-hero .container { max-width: 820px; }
.page-hero h1 { margin: 18px 0 16px; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: .8rem; color: var(--muted-2); font-family: var(--font-mono); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Footer : bloc navy, code cabinet ---------- */
.site-footer { padding: 64px 0 32px; margin-top: 40px; background: var(--navy); color: #b9c7d4; }
.site-footer .brand span, .site-footer .brand b { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 46px; }
.footer-brand p { color: #94a6b8; font-size: .93rem; margin: 16px 0; max-width: 36ch; }
.footer-col h5 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #7d90a2; margin-bottom: 15px; font-family: var(--font-mono); }
.footer-col a { display: block; color: #b9c7d4; padding: 6px 0; font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: #2fe6b4; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: #b9c7d4; transition: all .2s; }
.socials a:hover { color: #2fe6b4; border-color: #2fe6b4; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #7d90a2; font-size: .84rem; }
.footer-bottom .fl { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #2fe6b4; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }

/* ---------- Mobile nav ---------- */
.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: rgba(251,252,253,.98); backdrop-filter: blur(10px);
  padding: 26px 22px; display: none; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 16px; border-radius: 8px; font-size: 1.12rem; font-weight: 600; color: var(--text); }
.mobile-menu a:hover { background: var(--bg-2); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-grid; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NAVIGATION MARQUES / LISTINGS
   ============================================================ */
.brand-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.brand-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 6px; font-weight: 600; font-size: .88rem;
  border: 1px solid var(--line-strong); color: var(--muted); transition: all .2s;
  background: var(--surface);
}
.brand-nav a:hover { color: var(--text); border-color: var(--navy); }
.brand-nav a .bdot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.grade-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.grade-legend .gl {
  display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 14px; background: var(--surface);
}
.grade-legend .gl b { color: var(--text); font-family: var(--font-mono); }
.gA { color: var(--brand); } .gB { color: var(--brand-2); } .gC { color: var(--warn); }

.disclaimer {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid rgba(185,122,31,.3); background: rgba(185,122,31,.06);
  border-radius: var(--radius); padding: 17px 20px; margin: 0 auto 8px; max-width: 920px;
}
.disclaimer svg { flex: none; width: 22px; height: 22px; color: var(--warn); margin-top: 2px; }
.disclaimer p { color: var(--muted); font-size: .92rem; margin: 0; }
.disclaimer b { color: var(--text); }

.brand-block { margin-top: 56px; scroll-margin-top: 90px; }
.brand-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.brand-logo {
  width: 54px; height: 54px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--brand);
}
.brand-head h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.brand-head .bsub { color: var(--muted); font-size: .95rem; margin-top: 2px; }

.cat-table-wrap, .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cat-table, table.parts-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
table.parts-table { min-width: 560px; }
table.cat-table thead th, table.parts-table thead th {
  text-align: left; padding: 13px 18px; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
  border-bottom: 1px solid var(--line-strong); background: var(--surface-2); position: sticky; top: 0;
}
table.cat-table tbody td, table.parts-table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cat-table tbody tr:last-child td, table.parts-table tbody tr:last-child td { border-bottom: 0; }
table.cat-table tbody tr, table.parts-table tbody tr { transition: background .15s; }
table.cat-table tbody tr:hover, table.parts-table tbody tr:hover { background: var(--surface-2); }
table.cat-table .cat-name { font-weight: 600; color: var(--text); }
table.cat-table .cat-models { color: var(--muted); font-size: .86rem; }
table.cat-table .cat-type, table.parts-table .cat-type { color: var(--muted-2); font-size: .82rem; }
.price-pill {
  display: inline-block; white-space: nowrap; font-family: var(--font-mono); font-weight: 600;
  font-size: .84rem; color: var(--brand); padding: 4px 10px; border-radius: 6px;
  background: rgba(13,156,118,.07); border: 1px solid rgba(13,156,118,.22);
}
.price-pill.na { color: var(--muted-2); background: var(--surface-2); border-color: var(--line); }

@media (max-width: 600px) {
  .brand-logo { width: 46px; height: 46px; font-size: .9rem; }
}

/* ============================================================
   PARTS SOURCING / SEARCH
   ============================================================ */
.search-wrap { position: relative; max-width: 720px; margin: 0 auto 18px; }
.search-input {
  width: 100%; padding: 16px 22px 16px 54px; font-size: 1rem;
  border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text); transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-mono);
}
.search-input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(13,111,196,.12); }
.search-wrap .si-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted-2); pointer-events: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  padding: 7px 14px; border-radius: 6px; font-size: .84rem; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); transition: all .18s;
}
.chip-btn:hover { color: var(--text); border-color: var(--navy); }
.chip-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.parts-count { font-family: var(--font-mono); font-size: .82rem; color: var(--muted-2); white-space: nowrap; }
.parts-count b { color: var(--brand); }

table.cat-table .pn, table.parts-table .pn { font-family: var(--font-mono); font-weight: 600; color: var(--brand-2); white-space: nowrap; text-decoration: none; }
table.cat-table a.pn:hover, table.parts-table a.pn:hover { text-decoration: underline; text-underline-offset: 3px; }
table.cat-table .pn-brand { font-size: .78rem; font-family: var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
table.cat-table .pn-cat { display: inline-block; font-size: .72rem; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.req-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 13px; border-radius: 6px; font-size: .82rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); transition: all .2s;
}
.req-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.req-btn svg { width: 14px; height: 14px; }
.no-results { text-align: center; padding: 50px 20px; color: var(--muted); }
.no-results b { color: var(--text); display: block; font-size: 1.1rem; margin-bottom: 8px; }

.sourcing-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(28px,4vw,42px); display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.sourcing-band h3 { margin-bottom: 8px; color: #fff; }
.sourcing-band .eyebrow { color: #2fe6b4; }
.sourcing-band .eyebrow::before { background: #2fe6b4; }
.sourcing-band p { color: #b9c7d4; max-width: 60ch; }
.sourcing-band .btn-primary { background: #fff; color: var(--navy); }
.sourcing-band .btn-primary:hover { background: #e8eef4; }

.parts-more { display: flex; justify-content: center; margin-top: 22px; }
.parts-more .btn { font-family: var(--font-mono); font-size: .9rem; }

/* ---- Legal / prose pages ---- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; display: grid; gap: 8px; }
.prose ul li { display: flex; gap: 10px; }
.prose ul li::before { content: ""; flex: none; margin-top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.prose .ph { color: var(--warn); font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { font-family: var(--font-mono); font-size: .82rem; color: var(--muted-2); }

/* ---- Part (P/N) detail page ---- */
.part-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px,4vw,48px); align-items: start; }
.part-visual {
  position: sticky; top: 90px; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  border: 1px solid var(--line); overflow: hidden;
  background: var(--surface-2);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.part-visual img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.part-ph { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.part-ph::before { content: none; }
.part-ph .pic { width: 92px; height: 92px; color: var(--brand); position: relative; z-index: 1; }
.part-ph .pbrand { position: absolute; top: 18px; left: 20px; font-family: var(--font-mono); font-weight: 700; letter-spacing: .04em; color: var(--muted-2); }
.part-ph .ppn { position: absolute; bottom: 18px; left: 20px; right: 20px; font-family: var(--font-mono); font-size: .85rem; color: var(--brand-2); word-break: break-all; }
.part-info h1 { font-family: var(--font-mono); font-size: clamp(1.5rem,3vw,2.2rem); word-break: break-all; letter-spacing: -.01em; }
.part-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.part-badges .b { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.part-badges .b.brand { color: var(--brand-2); border-color: rgba(13,111,196,.3); background: rgba(13,111,196,.05); }
.part-badges .b.cat { color: var(--brand); border-color: rgba(13,156,118,.3); background: rgba(13,156,118,.06); }
.part-desc { font-size: 1.08rem; color: var(--text); margin-bottom: 22px; max-width: 65ch; }
.part-spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; background: var(--surface); }
.part-spec .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.part-spec .row:nth-child(odd) { background: var(--surface-2); }
.part-spec .row:last-child { border-bottom: 0; }
.part-spec .row .k { color: var(--muted); }
.part-spec .row .v { font-family: var(--font-mono); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.part-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.part-note { margin-top: 18px; color: var(--muted); font-size: .9rem; display: flex; gap: 9px; align-items: flex-start; }
.part-note svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 1px; }
@media (max-width: 860px) { .part-grid { grid-template-columns: 1fr; } .part-visual { position: static; max-width: 440px; } }

/* ---- Coverage timeline 2000–2026 ---- */
.cov-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .78rem; color: var(--muted-2); padding: 0 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cov-rows { display: grid; gap: 2px; }
.cov-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cov-row:last-child { border-bottom: 0; }
.cov-brand { font-weight: 700; font-size: .95rem; }
.cov-brand small { display: block; font-weight: 500; font-size: .76rem; color: var(--muted-2); font-family: var(--font-mono); }
.cov-track { display: flex; flex-wrap: wrap; gap: 7px; }
.cov-pill {
  font-family: var(--font-mono); font-size: .75rem; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface); white-space: nowrap;
}
.cov-pill.hot { color: #fff; background: var(--navy); border-color: var(--navy); font-weight: 600; }
.cov-note { color: var(--muted-2); font-size: .82rem; margin-top: 14px; }
@media (max-width: 680px) {
  .cov-row { grid-template-columns: 1fr; gap: 8px; }
}
