/* ==========================================================================
   PROSPEE — composants.css
   PORT UNIQUE ET FIDÈLE des composants de brand/specimen.html (charte §8)
   + les composants nouveaux définis par la spec 02 §0.2.
   CONTRAT consommé par M3 (visio), M4 (marketing), M5 (app), M6 (admin) :
   les classes de l'inventaire spec 02 §0.2 sont nommées ici, une fois,
   et ne sont JAMAIS redéfinies ailleurs.
   Aucun hex en dur, aucune durée en dur : tout vient de brand/tokens.css
   (importé AVANT cette feuille) ou des jetons de composant ci-dessous
   (valeurs fixées par la charte, § cités).
   ========================================================================== */

:root {
  /* Jetons de composant — chaque valeur est dictée par la charte (§ cités). */
  --bouton-h:          3.5rem;   /* 56 px — bouton §8.1 */
  --bouton-h-nav:      2.75rem;  /* 44 px — CTA de barre de navigation §8.8 */
  --nav-h:             4.5rem;   /* 72 px — barre de navigation §8.8 */
  --nav-logo-h:        1.75rem;  /* 28 px — lockup en navigation §8.8 */
  --champ-h:           3.5rem;   /* 56 px — champ de formulaire §8.7 */
  --champ-largeur:     24rem;    /* largeur max d'un empilement de champs */
  --badge-pad-x:       0.625rem; /* 10 px — badge §8.4 */
  --picto-trait:       1.75px;   /* trait des pictos §6.1 */
  --pose-decalage:     18px;     /* translateY de la scène signature — charte §7.3 */
  --souligne-decalage: 3px;      /* offset du soulignement des liens §8.2 */
  --inter-l:           2.75rem;  /* 44 px — interrupteur, spec 02 §0.2 */
  --inter-h:           1.5rem;   /* 24 px — interrupteur */
  --case-c:            1.5rem;   /* 24 px — case à cocher, spec 02 §0.2 */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-fond);
  color: var(--color-encre);
  font-family: var(--font-texte);
  font-weight: var(--graisse-texte);
  font-size: var(--text-base);
  line-height: var(--leading-base);
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; }

/* Focus visible : anneau 2 px vert décalé de 2 px — jamais supprimé (§10.7). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-epaisseur) solid var(--color-accent);
  outline-offset: var(--focus-decalage);
}
.nuit :where(a, button):focus-visible { outline-color: var(--color-accent-nuit); }

/* ---------- Échelle typographique (classes utilitaires) ---------- */
.t-display-num {
  font-family: var(--font-titres); font-weight: var(--graisse-display-num);
  font-size: var(--text-display-num); line-height: var(--leading-display-num);
  letter-spacing: var(--tracking-display-num); font-variant-numeric: tabular-nums;
}
.t-display-xl {
  font-family: var(--font-titres); font-weight: var(--graisse-titre);
  font-size: var(--text-display-xl); line-height: var(--leading-display-xl);
  letter-spacing: var(--tracking-display-xl); text-wrap: balance;
}
.t-display-l {
  font-family: var(--font-titres); font-weight: var(--graisse-titre);
  font-size: var(--text-display-l); line-height: var(--leading-display-l);
  letter-spacing: var(--tracking-display-l); text-wrap: balance;
}
.t-h2 {
  font-family: var(--font-titres); font-weight: var(--graisse-titre);
  font-size: var(--text-h2); line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2); text-wrap: balance;
}
.t-h3 {
  font-family: var(--font-titres); font-weight: var(--graisse-titre-doux);
  font-size: var(--text-h3); line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
}
.t-lead { font-size: var(--text-lead); line-height: var(--leading-lead); }
.t-body { font-size: var(--text-base); line-height: var(--leading-base); }
.t-small { font-size: var(--text-sm); line-height: var(--leading-sm); }
.t-caption {
  font-weight: var(--graisse-ui); font-size: var(--text-xs);
  line-height: var(--leading-xs); letter-spacing: var(--tracking-xs);
  text-transform: uppercase;
}
.tnum { font-variant-numeric: tabular-nums; }
.encre-2 { color: var(--color-encre-2); }
/* Groupe insécable : un segment de réassurance ne se coupe jamais en son milieu. */
.insecable { white-space: nowrap; }
/* Filet de sécurité : la classe est faite pour souder 2-3 mots AU MILIEU d'un texte. Un
   .insecable seul dans son bloc est donc à coup sûr une phrase entière soudée par erreur
   — ce qui a produit les deux débordements les plus graves de l'audit du 28/07 (/prix :
   348 px de scroll horizontal à 320 px). Sous 480 px on lui rend le droit de se couper ;
   les vraies soudures courtes, entourées de texte, ne sont pas touchées. */
@media (max-width: 479px) {
  p > .insecable:only-child,
  li > .insecable:only-child,
  h1 > .insecable:only-child, h2 > .insecable:only-child, h3 > .insecable:only-child {
    white-space: normal;
  }
}

/* Sur sombre : le blanc engraisse — tracking du small/caption augmenté. */
.nuit .t-small { letter-spacing: var(--tracking-sm-nuit); }
.nuit .t-caption { letter-spacing: var(--tracking-xs-nuit); }

/* ---------- Mise en page ---------- */
.conteneur {
  max-width: var(--largeur-contenu);
  margin-inline: auto;
  padding-inline: var(--space-8);
}
.section { padding-block: var(--space-section); }
.section-ample { padding-block: var(--space-section-ample); }
.fond-ivoire { background: var(--color-surface-2); }

.section-tete { max-width: var(--largeur-lecture); margin-bottom: var(--space-12); }
.section-numero { color: var(--color-encre-2); display: block; margin-bottom: var(--space-4); }
/* h1 inclus : une tête de section peut porter le titre de la page (/partenaires) et non
   un simple h2 — sans cette règle, le chapô collait au titre. */
.section-tete .t-h2, .section-tete h1 { margin-bottom: var(--space-4); }
.section-tete .t-lead { color: var(--color-encre-2); }

/* Paliers de marges latérales (§5.2) : 32 px desktop · 24 px tablette · 16 px mobile. */
@media (max-width: 1023px) {
  .conteneur { padding-inline: var(--space-6); }
}
@media (max-width: 767px) {
  .conteneur { padding-inline: var(--space-4); }
}

