/* =========================================================================
   LBC Studio — landing de pré-lancement
   Tokens repris du système produit (maquettes, planche 4).

   Architecture visuelle : grammaire éditoriale « Steep » — canevas blanc,
   bandes alternées à peine contrastées, cartes larges à 24 px de rayon sans
   ombre, boutons en gélule, et une élévation réservée aux seuls fragments
   d'interface produit qui flottent autour du titre.
   La typographie (Archivo / Archivo Narrow / IBM Plex Mono) et la palette
   sont celles du système existant : seules la géométrie, la respiration et
   la mise en mouvement changent.

   Règle : l'orange marque le canal, il ne baigne jamais une surface.
   L'orange (--orange) ne colore jamais de texte et ne sert jamais de fond
   sous du texte : il est réservé aux filets, puces, bordures et traits.
   Tout texte orange et tout fond orange portant du texte blanc utilisent
   --orange-texte.
   ========================================================================= */

:root {
  /* Encres */
  --encre:      #171717;
  --texte-2:    #525252;
  --texte-3:    #737373;
  --texte-clair:#a3a3a3;

  /* Surfaces */
  --blanc:      #ffffff;
  --fond-alt:   #fafafa;
  --filet:      #e5e5e5;
  --filet-doux: #f0f0f0;
  --sombre:     #171717;

  /* Sens — chaque couleur est toujours doublée d'un texte */
  --orange:        #ea580c;  /* canal Leboncoin — filets, puces, bordures UNIQUEMENT */
  --orange-texte:  #c2410c;  /* tout texte orange, et tout fond orange portant du texte blanc */
  --orange-survol: #9a3412;  /* survol du bouton orange plein */
  --violet:        #7c3aed;  /* production IA */
  --violet-pale:   #f3e8ff;
  --vert:          #16a34a;  /* en ligne */
  --vert-texte:    #14803d;  /* texte des pastilles et états verts */
  --vert-pale:     #dcfce7;
  --rouge:         #dc2626;  /* erreur bloquante */
  --rouge-texte:   #b91c1c;  /* texte rouge sur fond rouge pâle */
  --rouge-clair:   #f87171;  /* texte d'erreur sur fond sombre, 6,48:1 */
  --rouge-pale:    #fee2e2;
  --filet-fort:      #d4d4d4;  /* bordures d'appoint, pastilles de fenêtre */
  --canal-pale:      #ffedd5;  /* surface tenue « chez Leboncoin » — accent éditorial, une fois par page */
  --canal-texte:     #b4470a;  /* texte sur surface canal (pastille), 4,76:1 sur --canal-pale */
  --neutre-pale:     #f5f5f5;  /* cartes de contenu, pastilles et états neutres */
  --violet-tres-pale:#faf5ff;  /* ligne en attente de validation */
  --rouge-tres-pale: #fef2f2;  /* ligne en erreur */
  --sombre-2:        #262626;  /* filets et surfaces sur fond sombre */
  --sombre-3:        #1f1f1f;  /* fond des cartes sombres (section fondateur) */
  --sombre-filet:    #333333;  /* bordure des cartes sombres */
  --orange-clair:    #fb923c;  /* étiquette et numéro de carte sur fond sombre, 7,28:1 */
  --voile-barre:     rgba(255, 255, 255, 0.88);
  --confirme-fond:   #f0fdf4;
  --confirme-texte:  #14532d;

  /* Élévations — seuls les fragments d'interface produit portent une ombre */
  --ombre-flottante: 0 0 0 1px rgba(4, 23, 43, 0.05),
                     0 20px 25px -5px rgba(0, 0, 0, 0.09),
                     0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --ombre-posee:     0 0 0 1px rgba(4, 23, 43, 0.05),
                     0 8px 24px 0 rgba(0, 0, 0, 0.07);
  --ombre-fenetre:   0 0 0 1px rgba(4, 23, 43, 0.05),
                     0 30px 60px -20px rgba(0, 0, 0, 0.18),
                     0 12px 20px -12px rgba(0, 0, 0, 0.12);
  --voile-sombre:    rgba(255, 255, 255, 0.06);

  /* Géométrie — base 4 px, rayons larges façon papier */
  --max-page:  1200px;
  --gouttiere: 24px;
  --section-y: 112px;
  --r-carte:   24px;
  --r-flottant:20px;
  --r-bouton:  999px;
  --r-champ:   16px;
  --r-pastille:999px;

  /* Mouvement */
  --detente:   cubic-bezier(0.22, 0.68, 0.24, 1);

  /* Typographie */
  --police:        'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-etroite:'Archivo Narrow', var(--police);
  --police-mono:   'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-texte); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--canal-pale); }

.enveloppe {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* Les bandes alternent blanc / brouillard : le rythme se lit sans filet. */
.section { position: relative; }
.section--alt { background: var(--fond-alt); }
.section > .enveloppe { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.mono { font-family: var(--police-mono); font-variant-numeric: tabular-nums; }

.etiquette-section {
  font-family: var(--police-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--orange-texte);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.etiquette-section::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}
/* Étiquette centrée (FAQ) : le filet passerait à gauche du bloc centré,
   on le remplace par un centrage franc. */
.centre.etiquette-section { display: flex; justify-content: center; }
.centre.etiquette-section::before { display: none; }

/* Le titre reste en Archivo : la retenue vient du poids et du tracking,
   pas d'un changement de famille. */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.018em; }

/* --- Boutons en gélule --------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--police);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--r-bouton);
  border: 1px solid var(--encre);
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.25s var(--detente), color 0.25s var(--detente),
              border-color 0.25s var(--detente), transform 0.25s var(--detente);
}
.bouton:hover { transform: translateY(-1px); color: var(--encre); }
.bouton--sombre { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.bouton--sombre:hover { background: var(--orange-texte); border-color: var(--orange-texte); color: var(--blanc); }
.bouton--orange { background: var(--orange-texte); border-color: var(--orange-texte); color: var(--blanc); }
.bouton--orange:hover { background: var(--orange-survol); border-color: var(--orange-survol); }

/* Lien fléché : la flèche porte l'affordance, le soulignement n'apparaît
   qu'au survol. */
.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
}
.lien-fleche::after {
  content: '→';
  transition: transform 0.25s var(--detente);
}
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; }
.lien-fleche:hover::after { transform: translateX(4px); }

