/* =====================================================================
   OPTOMIA — Design tokens
   Repris du design system OPTOMIA (claude.ai) : encre sur papier,
   filets de 1 px, angles droits, aucune ombre ni dégradé, une seule
   couleur vive (le signal orange), utilisée avec parcimonie.
   Header, footer et bandeau « phrase choc » sur aplat encre.
   Doit refléter DESIGN.md : modifier les deux ensemble.
   ===================================================================== */

/* =====================================================================
   POLICES — hébergées sur le site (assets/fonts), aucun appel à Google.
   Fichiers issus de Google Fonts (licence SIL OFL), jeux latin et latin-ext.
   Geist, Geist Mono et Inter sont variables : un fichier couvre 400 et 500.
   ===================================================================== */

/* Geist · latin-ext */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Geist · latin */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Geist Mono · latin-ext */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Geist Mono · latin */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Instrument Serif italique · latin-ext */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Instrument Serif italique · latin */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter · latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter · latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Couleurs */
  --encre: #1a1915;          /* texte principal, filets, bouton principal */
  --papier: #faf9f6;         /* fond de page */
  --papier-releve: #ffffff;  /* cartes, champs, cellules de grille */
  --graphite: #55534d;       /* texte secondaire */
  --discret: #706d66;        /* mentions, sur papier uniquement */
  --filet: #1a1915;          /* trait de 1 px des cadres (= encre) */
  --filet-doux: #cfccc4;     /* séparateurs décoratifs uniquement */
  --sable: #efe7d6;          /* ton chaud : états sélectionnés et survolés, fond de la photo de profil */
  --pave-kraft: #d6cbb0;     /* pavé de couleur : porte le schéma du haut de page */
  --pave-acier: #c2cfd6;     /* survol de la carte de contact « Être rappelé » */
  --pave-lavande: #d2cedc;   /* étapes supprimées du schéma */
  --pave-argile: #d9c4b8;    /* charte (humain, accompagnement) : non utilisé sur le site pour l'instant */
  --pave-sauge: #c9cdb2;     /* survol de la carte de contact « Me laisser un message » */
  --pave-bruyere: #d8c0d0;   /* survol de la carte de contact « Prendre rendez-vous » (relation client) */
  --signal: #e0661b;         /* forme seulement : point, puce, trait (< 5 % de la surface) */
  --signal-texte: #a84a0e;   /* quand un mot doit porter la couleur */
  --signal-titre: #e0661b;   /* fins de titre en italique : grand texte, contraste 3,3:1 (WCAG AA grand texte) */
  --signal-clair: #f08a47;   /* schéma : étiquettes « supprimé » et « automatique » (texte encre dessus, 7,1:1) */
  --sur-signal: #1a1915;     /* texte posé sur un aplat signal */
  --sur-encre: #faf9f6;      /* texte posé sur un aplat encre */
  --focus: #1a1915;

  /* Polices */
  --font-titre: "Geist", "Inter", Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-texte: "Inter", Arial, Helvetica, sans-serif;
  --font-mono: "Geist Mono", "Courier New", monospace;

  /* Espacements : pas de 4 px */
  --espace-1: 4px;
  --espace-2: 8px;
  --espace-3: 12px;
  --espace-4: 16px;
  --espace-6: 24px;
  --espace-8: 32px;
  --espace-12: 48px;
  --espace-16: 64px;
  --espace-24: 96px;

  /* Formes */
  --angle-droit: 0px;
  --pilule: 999px;
  --rond: 50%;
  --trait-fin: 1px;
  --trait-fort: 2px;

  --largeur-utile: 1160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Aplats encre (header, footer, phrase choc) : on redéfinit les couleurs
   localement avec les valeurs du thème sombre de la charte. */
.site-header,
.site-footer,
.statement {
  color-scheme: dark;
  --papier: #1a1915;
  --papier-releve: #1f1e1b;
  --encre: #f4f2ec;
  --graphite: #b9b5ab;
  --discret: #9c988e;
  --filet: #f4f2ec;
  --filet-doux: #3a3833;
  --signal-texte: #f08a47;
  --signal-titre: #f08a47;
  --sur-encre: #1a1915;
  --focus: #f4f2ec;
  background: var(--papier);
  color: var(--encre);
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--graphite) var(--papier);
}

/* Les ancres du menu s'arrêtent sous le header fixe */
section[id] { scroll-margin-top: 64px; }