/* ---------- Boutons (§8.1, §8.2) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  height: var(--bouton-h); padding-inline: var(--space-8);
  border: 0; border-radius: var(--rayon-s); cursor: pointer;
  background: var(--color-accent); color: var(--color-sur-accent);
  font-family: var(--font-texte); font-weight: var(--graisse-ui);
  font-size: var(--text-base); line-height: 1; text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--ombre-douce);
  /* Au repos, la transition qui joue est la SORTIE : 90 ms (60 % de l'entrée), --ease-sortie. */
  transition: background-color var(--duree-ui-retour) var(--ease-sortie),
              transform var(--duree-ui-retour) var(--ease-sortie),
              box-shadow var(--duree-ui-retour) var(--ease-sortie);
}
/* L'ENTRÉE (hover, focus, appui) repasse à 150 ms, --ease-ui. */
.btn:hover, .btn:focus-visible, .btn:active {
  transition-duration: var(--duree-ui);
  transition-timing-function: var(--ease-ui);
}
.btn:hover {
  background: color-mix(in srgb, var(--bleu-confirme) 92%, var(--encre));
  transform: translateY(-1px);
  box-shadow: var(--ombre-moyenne);
}
.btn:active { transform: translateY(0) scale(0.99); box-shadow: var(--ombre-douce); }
.btn:disabled {
  background: var(--color-surface-2); color: var(--color-encre-2);
  box-shadow: none; cursor: default; transform: none;
}
.btn--nav { height: var(--bouton-h-nav); padding-inline: var(--space-6); font-size: var(--text-sm); }
.btn--bloc { width: 100%; }

.btn-contour {
  background: var(--color-surface); color: var(--color-encre);
  border: var(--filet-epaisseur) solid var(--color-bordure-forte);
  box-shadow: none;
}
.btn-contour:hover { background: var(--color-surface-2); transform: translateY(-1px); box-shadow: var(--ombre-douce); }

/* Lien secondaire : encre souligné ; au survol le soulignement passe vert. */
.lien {
  font-weight: var(--graisse-ui); color: var(--color-encre);
  text-decoration: underline;
  text-decoration-thickness: var(--filet-epaisseur);
  text-underline-offset: var(--souligne-decalage);
  text-decoration-color: var(--color-encre);
  transition: text-decoration-color var(--duree-ui-retour) var(--ease-sortie);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.lien:hover, .lien:focus-visible {
  transition-duration: var(--duree-ui);
  transition-timing-function: var(--ease-ui);
}
.lien:hover { text-decoration-color: var(--color-accent); }
.nuit .lien { color: var(--color-encre-nuit); text-decoration-color: var(--color-encre-nuit); }
.nuit .lien:hover { text-decoration-color: var(--color-accent-nuit); }

/* Cibles tactiles (§10.6) : zone de clic ≥ 44 px au doigt, mise en page intacte. */
@media (max-width: 1023px) {
  .lien, .nav-liens a, .nav-panneau-liens a, .pied-lien {
    padding-block: var(--space-3);
    margin-block: calc(-1 * var(--space-3));
  }
}

/* Indicateur d'attente de l'état loading (§8.1) — trois points en fondu d'opacité
   séquencé. Opacité seule (seul cas où linear est autorisé), ZÉRO rotation.
   La répétition EST l'information ; points fixes en reduced-motion. */
.attente { display: inline-flex; gap: var(--space-1); }
.attente span {
  width: var(--space-1); height: var(--space-1); border-radius: 50%;
  background: currentColor; opacity: 0.25;
}
@media (prefers-reduced-motion: no-preference) {
  .attente span { animation: pulse-attente var(--duree-attente) linear infinite; }
  .attente span:nth-child(2) { animation-delay: calc(var(--duree-attente) / 3); }
  .attente span:nth-child(3) { animation-delay: calc(var(--duree-attente) * 2 / 3); }
}
@keyframes pulse-attente { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
/* État loading : la largeur du bouton est FIGÉE par le script (mesure de l'état
   default) — .btn--fige est le repli statique du spécimen. */
.btn--fige { min-width: 16.75rem; }

/* Sur-titre de section : quand un badge y est imbriqué (« Arrive bientôt »), sa boîte
   inline-flex gonflait la boîte de ligne du caption et poussait le titre 8 px plus bas
   que dans les sections sans badge. En flex, le badge est un item : la ligne garde sa
   hauteur. */
.section-numero { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Badges (§8.4) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--badge-pad-x);
  border-radius: var(--rayon-xs);
  background: var(--color-succes-surface); color: var(--color-succes);
}
.badge .coche-svg { width: var(--space-3); height: var(--space-3); flex: none; }
.badge--attente {
  background: var(--color-surface-2); color: var(--color-encre-2);
  box-shadow: inset 0 0 0 var(--filet-epaisseur) var(--color-bordure);
}

/* Coche produit : grille 24, trait 3 u, bouts ronds, branches à 45°. */
.coche-svg { display: block; }
.coche-svg path, .coche-confirmation path {
  fill: none; stroke: currentColor; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; /* état de base : tracée */
}
/* Coche de confirmation autonome (écrans « Vérifiez votre boîte mail », post-call) :
   48 px, tracée une fois (250 ms --ease-trace) — spec 02 §A4. */
.coche-confirmation { width: var(--space-12); height: var(--space-12); color: var(--color-accent); }
@media (prefers-reduced-motion: no-preference) {
  .js .coche-confirmation path { animation: ks-trace var(--duree-trace) var(--ease-trace) both; }
}

/* ---------- Pictogrammes (§6.1) : trait 1,75 px, grille 24, monochromes encre ---------- */
.picto {
  width: var(--space-6); height: var(--space-6); flex: none;
  color: var(--color-encre);
}
.picto path, .picto rect, .picto circle, .picto line {
  fill: none; stroke: currentColor; stroke-width: var(--picto-trait);
  stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   TRAME D'AGENDA + HERO + TUILE (scène signature) — §6.2, §7.3, §8.3
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.trame-ligne {
  position: relative; height: 0;
  width: 100vw; margin-left: calc(50% - 50vw);
  border-top: var(--filet-epaisseur) solid var(--color-bordure);
  pointer-events: none;
}
.trame-ligne--titre { margin-bottom: var(--space-12); }
.trame-ligne--cta   { margin-top: var(--space-8); }
.trame-ligne--carte { margin-top: var(--space-8); }
.trame-heure {
  position: absolute; bottom: var(--space-1);
  left: max(var(--space-8), calc((100% - var(--largeur-contenu)) / 2 + var(--space-8)));
  color: var(--color-encre-2);
}
@media (max-width: 1023px) {
  .trame-heure { left: max(var(--space-6), calc((100% - var(--largeur-contenu)) / 2 + var(--space-6))); }
}
@media (max-width: 767px) {
  /* Pas de marge libre à gauche : les heures se retirent, les filets restent (§6.2). */
  .trame-heure { display: none; }
}
.hero-inner { position: relative; text-align: center; }
.hero-inner h1 { max-width: 21ch; margin-inline: auto; }
.hero-lead {
  max-width: var(--largeur-lecture); margin-inline: auto;
  margin-top: var(--space-6);
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-6); margin-top: var(--space-8);
}
.hero-reassurance { color: var(--color-encre-2); margin-top: var(--space-4); }

/* La carte agenda */
.hero-carte {
  max-width: 60rem; margin-inline: auto; margin-top: var(--space-12);
  background: var(--color-surface);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre-carte);
  padding: var(--space-6);
}
.hero-preuve { color: var(--color-encre-2); margin-top: var(--space-4); }

