/* =====================================================
   GESTIONARIS — Design System
   Ivoire · Encre · Bleu nuit · Cuivre
   ===================================================== */

:root {
  /* Palette */
  --ivory: #FAF8F5;
  --ivory-2: #F2EDE3;
  --ivory-3: #ECE6D9;
  --ink: #0E0E0E;
  --ink-2: #1A1A1A;
  --ink-3: #2A2A2A;
  --navy: #0B1E3F;
  --navy-2: #102B57;
  --navy-3: #1A3D75;
  --copper: #B08D57;
  --copper-soft: #C9A97C;
  --copper-deep: #8C6F3F;

  /* Sémantique */
  --bg: var(--ivory);
  --bg-alt: var(--ivory-2);
  --bg-dark: var(--ink);
  --bg-navy: var(--navy);
  --text: var(--ink);
  --text-muted: #555;
  --text-subtle: #8A8A8A;
  --text-on-dark: #F2EDE3;
  --text-on-dark-muted: #B5B0A6;
  --border: #E0D9C9;
  --border-soft: #ECE6D9;
  --border-dark: #2A2A2A;

  /* Typographie */
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 12rem;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --container-wide: 1440px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Animations */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t: 280ms var(--ease);
  --t-slow: 600ms var(--ease);

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(14, 14, 14, 0.04);
  --shadow: 0 4px 16px rgba(14, 14, 14, 0.06), 0 1px 2px rgba(14, 14, 14, 0.04);
  --shadow-lg: 0 16px 48px rgba(14, 14, 14, 0.08), 0 4px 16px rgba(14, 14, 14, 0.05);
  --shadow-navy: 0 16px 48px rgba(11, 30, 63, 0.18);
}

/* =====================================================
   Reset & base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--navy); color: var(--ivory); }

/* =====================================================
   Typographie
   ===================================================== */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.h-display {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h-display em {
  font-style: italic;
  color: var(--navy);
  font-weight: 300;
}

h1, .h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 400; }
h2, .h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 400; }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.015em; }
h4, .h4 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--copper);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
}

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

/* =====================================================
   Layout primitives
   ===================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (max-width: 640px) {
  .container, .container-narrow, .container-wide { padding: 0 var(--space-5); }
}

section { padding: clamp(4rem, 9vw, 8rem) 0; }
section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
section.bleed { padding: clamp(5rem, 12vw, 10rem) 0; }

.section-head { max-width: 60ch; margin-bottom: var(--space-8); }
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head h2 { margin-bottom: var(--space-4); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; }
.split-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-9); align-items: center; }
.split-2-3 { display: grid; grid-template-columns: 2fr 3fr; gap: var(--space-9); align-items: center; }
@media (max-width: 900px) {
  .split, .split-3-2, .split-2-3 { grid-template-columns: 1fr; gap: var(--space-7); }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Sections sombres */
.dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--ivory); }
.dark .muted { color: var(--text-on-dark-muted); }
.dark .eyebrow { color: var(--copper-soft); }
.dark .eyebrow::before { background: var(--copper-soft); }

.navy {
  background: var(--navy);
  color: var(--text-on-dark);
}
.navy h1, .navy h2, .navy h3, .navy h4 { color: var(--ivory); }
.navy .muted { color: var(--text-on-dark-muted); }
.navy .eyebrow { color: var(--copper-soft); }
.navy .eyebrow::before { background: var(--copper-soft); }

.alt { background: var(--bg-alt); }

/* =====================================================
   Boutons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t-fast);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--navy); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--ivory); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.6rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
}
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }

.dark .btn-primary, .navy .btn-primary {
  background: var(--ivory);
  color: var(--ink);
}
.dark .btn-primary:hover, .navy .btn-primary:hover { background: var(--copper-soft); }

.dark .btn-secondary, .navy .btn-secondary {
  color: var(--ivory);
  border-color: rgba(242, 237, 227, 0.3);
}
.dark .btn-secondary:hover, .navy .btn-secondary:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

/* CTA band — bouton primaire & secondaire sur fond ink (le composant
   .cta-band définit son fond en noir mais n'applique pas la classe .dark,
   donc on duplique ici les overrides de boutons pour garantir un contraste
   correct, notamment pour btn-secondary qui était invisible). */
.cta-band .btn-primary {
  background: var(--ivory);
  color: var(--ink);
}
.cta-band .btn-primary:hover { background: var(--copper-soft); }

.cta-band .btn-secondary {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(242, 237, 227, 0.4);
}
.cta-band .btn-secondary:hover {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

.btn-arrow svg { transition: transform var(--t); width: 16px; height: 16px; }
.btn-arrow:hover svg { transform: translateX(3px); }

.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* =====================================================
   Cards
   ===================================================== */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t-fast);
}
.card:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-2px); }

