/* ==========================================================================
   Elineo : feuille de style unique (V3, charte « aubergine et menthe »)
   Charte complète : docs/v3/charte.html
   Sommaire : 1. Polices et variables  2. Base  3. Composants  4. Sections
              5. Pages légales  6. Responsive  7. Mouvement
   ========================================================================== */

/* 1. POLICES ET VARIABLES ------------------------------------------------ */
/* Hébergées sur le site (licence SIL OFL, assets/fonts/OFL.txt) : aucune requête vers Google */
@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/funnel-display-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Funnel Sans";
  src: url("../fonts/funnel-sans-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
/* Polices de secours à métriques ajustées : évitent le saut de mise en page au chargement */
@font-face { font-family: "Display Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600; size-adjust: 100%; }
@font-face { font-family: "Body Fallback"; src: local("Arial"); font-weight: 400 600; size-adjust: 97%; }

:root {
  /* Base */
  --bg: #F5F2F7;           /* lilas : fond de page */
  --surface: #FFFFFF;      /* blanc : cartes, sections blanches */
  --ink: #2F1A3D;          /* aubergine : texte, tuiles d’icônes */
  --muted: #62546B;        /* gris aubergine : texte secondaire */
  --line: #E6DFEB;         /* bordures, séparateurs */
  --field: #877A99;        /* bordure des champs (3:1) */

  --tint: #EEE7F2;        /* aubergine très clair : fonds d’icônes, badges */

  /* Violet = interactif : tout ce qui se clique ou se manipule, et rien d’autre
     (boutons pleins, soulignement des liens, focus, curseurs, icône de la FAQ),
     plus la boucle « eo » du logo. Jamais sur un élément décoratif ou un statut. */
  --violet: #5A49F0;
  --violet-h: #4B3AE0;     /* survol des boutons */

  /* Signature : la menthe veut dire « fait » (toujours avec une coche ou un mot) */
  --mint: #3DD9A0;
  --mint-100: #D3F7E8;     /* trait de surligneur */

  /* Texte et icônes sur aubergine (tuiles d’icônes, pastille « elineo » de la Méthode) */
  --on-dark: #F4F1FF;

  /* Typo */
  --font-head: "Funnel Display", "Display Fallback", system-ui, sans-serif;
  --font-body: "Funnel Sans", "Body Fallback", system-ui, sans-serif;

  /* Rayons */
  --r-card: 10px;
  --r-btn: 6px;
  --r-tag: 4px;

  /* Relief : réservé aux panneaux d’illustration */
  --float: 0 20px 40px -24px rgba(47, 26, 61, .3);

  /* Mise en page */
  --container: 1200px;
  --gutter: 20px;
  --section-y: 56px;
  --wave-h: 32px;     /* hauteur de la vague sous le hero */
  --header-h: 64px;
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
h2 { font-size: clamp(30px, calc(22px + 1.8vw), 40px); line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.3; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.bg-white { background: var(--surface); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.svg-defs { position: absolute; }
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  border-radius: var(--r-btn);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.ico {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. COMPOSANTS ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { border-radius: var(--r-btn); }
.btn-primary { color: #fff; background: var(--violet); border: 0; }
.btn-primary:hover { background: var(--violet-h); }
.btn-secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--violet); }
/* Sur fond aubergine, le bouton principal passe en blanc */
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.link-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

/* Étiquettes et statuts */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-tag);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-done { background: var(--mint); color: var(--ink); }
.tag-done::before { content: "✓"; content: "✓" / ""; font-weight: 700; }
.tag-you { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
/* Trait de surligneur menthe : « le reste » du H1, tâches traitées du hero, et un mot clé par titre de section */
.mark {
  background-image: linear-gradient(var(--mint-100), var(--mint-100));
  background-repeat: no-repeat;
  background-position: 0 85%;
  background-size: 100% 58%;
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section-head { max-width: 720px; }
.section-intro { margin-top: 14px; max-width: 40em; color: var(--muted); }

/* HEADER ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* Tant que le hero est visible, son bouton principal suffit : celui du header passe en secondaire */
.site-header.is-on-hero .header-inner > .btn-primary { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.site-header.is-on-hero .header-inner > .btn-primary:hover { box-shadow: inset 0 0 0 1px var(--violet); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: block; border-radius: 4px; justify-self: start; }
.brand img { width: auto; height: 30px; }
.header-nav { display: none; }
/* Mobile : le bouton du header laisse la place au menu (le hero puis la barre du bas portent la réservation) */
.header-inner > .btn { display: none; }
.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0; border-radius: var(--r-btn);
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }
/* Menu ouvert : panneau sous le header */
.site-header.menu-open { border-bottom-color: var(--line); }
.site-header.menu-open .header-nav {
  display: flex; flex-direction: column;
  position: fixed; inset: var(--header-h) 0 auto 0;
  padding: 4px var(--gutter) 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header.menu-open .header-nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.nav-cta { margin-top: 20px; }
.header-nav a:not(.btn) {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 2px;
  text-underline-offset: 6px;
}
.header-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; }

/* 4. SECTIONS ------------------------------------------------------------ */

/* HERO : texte à gauche, boîte de réception à droite (≥ 1024 px) */
/* Le milieu de la vague sert de limite : l'écart hero → constat est le même qu'entre deux sections */
.hero { position: relative; padding: calc(var(--header-h) + 36px) 0 calc(var(--section-y) + var(--wave-h) / 2); }
/* Seule vague du site, en bas du hero, remplie de la couleur de la section suivante */
.wave { position: absolute; inset: auto 0 -1px 0; width: 100%; height: var(--wave-h); fill: var(--surface); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(36px, 10vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.hero-offer:hover { border-color: var(--violet); }
.hero-offer[hidden] { display: none; }
.offer-tag { flex: none; padding: 3px 8px; border-radius: var(--r-tag); background: var(--tint); font-weight: 600; font-size: 13px; }
/* Une phrase par ligne de départ */
.hero h1 > span { display: block; }
.hero-sub { margin-top: 20px; max-width: 34em; font-size: 17px; color: var(--muted); }
.hero-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.hero-by { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.hero-by img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Boîte de réception (illustration) */
.inbox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--float);
  overflow: hidden;
}
.inbox-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.inbox-head span:last-child { font-weight: 400; font-size: 14px; color: var(--muted); }
.inbox-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
}
.inbox-list li + li { border-top: 1px solid var(--line); }
.tile {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: #fff;
}
.tile img { width: 18px; height: 18px; object-fit: contain; }
.inbox-txt b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.inbox-txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* LE CONSTAT : 3 coûts + estimateur */
/* Titre sur toute la largeur : une ligne en desktop */
.problem { padding-top: calc(var(--section-y) - var(--wave-h) / 2); }
.problem .section-head, .method .section-head, .method .section-intro { max-width: none; }
.problem-grid { margin-top: 40px; display: grid; gap: 40px; align-items: start; }
.cost-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.cost-list li:last-child { border-bottom: 1px solid var(--line); }
.cost-list h3 { font-size: 20px; }
.cost-list p { margin-top: 6px; color: var(--muted); }

.calc { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); }
.calc h3 { font-size: 20px; }
.calc-field { margin-top: 20px; }
.calc-field label { display: block; font-size: 15px; color: var(--muted); }
.calc-row { margin-top: 8px; display: flex; align-items: center; gap: 14px; }
.calc input[type="range"] { flex: 1; min-width: 0; height: 28px; accent-color: var(--violet); cursor: pointer; }
.calc output {
  flex: none;
  min-width: 64px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  border: 1px solid var(--field);
  border-radius: var(--r-tag);
}
.calc-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.calc-big {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calc-big small { font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.calc-eq { margin-top: 10px; font-size: 15px; }
.calc-eq b { color: var(--ink); font-weight: 600; }
.calc-end { margin-top: 20px; font-size: 17px; font-weight: 600; }


/* SOLUTIONS : 4 cartes par résultat */
.sol-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 20px; }
.sol-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.sol-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; row-gap: 10px; }
.sol-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--ink); color: var(--on-dark); }
.sol-ico .ico { width: 22px; height: 22px; }
.sol-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.sol-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  font-size: 12.5px; font-weight: 600; line-height: 1.4;
  white-space: nowrap;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
}
.sol-badge .ico { width: 14px; height: 14px; color: var(--ink); }
.sol-card h3 { margin-top: 22px; font-size: 20px; }
.sol-pain { margin-top: 10px; font-size: 15px; font-style: italic; color: var(--muted); }
/* La solution est ce qui est fait sans vous : coche menthe */
.sol-fix { position: relative; margin-top: 14px; padding-left: 32px; }
.sol-fix::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: 12px; font-weight: 700; }
.sol-tags { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.sol-tags li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 13px; font-weight: 500; line-height: 1.5;
  background: var(--tint);
  border-radius: var(--r-tag);
}
.sol-end { margin-top: 40px; font-size: 17px; }
.sol-end strong { font-weight: 600; }
.sol-end .link-secondary { min-height: 0; margin-left: 4px; }


/* MÉTHODE : 4 étapes en cartes avec aperçu */
.meth-grid { margin-top: 40px; display: grid; gap: 20px; }
.meth-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.meth-vis {
  position: relative;
  height: 200px;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.meth-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.meth-step { font-size: 14px; color: var(--muted); }
.meth-step span { margin-right: 8px; font-weight: 600; color: var(--ink); }
.meth-card h3 { margin-top: 8px; font-size: 20px; }
.meth-card p:not(.meth-step) { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.meth-end { margin-top: 40px; }
.meth-end .btn { width: 100%; }

/* Aperçus d’illustration (décoratifs) */
.mv-card {
  width: 100%; max-width: 236px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  box-shadow: var(--float);
  font-size: 12px;
}
.mv-h { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.mv-row { display: grid; grid-template-columns: 1fr 56px 26px; align-items: center; gap: 8px; padding: 4px 0; white-space: nowrap; }
.mv-row em { font-style: normal; text-align: right; color: var(--muted); }
.mv-bar { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.mv-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
/* Barres de l’aperçu d’audit : 4 h, 3 h, 2 h */
.mv-row:nth-child(2) .mv-bar i { width: 80%; }
.mv-row:nth-child(3) .mv-bar i { width: 60%; }
.mv-row:nth-child(4) .mv-bar i { width: 40%; }
.mv-sum { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 600; }
.mv-sum span:last-child { color: var(--ink); }
.mv-tools { position: relative; width: 100%; max-width: 250px; height: 100px; }
.mv-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.mv-tile {
  position: absolute; width: 34%; height: 38px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font-size: 11.5px; font-weight: 600; line-height: 1;
}
.mv-tile img { flex: none; width: 18px; height: 18px; object-fit: contain; }
.t-tl { top: 0; left: 0; }
.t-tr { top: 0; right: 0; }
.t-bl { bottom: 0; left: 0; }
.t-br { bottom: 0; right: 0; }
.mv-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: 7px 10px;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--r-tag);
  font-size: 11.5px; font-weight: 600; line-height: 1;
}
.mv-ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 2px 0 8px; text-align: center; }
.mv-ba div { padding: 7px 4px; background: var(--bg); border-radius: var(--r-tag); }
.mv-ba i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.mv-ba b { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.3; }
.mv-ba div:last-child { background: var(--mint-100); }
.mv-arrow { font-weight: 700; color: var(--ink); }
.mv-li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0 0; margin-top: 5px; border-top: 1px solid var(--line); white-space: nowrap; }
.mv-li .tag { font-size: 11px; padding: 0 6px; }
.mv-vi { font-weight: 600; color: var(--ink); }

/* OFFRE DE LANCEMENT */
.pilot-card {
  max-width: 880px;
  margin-inline: auto;
  padding: 32px 22px;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
}
.pilot-tag { display: inline-block; padding: 3px 8px; border-radius: var(--r-tag); background: var(--tint); font-size: 13px; font-weight: 600; color: var(--ink); }
.pilot-card h2 { margin-top: 14px; font-size: clamp(26px, calc(20px + 1.2vw), 36px); text-wrap: balance; }
.pilot-intro { margin-top: 14px; color: var(--muted); text-wrap: pretty; }
.pilot-offer-title { margin-top: 28px; font-size: 17px; }
.pilot-list { max-width: 480px; margin: 12px auto 0; text-align: left; }
.pilot-list li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); font-weight: 500; }
.pilot-list li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0; top: 13px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: 12px; font-weight: 700; }
.pilot-count { margin: 20px 0; font-weight: 500; }
.pilot-count strong { color: var(--ink); font-weight: 700; }
.pilot-card .btn { width: 100%; }

