/* Coaly — système de design partagé avec le hub. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* ------------------------------------------------------------------ Tokens */
:root {
  --fond: #ffffff;
  --encre: #050520;
  --encre-62: rgba(5, 5, 32, 0.62);
  --encre-55: rgba(5, 5, 32, 0.55);
  --encre-40: rgba(5, 5, 32, 0.4);
  --encre-16: rgba(5, 5, 32, 0.16);
  --encre-10: rgba(5, 5, 32, 0.1);
  --accent: #4b4174;
  --bleu: #eef1f4;
  --peche: #fce8e6;
  --jaune: #fff2cc;
  --violet: #eceaf2;
  --vert: #dff2e3;
  --blanc: #ffffff;

  --large: 1160px;
  --lecture: 44rem;          /* largeur de lecture confortable */
  --rayon-s: 6px;
  --rayon-m: 8px;
  --rayon-l: 8px;
  --ombre: 0 24px 48px -32px rgba(5, 5, 32, 0.28);
  --ombre-carte: 0 1px 2px rgba(5, 5, 32, 0.04), 0 8px 24px -16px rgba(5, 5, 32, 0.12);

  /* CP9-H bloc 2 — pile typographique UNIFIÉE avec l'application
     (frontend/tailwind.config.js). Aucune police externe (CSP). */
  --police-titre: Inter, sans-serif;
  --police-corps: Inter, sans-serif;
  --police-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* rythme vertical (grille 8) */
  --pad-section: 88px;
  --pad-section-court: 56px;

  --focus: 0 0 0 3px rgba(75, 65, 116, 0.28), 0 0 0 4px var(--accent);
}

/* ------------------------------------------------------------------ Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-corps);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { letter-spacing: -0.032em; }
p { margin: 0; }
strong, b { font-weight: 600; }
::selection { background: rgba(75, 65, 116, 0.22); color: var(--encre); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ Layout */
.enveloppe { max-width: var(--large); margin: 0 auto; padding: 0 28px; }
.section { padding: var(--pad-section) 0; }
.section + .section { padding-top: 0; }
.section--sombre { background: var(--encre); color: var(--blanc); padding: var(--pad-section) 0; }
.section--sombre + .section, .section + .section--sombre { padding-top: var(--pad-section); }
.section--sombre .surtitre { color: rgba(255, 255, 255, 0.5); }
.section--sombre .plomb { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 720px) {
  .enveloppe { padding: 0 20px; }
  .section, .section--sombre { padding: var(--pad-section-court) 0; }
  .section + .section { padding-top: 0; }
}

.surtitre {
  font-family: var(--police-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-55);
  margin: 0;
}
.titre-section {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin: 14px 0 0;
  max-width: 16ch;
  letter-spacing: -0.028em;
}
.titre-section--large { max-width: 22ch; }
.plomb { font-size: 17px; color: var(--encre-62); line-height: 1.6; max-width: var(--lecture); }
.mono { font-family: var(--police-mono); }