.agenda { display: grid; grid-template-columns: var(--space-12) repeat(5, 1fr); }
/* Bandes d'heures de 96 px : la hauteur d'UNE tuile = la hauteur d'UNE bande. */
.agenda-col { display: grid; grid-template-rows: var(--space-8) repeat(4, var(--space-24)); }
.agenda-col + .agenda-col + .agenda-col { border-left: var(--filet-epaisseur) solid var(--color-bordure); }
.agenda-jour {
  align-self: center; justify-self: center;
  color: var(--color-encre-2);
}
.bande { position: relative; border-top: var(--filet-epaisseur) solid var(--color-bordure); }
.agenda-heure {
  position: absolute; top: var(--space-1); left: 0;
  color: var(--color-encre-2);
}

/* Créneau cerné d'un pointillé discret */
.creneau-cible {
  position: absolute; inset: var(--space-1);
  border: var(--filet-epaisseur) dashed var(--color-bordure-forte);
  border-radius: var(--rayon-xs);
}

/* La tuile de rendez-vous — la scène signature s'y joue. */
.tuile {
  position: absolute; inset: var(--space-1);
  z-index: 2; text-align: left; overflow: hidden;
  background: var(--color-surface);
  border-radius: var(--rayon-xs);
  box-shadow: var(--ombre-moyenne);
  padding: var(--space-2);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-1);
}
.tuile-fond {
  position: absolute; inset: 0; z-index: 0;
  background: var(--color-surface-accent);
  border-radius: inherit; opacity: 1; /* état de base : confirmé */
}
.tuile > span:not(.tuile-fond) { position: relative; z-index: 1; }
.tuile-nom { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--graisse-ui); }
.tuile-heure { font-size: var(--text-sm); line-height: var(--leading-sm); }
.tuile-etat {
  display: inline-flex; align-items: center; gap: var(--space-1);
  color: var(--color-accent);
}
.tuile-etat .coche-svg { width: var(--space-3); height: var(--space-3); }

/* La mention d'exclusivité : UNE ligne, portée par la vignette (§6.3). */
.carte-exclu {
  color: var(--color-encre-2); text-align: center;
  margin-top: var(--space-4); white-space: nowrap;
}

@media (max-width: 767px) {
  .j-lun, .j-mer, .j-ven { display: none; }
  .agenda { grid-template-columns: var(--space-12) repeat(2, 1fr); }
  .tuile-qualite { display: none; }
  .hero-carte { padding: var(--space-4); }
}

/* Tuile autonome pour la scène signature (états vides produit, démonstrateurs). */
.tuile-demo {
  position: relative; width: 100%; max-width: 16rem;
  background: var(--color-surface);
  border: var(--filet-epaisseur) solid var(--color-bordure);
  border-radius: var(--rayon-s);
  box-shadow: var(--ombre-moyenne);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-1);
  text-align: left;
}
.tuile-demo .tuile-fond { border-radius: var(--rayon-s); }
.tuile-demo > span:not(.tuile-fond) { position: relative; z-index: 1; }
/* Tuile état libre (§8.3) — états vides : fond ivoire, pointillé, jamais de fausse donnée. */
.tuile-demo--libre {
  background: var(--color-surface-2);
  border: var(--filet-epaisseur) dashed var(--color-bordure-forte);
  box-shadow: none;
}

/* --- Chorégraphie (uniquement si le mouvement est accepté) — charte §7.3 --- */
@keyframes ks-pose { from { opacity: 0; transform: translateY(var(--pose-decalage)); } to { opacity: 1; transform: translateY(0); } }
@keyframes ks-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes ks-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* Pose DOUCE : translate seul, l'opacité reste à 1 — le contenu (nom, heure,
   état) ne disparaît JAMAIS, même au repos ou pendant l'animation (charte §10.9 :
   aucune information portée par une animation). Réservée aux scènes scrollées
   (scene-mini), où l'on ne peut pas garantir que l'utilisateur regarde. */