/* À PROPOS : fondateur */
.founder-grid { display: grid; gap: 28px; align-items: start; }
.founder-photo img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-card);
}
.founder-text > p { margin-top: 18px; text-wrap: pretty; }
.founder-contact { overflow-wrap: anywhere; }
.founder-contact a, .faq-more a, .faq-answer a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.founder-contact a[href^="tel:"] { white-space: nowrap; }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
.faq-more { margin-top: 14px; color: var(--muted); overflow-wrap: anywhere; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: var(--r-btn); border: 1px solid var(--line); }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  background: var(--violet);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.faq-item[open] .faq-icon, .faq-item summary:hover .faq-icon { border-color: var(--violet); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding: 0 48px 22px 0; color: var(--muted); max-width: 40em; }

/* CTA FINAL */
.final-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--r-card);
  padding: 56px var(--gutter);
}
.cta-loop {
  position: absolute;
  right: -6%; top: 50%;
  width: min(620px, 120%); max-width: none;
  transform: translateY(-50%);
  opacity: .16;
  pointer-events: none;
}
.cta-dot { fill: var(--violet); }
.final-inner { position: relative; max-width: 620px; }
.final-cta p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.final-actions { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.final-actions .btn { width: 100%; }
.final-cta .link-secondary { overflow-wrap: anywhere; }

/* FOOTER */
.site-footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); padding-top: 56px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: auto; height: 26px; margin-bottom: 18px; }
.footer-brand p + p { margin-top: 6px; }
.footer-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; }

