/* ==========================================================================
   fillab.fr
   Direction : le releve. Le site se comporte comme l'instrument qu'il vend.
   Aucune dependance exterieure : les polices sont hebergees ici meme, ce qui
   evite d'envoyer l'adresse IP des visiteurs a un service tiers.
   ========================================================================== */

/* --- Polices, variables, un fichier par jeu de caracteres --- */
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/chivo-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;
}
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/chivo-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Jetons --- */
:root {
  --fond: #eceff0;
  --surface: #ffffff;
  --encre: #10161a;
  --doux: #59696f;
  --filet: #c8d3d6;
  --grille: #dde4e6;
  --accent: #e8541f;
  --accent-fonce: #cf4715;
  --accent-pale: rgba(232, 84, 31, .22);

  --sans: 'Chivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --t-micro: 120ms;
  --t-ui: 240ms;
  --t-arrivee: 620ms;
  --e-sortie: cubic-bezier(.2, 0, 0, 1);
  --e-entree: cubic-bezier(.4, 0, 1, 1);

  --rail: 108px;
  --marge: 30px;
}

/* --- Remise a zero --- */
*, *::before, *::after { box-sizing: border-box; }

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

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.evitement:focus {
  left: 0;
}

/* --- Ossature --- */
.site {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 100vh;
  background: var(--surface);
  /* Choix d'Artur, 24/08/2026 : au-dela de 1500 px la page cesse de
     s'etirer et se centre. Le titre plafonne a 2.45rem et le trace du
     releve a une hauteur fixe : sans cadre, les tres grands ecrans
     ecrasaient le bandeau. */
  max-width: 1500px;
  margin: 0 auto;
}
@media (min-width: 1502px) {
  .site { border-left: 1px solid var(--filet); border-right: 1px solid var(--filet); }
}

/* Le rail : repere de lecture, pas decoration. Il indique la section en cours
   et avance avec le defilement. Marque invisible pour les lecteurs d'ecran,
   qui disposent deja de la navigation par titres. */
.rail {
  position: relative;
  border-right: 1px solid var(--filet);
}
.rail-fixe {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 24px;
}
.rail-piste {
  position: absolute;
  left: 32px;
  top: 14vh;
  bottom: 14vh;
  width: 1px;
  background: var(--filet);
}
.rail-curseur {
  position: absolute;
  left: 31px;
  top: 14vh;
  width: 3px;
  height: 34px;
  background: var(--accent);
  /* Lie au defilement, donc suivi exact : aucune transition, aucun retard. */
  transform: translateY(calc(var(--avancee, 0) * (72vh - 34px)));
}
.rail-section {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--doux);
  white-space: nowrap;
}
.rail-muet .rail-curseur,
.rail-muet .rail-section { display: none; }

.colonne { min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; }

/* --- En-tete --- */
/* En-tete collant : il garde la navigation et l'appel a l'action accessibles
   pendant toute la lecture, ce qui pese entre 3 et 7 pour cent de conversion
   selon les tests publies. */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px var(--marge);
  background: var(--surface);
  border-bottom: 1px solid var(--filet);
}
.entete .nav { margin-left: auto; }
.entete-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 15px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--t-micro) var(--e-sortie);
}
.marque {
  font-weight: 900;
  letter-spacing: -.03em;
  font-size: 1.2rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--doux);
}
.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--t-micro) var(--e-sortie);
}
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* --- En-tete de page, avec le releve --- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  border-bottom: 1px solid var(--filet);
}
.hero-texte {
  padding: 72px var(--marge) 60px;
  border-right: 1px solid var(--filet);
}
.hero-texte h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.hero-texte h1 .surligne {
  position: relative;
  isolation: isolate;
}
.hero-texte h1 .surligne > span { position: relative; z-index: 1; }
.hero-texte h1 .surligne::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.04em;
  bottom: .04em;
  height: .34em;
  background: var(--accent-pale);
  z-index: 0;
  transform: scaleX(1);
  transform-origin: left;
}
.hero-texte > p {
  color: var(--doux);
  max-width: 46ch;
  margin-bottom: 26px;
}

.boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn, .btn-fantome {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn {
  background: var(--accent);
  color: #fff;
  transition: background var(--t-micro) var(--e-sortie);
}
.btn-fantome {
  border: 1px solid var(--filet);
  color: var(--encre);
  font-family: var(--mono);
  font-size: .8rem;
  background: transparent;
  transition: border-color var(--t-micro) var(--e-sortie);
}

/* --- Le releve --- */
.releve {
  padding: 44px var(--marge);
  background:
    repeating-linear-gradient(var(--grille) 0 1px, transparent 1px 26px),
    var(--surface);
  position: relative;
}
.releve-titre, .etiquette {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--doux);
  margin-bottom: 14px;
}
.etiquette { color: var(--accent); margin-bottom: 10px; }
/* Sur le papier regle (une ligne tous les 26 px), le titre se pose dans une
   ligne du cahier au lieu d'etre traverse : rembourrage de 44 + 8 = 52, soit
   la troisieme reglure, et une hauteur de ligne de 26. */
.releve .releve-titre { line-height: 26px; margin: 8px 0 18px; }
.releve canvas { display: block; width: 100%; height: 108px; }

.mesures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 0;
  border-top: 1px solid var(--filet);
  padding-top: 14px;
}
.mesures dt {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--doux);
  margin-bottom: 4px;
}
.mesures dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.mesures .alerte { color: var(--accent); }
.menu-fin {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--doux);
  margin-top: 12px;
  letter-spacing: .04em;
}

/* Choix d'Artur, 24/08/2026 : dans les blocs du duo, les enumerations
   sont des listes, nom en gras et benefice a la suite. Les deux blocs
   partagent la structure : intro en une phrase, liste, paragraphe de
   cloture. Distinct de .champs (formulaire). */