/* --- Mise en mouvement --------------------------------------------------- */
/* L'état masqué n'existe que si le script a posé .anim sur <html> : sans
   JavaScript, ou en mouvement réduit, la page s'affiche telle quelle. */
.anim .revele {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--detente), transform 0.7s var(--detente);
  transition-delay: var(--retard, 0ms);
}
.anim .revele.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim .revele { opacity: 1; transform: none; }
}

/* --- Barre de navigation ------------------------------------------------ */
/* Barre transparente au repos ; le voile et le filet n'apparaissent qu'au
   défilement (classe posée par script.js). */
.barre {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--detente), border-color 0.3s var(--detente);
}
.barre--posee {
  background: var(--voile-barre);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--filet);
}
.barre-contenu {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* Logotype : l'icône de marque, puis « LBC » en orange de texte et
   « Studio » en encre. L'icône est décorative (alt vide) — le nom est porté
   par le texte, qui reste sélectionnable et lisible sans image. */
.marque { display: flex; align-items: center; gap: 14px; }
.marque:hover { color: inherit; }
.lien-marque { display: inline-flex; align-items: center; gap: 10px; }
.lien-marque:hover { color: inherit; }
.marque-icone { display: block; width: 36px; height: 36px; }
.marque-mot {
  font-size: 20px; font-weight: 500; letter-spacing: -0.03em;
  color: var(--encre); white-space: nowrap;
}
.marque-mot b { font-weight: 700; color: var(--orange-texte); }
/* Sur fond sombre, l'orange de texte tomberait sous le seuil de contraste :
   c'est l'orange clair qui prend le relais. */
.pied .marque-mot--clair { color: var(--blanc); }
.pied .marque-mot--clair b { color: var(--orange-clair); }
.badge-acces {
  font-size: 11px; color: var(--texte-3);
  border: 1px solid var(--filet); border-radius: var(--r-pastille);
  padding: 3px 10px;
}
.barre-liens { display: flex; gap: 2px; font-size: 15px; font-weight: 400; }
.barre-liens a {
  padding: 8px 14px; border-radius: var(--r-pastille);
  transition: background-color 0.25s var(--detente), color 0.25s var(--detente);
}
.barre-liens a:hover { background: var(--neutre-pale); color: var(--encre); }
.barre-liens a.actif { background: var(--neutre-pale); color: var(--encre); font-weight: 500; }

/* --- Pied de page ------------------------------------------------------- */
.pied { background: var(--sombre); color: var(--texte-clair); }
.pied-contenu {
  padding-top: 48px; padding-bottom: 48px;
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 24px;
  font-size: 13px;
}
.pied-marque { display: flex; align-items: center; gap: 10px; color: var(--blanc); font-weight: 600; }
.pied-marque span { font-weight: 400; color: var(--texte-clair); }
.pied-marque .marque-mot { font-size: 17px; font-weight: 500; }
.pied-logo { display: block; width: 30px; height: 30px; }
.pied-liens { display: flex; gap: 16px; }
.pied a:hover { color: var(--orange-clair); }
.pied-avis { margin: 0; text-align: right; line-height: 1.5; max-width: 480px; justify-self: end; }

/* --- Formulaire --------------------------------------------------------- */
.bloc-formulaire {
  width: 100%; max-width: 560px; text-align: left;
  background: var(--blanc);
  border-radius: var(--r-carte);
  padding: 28px;
  box-shadow: var(--ombre-posee);
}
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ:nth-child(1), .champ:nth-child(2) { grid-column: span 2; }
.champ label { font-size: 13px; font-weight: 500; color: var(--texte-2); }
.champ input, .champ select {
  font-family: var(--police); font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--filet); border-radius: var(--r-champ);
  background: var(--blanc); color: var(--encre);
  width: 100%;
  transition: border-color 0.2s var(--detente), box-shadow 0.2s var(--detente);
}
.champ input:focus, .champ select:focus { border-color: var(--encre); }
.champ input::placeholder { color: var(--texte-3); }
.champ [aria-invalid="true"] { border-color: var(--rouge); }
.erreur { margin: 0; font-size: 13px; color: var(--rouge); min-height: 0; }
.erreur:empty { display: none; }
.erreur--globale { grid-column: span 2; }
.bouton--large { grid-column: span 2; width: 100%; padding: 15px 24px; font-size: 16px; }
.mention-essai { grid-column: span 2; font-size: 13px; color: var(--texte-3); margin: 0; }
.mention-rgpd {
  grid-column: span 2; margin: 0;
  font-size: 12px; line-height: 1.5; color: var(--texte-3);
}
.mention-rgpd a { text-decoration: underline; }
.confirmation {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--confirme-fond);
  border-radius: var(--r-flottant); padding: 20px 24px;
  font-size: 15px; color: var(--confirme-texte);
}
.confirmation[hidden] { display: none; }
.confirmation p { margin: 0; }
.puce-vert {
  width: 8px; height: 8px; border-radius: var(--r-pastille);
  background: var(--vert); flex-shrink: 0; margin-top: 7px;
}
/* Formulaire sur fond sombre (CTA final) */
.sur-sombre.bloc-formulaire { background: var(--sombre-3); box-shadow: none; }
.sur-sombre .champ label { color: var(--texte-clair); }
.sur-sombre .champ input, .sur-sombre .champ select {
  background: var(--sombre-2); border-color: var(--sombre-filet); color: var(--blanc);
}
.sur-sombre .champ input:focus, .sur-sombre .champ select:focus { border-color: var(--texte-clair); }
.sur-sombre .mention-rgpd { color: var(--texte-clair); }
.sur-sombre .mention-essai { color: var(--texte-clair); }
.sur-sombre a:hover { color: var(--orange-clair); }
.sur-sombre .erreur { color: var(--rouge-clair); }

