/* PROVE IT, direction Surligneur (site/DESIGN.md). Polices auto-hébergées, aucun appel tiers. */
@font-face { font-family: "Host Grotesk"; src: url("/polices/host-grotesk-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/polices/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/polices/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --fond: #fbfaf7; --fond-2: #f5f3f0; --blanc: #ffffff; --encre: #181611; --encre-2: #5d5b55; --filet: #e6e3dd;
  --surligne: #faea89; --ok: #006a66; --ok-fond: #d9f5f3; --neutre: #9a968d; --alerte: #8c4400;
  --gouttiere: 64px; --sans: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--sans); font-size: 17px;
  line-height: 1.55; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: var(--encre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--encre-2); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.mono, code { font-family: var(--mono); font-size: 0.88em; }
.serif { font-family: var(--serif); }
.nw { white-space: nowrap; }
.discret { color: var(--encre-2); }
.source { font-size: 15px; color: var(--encre-2); }
.source a { color: var(--encre-2); }
.h2 { font-size: 40px; line-height: 1.1; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
.sauter { position: absolute; left: -9999px; }
.sauter:focus { left: 16px; top: 8px; background: var(--blanc); padding: 8px 12px; z-index: 2; }

/* Bandeau art. 50, en-tête, navigation */
.bandeau { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; padding: 8px var(--gouttiere);
  background: var(--fond-2); font-size: 13px; color: var(--encre-2); text-align: center; }
.bandeau a { color: var(--encre-2); }
.entete { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px;
  padding: 22px var(--gouttiere); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 700;
  letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 4px 0; }
.nav a[aria-current="page"] { text-decoration: underline; }

/* Boutons */
.boutons { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 32px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--encre); text-decoration: none; font-weight: 600; }
.bouton-plein { background: var(--encre); color: var(--fond); }
.bouton-plein:hover { color: var(--fond); background: #34312a; }
.bouton-contour { background: transparent; color: var(--encre); }
.copier { font: inherit; font-size: 14px; font-weight: 600; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--encre); border: 1px solid var(--filet); cursor: pointer; }
.copier:hover { border-color: var(--encre); }

/* Premier écran */
.hero { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 80px;
  padding: 64px var(--gouttiere) 96px; }
.surtitre { font-size: 15px; font-weight: 600; color: var(--encre-2); }
.titre { margin-top: 20px; font-size: 64px; line-height: 1.04; font-weight: 650; letter-spacing: -0.035em;
  text-wrap: balance; }
.chapeau { margin-top: 24px; font-size: 19px; color: var(--encre-2); max-width: 50ch; text-wrap: pretty; }

/* État de saison */
.etat { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--filet); display: flex; flex-direction: column;
  gap: 6px; }
.etat-ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 22px; font-weight: 650;
  letter-spacing: -0.01em; }
.point { width: 10px; height: 10px; border-radius: 999px; background: var(--neutre); flex: none; }
.decompte { font-size: 18px; font-weight: 500; }
.decompte:empty { display: none; }
.etat-detail { font-size: 15px; color: var(--encre-2); max-width: 56ch; }
.etat-lu { font-size: 13px; color: var(--encre-2); }

/* Rendu surligné */
.rendu { background: var(--blanc); border: 1px solid var(--filet); border-radius: 18px; overflow: hidden; }
.rendu-tete { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px;
  border-bottom: 1px solid var(--filet); font-size: 13px; color: var(--encre-2); }
.rendu-texte { padding: 30px 32px 26px; font-family: var(--serif); font-size: 25px; line-height: 1.62;
  letter-spacing: -0.005em; text-wrap: pretty; }
.rendu ol { list-style: none; padding: 0; border-top: 1px solid var(--filet); background: var(--fond); font-size: 15px; }
.rendu li { display: grid; grid-template-columns: 34px 130px minmax(0, 1fr); align-items: center; padding: 13px 24px;
  border-bottom: 1px solid var(--filet); }
.rendu li.bilan { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
  padding: 16px 24px; border-bottom: 0; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 999px; background: var(--encre-2); color: var(--fond); font: 700 11px/1 var(--sans);
  vertical-align: 4px; margin-left: 3px; flex: none; }