.bloc-liste {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bloc-liste li {
  color: var(--doux);
  font-size: .95rem;
  padding-left: 16px;
}
.bloc-liste strong { color: var(--encre); }

/* --- Page Etat des lieux, refonte du 25/08/2026 --- */
/* Le bandeau se centre verticalement face aux fiches (choix d'Artur du
   25/08/2026), et trois garanties repondent aux hesitations sous les
   boutons : delai, relance unique, aucune suite imposee. */
.hero-centre .hero-texte { display: flex; flex-direction: column; justify-content: center; }
/* La colonne du releve aussi : quand son contenu est plus court que le
   texte, le papier se repartit au-dessus et en dessous. */
.hero-centre .releve { display: flex; flex-direction: column; justify-content: center; }
.garanties {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.garanties li {
  color: var(--doux);
  font-size: .92rem;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}

/* L'exemple de livrable dans le bandeau : des constats types sur le
   papier regle, a la place du graphique. */
/* Choix V3 d'Artur, 25/08/2026 : des fiches blanches a lisere orange
   posees sur le papier regle, le texte ne croise plus les lignes. */
.constats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.constats li {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--filet);
  border-left: 3px solid var(--accent);
  font-size: .88rem;
  line-height: 1.5;
}
.constat-champ {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: .35em;
}
.constat-texte { color: var(--encre); }
.constat-consequence { display: block; margin-top: 4px; color: var(--doux); }
.carte .consequence { margin-top: 10px; }
.carte .consequence strong { color: var(--encre); font-weight: 700; }
.releve.exemple .menu-fin { margin-top: 16px; }
@media (max-width: 640px) {
  .constats li { grid-template-columns: 1fr; gap: 4px; }
}

/* Quatre cartes de front : chacune garde sa marge interieure, la
   premiere colle au bord gauche comme les autres grilles du site. */
.cartes.cartes-quatre { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cartes-quatre .carte {
  padding-left: 26px;
  border-bottom: 1px solid var(--filet);
  /* Etiquette, titre et texte alignes d'une carte a l'autre, quelle que
     soit la longueur des titres : meme remede que pour les questions. */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  align-content: start;
}
.cartes-quatre .carte:first-child { padding-left: 0; }
.cartes-quatre .carte:last-child { padding-left: 26px; }

/* La reassurance sous le bouton du bloc orange reste lisible. */
.audit .cta-note { color: rgba(255, 255, 255, .88); margin-top: 16px; max-width: 60ch; font-size: .88rem; }

/* --- Deux blocs cote a cote --- */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-bottom: 1px solid var(--filet);
}
.bloc {
  padding: 56px var(--marge);
  border-right: 1px solid var(--filet);
}
.bloc:last-child { border-right: 0; }
.bloc h2, .bloc h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.bloc p { color: var(--doux); font-size: .95rem; }

/* Regle typographique d'Artur, 25/08/2026 : une phrase courte ne se
   coupe jamais en fin de ligne, elle descend entiere. Poser .tient sur
   toute nouvelle phrase courte en milieu de paragraphe. */
.tient { white-space: nowrap; }

/* Les liens d'ancre (Recevoir mon etat des lieux, Comment ca se passe)
   atterrissent sous l'en-tete collant, pas dessous : marge de defilement
   egale a l'en-tete plus une respiration. Constat d'Artur du 25/08/2026. */
section[id], [id="contenu"] { scroll-margin-top: calc(var(--entete-hauteur, 72px) + 20px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Note sous un bouton, hors bloc orange (page Contact) : police courante,
   ton doux. Les versions du bloc orange et de la fin de section restent
   plus specifiques. */
.cta-note { color: var(--doux); font-size: .88rem; margin-top: 14px; max-width: 60ch; }

/* Les pages internes : le titre ne flotte plus au-dessus de son contenu.
   Du sous-titre au contenu suivant, l'espace passe de 162 a 110 px, un
   tiers de moins (choix d'Artur du 25/08/2026). */
.section:has(> .titre-page) { padding-bottom: 20px; }

/* --- Section de texte simple --- */
.section { padding: 72px var(--marge); }
/* Choix T3 d'Artur, 22/08/2026 : les titres de categorie s'affirment,
   barre d'index orange et regles de separation appuyees. */
.section > h2,
.cat-tete h2,
.audit h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 12px;
  border-left: 6px solid var(--accent);
  padding-left: 18px;
}
.audit h2 { border-left-color: #fff; }
.section > .sous { color: var(--doux); font-size: 1rem; margin-bottom: 34px; }

/* La regle forte marque le debut de chaque categorie. */
main > .section,
main > .section-duo,
main > .duo { border-top: 2px solid var(--encre); }

/* L'en-tete de la section des deux metiers, qui n'avait pas de titre. */
.cat-tete { padding: 56px var(--marge) 0; }

/* Les titres de page dominent les titres de categorie. */
.titre-page {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin-bottom: 10px;
}
.prose { max-width: 68ch; }
.prose p { color: var(--doux); margin-bottom: 16px; }
.prose h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--encre);
  margin: 26px 0 8px;
}
.prose ul { color: var(--doux); margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { border-bottom: 1px solid var(--filet); }

/* --- Liens et boutons secondaires --- */
.lien-souligne { border-bottom: 1px solid var(--filet); }
.lien-discret {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--doux);
  border-bottom: 1px solid var(--filet);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.lien-clair {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  font-family: var(--mono);
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.btn-encre { background: var(--encre); }

/* --- Cartes de service, la preuve de production --- */
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--filet);
}
.carte {
  padding: 40px 26px 40px 0;
  border-right: 1px solid var(--filet);
}
.carte:last-child { border-right: 0; padding-left: 26px; }
.carte h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.carte p { color: var(--doux); font-size: .95rem; }
.carte-lien {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
}
.carte-meta {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--doux);
}

/* Le papier regle, reserve aux blocs qui presentent un releve. */
.section-papier {
  background:
    repeating-linear-gradient(var(--grille) 0 1px, transparent 1px 26px),
    var(--surface);
}

