/* Acquit — feuille de style du site, d'après la charte « Acquit » (tokens.json). */

:root {
  --papier: #F5F7FA;
  --feuille: #FFFFFF;
  --filet: #D8DEE6;
  --bordure: #7A8597;
  --encre: #14213D;
  --ardoise: #535E70;
  --action: #14213D;
  --sur-action: #FFFFFF;
  --acquit: #1C6B4E;
  --acquit-voile: #E3F1EA;
  --vigilance: #8A5A0B;
  --vigilance-voile: #FBF1DF;
  --alerte: #A2302A;
  --alerte-voile: #F9E6E4;
  --focus: #2D5BA8;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-24: 96px;
  --radius-sm: 2px; --radius-md: 4px;
  --shadow-fiche: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.08);
  --page: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0F1726; --feuille: #172133; --filet: #2A3650; --bordure: #6B7894;
    --encre: #E8EDF5; --ardoise: #A3AEC0; --action: #E8EDF5; --sur-action: #0F1726;
    --acquit: #5FBF92; --acquit-voile: #17352A; --vigilance: #E0A84A; --vigilance-voile: #3A2C10;
    --alerte: #F08A80; --alerte-voile: #3D1C19; --focus: #8FB3F0;
    --shadow-fiche: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--sans); font-size: 17px; line-height: 27px;
  font-variant-numeric: tabular-nums;
}
a { color: var(--acquit); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--space-8); } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--feuille); padding: var(--space-2) var(--space-4); z-index: 10; }

/* Bandeau de démonstration */
.demo {
  background: var(--vigilance-voile); color: var(--vigilance);
  font-size: 14px; line-height: 21px; padding: var(--space-2) 0; font-weight: 500;
}