.rendu li .num { margin: 0; vertical-align: 0; }
.pastille { justify-self: start; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pastille-ok { background: var(--ok-fond); color: var(--ok); }
.pastille-non { background: var(--surligne); color: var(--encre); }
.etaye { box-shadow: inset 0 -2px 0 var(--ok); }
.surl { background: linear-gradient(var(--surligne), var(--surligne)) no-repeat 0 90% / 100% 78%; }
.s1 { animation: surl1 12s infinite; } .s2 { animation: surl2 12s infinite; } .s3 { animation: souligne 12s infinite; }
.n1 { animation: note1 12s infinite; } .n2 { animation: note2 12s infinite; } .n3 { animation: note3 12s infinite; }
.bilan { animation: bilan 12s infinite; }
@keyframes souligne { 0%, 8% { box-shadow: inset 0 0 0 var(--ok); } 16%, 92% { box-shadow: inset 0 -2px 0 var(--ok); }
  100% { box-shadow: inset 0 0 0 var(--ok); } }
@keyframes surl1 { 0%, 24% { background-size: 0% 78%; } 34%, 92% { background-size: 100% 78%; } 100% { background-size: 0% 78%; } }
@keyframes surl2 { 0%, 44% { background-size: 0% 78%; } 54%, 92% { background-size: 100% 78%; } 100% { background-size: 0% 78%; } }
@keyframes note3 { 0%, 14% { opacity: 0; } 20%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes note1 { 0%, 32% { opacity: 0; } 38%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes note2 { 0%, 52% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bilan { 0%, 64% { opacity: 0; } 72%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Sections de l'accueil */
.section { padding: 88px var(--gouttiere) 96px; border-top: 1px solid var(--filet); }
.section-fond { background: var(--fond-2); border-top: 0; }
.section-tete { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.etapes { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; list-style: none;
  padding: 0; }
.vignette { position: relative; min-height: 220px; background: var(--fond-2); border-radius: 16px;
  padding: 48px 22px 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.vignette-fin { background: #fdf6cf; }
.rond { position: absolute; top: 14px; left: 14px; width: 28px; height: 28px; border-radius: 999px;
  background: var(--encre); color: var(--fond); font-size: 14px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; }
.feuille { background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.feuille .serif { font-size: 16px; line-height: 1.5; }
/* Deux reçus empilés dans la même cellule : même hauteur quel que soit le retour à la ligne. */
.tickets { display: grid; }
.ticket { grid-area: 1 / 1; position: relative; background: var(--blanc); border: 1px solid var(--filet);
  border-radius: 8px; padding: 10px 14px 10px 22px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.ticket-fond { margin: 0 0 30px 18px; color: var(--encre-2); }
.ticket-avant { margin: 30px 12px 0 4px; }
.ticket-ok { color: var(--ok); font-weight: 600; }
.encre { color: var(--encre); }
.espace { margin-top: 10px; }
.traduction { padding: 10px 14px; background: var(--fond-2); border-radius: 10px; font-size: 15px; }
.nav .langue { padding: 2px 10px; border: 1px solid var(--filet); border-radius: 999px; }
.ticket::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 999px; background: var(--fond-2); border-right: 1px solid var(--filet); }
.etape-quand { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--encre-2); }
.etape-titre { margin-top: 4px; font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; }
.etape-texte { margin-top: 8px; font-size: 16px; color: var(--encre-2); text-wrap: pretty; }

.taux { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.taux-texte { display: flex; flex-direction: column; gap: 26px; }
.taux h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.015em; }
.taux h3 span { padding: 0 2px; }
.taux-def { margin-top: 10px; font-size: 18px; text-wrap: pretty; }
.taux-regle { padding-top: 18px; border-top: 1px solid var(--filet); font-size: 18px; font-weight: 600; }
.graphique { background: var(--blanc); border: 1px solid var(--filet); border-radius: 18px; padding: 28px 28px 20px; }
.graphique svg { display: block; width: 100%; height: auto; }
.graphique figcaption { margin-top: 10px; font-size: 14px; color: var(--encre-2); }
.schema text { font-family: var(--sans); }
.schema .t { font-size: 16px; font-weight: 650; fill: var(--encre); }
.schema .st { font-size: 14px; fill: var(--encre-2); }

.limites { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 80px; }
.limites-tete { display: flex; flex-direction: column; gap: 18px; }
.limites ul { list-style: none; padding: 0; border-bottom: 1px solid var(--filet); }
.limites li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 22px 0;
  border-top: 1px solid var(--filet); }
.limites h3 { font-size: 19px; line-height: 1.35; font-weight: 650; }
.limites p { color: var(--encre-2); text-wrap: pretty; }

.gel { padding: 0 var(--gouttiere) 104px; }
.gel-tete { padding-top: 40px; border-top: 1px solid var(--encre); }
.frise { margin-top: 44px; }
.frise + .petit { margin-top: 12px; }
.frise svg { display: block; width: 100%; height: auto; }
.frise .frise-verticale { display: none; }
.gel-corps { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--filet); display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; }
.proof { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.proof .mono { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.petit { font-size: 14px; color: var(--encre-2); }
.petit a { color: var(--encre-2); }

/* Pages de document */
.doc { padding: 56px var(--gouttiere) 104px; display: grid; grid-template-columns: minmax(0, 72ch); justify-content: start; }
.doc-tete { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--filet); }
.doc-tete h1 { font-size: 48px; line-height: 1.08; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
.doc-tete p { margin-top: 16px; color: var(--encre-2); }
.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 16px; font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -0.02em;
  scroll-margin-top: 16px; }
.prose h3 { margin: 36px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 650; scroll-margin-top: 16px; }
.prose h4 { margin: 28px 0 8px; font-size: 18px; font-weight: 650; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .tableau { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose blockquote { padding: 12px 18px; border-left: 3px solid var(--filet); background: var(--fond-2);
  border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { padding: 16px 18px; background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px;
  overflow-x: auto; font-size: 14px; line-height: 1.5; }
.prose pre code { font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--filet); margin: 40px 0; }
.tableau { overflow-x: auto; }
.prose table { border-collapse: collapse; font-size: 15px; min-width: 100%; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--filet); }
.prose th { font-weight: 650; border-bottom-color: var(--encre); }
.encart { margin: 0 0 28px; padding: 18px 20px; background: var(--blanc); border: 1px solid var(--filet);
  border-radius: 14px; }
.encart h2, .encart h3 { margin-top: 0; }
.encart pre { margin-bottom: 0; }
.brouillon { margin-bottom: 28px; padding: 14px 18px; background: var(--surligne); border-radius: 10px; font-weight: 600; }
.empreintes { width: 100%; }
.empreintes td:last-child { overflow-wrap: anywhere; }

/* Index : deux tableaux, la ligne de repère en tête de chacun */
.classement { width: 100%; }
.classement th[scope="row"] { font-weight: 600; text-wrap: balance; }
.classement td.mono { overflow-wrap: anywhere; }
.classement tbody .repere th, .classement tbody .repere td { background: var(--fond-2); border-bottom-color: var(--encre); }
.classement .declaree { display: block; margin-top: 3px; font-size: 13px; color: var(--encre-2); }

/* Version remplacée : l'état est écrit en toutes lettres, la surface ne fait que le rendre visible. */
.avertissement { margin-bottom: 36px; padding: 18px 20px; background: var(--fond-2); border: 1px solid var(--encre);
  color: var(--encre); }
.avertissement strong { color: var(--alerte); }
.avertissement .mono { display: block; margin-top: 6px; color: var(--encre-2); overflow-wrap: anywhere; }

/* Pied de page */
.pied { background: var(--fond-2); padding: 48px var(--gouttiere) 56px; display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 3fr)); gap: 48px; font-size: 15px; }
.pied div { display: flex; flex-direction: column; gap: 8px; }
.pied p:first-child { font-weight: 700; }
.pied a { color: var(--encre-2); }

@media (max-width: 1100px) {
  :root { --gouttiere: 40px; }
  .hero, .taux, .limites, .gel-corps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titre { font-size: 52px; }
}
@media (max-width: 640px) {
  :root { --gouttiere: 20px; }
  body { font-size: 16px; }
  .bandeau { font-size: 12px; justify-content: flex-start; text-align: left; }
  .entete { padding-top: 14px; padding-bottom: 14px; }
  .hero { padding-top: 28px; padding-bottom: 56px; gap: 28px; }
  .titre { font-size: 40px; line-height: 1.06; letter-spacing: -0.03em; }
  .chapeau { font-size: 17px; }
  .boutons { flex-direction: column; align-items: stretch; }
  .h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; }
  .section { padding-top: 52px; padding-bottom: 56px; }
  .etapes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rendu-texte { padding: 20px 18px 18px; font-size: 20px; line-height: 1.6; }
  .rendu li { grid-template-columns: 30px minmax(0, 1fr); row-gap: 4px; padding: 12px 16px; }
  .rendu li > span:last-child { grid-column: 2; }
  .rendu li.bilan { flex-direction: column; padding: 14px 16px; }
  .limites li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .frise .frise-horizontale { display: none; }
  .frise .frise-verticale { display: block; max-width: 350px; }
  .gel { padding-bottom: 56px; }
  .proof .mono { font-size: 16px; }
  .doc { padding-top: 32px; padding-bottom: 56px; }
  .doc-tete h1 { font-size: 34px; }
  .prose h2 { font-size: 24px; margin-top: 40px; }
  .pied { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 44px; }
  .pied a { padding: 6px 0; }
}