@keyframes ks-pose-doux { from { transform: translateY(var(--space-4)); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero : 300 ms carte · 1 000 ms scène signature (tuile-1) · ~3 200 ms second RDV (tuile-2).
     Le hero joue dès le CHARGEMENT (data-scene="charge") et reste en haut de page :
     l'utilisateur voit toujours la séquence complète — la pose+fondu y est la
     signature assumée (les RDV se POSENT dans l'agenda vide). Le 2e RDV pose plus
     tôt (3,2 s) pour que la carte se sente VIVE/REMPLIE vite — sur mobile, les deux
     colonnes visibles (mar/jeu) portent chacune un RDV confirmé sans longue attente. */
  .scene.joue .hero-carte { --pose-decalage: var(--space-4); animation: ks-pose var(--duree-reveal) var(--ease-pose) 300ms both; }
  .scene.joue .tuile-1 { animation: ks-pose var(--duree-pose) var(--ease-pose) 1000ms both; }
  .scene.joue .tuile-1 .tuile-fond { animation: ks-fondu var(--duree-trace) var(--ease-trace) 1650ms both; }
  .scene.joue .tuile-1 .coche-svg path { animation: ks-trace var(--duree-trace) var(--ease-trace) 1650ms both; }
  .scene.joue .tuile-1 .tuile-etat,
  .scene.joue .carte-exclu { animation: ks-fondu var(--duree-ui) var(--ease-ui) 1900ms both; }
  .scene.joue .tuile-2 { animation: ks-pose var(--duree-pose) var(--ease-pose) 3200ms both; }
  .scene.joue .tuile-2 .tuile-fond { animation: ks-fondu var(--duree-trace) var(--ease-trace) 3850ms both; }
  .scene.joue .tuile-2 .coche-svg path { animation: ks-trace var(--duree-trace) var(--ease-trace) 3850ms both; }
  .scene.joue .tuile-2 .tuile-etat { animation: ks-fondu var(--duree-ui) var(--ease-ui) 4100ms both; }

  /* Scène signature autonome (scene-mini) — jouée une fois à l'entrée du viewport.
     ÉTAT DE REPOS TOUJOURS LISIBLE : la tuile, son fond bleu-eau, son état et la
     coche sont visibles d'emblée (état CSS de base). L'animation n'AJOUTE qu'un
     mouvement de pose (translate seul) et le TRACÉ de la coche — jamais un
     masquage du contenu. Si l'IntersectionObserver ne déclenche pas (scroll
     rapide, élément jamais à 40 %), la tuile reste un RDV cohérent, pas un
     composant « cassé » (corrige le défaut de finition n°1 de la section nuit). */
  .scene-mini.joue .tuile-demo,
  .scene-mini.joue .tuile-scene { animation: ks-pose-doux var(--duree-pose) var(--ease-pose) both; }
  /* La coche part non tracée UNIQUEMENT à l'instant du déclenchement, puis se
     trace : un trait qui s'écrit lit toujours « coche », jamais « rien ». */
  .scene-mini.joue .tuile-demo .coche-svg path,
  .scene-mini.joue .tuile-scene .coche-svg path { animation: ks-trace var(--duree-trace) var(--ease-trace) 350ms both; }
  /* La mention d'exclusivité (légende sous la tuile) peut se poser en fondu :
     ce n'est pas l'information centrale de la tuile, et elle reste lisible. */
  .scene-mini.joue .carte-exclu { animation: ks-fondu var(--duree-ui) var(--ease-ui) 600ms both; }
}

/* Scroll-reveal : 16 px, 600 ms, --ease-pose, une seule fois, par bloc entier (§7.3). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(var(--space-4)); }
  .js .reveal.est-visible {
    opacity: 1; transform: translateY(0);
    transition: opacity var(--duree-reveal) var(--ease-pose),
                transform var(--duree-reveal) var(--ease-pose);
  }
}

/* ==========================================================================
   CARTE RDV (§8.3)
   ========================================================================== */
.carte-rdv {
  background: var(--color-surface);
  border-radius: var(--rayon-m);
  box-shadow: var(--ombre-moyenne);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
  max-width: var(--champ-largeur);
}
.carte-rdv .rdv-heure { color: var(--color-encre-2); }
.carte-rdv .badge { align-self: flex-start; margin-block: var(--space-2); }
.carte-rdv .exclu { color: var(--color-encre-2); }
.carte-rdv .btn-contour { margin-top: var(--space-4); }

.carte-rdv--libre {
  background: var(--color-surface-2);
  box-shadow: none;
  border: var(--filet-epaisseur) dashed var(--color-bordure-forte);
}
.carte-rdv--libre .rdv-heure { color: var(--color-encre-2); }
.carte-rdv--confirme { background: var(--color-surface-accent); }
.carte-rdv--confirme .rdv-heure, .carte-rdv--confirme .exclu { color: var(--color-encre); }
.carte-rdv--confirme .badge { background: var(--color-surface); }
.rdv-erreur { color: var(--color-erreur); }

/* ==========================================================================
   GARANTIE & PRIX (§8.5) · BLOC ROI (§8.6)
   ========================================================================== */
.bloc-prix {
  background: var(--color-surface);
  border: var(--filet-epaisseur) solid var(--color-bordure);
  border-radius: var(--rayon-m);
  padding: var(--space-8);
  max-width: var(--champ-largeur);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.bloc-prix .t-small { color: var(--color-encre-2); }

/* Bloc chiffres ROI — la semaine totalisée : colonnes d'agenda (filets --filet),
   le total à droite sous une ligne de somme --filet-fort. */
.roi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.roi-item {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-inline: var(--space-6);
}
.roi-item:first-child { padding-left: 0; }
.roi-item:last-child { padding-right: 0; }
.roi-item + .roi-item { border-left: var(--filet-epaisseur) solid var(--color-bordure); }
.roi-item--total::before {
  content: ""; display: block; width: 100%;
  border-top: var(--filet-epaisseur) solid var(--color-bordure-forte);
  margin-bottom: var(--space-6);
}
.roi-item .t-display-num { display: block; }
.roi-item .t-caption { display: block; color: var(--color-encre-2); margin-top: var(--space-3); max-width: 28ch; }
.roi-item .t-small { display: block; margin-top: var(--space-2); }
.roi-texte { color: var(--color-encre); max-width: 28ch; }
@media (max-width: 767px) {
  .roi-item { padding-inline: 0; }
  .roi-item + .roi-item { border-left: 0; margin-top: var(--space-6); padding-top: var(--space-6); }
  .roi-item + .roi-item:not(.roi-item--total) { border-top: var(--filet-epaisseur) solid var(--color-bordure); }
  .roi-item--total { padding-top: 0; }
}

/* ==========================================================================
   FORMULAIRES (§8.7) — le rouge ne vit que sur --blanc (paires §3.2)
   ========================================================================== */
.carte-form {
  background: var(--color-surface);
  border: var(--filet-epaisseur) solid var(--color-bordure);
  border-radius: var(--rayon-m);
  box-shadow: var(--ombre-douce);
  padding: var(--space-8);
  max-width: calc(var(--champ-largeur) + 2 * var(--space-8));
}
.form-extrait { display: flex; flex-direction: column; gap: var(--space-6); max-width: var(--champ-largeur); }
.champ-groupe { display: flex; flex-direction: column; gap: var(--space-2); }
.champ-label { font-size: var(--text-sm); font-weight: var(--graisse-ui); }
.champ {
  height: var(--champ-h); width: 100%; min-width: 0;
  padding-inline: var(--space-4);
  background: var(--color-surface);
  border: var(--filet-epaisseur) solid var(--color-bordure-forte);
  border-radius: var(--rayon-s);
  font-family: var(--font-texte); font-size: var(--text-base); color: var(--color-encre);
  transition: border-color var(--duree-ui-retour) var(--ease-sortie);
}
.champ:focus-visible {
  border-color: var(--color-accent);
  transition-duration: var(--duree-ui); transition-timing-function: var(--ease-ui);
}
/* La case à cocher a sa propre bordure (.case, plus bas) qui écrasait celle-ci par
   ordre de cascade : une case CGU en erreur restait grise alors que les champs texte
   passaient au rouge. */
.champ--erreur, .case.champ--erreur { border-color: var(--color-erreur); }
/* Une aide et un message d'erreur disaient la même chose l'un sous l'autre
   (« 8 caractères minimum » en gris puis en rouge) : l'aide s'efface quand l'erreur
   la remplace. */
.champ-groupe:has(.champ-erreur-msg:not([hidden])) .champ-aide { display: none; }
.champ-erreur-msg { color: var(--color-erreur); font-size: var(--text-sm); line-height: var(--leading-sm); }
.champ-aide { color: var(--color-encre-2); font-size: var(--text-sm); line-height: var(--leading-sm); }

/* — Select natif (spec 02 §0.2) : même boîte que .champ, chevron picto 24 px --encre.
   Le chevron est un SVG encodé (trait 1,75 px) — couleur = --encre (#15211C, palette). */
.select {
  height: var(--champ-h); width: 100%; min-width: 0;
  padding-inline: var(--space-4) var(--space-12);
  background: var(--color-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%2315211C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right var(--space-4) center / var(--space-6);
  border: var(--filet-epaisseur) solid var(--color-bordure-forte);
  border-radius: var(--rayon-s);
  font-family: var(--font-texte); font-size: var(--text-base); color: var(--color-encre);
  appearance: none; -webkit-appearance: none;
}

/* — Textarea (spec 02 §0.2) : même style que .champ, min 112 px, resize vertical. */
.textarea {
  min-height: var(--space-28, 7rem); width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: var(--filet-epaisseur) solid var(--color-bordure-forte);
  border-radius: var(--rayon-s);
  font-family: var(--font-texte); font-size: var(--text-base); color: var(--color-encre);
  line-height: var(--leading-base);
  resize: vertical;
  transition: border-color var(--duree-ui-retour) var(--ease-sortie);
}
.textarea:focus-visible { border-color: var(--color-accent); }

/* — Case à cocher (spec 02 §0.2) : 24 px, --rayon-xs ; cochée : fond vert, coche blanche. */
.case {
  appearance: none; -webkit-appearance: none;
  width: var(--case-c); height: var(--case-c); flex: none;
  margin: 0; cursor: pointer;
  background: var(--color-surface);
  border: var(--filet-epaisseur) solid var(--color-bordure-forte);
  border-radius: var(--rayon-xs);
  display: inline-grid; place-content: center;
  transition: background-color var(--duree-ui-retour) var(--ease-sortie),
              border-color var(--duree-ui-retour) var(--ease-sortie);
}
.case::after {
  content: "";
  width: var(--space-3); height: var(--space-2);
  border-left: 3px solid var(--color-sur-accent);
  border-bottom: 3px solid var(--color-sur-accent);
  border-radius: 1px;
  transform: rotate(-45deg) scale(0);
  opacity: 0;
}
.case:checked { background: var(--color-accent); border-color: var(--color-accent); }
.case:checked::after {
  opacity: 1; transform: rotate(-45deg) scale(1);
  transition: transform var(--duree-trace) var(--ease-trace),
              opacity var(--duree-trace) var(--ease-trace);
}
.case-groupe { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.case-groupe .case { margin-top: calc(var(--space-1) / 2); }

/* — Interrupteur (spec 02 §0.2) : 44 × 24, piste ivoire / vert confirmé, rôle switch.
   Toujours accompagné d'un libellé texte. */
.interrupteur {
  appearance: none; -webkit-appearance: none;
  position: relative; flex: none;
  width: var(--inter-l); height: var(--inter-h);
  margin: 0; cursor: pointer;
  background: var(--color-surface-2);
  border: var(--filet-epaisseur) solid var(--color-bordure-forte);
  border-radius: calc(var(--inter-h) / 2);
  transition: background-color var(--duree-ui) var(--ease-ui),
              border-color var(--duree-ui) var(--ease-ui);
}
.interrupteur::after {
  content: "";
  position: absolute; top: 1px; left: 1px;
  width: 1.25rem; height: 1.25rem; /* pastille 20 px */
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow: var(--ombre-douce);
  transition: transform var(--duree-ui) var(--ease-ui);
}
.interrupteur:checked { background: var(--color-accent); border-color: var(--color-accent); }
.interrupteur:checked::after { transform: translateX(calc(var(--inter-l) - var(--inter-h))); }

/* — Bandeau message (spec 02 §0.2) : toujours un texte en toutes lettres. */
.bandeau {
  width: 100%;
  padding: var(--space-4);
  border-radius: var(--rayon-s);
  font-size: var(--text-sm); line-height: var(--leading-sm);
}
.js .bandeau { animation: ks-fondu var(--duree-ui) var(--ease-ui) both; }
.bandeau--succes {
  background: var(--color-succes-surface); color: var(--color-succes);
  display: flex; align-items: center; gap: var(--space-2);
}
.bandeau--succes .coche-svg { width: var(--space-4); height: var(--space-4); flex: none; }
.bandeau--erreur {
  background: var(--color-surface); color: var(--color-erreur);
  border: var(--filet-epaisseur) solid var(--color-erreur);
}
.bandeau--neutre { background: var(--color-surface-2); color: var(--color-encre); }

/* — Modale utilitaire (spec 02 §0.2) : 3 usages seulement, jamais en marketing. */
.modale {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  background: rgba(16, 22, 18, 0.4); /* overlay teinté encre — valeur de la spec 02 §0.2 */
}
.modale-carte {
  width: 100%; max-width: 25rem; /* 400 px */
  max-height: 100%;        /* jamais plus haute que l'overlay (viewport − padding) */
  overflow-y: auto;        /* contenu long → scroll interne, ne déborde plus de la fenêtre */
  background: var(--color-surface);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre-carte);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.modale-actions { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-2); }


/* — Lecteur audio : waveform CSS « façon WhatsApp » + MP3 CBR (universel, seek fluide).
   Barres arrondies STATIQUES depuis les peaks pré-calculés serveur (jamais de mouvement,
   affichage instantané). Repli : <audio controls> natif si le JS n'a pas tourné. --- */
.tl-audio { margin-top: var(--space-3); }
.tl-audio > audio { width: 100%; }        /* repli natif visible si Alpine absent */
.wsx-hide { display: none; }              /* audio masqué quand l'UI custom prend le relais */
.wsx {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--color-surface);
  border: var(--filet-epaisseur) solid var(--color-bordure);
  border-radius: var(--rayon-s);
  padding: var(--space-3) var(--space-4);
}
.wsx-btn {
  width: var(--bouton-h-nav); height: var(--bouton-h-nav); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-surface); color: var(--color-encre);
  border: var(--filet-epaisseur) solid var(--color-bordure-forte);
  border-radius: 50%; cursor: pointer;
}
/* Onde = barres arrondies, centrées (symétrie WhatsApp), clic/glissé = déplacement. */
.wsx-onde {
  flex: 1; min-width: 0; height: 40px;
  display: flex; align-items: center; gap: 2px;
  cursor: pointer; touch-action: none;
}
.wsx-onde:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--rayon-s); }
.wsx-barre {
  flex: 1 1 0; min-width: 2px; align-self: center;
  border-radius: 9999px; background: var(--color-bordure-forte);
}
.wsx-barre--lue { background: var(--color-accent); }
.wsx-piste { flex: 1; height: 3px; border-radius: 2px; background: var(--color-bordure); position: relative; }
.wsx-lu { position: absolute; inset: 0 auto 0 0; background: var(--color-accent); border-radius: inherit; }
.wsx-temps { color: var(--color-encre-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wsx-vitesse {
  flex: none; padding: var(--space-1) var(--space-2);
  background: var(--color-surface); color: var(--color-encre);
  border: var(--filet-epaisseur) solid var(--color-bordure);
  border-radius: var(--rayon-xs); cursor: pointer;
  font-size: var(--text-xs); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wsx-vitesse:hover { border-color: var(--color-bordure-forte); }
.wsx-dl {
  flex: none; display: inline-flex; color: var(--color-encre-2);
}
.wsx-dl:hover { color: var(--color-accent); }
.wsx-dl .picto { width: var(--space-5); height: var(--space-5); }
.wsx-erreur { margin-top: var(--space-2); color: var(--color-encre-2); }
.wsx-erreur .lien { margin-left: var(--space-1); }
/* Mobile étroit : l'onde passe seule sur une 2e ligne. */
@media (max-width: 520px) {
  .wsx { flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
  .wsx-onde { order: 5; flex-basis: 100%; }
}

/* — Table de données (spec 02 §0.2) : hairlines, chiffres tabulaires, hover ivoire. */
.table-donnees { width: 100%; border-collapse: collapse; }
.table-donnees th {
  text-align: left; color: var(--color-encre-2);
  font-weight: var(--graisse-ui); font-size: var(--text-xs);
  letter-spacing: var(--tracking-xs); text-transform: uppercase;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--filet-epaisseur) solid var(--color-bordure);
}
.table-donnees td {
  font-size: var(--text-sm); line-height: var(--leading-sm);
  font-variant-numeric: tabular-nums;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--filet-epaisseur) solid var(--color-bordure);
}
.table-donnees tbody tr { transition: background-color var(--duree-ui) var(--ease-ui); }
.table-donnees tbody tr:hover { background: var(--color-surface-2); }

/* — Compteur solde (spec 02 §0.2) : jamais de couleur d'alerte. */
.compteur-solde { display: flex; align-items: baseline; gap: var(--space-2); }
.compteur-solde-chiffre {
  font-family: var(--font-titres); font-weight: var(--graisse-titre-doux);
  font-size: var(--text-h3); line-height: var(--leading-h3);
  font-variant-numeric: tabular-nums;
}
.compteur-solde--nav { font-size: var(--text-sm); font-weight: var(--graisse-ui); font-variant-numeric: tabular-nums; }

/* — Pastille enregistrement (spec 02 §0.2) : jamais de rouge. */
.pastille-enr {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--badge-pad-x);
  border-radius: var(--rayon-xs);
  background: var(--color-succes-surface); color: var(--color-succes);
  font-weight: var(--graisse-ui); font-size: var(--text-xs);
  letter-spacing: var(--tracking-xs); text-transform: uppercase;
  line-height: var(--leading-xs);
}
.pastille-enr::before {
  content: ""; width: var(--space-2); height: var(--space-2); flex: none;
  border-radius: 50%; background: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .pastille-enr::before { animation: pulse-attente var(--duree-attente) linear infinite; }
}
.nuit .pastille-enr, .pastille-enr--nuit {
  background: transparent;
  box-shadow: inset 0 0 0 var(--filet-epaisseur) color-mix(in srgb, var(--papier-nuit) 30%, transparent);
  color: var(--color-encre-nuit);
}
.nuit .pastille-enr::before, .pastille-enr--nuit::before { background: var(--color-accent-nuit); }

/* — Vignette vidéo (spec 02 §0.2) : initiales typographiques, jamais d'avatar généré. */
.vignette-video {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-fond-nuit);
  border-radius: var(--rayon-m);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3);
  color: var(--color-encre-nuit);
}
.vignette-initiales {
  width: 6rem; height: 6rem; /* disque 96 px */
  border-radius: 50%;
  background: color-mix(in srgb, var(--papier-nuit) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titres); font-weight: var(--graisse-titre);
  font-size: var(--text-h2); color: var(--color-encre-nuit);
}

