/* =========================================================================
   La Balise — feuille de style commune (accueil + pages légales + 404).
   Direction artistique « Carte marine » : papier de carte, cadre gradué,
   courbes de profondeur, cartouches à double filet, légendes en italique.
   Une seule source de vérité pour les tokens : les pages légales avaient
   dérivé vers une ancienne palette quand chaque page portait son <style>.
   ========================================================================= */

/* ---------- Polices auto-hébergées (sous-ensemble latin) ---------- */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spectral-400-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spectral-400italic-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/spectral-600-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/worksans-var-latin.woff2) format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1B2A38;
  --paper: #F1EEE4;          /* papier de carte */
  --paper-soft: #F6F4EC;     /* fond des cartouches */
  --sea: #DCE8E6;            /* zones d'eau */
  --land: #E6DDC4;           /* terre émergée */
  --teal: #146B72;           /* 5,36:1 sur --paper */
  --tan: #B23A2E;            /* rouge balise, décoratif */
  --red-text: #A8352A;       /* rouge balise lisible en texte : 5,64:1 */
  --tan-deep: #8C2A21;       /* anneau de focus */
  --sonde: #5F6B74;          /* chiffres de sonde, légendes : 4,71:1 */
  --charcoal: #20242A;
  --muted: #3A4048;
  --line: rgba(27,42,56,0.14);
  --line-soft: rgba(27,42,56,0.08);
  /* Contour de champ/bouton : >= 3:1 sur --paper (WCAG 1.4.11) */
  --line-strong: rgba(27,42,56,0.55);
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
  --max-w: 1200px;
  --header-h: 80px;
  /* Cadre gradué façon carte marine (largeur de barre, longueur de segment) */
  --grad-w: 12px;
  --grad-seg: 66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper-soft);
  padding: 10px 16px;
  border-radius: 2px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--tan-deep); outline-offset: 2px; }

/* Légendes de carte : italique, gris de sonde */
.chart-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sonde);
}

/* Cartouche : double filet, comme les encadrés de titre des cartes marines */
.cartouche {
  background: var(--paper-soft);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -6px;
}

/* Puce de légende : cercle pointé */
.fix {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.3px solid var(--teal);
  background: radial-gradient(circle, var(--teal) 0 2px, transparent 2.5px);
}

/* Barre graduée horizontale (séparateurs, pied de page) */
.graduated {
  height: 8px;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 var(--grad-seg), var(--paper) var(--grad-seg) calc(var(--grad-seg) * 2));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241,238,228,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark svg { flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper-soft); border: none; cursor: pointer; }
.btn-primary:hover { background: var(--teal); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-ghost {
  padding: 12px 2px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--teal); border-color: var(--teal); }
.btn-call {
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 11px 16px;
}
.btn-call:hover { color: var(--teal); border-color: var(--teal); }
.label-short { display: none; }

/* ---------- Sections : titres ---------- */
section { padding: 96px 0; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
h2.section-title {
  font-size: 36px;
  line-height: 1.2;
  max-width: 22ch;
}
.prose { max-width: 60ch; }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.section-intro { margin: 18px 0 0; max-width: 60ch; }
.section-bordered { border-top: 1px solid var(--line); }

/* Mise en page desktop en 2 colonnes : titre à gauche (collant), contenu
   à droite — évite la moitié droite vide d'une colonne unique à 60ch. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: start;
}
.split-head { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Hero : la carte ---------- */
.hero { padding: 28px 0 24px; }
.hero .wrap { max-width: calc(var(--max-w) + 120px); }
.chart-coords {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 6px;
  font-size: 14px;
}
.chart-coords-bottom { padding: 6px 4px 0; }

/* Cadre gradué : 4 barres alternées dessinées en fond d'un seul élément */
.chart-frame {
  border: 1.5px solid var(--ink);
  padding: var(--grad-w);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 var(--grad-seg), var(--paper) var(--grad-seg) calc(var(--grad-seg) * 2)) top / 100% var(--grad-w) no-repeat,
    repeating-linear-gradient(90deg, var(--paper) 0 var(--grad-seg), var(--ink) var(--grad-seg) calc(var(--grad-seg) * 2)) bottom / 100% var(--grad-w) no-repeat,
    repeating-linear-gradient(180deg, var(--paper) 0 var(--grad-seg), var(--ink) var(--grad-seg) calc(var(--grad-seg) * 2)) left / var(--grad-w) 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 var(--grad-seg), var(--paper) var(--grad-seg) calc(var(--grad-seg) * 2)) right / var(--grad-w) 100% no-repeat;
}
.chart-inner {
  border: 1px solid var(--ink);
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 64px 56px 64px 64px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: rise 0.7s ease-out both;
}
/* Mouvement seul, sans partir d'opacity:0 — sinon le titre (candidat LCP)
   ne compte qu'à la fin de l'animation. */