/* --- Les trois temps d'une mission --- */
.etapes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--filet);
}
.etapes li {
  padding: 38px 26px;
  border-right: 1px solid var(--filet);
  /* Les titres font une ou deux lignes selon la question : subgrid aligne
     le depart de toutes les reponses sur le titre le plus haut. Sans
     subgrid, retombee sur le rendu d'avant, rien ne casse. */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  align-content: start;
}
.etapes li:first-child { padding-left: 0; }
.etapes li:last-child { border-right: 0; }
.etape-rang {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.etapes p { color: var(--doux); font-size: .94rem; }

/* Choix d'Artur, 24/08/2026 : le CTA qui conclut une section est un vrai
   bouton, flanque de sa ligne de reassurance, pas un lien noye. */
.section-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.section-cta .cta-note {
  color: var(--doux);
  font-size: .85rem;
  max-width: 36ch;
  margin: 0;
}

/* --- Page Projets, refonte du 25/08/2026 : une fiche par projet, texte a
   gauche, capture et donnees a droite. --- */
.projet {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 44px;
  margin-top: 14px;
}
.projet-texte p { color: var(--doux); max-width: 62ch; }
.projet-texte p + p { margin-top: 12px; }
.projet-preuve strong { color: var(--encre); }
/* La capture est une fenetre sur le site, exactement de la hauteur du
   texte quelle que soit la largeur : l'image couvre le cadre, ancree en
   haut a gauche, sans dicter la hauteur de la rangee. */
.projet-capture { display: block; position: relative; border: 1px solid var(--filet); overflow: hidden; }
.projet-capture img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.mesures.mesures-quatre { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
/* Le bandeau de mesures ferme la fiche : la section s'arrete juste
   dessous, le filet de la section suivante lui sert de ligne de pied. */
.section:has(> .mesures-quatre) { padding-bottom: 26px; }
.mesures-quatre dd { font-size: 1rem; letter-spacing: 0; font-weight: 700; }
@media (max-width: 860px) {
  .projet { grid-template-columns: 1fr; gap: 24px; }
  .projet-capture { aspect-ratio: 16 / 10; }
  .mesures.mesures-quatre { grid-template-columns: 1fr 1fr; }
}

/* Les libelles d'une fiche (Periode, Porte par...) ne se coupent jamais,
   meme quand la valeur d'en face est longue. */
.donnees.fiche td:first-child { white-space: nowrap; }

/* --- Pages prestations (lot 2, 29/08/2026) : les formules --- */
.formules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--filet);
}
.formule {
  padding: 36px 30px 36px 0;
  border-right: 1px solid var(--filet);
}
.formule:last-child { border-right: 0; padding-left: 30px; }
.formule-prix {
  font-size: 1.05rem;
  color: var(--doux);
  margin: 6px 0 2px;
}
.formule-prix strong {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--encre);
  margin-right: 6px;
}
.formule-ttc {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--doux);
  margin-bottom: 18px;
}
.formules-note {
  color: var(--doux);
  font-size: .9rem;
  max-width: 72ch;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--filet);
}
/* Inclus et conditions : un duo a l'interieur de la section, sans la regle
   forte des categories. */
.section > .formules-inclus { margin-top: 40px; border-top: 1px solid var(--filet); border-bottom: 0; }
.formules-inclus .bloc { padding: 34px 26px 0 0; }
.formules-inclus .bloc:last-child { padding-left: 26px; }
.formules-inclus h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
@media (max-width: 860px) {
  .formule { border-right: 0; border-bottom: 1px solid var(--filet); padding-left: 0; }
  .formule:last-child { padding-left: 0; border-bottom: 0; }
  .formules-inclus .bloc, .formules-inclus .bloc:last-child { padding-left: 0; padding-right: 0; }
}