.card-bare {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: transparent;
}

.dark .card, .navy .card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.dark .card:hover, .navy .card:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--text);
}
.pill-dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: var(--ivory); }
.pill-copper { background: rgba(176, 141, 87, 0.12); border-color: rgba(176, 141, 87, 0.3); color: var(--copper-deep); }
.pill-navy { background: rgba(11, 30, 63, 0.06); border-color: rgba(11, 30, 63, 0.18); color: var(--navy); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* =====================================================
   Header / Navigation
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.scrolled { border-color: var(--border-soft); }
/* NB : le backdrop-filter a été retiré ici car il transformait le header
   en containing block et cassait le positionnement fixed du nav-drawer. */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--ivory);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
}

.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 450;
  color: var(--text);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--navy);
}

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

/* Compact horizontal nav on medium screens (900–1180 px) */
@media (max-width: 1180px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.86rem; }
  .nav { height: 70px; padding: 0 1.2rem; }
}
@media (max-width: 1024px) {
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.82rem; }
  .nav-cta .btn-ghost { display: none; }
}

/* Drawer kicks in only on real mobile / tablet portrait */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-secondary,
  .nav-cta .btn-ghost { display: none; }
}

.nav-drawer {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--ivory);
  z-index: 99;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--t-slow), visibility 0s linear var(--t-slow);
  border-top: 1px solid var(--border-soft);
  padding: var(--space-6);
  overflow-y: auto;
}
.nav-drawer.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--t-slow), visibility 0s linear 0s;
}
.nav-drawer ul { list-style: none; padding: 0; }
.nav-drawer li { border-bottom: 1px solid var(--border-soft); }
.nav-drawer a {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
}

/* Submenu */
.has-submenu { position: relative; }
.submenu {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  list-style: none;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text);
}
.submenu a:hover { background: var(--ivory-2); }
.submenu a small { display: block; color: var(--text-subtle); font-size: 0.78rem; margin-top: 2px; }

/* =====================================================
   Hero
   ===================================================== */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-9);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
}
.hero h1 em { font-style: italic; color: var(--navy); font-weight: 300; }
.hero p.lead { margin-bottom: var(--space-7); }
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-meta {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-meta strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  display: block;
  letter-spacing: -0.02em;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Bandeau réassurance
   ===================================================== */
.reassure {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
  background: var(--bg);
}
.reassure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  align-items: center;
}
.reassure-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.reassure-item svg { width: 18px; height: 18px; color: var(--copper-deep); flex-shrink: 0; }
@media (max-width: 900px) {
  .reassure-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   Pillars
   ===================================================== */
.pillar {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  background: #fff;
  transition: border-color var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}
.pillar:hover { border-color: var(--ink); }
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ivory-2);
  display: grid;
  place-items: center;
  color: var(--navy);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.015em; }
.pillar p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.pillar .pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--copper);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* =====================================================
   Steps (Comment ça marche)
   ===================================================== */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-7);
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  counter-increment: step;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--copper);
  letter-spacing: -0.02em;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.step p { color: var(--text-muted); max-width: 60ch; }
.step-meta { font-size: 0.85rem; color: var(--text-subtle); white-space: nowrap; }
@media (max-width: 720px) {
  .step { grid-template-columns: 60px 1fr; }
  .step-meta { grid-column: 1 / -1; padding-left: 60px; }
  .step-num { font-size: 1.6rem; }
}

/* =====================================================
   Comparatif
   ===================================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-7);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table th {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  background: var(--ivory-2);
  vertical-align: bottom;
}
.compare-table th.featured {
  color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
  position: relative;
}
.compare-table th.featured::after {
  content: 'Nous';
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.7rem;
  color: var(--copper-soft);
  letter-spacing: 0;
  text-transform: none;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.featured {
  background: rgba(11, 30, 63, 0.04);
  font-weight: 500;
}
.compare-table .check { color: #2D7A4A; }
.compare-table .cross { color: #B25540; }
.compare-table .partial { color: var(--copper-deep); }
.compare-table tbody tr:hover { background: var(--ivory-2); }
.compare-table tbody tr:hover td.featured { background: rgba(11, 30, 63, 0.07); }

/* =====================================================
   Témoignages
   ===================================================== */
.testimonial {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.testimonial-quote::before { content: '« '; color: var(--copper); }
.testimonial-quote::after { content: ' »'; color: var(--copper); }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ivory-2);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-weight: 500; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.82rem; color: var(--text-subtle); }
.testimonial-stat {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--copper);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* =====================================================
   Études de cas
   ===================================================== */