@keyframes rise {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}
.hero h1 {
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.hero .lede { margin: 0; font-size: 19px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 9px; }
.reassurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--muted);
}
.reassurance-list li { gap: 8px; }

.hero-chart { position: relative; }
/* La mer : SVG de la carte + canvas du sillage par-dessus */
.sea {
  position: relative;
  aspect-ratio: 560 / 600;
  touch-action: pan-y;
  cursor: crosshair;
}
.sea-svg, .sea-wake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Flou léger : les lignes du sillage se fondent dans l'eau au lieu d'être tracées au trait */
.sea-wake { pointer-events: none; filter: blur(1.3px); }
.sea-svg text { font-family: var(--serif); }

/* Va-et-vient de la marée : la nappe d'eau (.tide-water) se retire vers le
   large en découvrant l'estran (sable mouillé), puis remonte jusqu'au trait
   de côte ; l'écume suit la ligne d'eau. Les isobathes respirent avec elle,
   chacune avec son amplitude et son décalage. */
.tide-water { animation: ebb 11s ease-in-out infinite alternate; }
@keyframes ebb {
  from { transform: translate(0, 0); }
  to   { transform: translate(15px, 14px); }
}
.foam { animation: foam 11s ease-in-out infinite alternate; }
@keyframes foam {
  from { opacity: 0.95; }
  to   { opacity: 0.45; }
}
.tide { animation: tide 11s ease-in-out infinite alternate; }
.tide-2 { animation-duration: 12s; animation-delay: -2s; }
.tide-3 { animation-duration: 13s; animation-delay: -4s; }
.tide-4 { animation-duration: 14s; animation-delay: -6s; }
@keyframes tide {
  from { transform: translate(-4px, -4px); }
  to   { transform: translate(10px, 9px); }
}
.hero-chart.is-paused .tide,
.hero-chart.is-paused .tide-water,
.hero-chart.is-paused .foam { animation-play-state: paused; }

.photo-cartouche {
  position: absolute;
  left: 0;
  bottom: 14px;
  margin: 0;
  width: 42%;
  max-width: 236px;
  padding: 8px;
  box-shadow: 0 18px 36px -18px rgba(27,42,56,0.45);
}
.photo-cartouche img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 218 / 250;
  object-fit: cover;
  object-position: 60% 30%;
}
.photo-cartouche figcaption {
  padding: 8px 2px 2px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}

/* ---------- Constat ---------- */
.probleme-list { border-top: 1px solid var(--line); }
.probleme-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
}
.probleme-item .mark {
  color: var(--tan);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}
.probleme-item p { margin: 0; }
.probleme-item strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- Méthode : la route ---------- */
.route {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}
/* Route pointillée reliant les trois points */
.route::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  border-top: 1.5px dashed var(--ink);
}
.waypoint {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 44px;
}
.waypoint::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: radial-gradient(circle, var(--teal) 0 4px, var(--paper) 4.5px);
}
.waypoint:nth-child(2) { align-items: center; text-align: center; }
.waypoint:nth-child(2)::before { left: calc(50% - 12px); }
.waypoint:last-child { align-items: flex-end; text-align: right; }
.waypoint:last-child::before { left: auto; right: 0; background: radial-gradient(circle, var(--tan) 0 4px, var(--paper) 4.5px); }
.waypoint-label { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--teal); }
.waypoint:last-child .waypoint-label { color: var(--red-text); }
.waypoint h3 { font-size: 23px; }
.waypoint p { margin: 0; max-width: 26em; }

/* ---------- Exemples ---------- */
.browser-frame {
  border: 1px solid var(--ink);
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: 0 24px 48px -32px rgba(27,42,56,0.35);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #E6E2D4;
  border-bottom: 1px solid var(--ink);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(27,42,56,0.5); }