/* Le Pack Lancement sur la page site vitrine, et l'index des prestations. */
.pack-lancement { margin-top: 28px; padding: 30px 30px; border: 2px solid var(--encre); }
.pack-lancement h3 { font-size: 1.4rem; font-weight: 900; letter-spacing: -.03em; margin: 4px 0 4px; }
.prestations-index .carte-prix { margin-top: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.prestations-index .carte-prix strong { color: var(--encre); }
/* Cinq rangees ici (etiquette, titre, texte, prix, lien), pas quatre. */
.prestations-index .cartes-quatre .carte { grid-row: span 6; }
.prestations-index .carte-obtenez { color: var(--encre); margin-top: 12px; }

/* Cas clients : les faits qui comptent ressortent en gras, dans l'encre. */
.cas strong { color: var(--encre); }
/* Sous le titre du cas, de l'air ; et la premiere ligne du recit s'aligne
   sur la premiere ligne de la fiche (marge de la table 6 px + rembourrage
   de cellule 14 px). Demande d'Artur, 30/08/2026. */
.cas .projet { margin-top: 28px; }
.cas .projet-texte { padding-top: 20px; }

/* Sous le champ adresse : le visiteur sans site a une porte (Artur, 30/08/2026). */
.cta-sans-site { margin-top: 10px; }
.cta-sans-site + p[role="alert"] { margin-top: 10px; }

/* Cas clients, la frise des trois mois. Dessinee en HTML : les textes se
   replient, et la ligne passe a la verticale sous 860 px. */
.frise {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 22px;
  position: relative;
}
.frise::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
  background: var(--filet);
}
.frise li { position: relative; padding-top: 24px; }
.frise li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--surface);
  border: 2px solid var(--encre);
}
.frise li.frise-fort::before { background: var(--accent); border-color: var(--accent); }
.frise-quand {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--doux);
  margin-bottom: 6px;
}
.frise strong { display: block; font-size: 1rem; line-height: 1.3; }
.frise .frise-fort strong { color: var(--accent); }
.frise-detail { display: block; color: var(--doux); font-size: .9rem; margin-top: 4px; }
@media (max-width: 860px) {
  .frise { grid-template-columns: 1fr; gap: 22px 0; padding-left: 28px; }
  .frise::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .frise li { padding-top: 0; }
  .frise li::before { left: -28px; top: 3px; }
}

/* Cas clients, le flux automatise : trois cases reliees par des fleches,
   empilees sous 640 px. */
.flux {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: stretch;
  margin-top: 30px;
}
.flux-etape { border: 1px solid var(--encre); background: var(--surface); padding: 18px 20px; }
.flux-num {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.flux-etape strong { display: block; font-size: 1rem; line-height: 1.3; }
.flux-fleche { position: relative; }
.flux-fleche::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--encre);
}
.flux-fleche::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--encre);
  border-right: 1px solid var(--encre);
  transform: translate(0, -50%) rotate(45deg);
}
.flux-detail { display: block; color: var(--doux); font-size: .88rem; margin-top: 4px; }
/* Le flux se pose sur une bande grise : c'est ce qui le detache du reste
   de la page (retour d'Artur : sans separateur, tout se lisait comme une
   seule section). Les cases restent blanches dessus. */
.cas-bande { background: var(--fond); padding: 6px 28px 28px; margin-top: 26px; }
.flux-groupe { margin-top: 22px; }
.flux-groupe + .flux-groupe { margin-top: 26px; }
.frise { margin-top: 8px; }
.flux-titre {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--doux);
}
.flux-titre + .flux { margin-top: 10px; }
.flux.flux-quatre { grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr; }
.flux-quatre .flux-etape { padding: 16px 18px; }
@media (max-width: 640px) {
  .cas-bande { padding: 4px 16px 20px; }
  .flux, .flux.flux-quatre { grid-template-columns: 1fr; }
  .flux-fleche { height: 36px; }
  .flux-fleche::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flux-fleche::after { left: 50%; right: auto; top: auto; bottom: 1px; transform: translate(-50%, 0) rotate(135deg); }
}
.prestations-index .carte-lien { margin-top: 10px; }

