/* =========================================================
   LarrunKonnect — Design tokens & global styles
   ========================================================= */

:root {
  /* Brand palette */
  --c-primary: #1a4d7a;       /* Bleu signal */
  --c-primary-700: #143c5e;
  --c-primary-300: #6a90b1;
  --c-secondary: #2d8659;     /* Vert eco */
  --c-accent: #e8743c;        /* Orange émission */
  --c-ink: #1a1d23;           /* Encre */
  --c-mist: #f5f6f7;          /* Brume */
  --c-paper: #ffffff;
  --c-line: #e5e7eb;
  --c-line-strong: #d1d5db;
  --c-muted: #6b7280;

  /* Type */
  --font-display: "Inter", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);

  /* Container */
  --container: 1200px;
  --container-tight: 920px;

  /* Density */
  --density-scale: 1;
}

[data-theme="dark"] {
  --c-paper: #182338;
  --c-mist: #20304a;
  --c-ink: #eef3fb;
  --c-line: #2c3c58;
  --c-line-strong: #3a4d6e;
  --c-muted: #98a7c1;
  --c-primary-300: #9bbfe0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

/* ── Touch UX ─────────────────────────────────────────
   Supprime le flash bleu natif & le délai 300 ms      */
.btn, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a { -webkit-tap-highlight-color: transparent; }

/* Masque la barre de défilement sur les zones à scroll
   horizontal (device tabs) — gardée fonctionnelle       */
.device-tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.device-tabs::-webkit-scrollbar { display: none; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-tight {
  max-width: var(--container-tight);
  margin: 0 auto;
  padding: 0 24px;
}

/* Brand logo */
.brand-logo { height: 84px; width: auto; display: block; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: var(--c-paper);
  border-top: 1px solid var(--c-line);
}
.nav-mobile a {
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--c-ink);
  font-weight: 500;
  font-size: 16px;
}
.nav-mobile a.active { color: var(--c-primary); background: color-mix(in oklab, var(--c-primary) 8%, transparent); }
.nav-mobile a:hover { background: var(--c-mist); text-decoration: none; }
.nav-mobile .btn { margin-top: 8px; justify-content: center; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 600; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.15; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 16px; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-accent) 60%, transparent);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--c-muted);
  line-height: 1.55;
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--c-primary);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 6px 18px color-mix(in oklab, var(--c-primary) 25%, transparent);
}
.btn-primary:hover { background: var(--c-primary-700); }
.btn-secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line-strong);
}
.btn-secondary:hover { border-color: var(--c-ink); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  padding: 8px 14px;
}
.btn-ghost:hover { background: var(--c-mist); }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  background: var(--c-paper);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-eco { color: var(--c-secondary); border-color: color-mix(in oklab, var(--c-secondary) 30%, transparent); }
.badge-tech { color: var(--c-primary); border-color: color-mix(in oklab, var(--c-primary) 30%, transparent); }
.badge-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
  animation: pulse-dot 2s ease-out infinite;
}

/* Card */
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--c-line-strong); }

/* Section utilities */
.section {
  padding: clamp(64px, 9vw, 128px) 0;
}
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }

.divider {
  height: 1px;
  background: var(--c-line);
  border: none;
  margin: 0;
}

/* Mono helpers */
.mono { font-family: var(--font-mono); }

/* Page transitions */
.page {
  display: none;
  animation: pageIn 0.3s ease;
}
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Header — fixed pour garantir la visibilité au scroll sur tous les navigateurs
   (position: sticky est cassé par overflow-x: hidden sur iOS Safari)        */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--c-paper) 90%, transparent);
  border-bottom: 1px solid var(--c-line);
}

/* Compense la hauteur du header fixe (inner = 92px + 1px border) */
main { padding-top: 93px; }
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.site-header nav {
  display: flex; gap: 4px; align-items: center;
}
.site-header nav a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-size: 14.5px;
  font-weight: 500;
}
.site-header nav a:hover { background: var(--c-mist); text-decoration: none; }
.site-header nav a.active { color: var(--c-primary); background: color-mix(in oklab, var(--c-primary) 8%, transparent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--c-muted);
}
.header-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-secondary);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-secondary) 50%, transparent);
  animation: pulse-dot 2.4s ease-out infinite;
}

.brand-mark {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.brand-mark img {
  transition: filter 0.2s ease;
}
[data-theme="dark"] .brand-mark img {
  filter: invert(1);
}
[data-theme="dark"] .footer-logo {
  filter: invert(1);
}
.brand-mark .word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.brand-mark .word .lk-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--c-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--c-mist);
  border-top: 1px solid var(--c-line);
  padding: 64px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin: 0 0 16px;
}
.footer-grid ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-grid ul a { color: var(--c-ink); font-size: 14.5px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
  background: radial-gradient(circle at 50% 30%, color-mix(in oklab, var(--c-primary) 8%, transparent), transparent 60%),
              var(--c-paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--c-primary), var(--c-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}
.hero-meta {
  margin-top: 32px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-secondary); }