::selection { background: var(--pave-kraft); color: #1a1915; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--font-texte);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, blockquote, p, dl, dd, figure { margin: 0; }

h1, h2, h3 { text-wrap: balance; }

strong, b { font-weight: 500; }

.nowrap { white-space: nowrap; }

/* Focus clavier : anneau plein de 2 px, décalé de 2 px, sur tous les fonds */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: var(--trait-fort) solid var(--focus);
  outline-offset: 2px;
}

/* Marges latérales : espace-4 sur mobile, espace-8 sur tablette, espace-16 sur grand écran */
:root { --marge: var(--espace-4); }

@media (min-width: 640px) {
  :root { --marge: var(--espace-8); }
}

@media (min-width: 1024px) {
  :root { --marge: var(--espace-16); }
}

.container {
  max-width: calc(var(--largeur-utile) + 2 * var(--espace-16));
  margin: 0 auto;
  padding-inline: var(--marge);
}

/* =====================================================================
   TYPOGRAPHIE
   ===================================================================== */

.display-lg,
.headline-lg,
.headline-md {
  font-family: var(--font-titre);
  font-weight: 500;
}

/* display : accroche de la page d'accueil */
.display-lg {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* h2 : titres de section */
.headline-lg {
  font-size: clamp(27px, 3.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.022em;
}

/* h3 : titres de carte */
.headline-md {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.017em;
}

/* Accent : la fin d'un titre en Instrument Serif italique, 1,12 fois la taille du titre */
.display-lg em,
.headline-lg em,
.footer-tagline em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  line-height: 0.9;
  letter-spacing: 0;
  /* Toute fin de titre en italique porte le ton signal
     (#e0661b, l'orange du logo, sur fond clair ; #f08a47 sur les aplats encre).
     Permis car ce sont de grands textes (30 px et plus) : seuil WCAG de 3:1. */
  color: var(--signal-titre);
}

/* chapô */
.body-lg {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.014em;
  color: var(--graphite);
  max-width: 62ch;
}

.body-sm { font-size: 14px; line-height: 22px; }
.muted { color: var(--graphite); }

/* Petites étiquettes : Geist Mono, capitales, sans interlettrage ajouté */
.label-sm {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--graphite);
}

/* Surtitre entre crochets : « [ ORGANISATION ] » */
.eyebrow::before { content: "[\00a0"; }
.eyebrow::after { content: "\00a0]"; }

/* Surtitre numéroté : « [ 01 ] VOTRE QUOTIDIEN » — la numérotation suit l'ordre des sections */
main { counter-reset: rubrique; }
.eyebrow-num::before {
  counter-increment: rubrique;
  content: "[\00a0" counter(rubrique, decimal-leading-zero) "\00a0]\00a0\00a0";
}
.eyebrow-num::after { content: none; }

/* Liens dans le texte */
.text-link,
.legal-section a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover,
.legal-section a:hover { color: var(--signal-texte); }

/* =====================================================================
   BOUTONS
   principal : aplat encre, angles droits, un seul par écran
              (sauf actions de même importance côte à côte, ex. cartes de contact)
   secondaire : contour, pilule
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--espace-2);
  font-family: var(--font-texte);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  padding: 13px 22px;
  border: var(--trait-fin) solid var(--filet);
  border-radius: var(--angle-droit);
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--encre); color: var(--sur-encre); }
.btn-primary:hover { background: var(--graphite); border-color: var(--graphite); }

.btn-outline { border-radius: var(--pilule); }
.btn-outline:hover { background: var(--encre); color: var(--sur-encre); }

/* min-height : zone cliquable d'au moins 44 px, même pour les petits boutons */
.btn-sm { font-size: 13px; letter-spacing: -0.01em; padding: 9px 16px; min-height: 44px; }

/* =====================================================================
   SECTIONS
   Chaque section s'ouvre sur un filet pleine largeur, puis le surtitre
   numéroté et le titre ; 96 px de respiration avant la section suivante.
   ===================================================================== */

.section {
  border-top: var(--trait-fin) solid var(--filet);
  padding-block: var(--espace-8) var(--espace-16);
}

@media (min-width: 900px) {
  .section { padding-block: var(--espace-8) var(--espace-24); }
}

.section-head {
  display: grid;
  gap: var(--espace-3);
  margin-bottom: var(--espace-12);
}