.case-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color var(--t), transform var(--t);
  cursor: pointer;
  height: 100%;
}
.case-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.case-card-image {
  aspect-ratio: 16 / 10;
  background: var(--ivory-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  overflow: hidden;
  position: relative;
}
.case-card h3 { font-size: 1.2rem; font-weight: 500; }
.case-card .stat {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-list {
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: var(--space-5) 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  cursor: pointer;
  gap: var(--space-5);
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--navy); }
.faq-q .icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--t), background var(--t), color var(--t);
}
.faq-item.open .faq-q .icon {
  background: var(--ink);
  color: var(--ivory);
  transform: rotate(45deg);
  border-color: var(--ink);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
  color: var(--text-muted);
}
.faq-a-inner { padding: 0 0 var(--space-6); max-width: 65ch; }
.faq-item.open .faq-a { max-height: 800px; }

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: var(--space-9) 0 var(--space-6);
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { color: var(--text-on-dark-muted); max-width: 28ch; margin-top: var(--space-3); font-size: 0.9rem; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-legal a:hover { color: var(--ivory); }
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* =====================================================
   Mockups
   ===================================================== */
.mockup-laptop {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a2540 0%, #0B1E3F 100%);
  padding: 14px 14px 8px;
  box-shadow: var(--shadow-navy);
  border: 1px solid rgba(255,255,255,0.06);
}
.mockup-laptop::after {
  content: '';
  position: absolute;
  bottom: -16px; left: -8%; right: -8%;
  height: 22px;
  background: linear-gradient(180deg, #c9c4b8, #9c9788);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.mockup-screen {
  background: var(--ivory);
  border-radius: 6px;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.mockup-phone {
  width: 240px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 32px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
}
.mockup-phone-screen {
  background: var(--ivory);
  border-radius: 26px;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Dashboard mockup */
.mock-dash {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  font-size: 0.6rem;
  font-family: var(--font-sans);
}
.mock-dash-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
}
.mock-dash-brand { display: flex; align-items: center; gap: 6px; }
.mock-logo-mark {
  width: 14px; height: 14px;
  background: var(--ink); color: var(--ivory);
  border-radius: 3px;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.6rem;
}
.mock-brand-text {
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.7rem; color: var(--ink);
}
.mock-breadcrumb { color: var(--text-subtle); font-size: 0.6rem; }
.mock-dash-search {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 8px;
  background: var(--ivory-2);
  border-radius: 4px;
  color: var(--text-subtle);
  font-size: 0.55rem;
  max-width: 220px;
  overflow: hidden;
}
.mock-dash-search svg { width: 9px; height: 9px; flex-shrink: 0; }
.mock-dash-search span:first-of-type { flex: 1; white-space: nowrap; }
.mock-kbd {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  padding: 1px 4px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  color: var(--text-muted);
}
.mock-dash-user { display: flex; align-items: center; gap: 6px; }
.mock-bell { position: relative; color: var(--text-muted); }
.mock-bell svg { width: 11px; height: 11px; }
.mock-bell-dot {
  position: absolute; top: -1px; right: -1px;
  width: 5px; height: 5px;
  background: var(--copper);
  border-radius: 50%;
  border: 1px solid #fff;
}
.mock-avatar {
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--ivory);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.5rem;
  font-weight: 500;
}

.mock-dash-body { padding: 10px; display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.mock-side {
  background: var(--ivory-2);
  border-radius: 4px;
  padding: 6px 4px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.mock-side-section {
  font-size: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  padding: 4px 6px 2px;
  font-weight: 500;
}
.mock-side-section + .mock-side-section { margin-top: 4px; }
.mock-side .nav-i {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 0.55rem;
  color: var(--text);
  background: transparent;
  height: auto;
}
.mock-side .nav-i svg { width: 9px; height: 9px; flex-shrink: 0; opacity: 0.7; }
.mock-side .nav-i em {
  font-style: normal;
  color: var(--text-subtle);
  margin-left: auto;
  font-size: 0.5rem;
}
.mock-side .nav-i.active {
  background: var(--navy);
  color: var(--ivory);
}
.mock-side .nav-i.active svg { opacity: 1; }
.mock-side .nav-i.active em { color: rgba(255,255,255,0.7); }
.mock-side .nav-i-alert { color: var(--copper-deep); }
.mock-side .nav-i-alert em {
  background: var(--copper);
  color: var(--ivory);
  border-radius: 6px;
  padding: 0 4px;
  font-size: 0.45rem;
}

.mock-main { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mock-kpi {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-kpi small { font-size: 0.5rem; color: var(--text-subtle); }
.mock-kpi .val { font-family: var(--font-serif); font-size: 0.85rem; color: var(--ink); line-height: 1.1; margin: 1px 0; }
.mock-kpi .trend {
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.mock-kpi .trend.up { color: #2D7A4A; }
.mock-kpi .trend.down { color: var(--copper-deep); }
.mock-kpi .trend.muted { color: var(--text-subtle); }

.mock-chart {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 7px 8px 4px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
}
.mock-chart-head {
  display: flex; justify-content: space-between; align-items: start;
  gap: 8px;
}
.mock-chart-title { font-size: 0.6rem; font-weight: 500; color: var(--ink); }
.mock-chart-sub { font-size: 0.48rem; color: var(--text-subtle); margin-top: 1px; }
.mock-chart-legend { display: flex; gap: 8px; font-size: 0.5rem; color: var(--text-muted); }
.mock-chart-legend i {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 1px;
  margin-right: 3px;
  vertical-align: middle;
}
.dot-navy { background: var(--navy); }
.dot-copper { background: var(--copper); }
.mock-chart-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  min-height: 80px;
}
.mock-chart .bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  opacity: 0.95;
}
.mock-chart .bar-stack {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
  justify-content: flex-start;
  gap: 1px;
}
.mock-chart .bar-stack .bar {
  width: 100%;
  flex: 0 0 auto;
}
.mock-chart .bar.bar-navy { background: linear-gradient(180deg, var(--navy), var(--navy-2)); }
.mock-chart .bar.bar-copper { background: var(--copper); }
.mock-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.45rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  padding: 0 2px;
}

.mock-list {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-list-head {
  display: flex; justify-content: space-between;
  font-size: 0.55rem;
  color: var(--ink);
  font-weight: 500;
  padding: 2px 2px 5px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}
.mock-list-link { color: var(--copper-deep); font-style: italic; font-family: var(--font-serif); font-weight: 400; }
.mock-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--ivory);
  border-radius: 3px;
  font-size: 0.55rem;
}
.mock-row .tag { color: var(--copper-deep); font-style: italic; font-size: 0.55rem; white-space: nowrap; }
.mock-row .tag.tag-up { color: #2D7A4A; font-style: normal; font-weight: 500; }
.mock-row .tag.tag-action { color: var(--copper-deep); }
.mock-row .tag.tag-info {
  background: var(--navy);
  color: var(--ivory);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 500;
}
.mock-row .row-pill {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 2px 4px;
  border-radius: 2px;
  color: var(--ivory);
}
.mock-row .row-pill-navy { background: var(--navy); }
.mock-row .row-pill-copper { background: var(--copper); }
.mock-row .row-content { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mock-row .row-title { font-size: 0.6rem; color: var(--ink); font-weight: 500; }
.mock-row .row-sub { font-size: 0.48rem; color: var(--text-subtle); }

/* =====================================================
   Phone mockup — contenu enrichi
   ===================================================== */
.mockup-phone-screen {
  padding: 8px 10px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}
.mock-phone-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.55rem;
  color: var(--ink);
  padding: 0 2px;
}
.mock-phone-time { font-weight: 600; }
.mock-phone-icons { display: flex; gap: 4px; align-items: center; color: var(--ink); }
.mock-phone-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 2px 4px;
}
.mock-phone-greeting {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mock-phone-sub {
  font-size: 0.5rem;
  color: var(--text-subtle);
  margin-top: 1px;
}
.mock-phone-avatar {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--ivory);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.6rem;
}
.mock-phone-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-phone-card-primary {
  background: linear-gradient(155deg, var(--ink) 0%, var(--navy) 100%);
  border-color: var(--ink);
  color: var(--ivory);
}
.mock-phone-row {
  display: flex; align-items: center; gap: 6px;
}
.mock-phone-label {
  flex: 1;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.mock-phone-tag-live {
  font-size: 0.45rem;
  letter-spacing: 0.04em;
  color: var(--copper-soft);
  font-weight: 600;
}
.mock-phone-amount {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--copper-soft);
  line-height: 1.05;
}
.mock-phone-meta {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.6);
}
.mock-phone-card:not(.mock-phone-card-primary) .mock-phone-meta {
  color: var(--text-subtle);
}
.mock-phone-spark {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 18px;
  margin-top: 4px;
}
.mock-phone-spark span {
  flex: 1;
  background: linear-gradient(180deg, var(--copper-soft), var(--copper));
  border-radius: 1px 1px 0 0;
  opacity: 0.9;
}
.mock-phone-icon-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mock-phone-icon-circle svg { width: 12px; height: 12px; }
.mock-phone-icon-copper {
  background: rgba(180, 110, 60, 0.12);
  color: var(--copper-deep);
}
.mock-phone-label-sm {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--ink);
}
.mock-phone-time-sm {
  font-size: 0.5rem;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
.mock-phone-card-reco {
  background: var(--ivory-2);
  border-color: rgba(180, 110, 60, 0.25);
}
.mock-phone-reco-head {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.6rem;
  color: var(--copper-deep);
}
.mock-phone-reco-head svg { width: 10px; height: 10px; }
.mock-phone-reco-text {
  font-size: 0.58rem;
  line-height: 1.35;
  color: var(--text);
}
.mock-phone-reco-text strong {
  color: #2D7A4A;
  font-weight: 600;
}
.mock-phone-reco-cta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.55rem;
  color: var(--navy);
  align-self: flex-end;
  margin-top: 1px;
}

/* =====================================================
   Tarifs
   ===================================================== */
.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  height: 100%;
  position: relative;
  transition: border-color var(--t), transform var(--t);
}
.price-card.featured {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.price-card.featured h3 { color: var(--ivory); }
.price-card.featured .muted { color: var(--text-on-dark-muted); }
.price-card.featured .price-amount { color: var(--ivory); }
.price-card.featured .price-amount em { color: var(--copper-soft); }

.price-tag {
  position: absolute;
  top: -10px; left: var(--space-7);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--copper);
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-amount em {
  font-style: italic;
  color: var(--copper);
  font-size: 0.7em;
  margin-left: 0.2em;
}
.price-amount sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  vertical-align: baseline;
  font-weight: 400;
  margin-left: 0.4em;
}
.price-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.price-features li {
  /* Grid plutôt que flex : le SVG va en col 1, TOUT le texte (y compris
     un éventuel <strong>/<em> inline) reste dans la cellule col 2 et
     se comporte comme un seul bloc — pas de fragmentation en items
     séparés avec un gap qui casse la lecture. */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.price-features li svg { color: var(--copper); margin-top: 4px; width: 14px; height: 14px; }
.price-card.featured .price-features li svg { color: var(--copper-soft); }

/* =====================================================
   Tech grid (page Notre technologie)
   ===================================================== */
.tech-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-9) 0;
  border-bottom: 1px solid var(--border);
}
.tech-feature:last-child { border-bottom: none; }
.tech-feature.reverse { grid-template-columns: 1fr 1.1fr; }
.tech-feature.reverse .tech-feature-text { order: 2; }
.tech-feature.reverse .tech-feature-mock { order: 1; }
.tech-feature-mock {
  background: var(--ivory-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.tech-feature h3 { font-size: 1.6rem; margin-bottom: var(--space-4); }
.tech-feature-meta {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tech-feature-meta strong {
  color: var(--ink);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
}
@media (max-width: 980px) {
  .tech-feature, .tech-feature.reverse { grid-template-columns: 1fr; gap: var(--space-6); }
  .tech-feature.reverse .tech-feature-text { order: 1; }
  .tech-feature.reverse .tech-feature-mock { order: 2; }
}

/* =====================================================
   Founders
   ===================================================== */
.founder {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.founder-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ivory-3), var(--ivory-2));
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.founder-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,0.6), transparent 60%);
  pointer-events: none;
}
.founder-portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  z-index: 1;
}
.founder-portrait:has(> img)::after {
  background: linear-gradient(180deg, transparent 55%, rgba(11, 22, 45, 0.18));
  z-index: 2;
}
.founder-portrait:has(> img) .founder-initial {
  display: none;
}
.founder-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 5rem;
  font-weight: 300;
  color: var(--navy);
  opacity: 0.45;
}
.founder h3 { font-size: 1.4rem; margin-bottom: 4px; }
.founder-role {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--copper);
  font-size: 0.95rem;
}
.founder p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* =====================================================
   Form
   ===================================================== */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-family: var(--font-sans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 30, 63, 0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-help { font-size: 0.8rem; color: var(--text-subtle); }

/* Slider */
.range-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.range-group .label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.range-group .label-row .value {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.range-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  outline: none;
}
.range-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: pointer;
}
.range-group input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--ivory);
  cursor: pointer;
}