/* ==========================================================================
   NAVIGATION (§8.8) — barre 72 px, hairline, sticky (ombre douce au scroll)
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-fond);
  border-bottom: var(--filet-epaisseur) solid var(--color-bordure);
  transition: box-shadow var(--duree-ui) var(--ease-ui);
}
.nav--ombre { box-shadow: var(--ombre-douce); }
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--space-8);
}
/* Logo + liens ancrés à gauche, action(s) repoussées à droite par le dernier
   bloc. Évite le « trou au milieu » du justify-content: space-between quand la
   nav centrale est courte (ex. lien « Le prix » masqué en alpha → 2 liens
   marronnés au centre). Vaut pour la nav complète (dernier enfant = .nav-droite)
   ET la nav réduite (dernier enfant = le lien unique). */
.nav-inner > :last-child { margin-left: auto; }
/* flex: none — sans ça, l'<img> du logo est un item flex rétrécissable : la barre
   serrée l'écrasait horizontalement (116 → 103 px à 768 px sur le public, jusqu'à
   0 px sous 800 px dans la nav de l'app) alors que sa hauteur restait à 28 px.
   Déformer la marque est interdit (charte §2.5). */
.nav-inner img { height: var(--nav-logo-h); width: auto; flex: none; object-fit: contain; }
/* Le lien du logo n'enveloppe qu'une image de 28 px : au doigt la cible faisait
   28 × 28 px. On l'épaissit sans bouger la mise en page (la nav fait 72 px). */