.section-head .headline-lg { max-width: 24ch; }

/* Titre à gauche, chapô à droite sur grand écran */
@media (min-width: 1024px) {
  .section-head:has(.body-lg) {
    grid-template-columns: 7fr 5fr;
    column-gap: var(--espace-12);
    align-items: start;
  }
  .section-head:has(.body-lg) .body-lg { padding-top: 4px; }
  .section-head:has(.body-lg) .label-sm { grid-column: 1 / -1; }
}

/* Grille à filets partagés : les cartes se touchent, sans double trait */
.grid-3,
.grid-2,
.symptoms,
.contact-cards {
  display: grid;
  gap: var(--trait-fin);
  background: var(--filet);
  border: var(--trait-fin) solid var(--filet);
}

@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--papier-releve);
  padding: var(--espace-6);
  display: grid;
  gap: var(--espace-3);
  align-content: start;
}

@media (min-width: 900px) {
  .card { padding: var(--espace-8); }
}

.card p { color: var(--graphite); font-size: 15px; line-height: 24px; }

/* Cartes « Ma méthode », « Ma philosophie » et « Cas clients » : fond blanc, sable au survol (comme une case cochée) */
.card-survol { transition: background-color 0.15s ease; }
.card-survol:hover { background: var(--sable); }

/* Étiquette encadrée avec puce (secteur, catégorie) */
.chip,
.sectors li {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-texte);
  font-size: 13px;
  line-height: 18px;
  padding: 3px var(--espace-2);
  border: var(--trait-fin) solid var(--filet);
  background: var(--papier-releve);
  color: var(--encre);
}

.chip::before,
.sectors li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--rond);
  background: var(--encre);
}

/* Puce signal : ce qui relève de l'IA (une seule étiquette signal par écran) */
.chip-signal::before { background: var(--signal); }

/* =====================================================================
   HEADER
   ===================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: var(--trait-fin) solid var(--filet-doux);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-4);
  height: 64px;
}

/* Logotype officiel (version négative pour l'aplat encre) : 42 px de haut */
.logo { display: inline-flex; align-items: center; padding-block: var(--espace-2); }
.logo-img { display: block; height: 42px; width: auto; }

.main-nav {
  display: none;
  gap: var(--espace-8);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--graphite);
}

.main-nav a { transition: color 0.15s ease; }
.main-nav a:hover { color: var(--encre); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
}

/* Boutons de droite du header : « Réserver un appel » et, sous 900 px, « Menu » */
.header-actions { display: flex; align-items: center; gap: var(--espace-2); }

/* Sur téléphone, « Menu » remplace « Réserver un appel » (le bouton du hero reste visible) */
@media (max-width: 639px) {
  .header-cta { display: none; }
}

.menu-toggle[hidden] { display: none; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

/* Menu mobile : panneau sous le header, sur le même aplat encre */
.mobile-menu {
  border-top: var(--trait-fin) solid var(--filet-doux);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.mobile-menu .container {
  display: grid;
  padding-block: var(--espace-2) var(--espace-6);
}

.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: var(--trait-fin) solid var(--filet-doux);
  font-family: var(--font-titre);
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.017em;
}

.mobile-menu a:not(.btn):hover { color: var(--signal-texte); }

.mobile-menu .btn { margin-top: var(--espace-6); }

@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* =====================================================================
   HERO — centré
   ===================================================================== */

.hero { padding-block: var(--espace-16) var(--espace-12); }

@media (min-width: 900px) {
  .hero { padding-block: 88px var(--espace-16); }
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: var(--espace-6);
  text-align: center;
}

.hero-copy .display-lg { max-width: 15.5em; }

/* Titre du hero : deux lignes, la première d'un seul tenant sur grand écran */
.hero-copy .hero-title { max-width: none; }
.hero-line { display: block; }

@media (min-width: 900px) {
  .hero-title { font-size: clamp(32px, 3.9vw, 52px); }
  .hero-line { white-space: nowrap; }
}
.hero-copy .label-sm { margin-bottom: calc(var(--espace-3) - var(--espace-6)); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--espace-3);
  margin-top: var(--espace-2);
}

.hero-note { font-size: 14px; line-height: 22px; color: var(--graphite); margin-top: calc(-1 * var(--espace-2)); }