/* Toggle group */
.segmented {
  display: inline-flex;
  background: var(--ivory-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 0;
}
.segmented button {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.segmented button.active {
  background: var(--ink);
  color: var(--ivory);
}

/* =====================================================
   Animations: scroll reveal
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Slow shimmer for AI/copper accents */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(
    90deg,
    var(--copper) 0%,
    var(--copper-soft) 50%,
    var(--copper) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulsing dot */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 122, 74, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(45, 122, 74, 0); }
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2D7A4A;
  animation: pulse-dot 2s ease-out infinite;
}

/* =====================================================
   Utilities
   ===================================================== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.w-full { width: 100%; }
.hide-mobile { }
.hide-desktop { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .hide-desktop { display: block; }
}

.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.divider-dark { height: 1px; background: rgba(255,255,255,0.08); border: none; }

/* Map preview */
.map-preview {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 40%, rgba(176, 141, 87, 0.15), transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(11, 30, 63, 0.1), transparent 35%),
    linear-gradient(135deg, var(--ivory-2) 0%, var(--ivory-3) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.map-preview::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,30,63,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,30,63,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--navy);
  border: 3px solid var(--ivory);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(11,30,63,0.3);
}

/* Annoucement banner */
.announce {
  background: var(--ink);
  color: var(--text-on-dark);
  text-align: center;
  font-size: 0.82rem;
  padding: 0.6rem var(--space-5);
  letter-spacing: 0.01em;
}
.announce a { color: var(--copper-soft); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.announce a:hover { color: var(--ivory); }

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}
.tab {
  padding: var(--space-4) var(--space-5);
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  margin-bottom: -1px;
}
.tab.active {
  color: var(--ink);
  border-color: var(--ink);
}