/* --- Tableau de donnees --- */
.donnees { margin-top: 6px; overflow-x: auto; }
.donnees th {
  text-align: left;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--doux);
  font-weight: 500;
  border-bottom: 1px solid var(--filet);
  padding: 0 12px 8px 0;
}
.donnees td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--filet);
  vertical-align: top;
  font-size: .94rem;
  color: var(--doux);
}
.donnees td:first-child { color: var(--encre); font-weight: 700; white-space: nowrap; }
.donnees td:last-child {
  font-family: var(--mono);
  font-size: .78rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.donnees a { border-bottom: 1px solid var(--filet); }

/* Tableau d'informations a deux colonnes : la valeur reste alignee a gauche. */
.donnees.fiche td:last-child {
  text-align: left;
  font-family: var(--sans);
  font-size: .94rem;
}
.donnees.fiche td:first-child { white-space: normal; width: 34%; }

.attente {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Appel a l'audit --- */
.audit {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 64px var(--marge);
}
/* Choix d'Artur du 22/08/2026 : le bloc se pose entier. Le fond, sur un
   calque, et le corps, qui enveloppe le contenu, grandissent ensemble de
   94 a 100 pour cent : aucun etat vide, aucun texte coupe possible. */
.audit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: var(--audit-pose, none);
  border-radius: var(--audit-coins, 0);
}
.audit-corps { transform: var(--audit-pose, none); }
.audit p { color: rgba(255, 255, 255, .92); max-width: 56ch; font-size: .94rem; margin-bottom: 22px; }
/* 720 px : trois champs de front, libelles entiers (le telephone a rejoint
   le formulaire le 25/08/2026). */
.formulaire { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.formulaire input {
  flex: 1 1 190px;
  min-height: 44px;
  padding: 12px;
  border: 0;
  font: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--encre);
}
.formulaire button {
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  background: var(--encre);
  color: #fff;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--t-micro) var(--e-sortie);
}

/* --- Formulaire a champs empiles, page Contact --- */
.champs { display: grid; gap: 14px; max-width: 480px; }
/* Email et telephone cote a cote (page Contact), empiles sur mobile. */
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .champs-duo { grid-template-columns: 1fr; } }
.champs label { display: grid; gap: 6px; }
.champs label > span {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--doux);
}
.champs input,
.champs textarea {
  font: inherit;
  font-size: .95rem;
  padding: 11px 12px;
  min-height: 44px;
  border: 1px solid var(--filet);
  background: var(--surface);
  color: var(--encre);
}
.champs textarea { min-height: 130px; resize: vertical; }
.champs button { justify-self: start; }

/* Piege a robots : hors ecran, jamais atteignable au clavier. */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Pied de page : navigation, contact et second appel --- */
.pied {
  padding: 60px var(--marge) 26px;
  border-top: 1px solid var(--filet);
  font-size: .84rem;
  color: var(--doux);
}
.pied-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--filet);
}
.pied-col .etiquette { margin-bottom: 12px; }
.pied-texte { max-width: 40ch; }
.pied-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied-liste a { border-bottom: 1px solid var(--filet); }
.pied-action { margin-top: 18px; font-size: .82rem; }
.pied-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: .78rem;
}
.pied-legal p { max-width: 78ch; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 18px; }
.pied-liens a { border-bottom: 1px solid var(--filet); }

/* --------------------------------------------------------------------------
   Choregraphie d'arrivee, jouee une seule fois. Seuls transform, opacity et
   clip-path sont animes : jamais une largeur ni une hauteur.
   -------------------------------------------------------------------------- */
[data-entree] .an { opacity: 0; }
[data-entree] .an[data-an="haut"] { transform: translateY(18px); }
[data-entree] .an[data-an="bas"] { transform: translateY(-18px); }
[data-entree] .an[data-an="droite"] { transform: translateX(28px); }
[data-entree] .an[data-an="masque"] { opacity: 1; clip-path: inset(0 0 106% 0); }
[data-entree] .an.vu {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 -6% 0);
  transition:
    opacity var(--t-arrivee) var(--e-sortie),
    transform var(--t-arrivee) var(--e-sortie),
    clip-path 700ms var(--e-sortie);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-entree] .rail-piste { transform: scaleY(0); transform-origin: top; }
[data-entree] .rail-piste.vu { transform: scaleY(1); transition: transform 420ms var(--e-sortie); }
[data-entree] .hero-texte h1 .surligne::after { transform: scaleX(0); }
[data-entree] .hero-texte h1 .surligne.vu::after {
  transform: scaleX(1);
  transition: transform 520ms var(--e-sortie);
}

