/* ------------------------------------------------------------------
   FactiFlow — feuille de style partagée (17/10/2026).
   Palette extraite du logo : bleu nuit #021f46, bleu vif #0571f1.
   Contrainte : zéro dépendance, aucune police externe (pas de requête
   vers Google Fonts — ni latence ni RGPD), pile système uniquement.
   ------------------------------------------------------------------ */

:root {
  --nuit: #021f46;
  --bleu: #0571f1;
  --bleu-sombre: #0458c2;
  --bleu-tres-clair: #eef4fe;
  --texte: #1c2b3f;
  --gris: #5a6678;
  --fond: #f6f8fc;
  --carte: #ffffff;
  --ligne: #e1e8f3;
  --succes: #0a7d4f;
  --ombre: 0 1px 2px rgba(2, 31, 70, .06), 0 4px 16px rgba(2, 31, 70, .05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.wrap-large { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* --- en-tête et navigation --- */
header.site {
  background: var(--carte);
  border-bottom: 1px solid var(--ligne);
  position: sticky; top: 0; z-index: 10;
}
header.site .barre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; flex-wrap: wrap;
}
a.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 19px; color: var(--nuit);
  text-decoration: none; letter-spacing: -.01em;
}
a.logo img { height: 30px; width: auto; display: block; }
nav.site { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
nav.site a {
  color: var(--gris); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
nav.site a:hover { color: var(--nuit); border-bottom-color: var(--bleu); }
nav.site a.actif { color: var(--nuit); border-bottom-color: var(--bleu); }

/* --- héros --- */
.heros {
  background: linear-gradient(170deg, var(--nuit) 0%, #06346f 100%);
  color: #fff; padding: 54px 0 48px; margin-bottom: 36px;
}
/* ⚠ color: #fff OBLIGATOIRE — la règle globale `h1 { color: var(--nuit) }`
   est plus loin dans la feuille et l'emporterait sinon : titre bleu nuit
   sur dégradé bleu nuit, illisible. Bug signalé par Christophe le 18/10. */
.heros h1 {
  font-size: 34px; line-height: 1.22; margin: 0 0 14px;
  letter-spacing: -.02em; font-weight: 800; max-width: 20ch;
  color: #fff;
}
.heros p.accroche { font-size: 18px; color: #c6d8f2; margin: 0 0 24px; max-width: 58ch; }
.heros .badge {
  display: inline-block; background: rgba(255,255,255,.12); color: #d8e6fb;
  border: 1px solid rgba(255,255,255,.2); border-radius: 100px;
  padding: 4px 13px; font-size: 13px; font-weight: 600; margin-bottom: 18px;
}

/* --- titres --- */
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.02em; color: var(--nuit); font-weight: 800; }
h2 {
  font-size: 23px; margin: 40px 0 14px; color: var(--nuit);
  letter-spacing: -.01em; font-weight: 700; line-height: 1.3;
}
h3 { font-size: 17.5px; margin: 26px 0 8px; color: var(--nuit); font-weight: 650; }
p { margin: 0 0 14px; }

/* --- liens --- */
a { color: var(--bleu-sombre); }
a:hover { color: var(--bleu); }

/* --- boutons --- */
.cta, .cta-clair {
  display: inline-block; text-decoration: none; font-weight: 650;
  padding: 13px 26px; border-radius: 8px; font-size: 16px;
  transition: background .15s, transform .08s; border: 0; cursor: pointer;
}
.cta { background: var(--bleu); color: #fff !important; box-shadow: 0 2px 10px rgba(5,113,241,.3); }
.cta:hover { background: var(--bleu-sombre); }
.cta:active { transform: translateY(1px); }
.cta-clair { background: rgba(255,255,255,.1); color: #fff !important; border: 1px solid rgba(255,255,255,.34); }
.cta-clair:hover { background: rgba(255,255,255,.18); }
.sous-cta { font-size: 13.5px; color: var(--gris); margin-top: 10px; }
.heros .sous-cta { color: #9fbce4; }

/* --- cartes --- */
.carte {
  background: var(--carte); border: 1px solid var(--ligne);
  border-radius: 11px; padding: 22px 24px; margin: 16px 0; box-shadow: var(--ombre);
}
.carte h3:first-child, .carte h2:first-child { margin-top: 0; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); margin: 18px 0; }
.grille .carte { margin: 0; }

/* --- étapes numérotées --- */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 18px 0; }
.etapes li {
  counter-increment: etape; position: relative;
  padding: 0 0 0 46px; margin-bottom: 20px;
}
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bleu-tres-clair); color: var(--bleu-sombre);
  font-weight: 750; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center;
}
.etapes li strong { color: var(--nuit); }

/* --- tableaux --- */
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; background: var(--carte); }
th, td { border: 1px solid var(--ligne); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--bleu-tres-clair); color: var(--nuit); font-weight: 650; }

/* --- encarts --- */
blockquote, .encart {
  border-left: 3px solid var(--bleu); background: var(--bleu-tres-clair);
  margin: 18px 0; padding: 14px 18px; border-radius: 0 9px 9px 0; color: var(--texte);
}
.encart strong { color: var(--nuit); }
.encart-sobre { background: var(--carte); border-left-color: var(--ligne); border: 1px solid var(--ligne); border-left: 3px solid var(--gris); }

/* --- code --- */
pre, code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
}
pre {
  background: var(--nuit); color: #d6e4fa; padding: 16px 18px;
  border-radius: 9px; overflow-x: auto; line-height: 1.55; margin: 14px 0;
}
pre .c { color: #7f9dc9; }   /* commentaire */
pre .s { color: #86e0b4; }   /* chaîne */
code:not(pre code) {
  background: var(--bleu-tres-clair); color: var(--nuit);
  padding: 1.5px 6px; border-radius: 4px; font-size: 13.5px;
}

/* --- listes --- */
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
ul.coches { list-style: none; padding-left: 0; }
ul.coches li { padding-left: 27px; position: relative; }
ul.coches li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--succes); font-weight: 800;
}
ul.croix { list-style: none; padding-left: 0; }
ul.croix li { padding-left: 27px; position: relative; }
ul.croix li::before {
  content: "✕"; position: absolute; left: 0; top: -1px;
  color: #b4472f; font-weight: 800;
}

/* --- prix --- */
.prix { font-size: 36px; font-weight: 800; color: var(--nuit); letter-spacing: -.02em; }
.prix small { font-size: 16px; font-weight: 500; color: var(--gris); }

/* --- pied --- */
footer.site {
  margin-top: 56px; border-top: 1px solid var(--ligne);
  background: var(--carte); padding: 26px 0; font-size: 13.5px; color: var(--gris);
}
footer.site a { color: var(--gris); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--nuit); text-decoration: underline; }
footer.site .mentions { margin-top: 12px; font-size: 12.5px; color: #8a94a5; }

.note { font-size: 12.5px; color: var(--gris); }
hr { border: 0; border-top: 1px solid var(--ligne); margin: 28px 0; }

@media (max-width: 620px) {
  .heros { padding: 38px 0 34px; }
  .heros h1 { font-size: 27px; }
  .heros p.accroche { font-size: 16.5px; }
  h2 { font-size: 20.5px; }
  header.site .barre { padding: 10px 0; }
  nav.site { gap: 14px; }
  nav.site a { font-size: 13.5px; }
}