/* Inline icon stroke */
.icon-stroke {
  width: 1em; height: 1em;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Page hero (interior pages) */
.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: var(--space-4); }
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: var(--space-5);
}
.page-hero h1 em { font-style: italic; color: var(--navy); }
.page-hero .lead { max-width: 60ch; font-size: 1.15rem; }

.breadcrumb {
  display: flex;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--ink); }

/* Big CTA */
.cta-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0 auto var(--space-5);
  color: var(--ivory);
}
.cta-band h2 em { font-style: italic; color: var(--copper-soft); }
.cta-band p { color: var(--text-on-dark-muted); max-width: 50ch; margin: 0 auto var(--space-7); }
.cta-band .ctas { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* Logos strip */
.logos-strip {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-7);
  flex-wrap: wrap;
  opacity: 0.55;
  filter: grayscale(1);
}
.logos-strip-inner span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* =====================================================
   Address autocomplete (estimateur)
   ===================================================== */
.address-autocomplete {
  position: relative;
}
.address-autocomplete input {
  width: 100%;
}
.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px -12px rgba(11, 22, 45, 0.18);
  list-style: none;
  margin: 0;
  padding: 4px;
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.address-suggestions li {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.12s ease;
}
.address-suggestions li:hover,
.address-suggestions li.active {
  background: var(--ivory-2);
}
.address-suggestions .addr-line1 {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.address-suggestions .addr-line2 {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.form-help.error {
  color: var(--copper-deep);
}

/* Estimateur : highlight de la card recommandée */
.card[data-scenario] {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card[data-scenario].scenario-reco {
  border-color: var(--copper);
  box-shadow: 0 12px 36px -12px rgba(180, 110, 60, 0.28);
  transform: translateY(-2px);
}
.card[data-scenario][data-scenario="hybride"] {
  background: linear-gradient(155deg, #fff 0%, var(--ivory-2) 100%);
}

/* =====================================================
   Carte Leaflet (hero) — overlay & pins copper
   ===================================================== */
.map-preview .leaflet-container {
  background: #0b1e3f;
  font-family: var(--font-sans);
}
.map-overlay-top {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 400;
  pointer-events: none;
}
.map-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: rgba(11, 30, 63, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--ivory);
  letter-spacing: 0.02em;
}
.map-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.map-legend-dot-active {
  background: #B08D57;
  box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.25);
}
.map-overlay-bottom {
  position: absolute;
  bottom: 8px; right: 10px;
  z-index: 400;
  pointer-events: none;
}
.map-attribution {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* Pin custom : un point copper + halo pulse */
.gst-pin-wrap {
  position: relative;
  display: block;
  width: 18px; height: 18px;
}
.gst-pin-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #B08D57;
  border: 2px solid #FAF8F5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.gst-pin-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(176, 141, 87, 0.35);
  z-index: 1;
  animation: gst-pin-pulse 2.4s ease-out infinite;
}
@keyframes gst-pin-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0.9; }
  70%  { transform: translate(-50%, -50%) scale(2.3); opacity: 0;   }
  100% { transform: translate(-50%, -50%) scale(2.3); opacity: 0;   }
}
/* Cache l'attribution Leaflet par défaut (on a la nôtre) */
.leaflet-control-attribution { display: none !important; }