/* --------------------------------------------------------------------------
   Survol : jamais porteur d'information, et desactive sur ecran tactile.
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--accent); }
  .btn:hover, .entete-action:hover { background: var(--accent-fonce); }
  .btn-fantome:hover { border-color: var(--accent); }
  .formulaire button:hover { opacity: .85; }
  .pied a:hover, .prose a:hover { border-bottom-color: var(--accent); }
}

/* --------------------------------------------------------------------------
   Mouvement reduit : tout s'affiche d'un coup, rien ne bouge.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-entree] .an,
  [data-entree] .rail-piste {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  [data-entree] .hero-texte h1 .surligne::after { transform: none !important; }
}

/* --------------------------------------------------------------------------
   Adaptation aux petits ecrans. Le rail disparait, le menu se replie.
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --marge: 22px; }
  .site { grid-template-columns: 1fr; }
  .rail { display: none; }
  .entete { flex-wrap: wrap; gap: 10px 14px; }
  .entete .nav { margin-left: 0; order: 3; width: 100%; }
  .entete-action { margin-left: auto; }
  .nav { gap: 14px; font-size: .66rem; }
  .pied-colonnes { gap: 26px; }
  .hero-texte { border-right: 0; border-bottom: 1px solid var(--filet); }
  .bloc { border-right: 0; border-bottom: 1px solid var(--filet); }
  .bloc:last-child { border-bottom: 0; }
  .mesures { grid-template-columns: 1fr 1fr; }
  .carte, .etapes li { border-right: 0; border-bottom: 1px solid var(--filet); padding-right: 0; padding-left: 0; }
  .carte:last-child { padding-left: 0; border-bottom: 0; }
  .etapes li:last-child { border-bottom: 0; }
}

/* Sur petit ecran, un tableau d'informations se lit empile : l'intitule
   au-dessus de la valeur. Sinon la valeur sort du cadre et exige un
   defilement horizontal, ce qui masque l'immatriculation et le contact. */
@media (max-width: 640px) {
  .donnees.fiche table,
  .donnees.fiche tbody,
  .donnees.fiche tr,
  .donnees.fiche td {
    display: block;
    width: auto;
  }
  .donnees.fiche tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--filet);
  }
  .donnees.fiche tr:last-child { border-bottom: 0; }
  .donnees.fiche td {
    border: 0;
    padding: 0;
    white-space: normal;
  }
  .donnees.fiche td:first-child {
    width: auto;
    margin-bottom: 5px;
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--doux);
  }
}

@media (max-width: 520px) {
  .mesures { grid-template-columns: 1fr; }
  .donnees td:last-child { text-align: left; }
}

/* --------------------------------------------------------------------------
   Propositions du menu du mouvement, choisies par Artur le 22/08/2026 :
   1, 2, 4, 8, 9. La 1 et la 8 vivent en JavaScript (entree.js, rail.js),
   voici les 2, 4 et 9. Rien d'autre du menu n'est implemente.
   -------------------------------------------------------------------------- */

/* --- Proposition 2 : impression caractere par caractere --- */
[data-imprime] .imp {
  opacity: 0;
  transition: opacity 30ms steps(1, end);
  /* 42 ms par caractere : choix V2 d'Artur au comparateur du 24/08/2026,
     le 26 ms d'origine s'appreciait mal. */
  transition-delay: calc(var(--i, 0) * 42ms);
}
[data-imprime].imp-la .imp { opacity: 1; }

/* --- Proposition 4 : le trait de lecture sous l'en-tete --- */
.lecture-trait {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.lecture-plume {
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-micro) var(--e-sortie);
}