/* BARRE MOBILE */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.mobile-bar .btn { width: 100%; }
.mobile-bar.is-visible { transform: translateY(0); visibility: visible; transition: transform .25s ease, visibility 0s; }

/* 5. PAGES LÉGALES ------------------------------------------------------- */
.legal { padding: calc(var(--header-h) + 56px) 0 var(--section-y); }
.legal .container { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1, .not-found h1 { font-size: clamp(32px, calc(26px + 1.6vw), 44px); line-height: 1.1; letter-spacing: -0.025em; }
.legal .legal-date { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.legal h2 { margin-top: 40px; font-size: 22px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal .back { display: inline-block; margin-top: 48px; font-weight: 600; }

/* Page 404 */
.not-found { padding: calc(var(--header-h) + 72px) 0 calc(var(--section-y) + 24px); }
.not-found p { margin-top: 14px; max-width: 34em; color: var(--muted); }
.not-found .btn { margin-top: 28px; }

/* 6. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 767.98px) {
  /* La barre du bas ne doit pas cacher l'élément qui a le focus */
  html:has(.mobile-bar) { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body:has(.mobile-bar) .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 479.98px) {
  .inbox-list li:nth-child(3) { display: none; }
}
@media (max-width: 380px) {
  .btn-sm { padding: 0 12px; font-size: 14px; }
}
@media (min-width: 600px) {
  .hero h1 { font-size: clamp(42px, 6.6vw, 54px); }
  .hero-actions { flex-direction: row; }
  .meth-end .btn, .pilot-card .btn, .final-actions .btn { width: auto; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; --wave-h: 48px; }
  body { font-size: 17px; }
  .mobile-bar { display: none; }
  .brand img { height: 34px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-inner > .btn { display: inline-flex; justify-self: end; white-space: nowrap; }
  .nav-toggle, .nav-cta { display: none; }
  .header-nav { display: flex; gap: 22px; justify-self: center; }
  .nav-pilot { display: none; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero-sub { font-size: 19px; }

  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .sol-card { padding: 32px; }
  /* Titres, textes et étiquettes alignés d'une carte à l'autre sur la même rangée (badge « Facturation » compris) */
  @supports (grid-template-rows: subgrid) {
    .sol-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .sol-top { align-self: start; }
    .sol-tags { margin-top: 0; }
  }
  .meth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .meth-body { padding: 32px; }
  .calc { padding: 28px; }


  .pilot-card { padding: 48px; }
  .founder-grid { grid-template-columns: 280px 1fr; gap: 48px; }
  .final-card { padding: 72px 56px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  :root { --section-y: 64px; --wave-h: 64px; }
  h3 { font-size: 20px; }
  .header-nav { gap: 26px; }
  .brand img { height: 36px; }
  .nav-pilot { display: inline; }
  .hero-sub { font-size: 20px; }
  .problem-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; }
  .problem .calc { margin-top: -24px; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
}
@media (min-width: 1100px) {
  /* Hero en 2 colonnes : en dessous, l'illustration passe sous le texte */
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; }
  /* H1 sur 2 lignes : la 2e phrase (environ 13 em) tient dans la colonne texte */
  .hero h1 { font-size: min(52px, calc((100vw - 2 * var(--gutter) - 56px) * .6 / 13.2)); }
  .meth-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .meth-body { padding: 24px; }
}
@media (min-width: 1200px) {
  .header-nav { gap: 32px; }
}

/* 7. MOUVEMENT ------------------------------------------------------------ */
/* Seule séquence au chargement : le surligneur passe sur « le reste » du H1, puis sur
   les tâches traitées du hero, et l’étiquette « Traité » apparaît. État final lisible sans animation. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .mark { animation: mark-in .6s cubic-bezier(.3, .7, .2, 1) .2s both; }
  .inbox .is-done .mark { animation: mark-in .5s cubic-bezier(.3, .7, .2, 1) both; }
  .inbox .is-done .tag-done { animation: tag-in .25s ease-out both; }
  .inbox .is-done:nth-child(1) .mark { animation-delay: .9s; }
  .inbox .is-done:nth-child(1) .tag-done { animation-delay: 1.35s; }
  .inbox .is-done:nth-child(2) .mark { animation-delay: 1.5s; }
  .inbox .is-done:nth-child(2) .tag-done { animation-delay: 1.95s; }
  .inbox .is-done:nth-child(3) .mark { animation-delay: 2.1s; }
  .inbox .is-done:nth-child(3) .tag-done { animation-delay: 2.55s; }
  /* Titres de section : le trait passe quand le titre entre à l'écran (main.js, bloc 3c) */
  h2 .mark { transition: background-size .6s cubic-bezier(.3, .7, .2, 1) .15s; }
  h2 .mark.is-waiting { background-size: 0 58%; }
  @keyframes mark-in { from { background-size: 0 58%; } to { background-size: 100% 58%; } }
  @keyframes tag-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }


  /* Points de la boucle du CTA : pulsation douce, en pause hors écran */
  .cta-dot { animation: cta-pulse 3.6s ease-in-out infinite; }
  .cta-dot:nth-of-type(2) { animation-delay: -1.2s; }
  .cta-dot:nth-of-type(3) { animation-delay: -2.4s; }
  .cta-loop.is-paused .cta-dot { animation-play-state: paused; }
  @keyframes cta-pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