/* =====================================================
   MOBILE PATCH — Lisibilité et confort sur smartphone
   ===================================================== */

/* Hero - typo plus contenue, padding réduit, mockup masqué sur petits écrans */
@media (max-width: 768px) {
  .hero { padding: 2rem 0 2.5rem; }
  .hero h1 {
    font-size: clamp(2.1rem, 8.5vw, 2.8rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
  }
  .hero p.lead {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.55;
  }
  .hero-grid { gap: 2rem; }
  .hero-meta {
    gap: 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.8rem;
  }
  .hero-meta strong { font-size: 1.3rem; }
  .hero-visual {
    margin: 0;
    overflow: hidden;
    transform: scale(1);
  }
}

/* Sur petit smartphone, on cache complètement le mockup laptop (illisible) */
@media (max-width: 600px) {
  .hero-visual { display: none; }
  .hero { padding: 1.5rem 0 2rem; }
}

/* Sections : padding plus serré + headings plus petits */
@media (max-width: 768px) {
  section { padding: 2.5rem 0; }
  section.bleed { padding: 3rem 0; }
  section.tight { padding: 2rem 0; }
  .section-head { margin-bottom: 1.75rem; }
  h1, .h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2, .h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  h3, .h3 { font-size: 1.2rem; }
}

/* Container : padding réduit sur smartphones */
@media (max-width: 480px) {
  .container, .container-narrow, .container-wide { padding: 0 1rem; }
}

/* Boutons CTA empilés verticalement et pleine largeur */
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .article-cta .ctas { flex-direction: column; align-items: stretch; }
  .article-cta .ctas .btn { width: 100%; justify-content: center; }
  .cta-band .btn { width: 100%; justify-content: center; }
}

