/* SPVac — landing spvac.fr
   Charte : « SPVac — Charte graphique v1.0 » (sept. 2026), valeurs retranscrites dans CLAUDE.md.
   Mode sombre uniquement, Barlow / Barlow Condensed auto-hébergées (aucun appel à Google),
   un seul rouge par écran : il signale, il ne décore jamais. */

@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --encre: #0F1318;
  --surface: #1B222C;
  --papier: #F2F2F3;
  --texte-2: #9AA3B0;
  --rouge: #E5322C;
  --rouge-aplat: #C8102E;
  --vert: #34C77B;
  --orange: #E8944A;
  --bordure: rgba(255, 255, 255, 0.06);
  --rayon-carte: 16px;
  --rayon-bouton: 12px;
  --largeur: 1080px;
  --gouttiere: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--encre);
  color: var(--papier);
  font: 400 17px/1.6 "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--papier); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--papier); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.02; }
h2 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0; }
.surtitre {
  font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-2);
}
.secondaire { color: var(--texte-2); }
.chiffre { font-variant-numeric: tabular-nums; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(15, 19, 24, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--bordure); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marque svg { width: 22px; height: auto; }
.marque span { font: 700 24px/1 "Barlow", sans-serif; letter-spacing: -0.045em; color: var(--papier); }
.lien-entete { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--papier); padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--rayon-bouton); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.lien-entete:hover { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: var(--rayon-bouton); border: 0;
  font: 600 17px/1 "Barlow", sans-serif; text-decoration: none; cursor: pointer;
}
.bouton-plein { background: var(--rouge-aplat); color: #fff; }
.bouton-plein:hover { background: #b00e28; color: #fff; }
.bouton-plein:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .conteneur { display: grid; gap: 20px; }
.hero .conteneur > * { max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--texte-2); }
.hero .accroche { font-size: clamp(18px, 2.4vw, 21px); color: var(--texte-2); max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.hero .note { font-size: 14px; color: var(--texte-2); }

/* ---------- Sections ---------- */
section { padding: 64px 0; border-top: 1px solid var(--bordure); }
.entete-section { display: grid; gap: 10px; margin-bottom: 32px; max-width: 700px; }

.grille-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }

.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 24px; display: grid; gap: 10px; align-content: start; }
.carte .numero { font: 600 15px/1 "Barlow Condensed", sans-serif; color: var(--texte-2); }
.carte p { color: var(--texte-2); font-size: 16px; }
.etiquette { justify-self: start; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: rgba(154, 163, 176, 0.15); color: var(--texte-2); }

/* ---------- Démonstration (relevé simulé) ---------- */
.demo { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr 1fr; } }
.demo .explication { display: grid; gap: 16px; }
.demo .explication p { color: var(--texte-2); }
.releve { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 20px; display: grid; gap: 4px; }
.releve .titre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.releve .titre strong { font: 600 20px/1.2 "Barlow Condensed", sans-serif; }
.ligne { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.ligne .barre { align-self: stretch; border-radius: 2px; }
.ligne .barre.inter { background: var(--orange); }
.ligne .barre.ecart { background: var(--rouge); }
.ligne .libelle { display: grid; gap: 2px; font-size: 15px; }
.ligne .libelle small { color: var(--texte-2); font-size: 13px; }
.ligne .montant { font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; }
.ligne.manquante .libelle small { color: var(--papier); }
.totaux { display: grid; gap: 6px; padding-top: 12px; }
.totaux div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.totaux .valeur { font-variant-numeric: tabular-nums; }
.totaux .calcule .valeur { color: var(--vert); font-weight: 700; }
.totaux .ecart { font-weight: 700; }
.totaux .ecart .valeur { color: var(--rouge); }
.mention-exemple { font-size: 12px; color: var(--texte-2); margin-top: 8px; }

/* ---------- Preuve ---------- */
.preuve { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .preuve { grid-template-columns: repeat(3, 1fr); } }
.preuve .carte strong { font: 700 34px/1.1 "Barlow", sans-serif; font-variant-numeric: tabular-nums; }

/* ---------- Auteur ---------- */
.auteur { display: grid; gap: 16px; }
.auteur > * { max-width: 760px; }
.auteur p:not(.surtitre) { color: var(--texte-2); font-size: 18px; }
.auteur p strong { color: var(--papier); font-weight: 500; }

/* ---------- Données ---------- */
.liste-donnees { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-donnees li { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 18px 20px; color: var(--texte-2); font-size: 16px; }
.liste-donnees li strong { color: var(--papier); font-weight: 500; display: block; margin-bottom: 2px; }
@media (min-width: 760px) { .liste-donnees { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 500; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--texte-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--texte-2); font-size: 16px; }

/* ---------- Inscription ---------- */
.inscription { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); padding: clamp(24px, 5vw, 44px); display: grid; gap: 22px; max-width: 760px; }
.inscription form { display: grid; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: 14px; font-weight: 500; }
.champ label span { color: var(--texte-2); font-weight: 400; }
.champ input {
  min-height: 52px; padding: 0 16px; border-radius: var(--rayon-bouton);
  border: 1px solid rgba(255, 255, 255, 0.16); background: var(--encre); color: var(--papier);
  font: 400 17px/1 "Barlow", sans-serif; width: 100%;
}
.champ input:focus { outline: none; border-color: var(--papier); }
.champ input::placeholder { color: #6b7380; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mentions-form { font-size: 13px; color: var(--texte-2); }
.message { font-size: 15px; min-height: 1.4em; }
.message.ok { color: var(--vert); }
.message.erreur { color: var(--papier); }
.inscription .bouton { width: 100%; }
@media (min-width: 560px) { .inscription .bouton { width: auto; justify-self: start; } }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--bordure); padding: 32px 0 48px; color: var(--texte-2); font-size: 14px; }
.pied .conteneur { display: grid; gap: 10px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied a { color: var(--texte-2); }

/* ---------- Page texte (mentions légales) ---------- */
.page-texte { padding: 56px 0 72px; }
.page-texte .conteneur { max-width: 760px; display: grid; gap: 14px; }
.page-texte h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.page-texte h2 { font-size: 24px; margin-top: 24px; }
.page-texte p, .page-texte li { color: var(--texte-2); font-size: 16px; }
.page-texte strong { color: var(--papier); font-weight: 500; }
.a-completer { background: rgba(232, 148, 74, 0.15); color: var(--orange); padding: 0 6px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