/* =====================================================================
   BANDEAU SCHÉMA — pavé kraft pleine largeur, filet haut et bas
   Une demande de devis, avant / après : on simplifie, puis on automatise.
   ===================================================================== */

.schema-band {
  background: var(--pave-kraft);
  border-block: var(--trait-fin) solid var(--filet);
  padding-block: var(--espace-12);
}

@media (min-width: 900px) {
  .schema-band { padding-block: var(--espace-16); }
}

.flow {
  display: grid;
  gap: var(--espace-8);
}

@media (min-width: 1024px) {
  .flow { grid-template-columns: 220px 1fr; gap: 40px; }
}

.flow-head { display: grid; gap: var(--espace-3); align-content: start; }
.flow-head .label-sm { color: var(--encre); }
.flow-foot { font-size: 15px; line-height: 24px; color: var(--encre); max-width: 26ch; }

.flow-rows { display: grid; gap: var(--espace-8); align-items: start; }

@media (min-width: 700px) {
  .flow-rows { grid-template-columns: 1fr 1fr; gap: var(--espace-6); }
}

.flow-label {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: var(--espace-3);
}

/* Étapes : liste verticale numérotée, une bande blanche cadrée par étape */
.steps {
  display: grid;
  gap: var(--espace-2);
  counter-reset: etape;
}

.steps li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: var(--espace-3);
  padding: 9px var(--espace-3);
  border: var(--trait-fin) solid var(--filet);
  background: var(--papier-releve); /* étape qui reste : blanc */
  font-size: 15px;
  line-height: 22px;
}

/* Numéro de l'étape dans un carré cadré */
.steps li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: var(--trait-fin) solid var(--filet);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

/* Étiquette d'état, à droite : mono capitales dans un cadre fin */
.step-flag {
  grid-column: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--encre);
  padding: 3px 6px;
  border: var(--trait-fin) solid var(--filet);
  background: var(--papier-releve);
  white-space: nowrap;
}

/* Étape supprimée : fond lavande, contour pointillé, texte barré */
.steps li.cut {
  background: var(--pave-lavande);
  border-style: dashed;
}
.steps li.cut::before { border-style: dashed; color: var(--graphite); }
.steps li.cut .step-text {
  color: var(--graphite);
  text-decoration: line-through 1px var(--encre);
}
/* Étiquette « supprimé » remplie d'orange clair, texte encre (7,1:1) */
.steps li.cut .step-flag {
  background: var(--signal-clair);
  border-color: var(--signal-clair);
}

/* Étape automatique : numéro dans un carré blanc comme les autres,
   étiquette sur un aplat orange clair */
.steps li.auto .step-flag {
  background: var(--signal-clair);
  border-color: var(--signal-clair);
  color: var(--sur-signal);
}

/* Moment signature : à l'arrivée du schéma, les étapes inutiles se barrent
   une à une, puis les étapes automatiques s'allument. Sans JavaScript ou
   avec « réduire les animations », tout est déjà affiché. */
.flow-anim .steps li.cut .step-text { text-decoration-color: transparent; }
.flow-anim .steps li.cut .step-flag,
.flow-anim .steps li.auto .step-flag { opacity: 0; }

.flow-anim.is-played .steps li.cut .step-text {
  text-decoration-color: var(--encre);
  transition: text-decoration-color 0.6s var(--ease-out);
}

.flow-anim.is-played .steps li.cut .step-flag,
.flow-anim.is-played .steps li.auto .step-flag {
  opacity: 1;
  transition: opacity 0.4s var(--ease-out);
}

.flow-anim.is-played .steps li.cut:nth-child(2) .step-text,
.flow-anim.is-played .steps li.cut:nth-child(2) .step-flag { transition-delay: 0.2s; }
.flow-anim.is-played .steps li.cut:nth-child(4) .step-text,
.flow-anim.is-played .steps li.cut:nth-child(4) .step-flag { transition-delay: 0.5s; }
.flow-anim.is-played .steps li.cut:nth-child(6) .step-text,
.flow-anim.is-played .steps li.cut:nth-child(6) .step-flag { transition-delay: 0.8s; }
.flow-anim.is-played .steps li.auto:nth-child(2) .step-flag { transition-delay: 1.3s; }
.flow-anim.is-played .steps li.auto:nth-child(3) .step-flag { transition-delay: 1.5s; }

/* =====================================================================
   PHRASE CHOC — aplat encre
   ===================================================================== */