/* --- Hero --------------------------------------------------------------- */
/* Titre éditorial centré, formulaire posé, et fragments d'interface qui
   flottent autour de l'aperçu. */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(60% 60% at 50% 0%, var(--canal-pale), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-contenu {
  position: relative;
  padding-top: 84px; padding-bottom: 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pastille-contexte {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  background: var(--blanc);
  border-radius: var(--r-pastille);
  box-shadow: var(--ombre-posee);
  padding: 8px 18px; font-size: 13px; font-weight: 400; color: var(--texte-2);
}
.puce-orange {
  width: 7px; height: 7px; border-radius: var(--r-pastille); background: var(--orange);
  flex-shrink: 0;
  animation: battement 2.6s var(--detente) infinite;
}
@keyframes battement {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.65; }
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.04; font-weight: 600; letter-spacing: -0.04em;
  max-width: 940px; margin: 32px 0 0;
}
.chapeau {
  font-size: 19px; line-height: 1.6; color: var(--texte-2);
  max-width: 660px; margin: 26px 0 0; text-wrap: pretty;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 28px 0 0; }
.hero .bloc-formulaire { margin-top: 40px; }

/* --- Fenêtre applicative (aperçu) --------------------------------------- */
.fenetre-cadre { position: relative; margin: 96px 0 0; width: 100%; max-width: 980px; }
.fenetre {
  border-radius: var(--r-flottant) var(--r-flottant) 0 0;
  overflow: hidden; background: var(--blanc); text-align: left;
  box-shadow: var(--ombre-fenetre);
}
.fenetre-titre {
  height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  border-bottom: 1px solid var(--filet-doux); background: var(--fond-alt);
}
.pastille-fenetre { width: 9px; height: 9px; border: 1px solid var(--filet-fort); border-radius: var(--r-pastille); }
.fenetre-url { font-size: 11px; color: var(--texte-3); margin-left: 10px; }
.fenetre-corps { display: grid; grid-template-columns: 200px 1fr; }
.fenetre-cote {
  border-right: 1px solid var(--filet-doux); background: var(--fond-alt);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px;
}
.fenetre-cote span { display: flex; justify-content: space-between; padding: 8px 12px; color: var(--texte-2); border-radius: var(--r-pastille); }
.fenetre-cote .cote-actif { background: var(--canal-pale); font-weight: 600; color: var(--encre); }
.fenetre-cote b { font-weight: 500; font-size: 12px; }
.compteur-ia { color: var(--violet); }
.compteur-erreur { color: var(--rouge); }
.table-entete {
  height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-bottom: 1px solid var(--filet-doux); font-size: 13px; font-weight: 600;
}
.table-indicateurs { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 400; color: var(--texte-2); }
.indicateur { display: flex; align-items: center; gap: 6px; }
.indicateur .puce-vert { width: 6px; height: 6px; margin: 0; animation: battement 2.6s var(--detente) infinite; }
.jeton-credits { background: var(--neutre-pale); border-radius: var(--r-pastille); padding: 3px 12px; }
.table-colonnes, .ligne {
  display: grid; grid-template-columns: 108px 1fr 76px 60px 64px 96px;
  align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--filet-doux);
  font-size: 13px;
}
.table-colonnes {
  font-family: var(--police-etroite); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-3);
  padding: 10px 18px;
}
.table-colonnes span:nth-child(n+3), .ligne span:nth-child(n+3) { text-align: right; }
.ligne { border-left: 3px solid transparent; }
.ligne.canal { border-left-color: var(--orange); }   /* le filet dit « chez Leboncoin » */
.ligne--valider { background: var(--violet-tres-pale); }
.ligne--erreur  { background: var(--rouge-tres-pale); }
.ligne span:nth-child(2) { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; text-align: left; }
/* Les lignes se posent l'une après l'autre quand l'aperçu entre à l'écran. */
.anim .fenetre-table .ligne { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--detente), transform 0.5s var(--detente); }
.anim .fenetre-table.vu .ligne { opacity: 1; transform: none; }
.anim .fenetre-table .ligne:nth-child(3) { transition-delay: 60ms; }
.anim .fenetre-table .ligne:nth-child(4) { transition-delay: 120ms; }
.anim .fenetre-table .ligne:nth-child(5) { transition-delay: 180ms; }
.anim .fenetre-table .ligne:nth-child(6) { transition-delay: 240ms; }
.anim .fenetre-table .ligne:nth-child(7) { transition-delay: 300ms; }
.anim .fenetre-table .ligne:nth-child(8) { transition-delay: 360ms; }
.etat {
  justify-self: end; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; border-radius: var(--r-pastille); padding: 4px 10px;
}
.etat::before { content: ''; width: 5px; height: 5px; border-radius: var(--r-pastille); background: currentColor; }
.etat--ligne   { color: var(--vert-texte);  background: var(--vert-pale); }
.etat--file    { color: var(--texte-2);     background: var(--neutre-pale); }
.etat--valider { color: var(--violet);      background: var(--violet-pale); }
.etat--erreur  { color: var(--rouge-texte); background: var(--rouge-pale); }
.fenetre-legende { margin: 16px 0 0; font-size: 12.5px; color: var(--texte-3); text-align: center; }