.browser-bar .url { margin-left: 12px; font-size: 13px; color: var(--teal); }
.browser-shot { display: block; width: 100%; height: auto; transition: opacity 0.15s ease; }
.browser-frame a:hover .browser-shot { opacity: 0.92; }
.exemple-block { margin-top: 40px; }
.exemple-block + .exemple-block { margin-top: 72px; }
.exemple-block .browser-frame { margin-top: 28px; }
.exemple-caption { margin-top: 14px; font-size: 15px; }
.exemple-caption a { color: var(--teal); }

/* Aperçu des démos sur l'accueil : trois vignettes, le détail est sur /exemples */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.teaser { display: block; text-decoration: none; color: var(--ink); }
.teaser .browser-frame { display: block; margin: 0; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.teaser:hover .browser-frame { transform: translateY(-3px); box-shadow: 0 30px 50px -32px rgba(27,42,56,0.5); }
.teaser .browser-bar { padding: 8px 12px; }
.teaser-name { display: block; margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.teaser:hover .teaser-name { color: var(--teal); }
.teaser .chart-note { display: block; font-size: 15px; }
.teaser-actions .chart-note a { color: var(--teal); }
.teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

/* ---------- Page « Ce site pourrait être le vôtre » (/exemples) ---------- */
.demos-intro { padding: 64px 0 40px; }
.demos-crumb { margin: 0 0 28px; font-size: 15px; }
.demos-crumb a { color: var(--teal); }
.demos-title { font-size: 44px; line-height: 1.12; max-width: 20ch; margin: 0; }
.demos-title em { font-weight: 400; color: var(--teal); }
.demos-honest { display: flex; gap: 10px; align-items: baseline; max-width: 62ch; margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.demos-honest .fix { position: relative; top: 2px; }
.demos-list { padding: 24px 0 96px; }
.demo-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.demo-row + .demo-row { margin-top: 88px; }
.demo-row-alt .demo-shot { order: 2; }
.demo-shot { display: block; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.demo-shot:hover { transform: translateY(-4px); box-shadow: 0 40px 60px -36px rgba(27,42,56,0.55); }
.demo-shot .browser-bar { display: flex; }
.demo-card { padding: 34px 34px 30px; }
.demo-card .chart-note { margin: 0 0 6px; font-size: 16px; }
.demo-card h2 { font-size: 32px; line-height: 1.15; margin: 0; }
.demo-pitch { margin: 14px 0 0; }
.demo-points { display: grid; gap: 10px; margin: 20px 0 0; }
.demo-points li { align-items: baseline; }
.demo-points .fix { position: relative; top: 2px; }
.demo-for { margin: 18px 0 22px; font-size: 14px; color: var(--sonde); }
.demo-for strong { color: var(--ink); font-weight: 600; }
.demos-real-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.demos-real .browser-frame { display: block; text-decoration: none; }
.demos-cta { padding-top: 0; }
.demos-cta-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 44px 44px 40px; }
.demos-cta-box .chart-note { margin: 0 0 8px; font-size: 17px; }
.demos-cta-box h2 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.demos-cta-box p { margin: 0; }
.demos-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* ---------- Tarifs ---------- */
.tarifs { border-top: 1px solid var(--line); }
.price-block { padding: 36px 40px 30px; }
.price-kicker { margin-bottom: 8px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.price-label { font-size: 17px; }
.price-value {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.price-unit { font-size: 17px; font-weight: 400; color: var(--teal); }
.legend { margin-top: 26px; }
.legend-title { font-size: 19px; color: var(--ink); margin: 0 0 14px; }
.inclus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 15px;
}
.inclus-list li { gap: 10px; }
.price-footnote { font-size: 13px; color: #4A4F57; margin: 16px 0 0; }
.price-footnote a { color: var(--teal); }
.price-total {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.note {
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
}
.note p { margin: 0; }
.note-title { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }

/* ---------- Qui suis-je + zone ---------- */
.zone { margin: 0; }
.zone-map { width: 100%; height: auto; display: block; max-width: 520px; margin: 0 auto; }
.zone-map text { font-family: var(--serif); }
.zone-caption { text-align: center; font-size: 15px; margin: 8px 0 0; }

/* ---------- Engagements ---------- */
.engagements { border-top: 1px solid var(--line); }
.engagements-list { padding: 10px 32px; }
.engagements-list li {
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.engagements-list li:last-child { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { background: var(--paper-soft); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}
.contact .lede { max-width: 42ch; margin: 0; font-size: 18px; }
.direct-contact {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 6px;
  font-size: 16px;
}
.direct-contact a { color: var(--teal); font-weight: 600; }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--teal); font-weight: 500; }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--charcoal);
}
.field input::placeholder { color: #6B7078; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.hp { display: none; }
.form-legal { font-size: 13px; color: #4A4F57; margin: 0 0 16px; }
.form-legal a { color: var(--teal); }
.form-status { margin-top: 14px; font-size: 14px; display: none; }
.form-status.is-pending { display: block; color: var(--charcoal); }
.form-status.is-success { display: block; color: var(--teal); }
.form-status.is-error { display: block; color: var(--tan-deep); }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .graduated { margin-bottom: 20px; }
.site-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer a { color: var(--teal); }

/* ---------- Pages légales / 404 ---------- */
.legal-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-header .wrap { max-width: 760px; padding-top: 16px; padding-bottom: 16px; }
.legal-header .wordmark { font-size: 22px; gap: 10px; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 32px 80px; line-height: 1.65; }
.legal h1 { font-size: 32px; margin-bottom: 12px; }
.legal .updated { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--sonde); margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; }
.legal p, .legal li { margin: 0 0 8px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--teal); }
.legal .table-scroll { overflow-x: auto; margin: 16px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--teal); font-weight: 600; }
.legal .back { display: inline-block; margin-top: 40px; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .chart-inner { grid-template-columns: 1fr; padding: 48px 40px; gap: 40px; }
  .hero-chart { max-width: 520px; width: 100%; margin: 0 auto; }
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-head { position: static; }
  .demo-row, .demos-real-grid, .demos-cta-box { grid-template-columns: 1fr; gap: 28px; }
  .demo-row-alt .demo-shot { order: 0; }
  .demo-row + .demo-row { margin-top: 64px; }
  /* Route verticale : pointillés à gauche, points alignés sur la marge */
  .route { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  /* Un tronçon pointillé par étape, jusqu'au point suivant : la route s'arrête au dernier point */
  .route::before { display: none; }
  .waypoint:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: -34px;
    border-left: 1.5px dashed var(--ink);
  }
  .waypoint,
  .waypoint:nth-child(2),
  .waypoint:last-child { align-items: flex-start; text-align: left; padding: 0 0 0 44px; }
  .waypoint::before,
  .waypoint:nth-child(2)::before,
  .waypoint:last-child::before { top: 2px; left: 0; right: auto; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; --grad-w: 8px; --grad-seg: 30px; }
  .wrap { padding: 0 20px; }
  .hero .wrap { padding: 0 12px; }
  .site-header .wrap { padding: 10px 16px; gap: 10px; }
  .wordmark { font-size: 22px; gap: 9px; }
  .wordmark svg { width: 16px; height: 25px; }
  .label-long, .btn-call-label { display: none; }
  .label-short { display: inline; }
  .btn-call { padding: 11px; min-width: 44px; }
  .btn-primary { padding: 12px 16px; }
  .hero { padding-top: 16px; }
  .chart-coords { font-size: 12px; }
  .chart-coords-mid { display: none; }
  .chart-inner { padding: 28px 18px 24px 20px; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 16px; }
  .hero .actions .btn-primary { width: 100%; }
  section { padding: 64px 0; }
  h2.section-title { font-size: 28px; }
  .inclus-list { grid-template-columns: 1fr; }
  .price-block { padding: 26px 22px; }
  .price-value { font-size: 28px; }
  .engagements-list { padding: 6px 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .footer-row { flex-direction: column; }
  .teaser-grid { grid-template-columns: 1fr; gap: 28px; }
  .demos-intro { padding: 40px 0 24px; }
  .demos-title { font-size: 30px; }
  .demo-card { padding: 26px 22px 24px; }
  .demo-card h2 { font-size: 26px; }
  .demos-cta-box { padding: 30px 22px 26px; }
  .demos-cta-box h2 { font-size: 24px; }
  .legal { padding: 40px 20px 64px; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 20px; }
  .hero h1 { font-size: 30px; }
}