.statement .container {
  padding-block: var(--espace-12);
  display: grid;
  gap: var(--espace-4);
}

@media (min-width: 900px) {
  .statement .container { padding-block: var(--espace-16); }
}

.statement-main {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.024em;
  max-width: 28ch;
  text-wrap: balance;
}

.statement-sub { font-size: 18px; line-height: 26px; letter-spacing: -0.014em; color: var(--graphite); max-width: 62ch; }

/* =====================================================================
   SYMPTÔMES — cases à cocher
   ===================================================================== */

@media (min-width: 700px) { .symptoms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .symptoms { grid-template-columns: repeat(3, 1fr); } }

.symptom {
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--papier-releve);
  border: 0;
  border-radius: var(--angle-droit);
  padding: var(--espace-6) var(--espace-6) var(--espace-6) 60px;
  position: relative;
  cursor: pointer;
  display: grid;
  gap: var(--espace-1);
  align-content: start;
  transition: background-color 0.15s ease;
}

.symptom:focus-visible { outline-offset: -4px; }

.symptom::before {
  content: "";
  position: absolute;
  left: var(--espace-6);
  top: 27px;
  width: 20px;
  height: 20px;
  border: var(--trait-fin) solid var(--filet);
  background: var(--papier-releve);
}

.symptom:hover { background: var(--papier); }

.symptom[aria-pressed="true"] { background: var(--sable); }

.symptom[aria-pressed="true"]::before {
  background: var(--encre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23faf9f6' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.symptom strong { font-size: 16px; line-height: 24px; }
.symptom span { font-size: 14px; line-height: 22px; color: var(--graphite); }

.symptom-count {
  margin-top: var(--espace-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--espace-3) var(--espace-6);
}

.symptom-text { display: grid; gap: 2px; flex: 1 1 260px; }

/* Message affiché dès 2 cartes cochées */
.symptom-gain { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--signal-texte); }
.symptom-gain:empty, .symptom-gain:has(> [hidden]) { display: none; }

/* Bouton calé à droite, aligné sur les cartes de droite */
.symptom-cta { margin-left: auto; }

.count-badge {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  padding: 8px var(--espace-3);
  border: var(--trait-fin) solid var(--filet);
  background: var(--papier-releve);
}

/* =====================================================================
   AVANT / APRÈS — tableau à filets
   ===================================================================== */

.ba {
  display: grid;
  gap: var(--trait-fin);
  background: var(--filet);
  border: var(--trait-fin) solid var(--filet);
}

.ba-row { display: grid; gap: var(--trait-fin); }

@media (min-width: 800px) {
  .ba-row { grid-template-columns: 220px 1fr 1fr; }
}

.ba-word,
.ba-cell { background: var(--papier-releve); padding: var(--espace-6); }

.ba-word {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.022em;
  display: flex;
  align-items: center;
}

.ba-cell { display: grid; gap: var(--espace-2); align-content: start; font-size: 15px; line-height: 24px; color: var(--graphite); }
.ba-cell .flow-label { margin: 0; color: var(--graphite); }
.ba-after { color: var(--encre); }
.ba-after .flow-label { color: var(--encre); }

/* =====================================================================
   MÉTHODE / PHILOSOPHIE / CAS CLIENTS
   ===================================================================== */

.step-badge {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  color: var(--graphite);
  margin-bottom: var(--espace-3);
}

.step-badge::before { content: "[\00a0" "0"; }
.step-badge::after { content: "\00a0]"; }

.card .step-outcome {
  padding-top: var(--espace-3);
  border-top: var(--trait-fin) solid var(--filet);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: var(--encre);
}

/* Méthode : titres, textes et pieds de carte alignés d'une carte à l'autre */
@media (min-width: 900px) {
  ol.grid-3 { grid-template-rows: auto auto 1fr auto; }
  ol.grid-3 > .card { grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--espace-3); }
}

.bullets { display: grid; gap: var(--espace-2); font-size: 15px; line-height: 24px; }
.bullets li { padding-left: 20px; position: relative; color: var(--graphite); }

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--encre);
}

.case dl { display: grid; gap: var(--espace-3); }
.case dt { font-family: var(--font-mono); font-size: 13px; line-height: 16px; text-transform: uppercase; color: var(--graphite); }
.case dd { margin-top: var(--espace-2); font-size: 16px; line-height: 26px; }

/* =====================================================================
   QUI SUIS-JE
   ===================================================================== */