/* Fragments d'interface flottants — les seuls éléments qui portent une ombre. */
.fragment {
  position: absolute; z-index: 2;
  background: var(--blanc);
  border-radius: var(--r-flottant);
  box-shadow: var(--ombre-flottante);
  padding: 14px 18px;
  text-align: left;
  will-change: transform;
}
.fragment-titre { margin: 0; font-size: 11px; color: var(--texte-3); letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--police-etroite); font-weight: 600; }
.fragment-valeur { margin: 6px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.fragment-detail { margin: 4px 0 0; font-size: 12px; color: var(--texte-2); display: flex; align-items: center; gap: 6px; }
.fragment--gauche { left: -104px; top: 214px; }
.fragment--droite { right: -96px; top: -56px; }
.fragment .puce-vert { margin-top: 0; }
.fragment-jauge { margin-top: 10px; width: 128px; height: 4px; border-radius: var(--r-pastille); background: var(--neutre-pale); overflow: hidden; }
.fragment-jauge span { display: block; height: 100%; width: 62%; background: var(--orange); border-radius: var(--r-pastille); }

/* --- Bandeau du coût actuel --------------------------------------------- */
.cout > .enveloppe { padding-top: 0; padding-bottom: 0; }
.cout-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 72px; }
.cout-case {
  background: var(--neutre-pale);
  border-radius: var(--r-carte);
  padding: 32px 28px 36px;
}
.section--alt .cout-case { background: var(--blanc); }
.cout-chiffre { font-size: 42px; font-weight: 600; letter-spacing: -0.04em; margin: 0; line-height: 1.1; }
.cout-libelle { font-size: 14px; line-height: 1.5; color: var(--texte-2); margin: 10px 0 0; }
.cout-source { font-size: 12.5px; color: var(--texte-3); padding-top: 24px; padding-bottom: 72px; margin: 0; }