/* En-tête */
.entete { border-bottom: 1px solid var(--filet); background: var(--papier); }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--space-6); }
.marque { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--encre); text-decoration: none; }
.marque svg { width: 32px; height: 32px; color: var(--acquit); }
.marque span { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1; letter-spacing: -0.01em; }
.nav { display: none; gap: var(--space-6); align-items: center; }
.nav a { color: var(--encre); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.nav .btn { padding: 0 var(--space-4); min-height: 40px; font-size: 15px; }
.nav a.btn-principal { color: var(--sur-action); }
.nav a.btn-principal:hover { text-decoration: none; }
@media (min-width: 880px) { .nav { display: flex; } }
.nav-court { font-size: 15px; font-weight: 600; }
@media (min-width: 880px) { .nav-court { display: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 16px; font-weight: 600; min-height: 52px; padding: 0 var(--space-6);
  border-radius: var(--radius-md); border: 1px solid var(--bordure);
  background: var(--feuille); color: var(--encre); cursor: pointer; text-decoration: none;
}
.btn-principal { background: var(--action); border-color: var(--action); color: var(--sur-action); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Accueil */
.accueil { padding: var(--space-12) 0 var(--space-12); }
@media (min-width: 960px) { .accueil { padding: 88px 0 var(--space-24); } }
.accueil .wrap { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 960px) { .accueil .wrap { grid-template-columns: 1fr 480px; gap: 72px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.07; max-width: 15ch; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; max-width: 22ch; }
h3 { font-size: 22px; line-height: 1.3; }
.chapeau { font-size: 20px; line-height: 30px; color: var(--ardoise); max-width: 34em; margin: var(--space-6) 0 0; }

/* Formulaire de vérification */
.verif { margin-top: var(--space-8); max-width: 560px; }
.verif label { display: block; font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: var(--space-2); }
.verif .ligne { display: flex; flex-wrap: wrap; gap: var(--space-3); position: relative; }
.verif input {
  flex: 1 1 280px; min-width: 0; font: inherit; font-size: 20px; font-weight: 500;
  padding: 0 var(--space-4); min-height: 56px; border: 1px solid var(--bordure);
  border-radius: var(--radius-md); background: var(--feuille); color: var(--encre);
}
.verif input::placeholder { color: var(--ardoise); opacity: 1; font-weight: 400; }
.verif .btn { min-height: 56px; flex: 0 0 auto; }
@media (max-width: 540px) { .verif .btn { width: 100%; } }
.verif .aide { font-size: 14px; line-height: 21px; color: var(--ardoise); margin: var(--space-3) 0 0; }
.exemples { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.exemples button {
  font: inherit; font-size: 14px; font-weight: 500; padding: var(--space-1) var(--space-3);
  border: 1px solid var(--bordure); border-radius: var(--radius-md); background: transparent; color: var(--encre); cursor: pointer;
}

.suggestions {
  position: absolute; top: 60px; left: 0; right: 0; z-index: 5; list-style: none; margin: 0; padding: var(--space-1) 0;
  background: var(--feuille); border: 1px solid var(--bordure); border-radius: var(--radius-md); box-shadow: var(--shadow-fiche);
}
.suggestions[hidden] { display: none; }
.suggestions li { padding: var(--space-2) var(--space-4); cursor: pointer; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--papier); }
.suggestions .nom { font-weight: 600; }
.suggestions .meta { font-size: 14px; color: var(--ardoise); }

/* La fiche client */
.fiche {
  position: relative; overflow: hidden; background: var(--feuille); border: 1px solid var(--filet);
  border-radius: var(--radius-md); box-shadow: var(--shadow-fiche); padding: var(--space-6);
}
@media (min-width: 720px) { .fiche { padding: var(--space-8); } }
.fiche-tete { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 14px; line-height: 20px; color: var(--ardoise); padding-bottom: var(--space-4); border-bottom: 1px solid var(--filet); }
.fiche-nom { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.3; margin: var(--space-6) 0 var(--space-1); padding-right: 72px; }
.fiche-id { font-size: 14px; color: var(--ardoise); margin: 0; }
.fiche-reco { margin: var(--space-6) 0 0; }
.fiche-reco h3 { font-size: 26px; line-height: 1.2; margin-top: var(--space-3); }
.fiche-reco p { margin: var(--space-2) 0 0; }
.tampon-fiche { position: absolute; top: 76px; right: var(--space-6); width: 64px; height: 64px; color: var(--acquit); transform: rotate(-12deg); opacity: 0.9; }
@media (min-width: 720px) { .tampon-fiche { right: var(--space-8); } }

.niveau { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 600; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); }
.niveau::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.niveau-faible { color: var(--acquit); background: var(--acquit-voile); }
.niveau-modere { color: var(--vigilance); background: var(--vigilance-voile); }
.niveau-eleve { color: var(--alerte); background: var(--alerte-voile); }
.niveau-neutre { color: var(--ardoise); background: var(--papier); }

.regle { margin: var(--space-6) 0 0; }
.regle-piste { position: relative; display: grid; grid-template-columns: 2fr 4fr 14fr; height: 8px; border-radius: var(--radius-sm); overflow: visible; }
.regle-piste span:nth-child(1) { background: var(--acquit); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.regle-piste span:nth-child(2) { background: var(--vigilance); }
.regle-piste span:nth-child(3) { background: var(--alerte); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.regle-curseur { position: absolute; top: -8px; width: 3px; height: 24px; margin-left: -1.5px; background: var(--encre); transition: left 600ms cubic-bezier(.2,.8,.2,1); }
.regle-legende { display: flex; justify-content: space-between; font-size: 14px; line-height: 21px; color: var(--ardoise); margin-top: var(--space-2); }

.facteurs { list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.facteurs li { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--filet); font-size: 15px; line-height: 23px; }
.facteurs .signe { flex: 0 0 16px; font-weight: 600; text-align: center; }
.facteurs .up { color: var(--alerte); }
.facteurs .down { color: var(--acquit); }
.fiche-titre-bloc { font-size: 14px; line-height: 20px; font-weight: 600; margin: var(--space-6) 0 var(--space-1); }
.procedures { margin: 0; padding-left: var(--space-6); font-size: 15px; }
.fiche-pied { margin: var(--space-6) 0 0; font-size: 13px; line-height: 20px; color: var(--ardoise); }
.fiche-attente { color: var(--ardoise); }
.erreur { color: var(--alerte); font-weight: 600; }

/* Sections */
.section { padding: var(--space-12) 0; border-top: 1px solid var(--filet); }
@media (min-width: 960px) { .section { padding: var(--space-24) 0; } }
.section .intro { color: var(--ardoise); max-width: 40em; margin: var(--space-4) 0 0; }

.moments { list-style: none; counter-reset: m; margin: var(--space-12) 0 0; padding: 0; display: grid; gap: var(--space-8); }
@media (min-width: 880px) { .moments { grid-template-columns: repeat(3, 1fr); gap: var(--space-12); } }
.moments li { counter-increment: m; border-top: 2px solid var(--encre); padding-top: var(--space-4); }
.moments li::before { content: counter(m); font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1; color: var(--acquit); display: block; margin-bottom: var(--space-4); }
.moments h3 { margin-bottom: var(--space-2); }
.moments p { margin: 0; color: var(--ardoise); }
.statut { display: inline-block; margin-top: var(--space-4); font-size: 14px; font-weight: 600; }
.statut-dispo { color: var(--acquit); }
.statut-bientot { color: var(--ardoise); }

.methode { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
@media (min-width: 880px) { .methode { grid-template-columns: repeat(3, 1fr); gap: var(--space-12); } }
.methode h3 { font-size: 20px; margin-bottom: var(--space-2); }
.methode p { margin: 0; color: var(--ardoise); }

.tarifs { display: grid; gap: 0; margin-top: var(--space-12); border: 1px solid var(--filet); border-radius: var(--radius-md); background: var(--feuille); }
@media (min-width: 880px) { .tarifs { grid-template-columns: 1fr 1fr; } }
.tarif { padding: var(--space-8); }
.tarif + .tarif { border-top: 1px solid var(--filet); }
@media (min-width: 880px) { .tarif + .tarif { border-top: 0; border-left: 1px solid var(--filet); } }
.tarif .prix { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.2; margin: var(--space-3) 0 var(--space-4); }
.tarif ul { margin: 0; padding-left: var(--space-6); color: var(--ardoise); }
.tarif li + li { margin-top: var(--space-2); }

.faq { margin-top: var(--space-8); max-width: 760px; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; padding: var(--space-4) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--acquit); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 var(--space-4); color: var(--ardoise); max-width: 40em; }

/* Pages de texte */
.texte { padding: var(--space-12) 0 var(--space-24); }
.texte .wrap > * { max-width: 720px; }
.texte h1 { max-width: none; margin-bottom: var(--space-6); }
.texte h2 { font-size: 24px; margin: var(--space-12) 0 var(--space-3); }
.texte p, .texte li { color: var(--encre); }
.a-completer { background: var(--vigilance-voile); color: var(--vigilance); padding: 0 var(--space-1); border-radius: var(--radius-sm); font-weight: 500; }

/* Pied de page */
.pied { border-top: 1px solid var(--filet); padding: var(--space-12) 0; font-size: 14px; line-height: 21px; color: var(--ardoise); }
.pied .wrap { display: grid; gap: var(--space-6); }
@media (min-width: 880px) { .pied .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.pied nav { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
.pied a { color: var(--encre); }
.pied .endos { margin: var(--space-3) 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .regle-curseur { transition: none; }
}

/* Nom complet : « Acquit » en titre, « Solutions » plus discret */
.marque em { font-style: normal; font-family: var(--sans); font-weight: 500; font-size: 0.62em; color: var(--ardoise); letter-spacing: 0; margin-left: 2px; }