/* flex: none sur le LIEN, pas seulement sur l'image : c'est le lien (item flex de
   .nav-inner) qui se faisait comprimer, et max-width:100% écrasait l'image dedans. */
.nav-inner > a:first-child { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.nav-inner .nav-marque { flex: none; }
.nav-liens { display: flex; gap: var(--space-8); align-items: center; }
.nav-liens a {
  text-decoration: none; font-weight: var(--graisse-ui); font-size: var(--text-base);
  /* nowrap : un libellé de nav ne se casse jamais en son milieu (« Comment ça / marche »,
     « Tableau de / bord »). Au-delà du palier burger la barre a la place ; en dessous,
     les liens vivent dans le panneau. */
  white-space: nowrap;
  transition: color var(--duree-ui-retour) var(--ease-sortie);
}
.nav-liens a:hover {
  color: var(--color-accent);
  transition-duration: var(--duree-ui); transition-timing-function: var(--ease-ui);
}
.nav-droite { display: flex; align-items: center; gap: var(--space-8); }
.nav-icone { display: none; }

/* Menu mobile : <details> plein écran — utilisable sans JS (panneau natif). */
.nav-menu { display: none; }
.nav-menu > summary {
  list-style: none; cursor: pointer;
  font-weight: var(--graisse-ui);
  text-decoration: underline;
  text-decoration-thickness: var(--filet-epaisseur);
  text-underline-offset: var(--souligne-decalage);
  padding-block: var(--space-3);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
/* Panneau fermé : on le force en display:none. Chromium rend les enfants
   position:fixed d'un <details> FERMÉ (le masquage UA ne s'applique pas), ce qui
   créait un débordement horizontal parasite de ~10 px à 360 px. */
.nav-menu:not([open]) .nav-panneau { display: none; }
.nav-panneau {
  position: fixed; inset: 0; z-index: 60;
  background: var(--color-fond);
  padding: var(--space-6) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-6);
  overflow-y: auto;
}
.nav-panneau-tete { display: flex; align-items: center; justify-content: space-between; }
.nav-panneau-tete img { height: var(--nav-logo-h); width: auto; }
.nav-panneau-liens { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.nav-panneau-liens a {
  text-decoration: none;
  font-family: var(--font-titres); font-weight: var(--graisse-titre-doux);
  font-size: var(--text-h3); line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
}
.nav-panneau .btn { margin-top: auto; }

/* Bascule à 1023 px et non 767 : entre 768 et ~1010 px la nav complète (logo 116 px +
   3 liens + CTA de 217 px + 3 gouttières de 32 px) ne tient plus — les libellés se
   cassaient en deux lignes (« Comment ça / marche ») et la boîte des liens devenait
   plus haute que la barre. Le panneau <details> contient déjà tous les liens.
   Décision Leon 28/07/2026 : même palier pour la nav publique et la nav de l'app. */
@media (max-width: 1023px) {
  .nav-liens { display: none; }
  .nav-menu { display: block; }
}
/* Le CTA de nav porte un libellé court sous 480 px (« Mes rendez-vous ») pour
   tenir avec le symbole + « Menu » sans débordement horizontal (iPhone SE / vieux
   Android à 360 px). Au-dessus, le libellé long. */
.nav-cta-court { display: none; }
@media (max-width: 479px) {
  .btn { padding-inline: var(--space-6); }
  .btn--nav { padding-inline: var(--space-4); }
  .nav-cta-long { display: none; }
  .nav-cta-court { display: inline; }
  /* Sous 480 px : le symbole seul remplace le lockup (charte §2.5, §8.8). */
  .nav-lockup { display: none; }
  .nav-icone { display: block; height: var(--nav-logo-h); }
}
/* Le CTA long (« Recevoir mes premiers rendez-vous ») ne se coupe jamais. */
@media (max-width: 359px) {
  .btn { padding-inline: var(--space-4); }
  .btn--nav { padding-inline: var(--space-3); }
  .nav-inner { gap: var(--space-3); }
}

/* ==========================================================================
   SECTION SOMBRE (§3.3, §8.5) + FOOTER — 1 section nuit max par page
   ========================================================================== */
.nuit { background: var(--color-fond-nuit); color: var(--color-encre-nuit); }
.garantie-inner { max-width: var(--largeur-lecture); margin-inline: auto; text-align: center; }
.garantie-inner .t-caption { color: var(--color-accent-nuit); }
.clause-filet {
  border: 0; height: 0; margin-block: var(--space-8);
  border-top: var(--filet-epaisseur) solid color-mix(in srgb, var(--papier-nuit) 30%, transparent);
}
.clause { color: var(--color-encre-nuit); }
.clause-date { color: var(--color-encre-nuit-2); margin-top: var(--space-6); }
.garantie-inner .btn { margin-top: var(--space-12); }

/* Footer — variante nuit (prolonge la section sombre : elles comptent pour une,
   §8.8) et variante claire (légal, 404, connexion/inscription) — spec 02 §F.2.
   Deux étages : un bandeau marque + matrice de liens (.pied-haut), puis une
   barre légale détachée par un filet (.pied-bas). Aucun second CTA : le footer
   prolonge la section --encre-nuit, l'accent (vert) reste celui du bloc clause. */
.pied {
  border-top: var(--filet-epaisseur) solid color-mix(in srgb, var(--papier-nuit) 15%, transparent);
  padding-block: var(--space-16) var(--space-12);
}
.pied-inner { display: flex; flex-direction: column; gap: var(--space-12); }

/* --- Étage 1 : marque (gauche, large) + colonnes de liens (droite) --- */
.pied-haut {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) auto;
  gap: var(--space-12) var(--space-24);
  align-items: start;
}
.pied-marque { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.pied-logo { height: var(--nav-logo-h); width: auto; }
/* Reprise de la promesse (charte §1) — JAMAIS la clause de garantie (§8.5). */
.pied-signature { color: var(--color-encre-nuit); max-width: 22rem; text-wrap: balance; }
.pied-editeur { color: var(--color-encre-nuit-2); }
/* Description de l'app (exigence vérification OAuth Google) — discrète, même
   registre que la mention d'éditeur, largeur alignée sur la signature. */
.pied-apropos {
  color: var(--color-encre-nuit-2);
  max-width: 30rem;
  margin-top: var(--space-2);
  line-height: 1.55;
}

.pied-colonnes {
  display: grid;
  grid-template-columns: repeat(3, minmax(8.5rem, max-content));
  gap: var(--space-12) var(--space-16);
}
.pied-colonne ul { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.pied-titre { display: block; color: var(--color-encre-nuit-2); }

/* Lien de footer = le .lien de la charte (§8.2) avec un soulignement au repos
   transparent : la matrice reste calme, le soulignement-accent se révèle au
   survol/focus (même modèle d'interaction que .lien — la couleur du texte ne
   change jamais, seules les paires §3.2 sont employées). */
.pied-lien {
  font-size: var(--text-sm); line-height: var(--leading-sm);
  color: var(--color-encre-nuit);
  text-decoration: underline;
  text-decoration-thickness: var(--filet-epaisseur);
  text-decoration-color: transparent;
  text-underline-offset: var(--souligne-decalage);
  transition: text-decoration-color var(--duree-ui-retour) var(--ease-sortie);
}
.pied-lien:hover, .pied-lien:focus-visible {
  text-decoration-color: var(--color-accent-nuit);
  transition-duration: var(--duree-ui);
  transition-timing-function: var(--ease-ui);
}

/* --- Étage 2 : barre légale, détachée par un filet --- */
.pied-bas {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--space-4) var(--space-8);
  padding-top: var(--space-8);
  border-top: var(--filet-epaisseur) solid color-mix(in srgb, var(--papier-nuit) 12%, transparent);
}
.pied-contact { color: var(--color-encre-nuit); }
.pied-meta { color: var(--color-encre-nuit-2); }

/* Badge partenaire (FranceSaaS) : contrepartie contractuelle de leur fiche gratuite.
   Il doit rester VISIBLE (leur contrôle refuse display:none/visibility:hidden), donc on
   ne joue que sur l'échelle : il passe en dernier dans la barre légale et ne dépasse pas
   la hauteur d'une ligne de texte. Le badge est blanc cerclé de bleu — sur le pied nuit
   il ferait une tache : une pastille claire discrète le pose sans le trahir. */
.pied-badge { order: 3; flex: 0 0 auto; line-height: 0; border-radius: var(--rayon-s); }
.pied-badge img { display: block; height: 2.4rem; width: auto; }
@media (max-width: 639px) { .pied-badge img { height: 2rem; } }

/* --- Variante claire (pages légales, 404/500, auth) --- */
.pied--clair {
  background: var(--color-surface-2);
  color: var(--color-encre);
  border-top: var(--filet-epaisseur) solid var(--color-bordure);
}
.pied--clair .pied-signature,
.pied--clair .pied-contact { color: var(--color-encre); }
.pied--clair .pied-titre,
.pied--clair .pied-editeur,
.pied--clair .pied-apropos,
.pied--clair .pied-meta { color: var(--color-encre-2); }
.pied--clair .pied-lien { color: var(--color-encre); }
.pied--clair .pied-lien:hover,
.pied--clair .pied-lien:focus-visible { text-decoration-color: var(--color-accent); }
.pied--clair .pied-bas { border-top-color: var(--color-bordure); }

/* Empilement aux petits paliers : marque au-dessus, colonnes en grille fluide. */
@media (max-width: 1023px) {
  .pied-haut { grid-template-columns: 1fr; gap: var(--space-12); }
  /* 3 rubriques (Produit / Entreprise / Légal) : on GARDE 3 colonnes — la largeur
     le permet jusqu'au mobile. Passer à 2 colonnes laissait « Légal » orpheline
     sur une 2e rangée (2 colonnes pleines + 1 seule, cellule vide à droite). */
  .pied-colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); }
}
@media (max-width: 599px) {
  /* Sur téléphone, 3 colonnes seraient trop étroites (liens qui wrappent), mais
     UNE seule colonne donnait un footer « liste » interminable. Compromis : 2
     colonnes. « Entreprise » (courte, 2 liens) bascule en 2e rangée via `order`
     pour équilibrer la 1re rangée (Produit / Légal, 4 liens chacune) — pas de
     grande cellule vide, pas d'orpheline. */
  .pied-colonnes { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-4); }
  .pied-colonne:nth-child(2) { order: 1; }
}

/* ---------- Aide à la capture : ?fin = tout à l'état final, instantanément
   (protocole charte §12.3 — appliqué par le script aux pages aussi). ---------- */
.fin *, .fin *::before, .fin *::after {
  animation-delay: 0ms !important;
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

/* ---------- Impression : tout est lisible animation coupée (§10.9) ---------- */
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