/* --- Cartes ------------------------------------------------------------- */
.titre-section { margin-top: 20px; max-width: 780px; }
.cartes-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.carte {
  background: var(--neutre-pale);
  border-radius: var(--r-carte);
  padding: 32px 28px;
  transition: transform 0.35s var(--detente), background-color 0.35s var(--detente);
}
.carte:hover { transform: translateY(-4px); }
.section--alt .carte { background: var(--blanc); }
.carte-numero { font-size: 13px; color: var(--texte-3); margin: 0; }
.carte h3 { margin: 16px 0 10px; }
.carte p:last-child { font-size: 15px; line-height: 1.6; color: var(--texte-2); margin: 0; }

.chapeau-section { font-size: 18px; line-height: 1.6; color: var(--texte-2); max-width: 680px; margin: 22px 0 0; }
.note-section { font-size: 13.5px; color: var(--texte-3); margin: 40px 0 0; max-width: 780px; line-height: 1.6; }

/* --- Pastilles de carte -------------------------------------------------- */
.pastille {
  display: inline-block; font-size: 12px; font-weight: 500;
  border-radius: var(--r-pastille); padding: 5px 12px;
}
.pastille--ia     { color: var(--violet); background: var(--violet-pale); }
.pastille--canal  { color: var(--canal-texte); background: var(--canal-pale); }
.pastille--ok     { color: var(--vert-texte); background: var(--vert-pale); }
.pastille--neutre { color: var(--texte-2); background: var(--blanc); }
.section--alt .pastille--neutre { background: var(--neutre-pale); }
.carte .pastille + h3 { margin-top: 18px; }