/* Tableaux comparaison : scroll horizontal avec ombre indiquant le défilement */
@media (max-width: 768px) {
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 0.82rem;
    border-radius: var(--radius-md);
  }
  .compare-table thead, .compare-table tbody, .compare-table tr { display: table; width: 100%; }
  .compare-table th, .compare-table td { padding: 0.7rem 0.85rem; }
}

/* Pillars / Testimonials / Cards : padding réduit */
@media (max-width: 600px) {
  .pillar { padding: 1.5rem; }
  .testimonial { padding: 1.5rem; }
  .testimonial-quote { font-size: 1.1rem; }
  .case-card { padding: 1.25rem; }
  .pillar h3 { font-size: 1.2rem; }
}

/* Steps : numéros + textes calibrés */
@media (max-width: 600px) {
  .step h3 { font-size: 1.15rem; }
  .step p { font-size: 0.93rem; }
  .step-num { font-size: 1.4rem; }
}

/* Reassure : 1 colonne sur très petit écran */
@media (max-width: 480px) {
  .reassure-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .reassure-item { font-size: 0.85rem; }
}

/* FAQ : tailles ajustées */
@media (max-width: 600px) {
  .faq-q { font-size: 1.05rem; padding: 1rem 0; gap: 1rem; }
  .faq-q .icon { width: 24px; height: 24px; }
}

/* Footer : espacement plus aéré */
@media (max-width: 600px) {
  .site-footer { padding: 2.5rem 0 1.25rem; }
  .footer-top { padding-bottom: 2rem; gap: 1.5rem; }
  .footer-bottom { gap: 0.75rem; flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 1rem; flex-wrap: wrap; }
}

/* Mockup phone : caché sur mobile (déjà en hide-mobile mais sécurité) */
@media (max-width: 768px) {
  .mockup-phone { display: none; }
}

/* Form rows : empilés */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; } /* évite le zoom auto iOS */
}

/* Founders : portraits moins hauts pour ne pas occuper tout l'écran */
@media (max-width: 600px) {
  .founder-portrait { aspect-ratio: 1 / 1; }
  .founder h3 { font-size: 1.2rem; }
}

/* Tech features : marges réduites */
@media (max-width: 600px) {
  .tech-feature { gap: 1.5rem; }
  .tech-feature-meta { gap: 1rem; flex-wrap: wrap; }
}

/* Sous-menus desktop désactivés sur mobile (drawer prend le relais) */
@media (max-width: 880px) {
  .has-submenu .submenu { display: none; }
}

/* Évite les débordements horizontaux globaux */
html, body { overflow-x: hidden; }
.container, .container-narrow, .container-wide { width: 100%; }
img, video { height: auto; }

/* =====================================================
   Nav mobile : logo à gauche, burger à droite, rien d'autre
   (le CTA "Estimer" reste accessible via le drawer)
   ===================================================== */