.about { display: grid; gap: var(--espace-8); align-items: start; }

@media (min-width: 900px) {
  .about { grid-template-columns: 300px 1fr; gap: var(--espace-16); }
  .photo-slot { max-width: 260px; }
}

/* Emplacement photo : monogramme en attendant la vraie photo */
/* Photo de profil : ronde, comme le veut la charte */
.photo-slot {
  aspect-ratio: 1;
  max-width: 200px;
  width: 100%;
  border-radius: var(--rond);
  border: var(--trait-fin) solid var(--filet);
  background: var(--sable);
  display: grid;
  place-items: center;
  font-family: var(--font-titre);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--graphite);
}

.about-copy { display: grid; gap: var(--espace-4); max-width: 68ch; }
.about-copy .headline-lg { margin-bottom: var(--espace-2); }
.about-copy p { color: var(--graphite); }

.sectors { display: flex; flex-wrap: wrap; gap: var(--espace-2); }

/* Citation : Geist (police des titres) en 400, 24 px, guillemets français */
.about-copy .quote {
  margin-top: var(--espace-4);
  padding-top: var(--espace-6);
  border-top: var(--trait-fin) solid var(--filet);
  font-family: var(--font-titre);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--encre);
}

/* =====================================================================
   FAQ
   ===================================================================== */

.faq { max-width: 860px; border-top: var(--trait-fin) solid var(--filet); }

.faq details { border-bottom: var(--trait-fin) solid var(--filet); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

/* Plus / moins dessinés en traits fins */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--encre);
  transition: transform 0.25s var(--ease-out);
}

.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }

.faq summary:hover { color: var(--graphite); }

.faq details p { padding-bottom: var(--espace-6); color: var(--graphite); font-size: 16px; line-height: 26px; max-width: 68ch; }

/* =====================================================================
   CONTACT — trois cartes, chacune ouvre un formulaire Fillout
   ===================================================================== */

.demo-inner { display: grid; gap: var(--espace-8); align-items: end; }

@media (min-width: 1024px) {
  .demo-inner { grid-template-columns: 7fr 5fr; gap: var(--espace-12); }
}

.demo-copy { display: grid; gap: var(--espace-3); }
.demo-copy .headline-lg { max-width: 24ch; }
.demo-copy .body-lg { margin-top: var(--espace-3); }

.promise { display: grid; gap: var(--espace-3); }
.promise li { display: flex; gap: var(--espace-3); font-size: 16px; line-height: 24px; }

.promise li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1915' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.contact-stack { display: grid; gap: var(--espace-12); }

@media (min-width: 800px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Toute la carte est cliquable ; le bouton en bas indique l'action */
.contact-card {
  color: inherit;
  text-decoration: none;
  background: var(--papier-releve);
  padding: var(--espace-6);
  display: grid;
  gap: var(--espace-1);
  grid-template-rows: auto auto 1fr auto;
  transition: background-color 0.15s ease;
}

/* Survol : un pavé de la charte par carte (bruyère, acier, sauge) */
.contact-card:nth-child(1):hover { background: var(--pave-bruyere); }
.contact-card:nth-child(2):hover { background: var(--pave-acier); }
.contact-card:nth-child(3):hover { background: var(--pave-sauge); }
.contact-card:focus-visible { outline-offset: -4px; }

.contact-card strong { font-size: 17px; line-height: 24px; }
.contact-card > span:nth-of-type(2) { font-size: 14px; line-height: 22px; color: var(--graphite); }

.contact-card .btn { justify-self: start; margin-top: var(--espace-6); }
.contact-card:hover .btn-primary { background: var(--graphite); border-color: var(--graphite); }

.contact-icon { display: block; margin-bottom: var(--espace-3); color: var(--encre); }
.contact-icon svg { display: block; width: 24px; height: 24px; }

/* =====================================================================
   FOOTER — aplat encre
   ===================================================================== */

.site-footer { padding: var(--espace-16) 0 var(--espace-6); }

.footer-main {
  display: grid;
  gap: var(--espace-8);
  padding-bottom: var(--espace-8);
}

@media (min-width: 800px) {
  .footer-main { grid-template-columns: 1.4fr repeat(4, 1fr); }
}

.footer-logo { display: block; height: 28px; width: auto; }

.footer-tagline {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.017em;
  margin-top: var(--espace-6);
  max-width: 22ch;
}

.footer-label { margin-bottom: var(--espace-4); }

.footer-links { display: flex; flex-direction: column; gap: var(--espace-2); }
.footer-links a { font-size: 15px; line-height: 24px; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--signal-texte); }