#globe-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.globe-frame {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.globe-frame::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: inset 0 0 80px color-mix(in oklab, var(--c-primary) 30%, transparent);
}
.globe-overlay {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
}
.globe-overlay.tl { top: 12px; left: 16px; }
.globe-overlay.tr { top: 12px; right: 16px; text-align: right; }
.globe-overlay.bl { bottom: 12px; left: 16px; }
.globe-overlay.br { bottom: 12px; right: 16px; text-align: right; }
.globe-overlay .ln { display: block; opacity: 0.7; }
.globe-overlay .ln strong { color: var(--c-ink); font-weight: 500; opacity: 1; }

/* 3 piliers */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--c-paper);
  position: relative;
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
}
.pillar h3 { margin: 16px 0 10px; }
.pillar p { color: var(--c-muted); margin: 0; font-size: 15.5px; }
.pillar .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--c-primary) 8%, transparent);
  color: var(--c-primary);
  margin-bottom: 8px;
}
.pillar.--eco .icon { background: color-mix(in oklab, var(--c-secondary) 10%, transparent); color: var(--c-secondary); }
.pillar.--accent .icon { background: color-mix(in oklab, var(--c-accent) 10%, transparent); color: var(--c-accent); }

/* Pourquoi */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
}
.why-image .why-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.why-image .caption {
  position: absolute; bottom: 16px; left: 20px;
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.9;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.why-image svg.mtn {
  display: none;
}
.why blockquote {
  margin: 24px 0; padding: 16px 20px;
  border-left: 3px solid var(--c-accent);
  font-style: italic;
  color: var(--c-ink);
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-paper);
}
.kpi {
  padding: 36px 28px;
  border-right: 1px solid var(--c-line);
}
.kpi:last-child { border-right: none; }
.kpi .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-primary);
  line-height: 1;
}
.kpi .label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--c-paper);
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--c-muted); font-size: 15px; }
.step .glyph {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: var(--c-mist);
  margin-bottom: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--c-line);
}

/* Section heads */
.section-head { margin-bottom: 48px; max-width: 60ch; }
.section-head h2 { margin: 12px 0 16px; }
.section-head p { color: var(--c-muted); font-size: 18px; max-width: 55ch; }

/* CTA banner */
.cta-banner {
  background: #0f1a2e;
  color: white;
  border-radius: var(--r-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,0.7); }
.cta-banner .btn-primary { background: var(--c-accent); }
.cta-banner .btn-primary:hover { background: color-mix(in oklab, var(--c-accent) 90%, black); }
.cta-banner .btn-secondary { color: white; border-color: rgba(255,255,255,0.2); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
[data-theme="dark"] .cta-banner { background: #050b18; border: 1px solid var(--c-line); }
.cta-banner .mesh-bg {
  position: absolute; inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

/* Page hero (non-home) */
.page-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { max-width: 18ch; margin-bottom: 20px; }
.page-hero .lead { max-width: 65ch; }
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--c-muted);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--c-line);
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-mist);
}
.compare th[scope="row"] { font-weight: 500; color: var(--c-muted); width: 28%; }
.compare .col-lk { color: var(--c-primary); font-weight: 500; }
.compare .col-mob { color: var(--c-ink); }

/* Form */
.form-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 40px;
  background: var(--c-paper);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-paper);
  color: var(--c-ink);
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-primary) 15%, transparent);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--c-muted);
}

/* Engagement cards */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.engage-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--c-paper);
  display: flex; flex-direction: column;
  position: relative;
}
.engage-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
}
.engage-card h3 { margin: 12px 0 8px; }
.engage-card p { color: var(--c-muted); flex: 1; font-size: 15px; }
.engage-card .btn { align-self: flex-start; margin-top: 16px; }

/* Values list */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.value h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.value h3 .v-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 400;
}
.value p { color: var(--c-muted); font-size: 15.5px; margin: 0; }