@media (max-width: 880px) {
  .nav {
    padding: 0 1rem;
    height: 64px;
    gap: 0.6rem;
  }
  .nav-cta { gap: 0.5rem; }
  /* Cache TOUS les boutons du header sur mobile, on garde uniquement le burger */
  .nav-cta .btn { display: none; }
  .nav-toggle { width: 36px; height: 36px; }
  .logo { font-size: 1.2rem; gap: 0.4rem; }
  .logo-mark { width: 22px; height: 22px; font-size: 0.8rem; }
  /* Réaligne le drawer sur la nouvelle hauteur de nav */
  .nav-drawer { inset: 64px 0 0 0; padding: 1.25rem; }
}

/* =====================================================
   Contact — grille 7fr/5fr inline → 1 colonne sur mobile,
   et padding du formulaire réduit pour éviter le débordement.
   Bénéfice : plus d'overflow horizontal, champs lisibles,
   bloc Cabinet visible sous le formulaire.
   ===================================================== */
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}
@media (max-width: 600px) {
  .contact-grid form.card { padding: 1.5rem !important; }
  .contact-grid .card-bare { padding: 1.25rem; }
  .contact-grid h3 { font-size: 1.25rem !important; }
  .contact-grid h4 { font-size: 1.05rem; }
}

/* =====================================================
   Garde-fous responsive globaux : éviter qu'un padding
   inline (2.5rem, 3rem, etc.) ne produise un débordement
   sur petit écran. Ces règles ciblent les inline styles
   les plus courants des templates.
   ===================================================== */
@media (max-width: 600px) {
  /* Cards / sections avec padding 2.5rem inline → ramène à 1.25rem */
  .card[style*="padding: 2.5rem"],
  .card-bare[style*="padding: 2.5rem"] {
    padding: 1.5rem !important;
  }
  /* Sections avec padding-top 3rem inline pour rapprocher du header */
  section[style*="padding-top: 3rem"] {
    padding-top: 1.5rem !important;
  }
  /* Grilles génériques : forcer 1 colonne quand inline 7fr 5fr / 5fr 7fr / 3fr 2fr */
  div[style*="grid-template-columns: 7fr 5fr"],
  div[style*="grid-template-columns: 5fr 7fr"],
  div[style*="grid-template-columns: 3fr 2fr"],
  div[style*="grid-template-columns: 2fr 3fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* =====================================================
   Justification globale des paragraphes — rendu plus
   "imprimerie" / cabinet d'étude. Hyphens auto pour
   éviter les rivières de blanc même sur mobile.
   Exclusions : .lead (déjà très lisible non justifié),
   .subtle, .muted seulement quand c'est dans une carte
   compacte (gardé via override ciblé si besoin),
   eyebrow / steps / footer.
   ===================================================== */
p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}
/* Exceptions : on ne justifie pas les paragraphes utilitaires
   qui sont des étiquettes / sous-titres courts */
.eyebrow,
.subtle,
.step-meta,
.section-head p,
.hero p.lead,
.page-hero .lead,
.cta-band p,
.footer-bottom p,
.footer-brand p,
.mock-phone-meta,
.mock-phone-sub,
.app-user-name,
.app-user-role,
.kpi-trend,
.kpi-label {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}

/* =====================================================
   Section TECH (.dark .split) — recentrage sur mobile.
   Sur écrans étroits, l'eyebrow / H2 / paragraphe d'intro
   et le bouton sont centrés, la liste reste alignée à gauche
   (lisibilité des puces cochées). La carte map descend ensuite,
   centrée elle aussi.
   ===================================================== */
@media (max-width: 900px) {
  .dark .split > .reveal,
  .navy .split > .reveal { text-align: center; }
  .dark .split .eyebrow,
  .navy .split .eyebrow { display: inline-block; }
  .dark .split h1, .dark .split h2, .dark .split h3,
  .navy .split h1, .navy .split h2, .navy .split h3 { text-align: center; }
  .dark .split > .reveal > p,
  .navy .split > .reveal > p { margin-left: auto; margin-right: auto; max-width: 60ch; }
  /* La liste à puces cochées reste lisible alignée à gauche */
  .dark .split ul,
  .navy .split ul { text-align: left; max-width: 60ch; margin-left: auto; margin-right: auto; }
  /* Le bouton CTA en bas est recentré */
  .dark .split .btn,
  .navy .split .btn { display: inline-flex; }
  /* Carte map / encart de droite : largeur max + centrage */
  .dark .split > .reveal:last-child > div,
  .navy .split > .reveal:last-child > div { max-width: 520px; margin-left: auto; margin-right: auto; }
}