/* ------------------------------------------------------------------ En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--encre-10);
}
.entete__rangee {
  max-width: var(--large); margin: 0 auto;
  padding: 15px 32px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 20px;
}
.entete__nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  font-size: 14.5px; font-weight: 500;
}
.entete__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 900px) { .entete__nav { display: none; } }

/* ------------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--rayon-s);
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:hover { opacity: 1; text-decoration: none; }
.btn:active { transform: none; }
.btn--primaire { background: var(--encre); color: var(--blanc); }
.btn--primaire:hover { background: #17173a; box-shadow: var(--ombre); }
.btn--vert { background: var(--vert); color: var(--encre); border-color: rgba(5,5,32,.14); }
.btn--vert:hover { box-shadow: var(--ombre); }
.btn--ligne { border-color: rgba(5, 5, 32, 0.22); }
.btn--ligne:hover { border-color: var(--encre); background: rgba(5,5,32,.03); }
.section--sombre .btn--ligne { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.section--sombre .btn--ligne:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--petit { padding: 10px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.lien-fleche {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500;
  border-bottom: 1px solid var(--encre-16); padding-bottom: 2px;
}
.lien-fleche:hover { opacity: 1; border-color: var(--encre); }
.lien-fleche span { transition: transform .14s ease; }
.lien-fleche:hover span { transform: translateX(3px); }

.puce {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--encre-16);
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--police-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.puce__point { width: 7px; height: 7px; border-radius: 999px; background: var(--violet); }

/* ------------------------------------------------------------------ Cartes */
.carte {
  background: var(--blanc);
  border: 1px solid var(--encre-10);
  border-radius: var(--rayon-l);
  padding: 28px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.carte--lien:hover { transform: translateY(-2px); box-shadow: var(--ombre-carte); border-color: var(--encre-16); }
.carte--plat { background: rgba(5,5,32,.02); border-color: transparent; }
.carte--edito { border: 2px solid var(--encre); box-shadow: 6px 6px 0 var(--encre); }
.carte--bleu { background: var(--bleu); }
.carte--peche { background: var(--peche); }
.carte--jaune { background: var(--jaune); }
.carte--violet { background: var(--violet); }
.carte--vert { background: var(--vert); }
.section--sombre .carte {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.grille { display: grid; gap: 18px; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grille--3, .grille--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Hero */
.hero { padding: 76px 0 68px; }
.hero__grille {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 56px; align-items: center;
}
.hero__titre {
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
  line-height: 1.04; letter-spacing: -0.034em; margin: 20px 0 0;
  max-width: 15ch;
}
.hero__accroche {
  font-size: 18px; line-height: 1.6; max-width: 34ch;
  margin: 20px 0 0; color: var(--encre-62);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__liste {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  margin: 28px 0 0; padding: 0; list-style: none;
}
.hero__liste li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.coche {
  width: 19px; height: 19px; border-radius: 999px;
  background: var(--vert); border: 1.5px solid var(--encre);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex: none;
}
@media (max-width: 900px) {
  .hero__grille { grid-template-columns: 1fr; gap: 44px; }
  .hero__liste { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Bandeau chiffres */
.bandeau {
  background: var(--encre); color: #fff; padding: 24px 0;
}
.bandeau__ligne {
  max-width: var(--large); margin: 0 auto; padding: 0 32px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px;
  font-family: var(--police-mono); font-size: 12px;
  letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.62);
}
.bandeau__sep { opacity: 0.3; }

/* ------------------------------------------------------------------ Tableau */
.tableau {
  border: 1px solid var(--encre-16); border-radius: var(--rayon-l);
  overflow: hidden; margin-top: 48px;
}
.tableau__rangee { display: grid; grid-template-columns: 1.4fr 1fr 1fr; font-size: 15px; }
.tableau__rangee + .tableau__rangee { border-top: 1px solid rgba(5, 5, 32, 0.14); }
.tableau__cell { padding: 20px 24px; }
.tableau__cell + .tableau__cell { border-left: 1px solid rgba(5, 5, 32, 0.14); }
.tableau__tete {
  background: rgba(5, 5, 32, 0.04);
  font-family: var(--police-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.tableau__tete .tableau__cell:last-child { background: var(--vert); }
@media (max-width: 720px) {
  .tableau__rangee { grid-template-columns: 1fr; }
  .tableau__cell + .tableau__cell { border-left: 0; border-top: 1px solid rgba(5,5,32,.1); }
}

/* ------------------------------------------------------------------ FAQ */
.faq details {
  border-top: 1px solid rgba(5, 5, 32, 0.14); padding: 20px 0;
}
.faq details:last-child { border-bottom: 1px solid rgba(5, 5, 32, 0.14); }
.faq summary {
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 18px; font-weight: 500; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; opacity: 0.4; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; font-size: 15.5px; color: var(--encre-62); max-width: 44em; }

/* ------------------------------------------------------------------ Notes / états */
.note {
  font-family: var(--police-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--encre-16); border-radius: 999px;
  padding: 5px 10px; display: inline-block;
}
.section--sombre .note { border-color: rgba(255,255,255,.3); color: var(--jaune); }
.encart-info {
  border: 1px solid var(--encre-16); border-radius: var(--rayon-m);
  padding: 16px 18px; font-size: 14px; color: var(--encre-62);
  background: rgba(5,5,32,0.02);
}
.badge-dispo {
  font-family: var(--police-mono); font-size: 11px; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--encre);
}
.badge-dispo--ok { background: var(--vert); }
.badge-dispo--config { background: var(--bleu); }
.badge-dispo--non { background: var(--peche); }
.badge-dispo--attente { background: transparent; color: var(--encre-55); border-color: var(--encre-16); }

/* ------------------------------------------------------------------ Pied */
.pied { background: var(--encre); color: #fff; padding: 64px 0 36px; }
.pied a { font-size: 14.5px; }
.pied__haut {
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.pied__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.pied__col { display: flex; flex-direction: column; gap: 11px; }
.pied__col p { font-family: var(--police-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.45); }
.pied__bas { font-family: var(--police-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.4); margin-top: 22px; }

/* ------------------------------------------------------------------ Mascotte */
.cy { position: relative; flex: none; }
.cy__ombre { position: absolute; left: 12%; bottom: -2px; width: 76%; height: 12px; border-radius: 999px; background: rgba(5, 5, 32, 0.13); }
.cy__antenne { position: absolute; left: 50%; top: 4px; width: 2px; height: 12px; background: var(--encre); transform: translateX(-50%); }
.cy__bulbe { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; border-radius: 999px; background: var(--vert); border: 2px solid var(--encre); transform: translateX(-50%); }
.cy__bras { position: absolute; top: 48px; width: 11px; height: 25px; border-radius: 999px; background: var(--vert); border: 2px solid var(--encre); }
.cy__bras--g { left: -3px; }
.cy__bras--d { right: -3px; }
.cy__tete { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 79px; border-radius: 31px; background: #fff; border: 2px solid var(--encre); display: flex; align-items: center; justify-content: center; }
.cy__visage { width: 67px; height: 45px; border-radius: 20px; background: var(--encre); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.cy__yeux { display: flex; gap: 15px; }
.cy__oeil { width: 11px; height: 11px; border-radius: 999px; background: var(--accent); }
.cy__bouche { width: 19px; height: 7px; border-radius: 0 0 999px 999px; background: var(--vert); opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { .cy, .cy__oeil { animation: none; } }

/* ------------------------------------------------------------------ Formulaires */
.champ {
  width: 100%; font: inherit; font-size: 15px;
  padding: 13px 15px; border-radius: var(--rayon-s);
  border: 1.5px solid var(--encre-16); background: var(--blanc); color: var(--encre);
}
.champ:focus { border-color: var(--encre); outline: none; }
.label { font-size: 13px; font-weight: 500; color: var(--encre-62); display: block; margin-bottom: 7px; }
.section--sombre .champ { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }

/* ------------------------------------------------------------------ Listes ✓ / ✗ */
.liste-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-check li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.liste-check li::before { content: "✓"; color: #1c7a3e; font-weight: 700; flex: none; }
.liste-x li::before { content: "✕"; color: #b23b2e; }

/* ------------------------------------------------------------------ Zone dépôt CSV */
.depot {
  border: 2px dashed var(--encre-16); border-radius: var(--rayon-l);
  padding: 44px 28px; text-align: center; background: rgba(5,5,32,.02);
  transition: border-color .15s ease, background .15s ease;
}
.depot--survol { border-color: var(--encre); background: var(--vert); }

/* ------------------------------------------------------------------ Restitution / dashboard (composants générés en JS) */
.discret { font-size: 13px; color: var(--encre-55); line-height: 1.5; }
.section--sombre .discret { color: rgba(255,255,255,.55); }

.chiffre-carte {
  border: 2px solid var(--encre); border-radius: var(--rayon-m);
  padding: 18px 18px 16px; background: var(--blanc);
}
.chiffre-carte.critique { background: var(--peche); }
.chiffre-carte .valeur { font-family: var(--police-titre); font-size: 28px; letter-spacing: -.03em; }
.chiffre-carte .libelle { font-size: 13px; color: var(--encre-62); margin-top: 4px; }
.chiffre-carte .precision { font-size: 11px; color: var(--encre-40); margin-top: 4px; }
/* alias pour restitution.js existant */
.chiffre { border: 2px solid var(--encre); border-radius: var(--rayon-m); padding: 18px; background: var(--blanc); }
.chiffre.critique { background: var(--peche); }
.chiffre .valeur { font-family: var(--police-titre); font-size: 28px; letter-spacing: -.03em; }
.chiffre .libelle { font-size: 13px; color: var(--encre-62); margin-top: 4px; }
.chiffre .precision { font-size: 11px; color: var(--encre-40); margin-top: 4px; }

.barre-ligne {
  display: grid; grid-template-columns: 220px 1fr 150px; gap: 14px;
  align-items: center; font-size: 13.5px; padding: 7px 0;
}
.barre-piste { height: 8px; border-radius: 999px; background: var(--encre-10); overflow: hidden; }
.barre-remplie { height: 100%; border-radius: 999px; background: var(--vert); }
.barre-remplie.critique { background: var(--peche); }
.barre-valeur { font-family: var(--police-mono); font-size: 12px; color: var(--encre-55); text-align: right; }
@media (max-width: 640px) { .barre-ligne { grid-template-columns: 1fr; } .barre-valeur { text-align: left; } }

.encart {
  border: 1px solid var(--encre-16); border-radius: var(--rayon-m);
  padding: 16px 18px; font-size: 14px; color: var(--encre-62); background: rgba(5,5,32,.02);
}
.encart.alerte { border-color: #e7b8b0; background: #fdeeec; color: #7a2b20; }
.non-mesurable { font-size: 14px; font-style: italic; margin-top: 6px; }

.tableau-data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tableau-data th, .tableau-data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--encre-10); }
.tableau-data th { font-family: var(--police-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-55); }
.tableau-data .nombre, .tableau-data td.nombre { text-align: right; font-variant-numeric: tabular-nums; }
table.tableau { width: 100%; border-collapse: collapse; font-size: 13.5px; border: 0; border-radius: 0; overflow: visible; }
table.tableau th, table.tableau td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--encre-10); }
table.tableau td.nombre, table.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; }

.ligne-perte { border: 2px solid var(--encre); border-radius: var(--rayon-m); padding: 22px; }
.ligne-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ligne-entete h3 { font-size: 18px; }
.ligne-entete .montant { font-family: var(--police-titre); font-size: 24px; letter-spacing: -.03em; }
.ligne-resume { font-size: 14px; color: var(--encre-62); margin-top: 8px; }
.hypotheses { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.terme { border: 1px solid var(--encre-16); border-radius: var(--rayon-s); padding: 10px 12px; font-size: 12.5px; }
.terme-libelle { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.terme-valeur { font-family: var(--police-mono); margin-top: 4px; }
.etiquette { font-family: var(--police-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: var(--encre-10); }
.etiquette.comptage { background: var(--vert); }
.etiquette.hypothese { background: var(--bleu); }
.etiquette.saisie { background: var(--jaune); }
.champ-unite { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.champ-unite input { width: 90px; }
.unite { font-size: 12px; color: var(--encre-55); }
.justification { font-size: 11px; color: var(--encre-40); margin-top: 6px; max-width: 30em; }

.chapo { font-size: 16px; color: var(--encre-62); line-height: 1.6; max-width: 42em; margin-top: 10px; }
.saisies { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.saisies-valeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.saisie-grosse { border: 2px solid var(--encre); border-radius: var(--rayon-m); padding: 16px; text-align: center; }
.saisie-grosse .valeur { font-family: var(--police-titre); font-size: 22px; letter-spacing: -.03em; }
.saisie-grosse .libelle { font-size: 11.5px; color: var(--encre-55); margin-top: 4px; }
.curseurs { display: grid; gap: 16px; }
.curseurs label { font-size: 12.5px; font-weight: 500; color: var(--encre-62); display: block; margin-bottom: 8px; }
.total {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border: 2px solid var(--encre); border-radius: var(--rayon-m); padding: 22px 26px;
  background: var(--encre); color: #fff; margin-top: 24px;
}
.total .montant { font-family: var(--police-titre); font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.total .discret { color: rgba(255,255,255,.6); }
.cta { border: 2px solid var(--encre); border-radius: var(--rayon-l); padding: 32px; background: var(--vert); margin-top: 32px; text-align: center; }
@media (max-width: 720px) { .saisies { grid-template-columns: 1fr; } .saisies-valeurs { grid-template-columns: 1fr 1fr; } }

.jauge-piste { height: 6px; border-radius: 999px; background: var(--encre-10); overflow: hidden; }
.jauge-remplie { height: 100%; background: var(--encre); border-radius: 999px; transition: width .4s ease; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 999px; background: var(--encre-16); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 999px;
  background: var(--fond); border: 2px solid var(--encre); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 999px; background: var(--fond);
  border: 2px solid var(--encre); cursor: grab;
}

/* ------------------------------------------------------------------ Kill switch / statuts agent */
.statut-pastille { display: inline-flex; align-items: center; gap: 8px; font-family: var(--police-mono); font-size: 12px; letter-spacing: .06em; }
.statut-pastille::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--encre-40); }
.statut-actif::before { background: #1c7a3e; }
.statut-pause::before { background: #c98a00; }
.statut-arrete::before { background: #b23b2e; }
.bloc-kill { border: 2px solid #b23b2e; border-radius: var(--rayon-m); padding: 20px; background: #fdeeec; }

/* ------------------------------------------------------------------ Utilitaires */
.cache, .masque { display: none !important; }
.centre { text-align: center; }
.pile { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-56 { margin-top: 56px; }
.chiffre { font-family: var(--police-titre); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.rangee { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* CP9-H — sélecteur de langue (chrome partagé, inc.js). Nom de langue affiché. */
.sel-langue { position: relative; display: inline-flex; align-items: center; }
.sel-langue select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 1px solid var(--encre-16); border-radius: 999px;
  padding: 6px 26px 6px 12px; font: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--encre); cursor: pointer; line-height: 1;
}
.sel-langue::after {
  content: ""; position: absolute; right: 11px; width: 7px; height: 7px;
  border-right: 1.5px solid var(--encre-55); border-bottom: 1.5px solid var(--encre-55);
  transform: rotate(45deg) translateY(-1px); pointer-events: none;
}
.sel-langue select:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }

/* ================================================================= CP9-H bloc 2
   Navigation mobile · animations discrètes · aperçu produit · éléments partagés
   ================================================================= */

/* --- Menu mobile (burger + tiroir) — inc.js pose [hidden]/[aria-expanded] --- */
.entete__burger {
  display: none;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--encre-16); background: var(--blanc);
  align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.entete__burger span, .entete__burger span::before, .entete__burger span::after {
  content: ""; display: block; width: 17px; height: 1.5px; background: var(--encre);
  transition: transform .18s ease, opacity .18s ease;
}
.entete__burger span::before { transform: translateY(-5px); }
.entete__burger span::after { transform: translateY(3.5px); }
.entete__burger[aria-expanded="true"] span { background: transparent; }
.entete__burger[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.entete__burger[aria-expanded="true"] span::after { transform: translateY(-1.5px) rotate(-45deg); }

.entete__tiroir {
  display: none;
  border-top: 1px solid var(--encre-10);
  background: rgba(251, 250, 247, 0.98);
  backdrop-filter: blur(14px);
}
.entete__tiroir[data-ouvert="true"] { display: block; animation: coaly-fade-in .18s ease; }
.entete__tiroir nav {
  max-width: var(--large); margin: 0 auto; padding: 14px 20px 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.entete__tiroir a {
  padding: 13px 6px; font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--encre-10);
}
.entete__tiroir a:last-of-type { border-bottom: 0; }
.entete__tiroir .btn { margin-top: 14px; }

@media (max-width: 900px) {
  .entete__burger { display: inline-flex; }
}

/* --- Révélation au défilement — amélioration progressive ---
   Par défaut .reveal est VISIBLE. inc.js n'ajoute `pre-anim` sur <html> que si
   IntersectionObserver est disponible ET que l'utilisateur n'a pas demandé la
   réduction des animations : le contenu reste donc visible sans JS, sans IO, ou
   en `prefers-reduced-motion`. Un filet de sécurité JS révèle tout après 3 s. */
.reveal { transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }
html.pre-anim .reveal:not(.vu) { opacity: 0; transform: translateY(18px); }
.reveal--d1 { transition-delay: .06s; }
.reveal--d2 { transition-delay: .12s; }
.reveal--d3 { transition-delay: .18s; }
@keyframes coaly-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  html.pre-anim .reveal:not(.vu) { opacity: 1; transform: none; }
}

/* --- Aperçu produit stylisé (représentation crédible, non truquée) --- */
.apercu {
  border: 1px solid var(--encre-10); border-radius: var(--rayon-l);
  background: var(--blanc); box-shadow: var(--ombre);
  overflow: hidden; font-size: 13px;
}
.apercu__barre {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--encre-10);
  background: rgba(5,5,32,.02);
}
.apercu__pastille { width: 8px; height: 8px; border-radius: 999px; background: var(--encre-16); }
.apercu__onglet {
  margin-left: 6px; font-family: var(--police-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--encre-55);
}
.apercu__corps { padding: 18px; display: grid; gap: 12px; }
.apercu__ligne {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--encre-10); border-radius: var(--rayon-m);
}
.apercu__ligne strong { font-weight: 600; }
.apercu__ligne p { font-size: 12px; color: var(--encre-55); margin-top: 2px; }
.apercu__etat {
  font-family: var(--police-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  border: 1.5px solid var(--encre); white-space: nowrap;
}
.apercu__etat--attente { background: var(--violet); }
.apercu__etat--ok { background: var(--vert); }
.apercu__etat--info { background: var(--bleu); }

/* --- Bloc pas-à-pas (fonctionnement) — alternative aux cartes répétées --- */
.etapes { display: grid; gap: 0; margin-top: 44px; counter-reset: etape; }
.etape {
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--encre-10);
}
.etape:last-child { border-bottom: 1px solid var(--encre-10); }
.etape__num {
  counter-increment: etape;
  font-family: var(--police-mono); font-size: 13px; color: var(--encre-40);
}
.etape__num::before { content: counter(etape, decimal-leading-zero); }
.etape h3 { font-size: 18px; }
.etape p { margin-top: 6px; color: var(--encre-62); font-size: 15px; max-width: 52ch; }
@media (max-width: 640px) { .etape { grid-template-columns: 1fr; gap: 6px; } }

/* --- Ajustements responsive bloc 2 (accueil recomposé) --- */
@media (max-width: 900px) {
  .faq-grille { grid-template-columns: 1fr !important; gap: 28px !important; }
  #commencer .carte { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .hero__actions .btn { width: 100%; }
  #commencer .carte { padding: 28px !important; }
}