/* --- Proposition 9 : les equerres de calibrage --- */
.btn, .entete-action, .btn-fantome, .formulaire button, .carte {
  position: relative;
  --viseur: var(--accent);
}
.audit .btn, .audit .formulaire button { --viseur: #ffffff; }
.btn::before, .entete-action::before, .btn-fantome::before,
.formulaire button::before, .carte::before {
  content: "";
  position: absolute;
  top: -7px;
  left: -7px;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--viseur);
  border-left: 2px solid var(--viseur);
  opacity: 0;
  transform: translate(5px, 5px);
  pointer-events: none;
  transition: opacity 150ms var(--e-sortie), transform 150ms cubic-bezier(.16, 1, .3, 1);
}
.btn::after, .entete-action::after, .btn-fantome::after,
.formulaire button::after, .carte::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 11px;
  height: 11px;
  border-bottom: 2px solid var(--viseur);
  border-right: 2px solid var(--viseur);
  opacity: 0;
  transform: translate(-5px, -5px);
  pointer-events: none;
  transition: opacity 150ms var(--e-sortie), transform 150ms cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before, .btn:hover::after,
  .entete-action:hover::before, .entete-action:hover::after,
  .btn-fantome:hover::before, .btn-fantome:hover::after,
  .formulaire button:hover::before, .formulaire button:hover::after,
  .carte:hover::before, .carte:hover::after {
    opacity: 1;
    transform: translate(0, 0);
  }
}
.btn:focus-visible::before, .btn:focus-visible::after,
.entete-action:focus-visible::before, .entete-action:focus-visible::after,
.btn-fantome:focus-visible::before, .btn-fantome:focus-visible::after,
.formulaire button:focus-visible::before, .formulaire button:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Mouvement reduit : impression instantanee, bloc orange entier --- */
@media (prefers-reduced-motion: reduce) {
  [data-imprime] .imp { opacity: 1 !important; transition: none !important; }
  .audit::before { transform: none !important; border-radius: 0 !important; }
  .audit-corps { transform: none !important; }
  .lecture-plume { transition: none !important; }
}

/* --------------------------------------------------------------------------
   Choix S3 d'Artur, 24/08/2026 : les titres de categorie sont imprimes par
   la tete de lecture a leur entree dans l'ecran. Les classes sont posees
   par rail.js : sans JavaScript, aucun titre n'est cache.
   -------------------------------------------------------------------------- */
.titre-attend {
  clip-path: inset(0 100% 0 0);
  position: relative;
  container-type: inline-size;
}
.titre-imprime {
  /* Duree et geometrie posees par rail.js : vitesse constante de
     360 px/s pour toutes les barres (audit du 25/08/2026), plancher de
     280 ms, en lineaire, et la revelation s'arrete au bout du texte
     (--clip-fin), pas au bout de la colonne. */
  clip-path: inset(0 var(--clip-fin, -3%) 0 0);
  transition: clip-path var(--balai-duree, 640ms) linear 40ms;
}
.titre-balai {
  position: absolute;
  top: 0; bottom: 0; left: -8px;
  width: 5px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.audit h2 .titre-balai { background: #fff; }
.titre-imprime .titre-balai {
  animation: titre-balaye var(--balai-duree, 680ms) linear 40ms forwards;
}
@keyframes titre-balaye {
  0% { transform: translateX(0); opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(var(--balai-course, calc(100cqw + 12px))); opacity: 0; }
}
/* Choix V5 d'Artur, 25/08/2026 : le contenu suit son titre en vague
   verticale a 360 px/s, chaque ligne s'allume a son passage. Classes
   posees par rail.js : sans JavaScript, rien n'est cache. */
.suite-attend { opacity: 0; transform: translateY(8px); }
.suite-attend.suite-la {
  opacity: 1;
  transform: none;
  transition: opacity 420ms cubic-bezier(.2, 0, 0, 1) var(--suite-delai, 180ms),
              transform 420ms cubic-bezier(.2, 0, 0, 1) var(--suite-delai, 180ms);
}

@media (prefers-reduced-motion: reduce) {
  .titre-attend { clip-path: none !important; }
  .suite-attend { opacity: 1 !important; transform: none !important; }
}

/* Resultats des formulaires : blocs presents dans la page, caches par
   defaut. Deux chemins les revelent : formulaire.js apres l'envoi (classe
   form-resultat-visible), ou :target quand la Function /api/demande
   redirige un visiteur sans JavaScript vers #envoye, #erreur ou #panne. */
.form-resultat { display: none; }
.form-resultat:target,
.form-resultat-visible { display: block; }

.form-erreurs p { margin-top: 10px; font-size: .88rem; color: var(--accent); }
.audit .form-erreurs p { color: #fff; }