/* Colonne Newsletter : une phrase puis un bouton secondaire vers le formulaire Brevo */
.footer-text { font-size: 15px; line-height: 24px; color: var(--graphite); margin-bottom: var(--espace-4); }

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--espace-3);
  padding-top: var(--espace-6);
}

/* Filet aligné sur le contenu, pas sur les marges */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--marge);
  right: var(--marge);
  height: var(--trait-fin);
  background: var(--filet-doux);
}

.footer-copyright { font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--graphite); }

.footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-1) var(--espace-4); color: var(--graphite); }
.footer-legal-links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-legal-links a:hover { color: var(--encre); }

/* Séparateurs « · » seulement quand les liens tiennent sur une ligne */
@media (min-width: 640px) {
  .footer-legal-links { gap: 0; }
  .footer-legal-links a + a::before { content: "·"; display: inline-block; margin: 0 10px; text-decoration: none; color: var(--graphite); }
}

/* =====================================================================
   PAGE MENTIONS LÉGALES
   ===================================================================== */

.back-link { display: none; align-items: center; gap: var(--espace-2); font-size: 15px; line-height: 20px; font-weight: 500; color: var(--graphite); }
.back-link svg { flex: none; width: 20px; height: 9px; }
.back-link:hover { color: var(--encre); }

@media (min-width: 640px) {
  .back-link { display: inline-flex; }
}

.legal-hero { padding-block: var(--espace-16) var(--espace-12); }
.legal-hero .container { display: grid; gap: var(--espace-3); max-width: calc(880px + 2 * var(--espace-16)); }
.legal-hero .display-lg { font-size: clamp(36px, 5vw, 44px); letter-spacing: -0.025em; }

.legal { border-top: var(--trait-fin) solid var(--filet); padding-block: var(--espace-12) var(--espace-24); }
.legal .container { display: grid; gap: var(--espace-6); max-width: calc(880px + 2 * var(--espace-16)); }

.legal-section.card { border: var(--trait-fin) solid var(--filet); gap: var(--espace-4); scroll-margin-top: 88px; }

.legal-head { display: grid; gap: var(--espace-3); }

.legal-num {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}

.legal-num::before { content: "[\00a0"; }
.legal-num::after { content: "\00a0]"; }

.legal-section p { color: var(--graphite); font-size: 15px; line-height: 24px; max-width: 68ch; }

.legal-list { display: grid; }

.legal-list > div {
  display: grid;
  gap: var(--espace-1) var(--espace-6);
  padding-block: var(--espace-3);
  border-top: var(--trait-fin) solid var(--filet-doux);
}

.legal-list > div:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 700px) {
  .legal-list > div { grid-template-columns: 200px 1fr; }
}

.legal-list dt { font-family: var(--font-mono); font-size: 13px; line-height: 20px; text-transform: uppercase; color: var(--graphite); padding-top: 2px; }
.legal-list dd { font-size: 15px; line-height: 24px; }

.pending { color: var(--graphite); }

.legal-updated { margin-top: var(--espace-3); }

/* =====================================================================
   PAGE 404
   ===================================================================== */

.not-found { min-height: 55vh; display: grid; align-content: center; }

/* =====================================================================
   TÉLÉPHONE (moins de 640 px) : confort de lecture et de toucher
   Textes courants à 16 px minimum ; les petites étiquettes en capitales
   (Geist Mono 12-13 px) gardent leur taille, elles font partie de la charte.
   Liens du pied de page : zone cliquable de 44 px de haut.
   Placé en fin de fichier pour l'emporter sur les règles ci-dessus.
   ===================================================================== */

@media (max-width: 639px) {
  .body-sm,
  .hero-note,
  .card p,
  .card .step-outcome,
  .bullets,
  .ba-cell,
  .steps li,
  .flow-foot,
  .symptom span,
  .symptom-gain,
  .contact-card > span:nth-of-type(2),
  .legal-section p,
  .legal-list dd,
  .footer-links a,
  .btn,
  .btn-sm {
    font-size: 16px;
    line-height: 24px;
  }

  .footer-links { gap: 0; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }

  .footer-legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