/* Engagements bullets */
.engagements {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.engagements .item {
  padding: 20px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
}
.engagements .item h4 { margin: 0 0 6px; font-size: 15.5px; }
.engagements .item p { margin: 0; color: var(--c-muted); font-size: 14px; }

/* Bureau */
.bureau {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bureau .role {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
}
.bureau .role .title {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.bureau .role .name { font-weight: 500; }

/* FAQ */
.faq details {
  border-top: 1px solid var(--c-line);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--c-line); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--c-muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--c-muted); margin-top: 10px; font-size: 15px; }

/* Mesh schema illustration */
.mesh-schema {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  position: relative;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .why-grid, .cta-banner { grid-template-columns: 1fr; }
  .pillars, .steps, .engage-grid { grid-template-columns: 1fr; }
  .device-grid, .origin-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .flow-cards, .principle-cards { grid-template-columns: 1fr 1fr !important; }
  .kids-callout { grid-template-columns: 1fr !important; }
  .kids-callout > div:first-child { min-height: 320px !important; }
  .kids-text { padding: 32px !important; }
  .tdeck-card { grid-template-columns: 1fr !important; gap: 24px !important; padding: 24px !important; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
  .kpi:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid, .engagements, .bureau { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Spécificité renforcée : .site-header nav (0,1,1) écrasait .nav-desktop (0,1,0) */
  .site-header .nav-desktop, .header-status { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .cta-banner { padding: 32px; }
  .header-cta { display: none; }
  .brand-logo { height: 64px; }
}

/* Phones (iPhone / Android) */
@media (max-width: 640px) {
  .container, .container-tight { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .page-hero { padding: 48px 0 32px; }

  /* Tighten typography */
  h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.1; }
  h2 { font-size: clamp(24px, 6.5vw, 30px); line-height: 1.2; }
  h3 { font-size: 19px; }
  .lead, p { font-size: 16px; }
  .section-head p { font-size: 16px; }

  /* Hero */
  .hero { padding: 32px 0 16px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta { font-size: 12px; gap: 12px; }
  #globe-container { aspect-ratio: 1.1 / 1; }

  /* Buttons full-width on phone for thumb reach */
  .btn { padding: 12px 18px; font-size: 14px; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .cta-banner { padding: 28px 22px; }
  .cta-banner h2 { font-size: 26px; }

  /* Cards & pillars */
  .pillar, .step, .card { padding: 22px; }
  .specs { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .principle-cards { grid-template-columns: 1fr !important; }
  .pager-card { position: static !important; }
  .kids-callout { grid-template-columns: 1fr !important; }
  .kids-callout > div:first-child { min-height: 240px !important; }
  .kids-text { padding: 28px 24px !important; }
  .kids-features { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; font-size: 12px; }

  /* Device tabs scroll horizontally */
  .device-tab { flex-shrink: 0; }

  /* Origin: sticky off, full width */
  .origin-grid > div:last-child { position: static !important; }

  /* Header */
  .site-header .inner { height: 64px; }
  .header-actions { gap: 8px; }
  /* Compense la hauteur du header fixe sur mobile (64px + 1px border) */
  main { padding-top: 65px; }

  /* ── Why image : 4/5 portrait → 16/9 paysage ─────────
     Évite une image de 430 px de haut sur un 375 px    */
  .why-image { aspect-ratio: 16 / 9; }

  /* ── KPI cells : padding réduit pour 2 colonnes ───── */
  .kpi { padding: 22px 14px; }
  .kpi .num { font-size: clamp(26px, 7vw, 36px); }

  /* ── Flow cards : 2 col → 1 col sur téléphone ─────── */
  .flow-cards { grid-template-columns: 1fr !important; }

  /* ── Power comparison rows : overflow fix ───────────
     « 180px 1fr 200px » débordait sur 375 px écran    */
  .power-row {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding: 14px 0 !important;
  }
  .power-row .power-label { font-size: 13px; font-weight: 600; }
  .power-bar-note { text-align: left !important; margin-top: 2px; }

  /* ── Bouton d'envoi du formulaire : pleine largeur ── */
  .form-submit-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .form-submit-row .btn { width: 100%; justify-content: center; }
  .form-submit-row > .mono { text-align: center; }

  /* ── Overscroll : évite de déclencher le scroll page
     quand on fait défiler un bloc horizontal ────────── */
  .device-tabs,
  .flow-svg-wrap { overscroll-behavior-x: contain; }

  /* ── Lead : meilleure lisibilité sur petit écran ──── */
  .lead { line-height: 1.65; }
}

/* Very small phones (iPhone SE etc.) */
@media (max-width: 380px) {
  .container, .container-tight { padding: 0 14px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .specs { grid-template-columns: 1fr !important; }
  .brand-logo { height: 56px; }

  /* KPIs : 1 colonne sur iPhone SE 1ʳᵉ gen (320 px) */
  .kpis { grid-template-columns: 1fr; }
  .kpi { border-right: none; border-bottom: 1px solid var(--c-line); }
  .kpi:last-child { border-bottom: none; }

  /* Formulaire : champs en colonne sur très petit écran */
  .form-card { padding: 24px 18px; }

  /* flow-cards : 1 col (déjà à 640 px, sûreté) */
  .flow-cards { grid-template-columns: 1fr !important; }
}

/* Flow infographic — keep readable on phones via horizontal scroll */
@media (max-width: 720px) {
  .flow-svg-wrap {
    padding: 16px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .flow-svg-wrap svg {
    min-width: 720px;
  }
  /* Device tabs: horizontal scroll on phone, no wrap */
  .device-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding-bottom: 8px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .device-tabs button { flex-shrink: 0; }
}

/* Density */
[data-density="compact"] {
  --space-7: 36px;
  --space-8: 48px;
  --space-9: 72px;
  --space-10: 96px;
}
[data-density="compact"] .section { padding: clamp(48px, 6vw, 80px) 0; }
[data-density="compact"] .card, [data-density="compact"] .pillar, [data-density="compact"] .step { padding: 22px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