/* --- Étapes -------------------------------------------------------------- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.etape {
  background: var(--neutre-pale);
  border-radius: var(--r-carte);
  padding: 26px 24px 28px;
  position: relative; overflow: hidden;
}
.section--alt .etape { background: var(--blanc); }
.etape::before {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--encre);
  transform-origin: left;
  transition: transform 0.7s var(--detente);
  transition-delay: var(--retard, 0ms);
}
.anim .etape::before { transform: scaleX(0); }
.anim .etape.vu::before { transform: scaleX(1); }
.etape--ia::before { background: var(--violet); }
.etape--ok::before { background: var(--vert); }
.etape-tete { display: flex; justify-content: space-between; font-size: 13px; color: var(--texte-3); margin: 0; }
.etape-tete span:last-child { color: var(--encre); }
.etape h3 { font-size: 18px; margin: 14px 0 8px; }
.etape p:last-child { font-size: 14.5px; line-height: 1.6; color: var(--texte-2); margin: 0; }

/* --- Comparatif ---------------------------------------------------------- */
.comparatif-cadre {
  margin-top: 56px; overflow-x: auto;
  border-radius: var(--r-carte); background: var(--blanc);
  box-shadow: var(--ombre-posee);
}
.comparatif { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; text-align: left; }
.comparatif thead th {
  font-family: var(--police-etroite); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-3);
  padding: 18px 22px; border-bottom: 1px solid var(--filet); vertical-align: bottom;
}
.comparatif tbody th { font-weight: 500; padding: 16px 22px; border-bottom: 1px solid var(--filet-doux); }
.comparatif td { padding: 16px 22px; border-bottom: 1px solid var(--filet-doux); color: var(--texte-2); }
.comparatif tbody tr { transition: background-color 0.25s var(--detente); }
.comparatif tbody tr:hover { background: var(--fond-alt); }
.comparatif tr:last-child th, .comparatif tr:last-child td { border-bottom: none; }
.colonne-lbc { border-left: 3px solid var(--orange); color: var(--encre) !important; font-weight: 500; }
.comparatif thead .colonne-lbc { color: var(--encre); }
.lecture-seule { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* --- Pour qui ------------------------------------------------------------ */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.liste-criteres { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 16px; font-size: 15.5px; }
.liste-criteres li { display: flex; gap: 14px; line-height: 1.55; }
.liste-criteres li::before { content: '✓'; color: var(--vert-texte); font-weight: 700; flex-shrink: 0; }
.portraits { display: flex; flex-direction: column; gap: 20px; padding-top: 48px; }
.portraits-avis { font-size: 13px; color: var(--texte-3); margin: 0; }
.portrait { background: var(--neutre-pale); border-radius: var(--r-carte); padding: 32px; margin: 0; }
.section--alt .portrait { background: var(--blanc); }
/* Accent éditorial : une seule surface chaude dans toute la page. */
.portrait--accent { background: var(--canal-pale); color: var(--canal-texte); }
.portrait--accent blockquote { color: var(--canal-texte); }
.portrait--accent figcaption { color: var(--canal-texte); }
.portrait blockquote { font-size: 18px; line-height: 1.55; font-weight: 500; margin: 0; letter-spacing: -0.015em; }
.portrait figcaption { font-size: 13.5px; color: var(--texte-3); margin-top: 16px; }

/* --- Offre fondateur ----------------------------------------------------- */
.fondateur { background: var(--sombre); color: var(--blanc); }
.etiquette--claire { color: var(--orange-clair); }
.etiquette--claire::before { background: var(--orange-clair); }
.titre--clair { color: var(--blanc); }
.chapeau--clair { color: var(--texte-clair); }
.note--claire { color: var(--texte-clair); }
.carte--sombre { background: var(--sombre-3); }
.carte--sombre:hover { background: var(--sombre-2); }
.carte--sombre h3 { color: var(--blanc); }
.carte--sombre p:last-child { color: var(--texte-clair); }
.carte--sombre .carte-numero { color: var(--orange-clair); }
.compteur { font-weight: 600; }

/* --- Plans --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.plan {
  background: var(--blanc); border-radius: var(--r-carte);
  padding: 32px 30px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.35s var(--detente), box-shadow 0.35s var(--detente);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--ombre-posee); }
.plan--phare { background: var(--neutre-pale); box-shadow: var(--ombre-posee); }
.plan-marque {
  position: absolute; top: -13px; left: 28px;
  background: var(--orange-texte); color: var(--blanc);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--r-pastille); padding: 5px 14px;
}
.plan-prix { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 0; }
.plan-prix .mono { font-size: 44px; font-weight: 600; letter-spacing: -0.045em; }
.plan-unite { font-size: 14px; color: var(--texte-3); }
.plan-fondateur { font-size: 13.5px; color: var(--orange-texte); font-weight: 500; margin: 8px 0 0; }
.plan-accroche { font-size: 13.5px; color: var(--texte-3); margin: 6px 0 0; }
.plan-details {
  border-top: 1px solid var(--filet); margin: 24px 0; padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; flex: 1;
}
.plan-details div { display: flex; justify-content: space-between; }
.plan-details dt { color: var(--texte-2); }
.plan-details dd { margin: 0; font-size: 13px; }
.plan .bouton { width: 100%; }

/* --- Options ------------------------------------------------------------- */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.option {
  background: var(--blanc); border-radius: var(--r-carte);
  padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.option-nom { font-size: 15.5px; font-weight: 600; margin: 0; }
.option-detail { font-size: 13.5px; color: var(--texte-3); margin: 4px 0 0; line-height: 1.5; }
.option-prix { font-size: 18px; font-weight: 600; white-space: nowrap; }

/* --- FAQ ----------------------------------------------------------------- */
.enveloppe--etroite { max-width: 820px; }
.centre { text-align: center; }
.faq { display: flex; flex-direction: column; margin-top: 56px; border-bottom: 1px solid var(--filet); }
.faq details { border-top: 1px solid var(--filet); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 26px 4px; cursor: pointer; font-size: 18px; font-weight: 500; list-style: none;
  letter-spacing: -0.015em;
  transition: color 0.2s var(--detente);
}
.faq summary:hover { color: var(--orange-texte); }
.faq summary::-webkit-details-marker { display: none; }
.faq-signe { font-size: 22px; font-weight: 400; color: var(--texte-3); flex-shrink: 0; transition: transform 0.3s var(--detente); }
.faq details[open] .faq-signe { transform: rotate(45deg); }
.faq details p { font-size: 16px; line-height: 1.65; color: var(--texte-2); margin: 0; padding: 0 4px 28px; }
/* Ouverture animée : la réponse se déplie au lieu d'apparaître d'un bloc. */
.anim .faq details[open] p { animation: depli 0.4s var(--detente); }
@keyframes depli {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* --- Accès --------------------------------------------------------------- */
.acces { background: var(--sombre); color: var(--blanc); }
.acces-contenu { display: flex; flex-direction: column; align-items: center; text-align: center; }
.acces-titre { font-size: clamp(30px, 4.6vw, 56px); font-weight: 600; line-height: 1.08; max-width: 800px; letter-spacing: -0.04em; }
.acces .chapeau-section { margin-top: 24px; max-width: 580px; }
.acces .bloc-formulaire { margin-top: 44px; }
.sur-sombre .bouton--sombre { background: var(--orange-texte); border-color: var(--orange-texte); }
.sur-sombre .bouton--sombre:hover { background: var(--orange-survol); border-color: var(--orange-survol); }
.sur-sombre .confirmation { background: var(--confirme-fond); color: var(--confirme-texte); }

/* --- Champ-piège anti-automate -------------------------------------------- */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Accessibilité ------------------------------------------------------- */
.lien-evitement {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: 12px 18px;
  border-radius: 0 0 var(--r-flottant) 0; font-weight: 600;
}
.lien-evitement:focus { left: 0; color: var(--blanc); }

.barre-mobile { display: none; }

/* =========================================================================
   Rupture 1080 px — les fragments flottants rentrent dans le cadre
   ========================================================================= */
@media (max-width: 1080px) {
  .fragment--gauche { left: 8px; }
  .fragment--droite { right: 8px; }
}

/* =========================================================================
   Rupture 900 px — les grilles larges passent à deux colonnes
   ========================================================================= */
@media (max-width: 900px) {
  :root { --section-y: 72px; --r-carte: 20px; }
  .barre-liens { display: none; }
  .hero-contenu { padding-top: 48px; }
  .fenetre-cadre { margin-top: 64px; }
  .fragment { display: none; }
  .cout-grille { grid-template-columns: repeat(2, 1fr); padding-top: 56px; }
  .cout-source { padding-bottom: 56px; }
  .cartes-3, .etapes, .plans { grid-template-columns: repeat(2, 1fr); }
  .deux-colonnes { grid-template-columns: 1fr; gap: 48px; }
  .portraits { padding-top: 0; }
  .pied-contenu { grid-template-columns: 1fr; }
  .pied-avis { text-align: left; justify-self: start; }
  .fenetre-corps { grid-template-columns: 160px 1fr; }
}

/* =========================================================================
   Rupture 640 px — une seule colonne, aperçu simplifié, action collante
   ========================================================================= */
@media (max-width: 640px) {
  :root { --gouttiere: 18px; --section-y: 56px; }
  .hero-contenu { padding-top: 32px; }
  .hero-actions { flex-direction: column; gap: 14px; width: 100%; }
  .hero-actions .bouton { width: 100%; }
  .bloc-formulaire { padding: 20px; }
  .cout-grille { grid-template-columns: 1fr; }
  .cout-case { padding: 26px 24px 28px; }
  .cartes-3, .etapes, .plans, .options, .deux-colonnes { grid-template-columns: 1fr; }
  .option { flex-direction: column; align-items: flex-start; gap: 10px; }
  .formulaire { grid-template-columns: 1fr; }
  .champ:nth-child(1), .champ:nth-child(2), .erreur--globale,
  .bouton--large, .mention-rgpd, .mention-essai { grid-column: span 1; }

  /* Aperçu produit : barre latérale en bandeau, colonnes secondaires masquées */
  .fenetre-corps { grid-template-columns: 1fr; }
  .fenetre-cote { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--filet-doux); }
  .fenetre-cote span { white-space: nowrap; gap: 6px; }
  .table-colonnes, .ligne { grid-template-columns: 88px 1fr 92px; }
  .table-colonnes span:nth-child(3), .table-colonnes span:nth-child(4), .table-colonnes span:nth-child(5),
  .ligne span:nth-child(3), .ligne span:nth-child(4), .ligne span:nth-child(5) { display: none; }
  .table-indicateurs .jeton-credits { display: none; }

  /* Action collante en bas d'écran */
  .barre-mobile {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px var(--gouttiere) calc(12px + env(safe-area-inset-bottom));
    background: var(--voile-barre); backdrop-filter: blur(14px);
    border-top: 1px solid var(--filet);
    transition: transform 0.35s var(--detente);
  }
  /* Sans JavaScript la barre reste posée en permanence ; avec, elle
     n'apparaît qu'une fois le formulaire du hero dépassé. */
  .anim .barre-mobile { transform: translateY(120%); }
  .anim .barre-mobile.visible { transform: none; }
  .barre-mobile .bouton { display: flex; width: 100%; }
  body { padding-bottom: 76px; }
  /* L'action de l'en-tête ferait déborder la barre : sur mobile elle est
     portée par le formulaire du hero puis par la barre collante. */
  .barre .bouton { display: none; }
  .barre-contenu { height: 60px; }
  .marque-icone { width: 30px; height: 30px; }
  .marque-mot { font-size: 18px; }
}
