/* KRYOZEO : givre (fond), encre (texte), bleu froid (action), glace (quadrillage), alerte (seulement pour l'écart). */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-400-italic.woff2") format("woff2"); }
:root {
  --givre: #eef4f7;
  --papier: #fbfdfe;
  --encre: #14303d;
  --encre-douce: #4a6573;
  --bleu: #1f6f8b;
  --bleu-fonce: #17566d;
  --glace: #c9e2ea;
  --alerte: #b8321f;
  --vigilance: #9a6a10;
  --conforme: #2e6f55;
  --font: "Atkinson Hyperlegible", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--givre);
  color: var(--encre);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bleu); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1.25rem 1.5rem;
}
.brand { font-weight: 700; font-size: 1.35rem; letter-spacing: .14em; color: var(--encre); text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 1.25rem; }
.link { color: var(--encre); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.btn {
  display: inline-block; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--bleu); color: #fff; font: 700 1rem/1 var(--font);
  padding: .95rem 1.4rem; text-decoration: none;
}
.btn:hover { background: var(--bleu-fonce); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.small { padding: .7rem 1rem; font-size: .95rem; }

main > section { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.5rem; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.02em; max-width: 15ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; margin-bottom: 1.75rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
p { max-width: 62ch; }

/* Accueil : texte à gauche, fiche de relevé à droite */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-top: 2.5rem; }
.lead { font-size: 1.2rem; color: var(--encre-douce); margin: 1.25rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* La fiche : papier millimétré bleu glace, lignes qui se remplissent une fois au chargement */
.sheet {
  margin: 0; background-color: var(--papier);
  background-image:
    linear-gradient(var(--glace) 1px, transparent 1px),
    linear-gradient(90deg, var(--glace) 1px, transparent 1px);
  background-size: 100% 2.6rem, 2.6rem 100%;
  border: 1px solid var(--glace); border-radius: 4px;
  padding: 1.25rem 1.5rem 1rem; box-shadow: 0 18px 40px -24px rgba(20, 48, 61, .45);
  transform: rotate(-1.2deg);
}
.sheet figcaption { display: flex; flex-direction: column; margin-bottom: .75rem; }
.sheet-title { font-weight: 700; font-size: 1.15rem; }
.sheet-meta { color: var(--encre-douce); font-size: .95rem; }
.rows { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.rows li {
  display: grid; grid-template-columns: 4.2rem 6.5rem 1fr; align-items: center;
  height: 2.6rem; border-bottom: 1px dashed var(--glace);
  animation: fill .45s ease-out both;
}
.rows li:nth-child(1) { animation-delay: .15s; }
.rows li:nth-child(2) { animation-delay: .45s; }
.rows li:nth-child(3) { animation-delay: .75s; }
.rows li:nth-child(4) { animation-delay: 1.05s; }
.rows li:nth-child(5) { animation-delay: 1.4s; }
.rows li:nth-child(6) { animation-delay: 1.85s; }
.rows time { color: var(--encre-douce); }
.rows .t { font-weight: 700; }
.ok { color: var(--conforme); }
.watch { color: var(--vigilance); font-weight: 700; }
.bad { color: var(--alerte); font-weight: 700; }
.rows li.alert { background: rgba(184, 50, 31, .07); margin: 0 -.5rem; padding: 0 .5rem; grid-template-columns: 4.2rem 6.5rem 1fr; }
.rows li.alert .t { color: var(--alerte); }
.message {
  margin: 1rem 0 .25rem; padding: .85rem 1rem; border-left: 4px solid var(--alerte);
  background: #fff; font-size: .98rem; animation: fill .5s ease-out 2.35s both;
}
.sheet-note { margin: .5rem 0 0; font-size: .85rem; color: var(--encre-douce); font-style: italic; }
@keyframes fill { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rows li, .message { animation: none; }
  html { scroll-behavior: auto; }
}

.change { border-top: 1px solid var(--glace); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.cols p { color: var(--encre-douce); margin: 0; }

/* Une vraie séquence : numérotée */
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--bleu); padding-top: 1rem; }
.steps li::before { content: "Étape " counter(step); display: block; color: var(--bleu); font-weight: 700; margin-bottom: .4rem; }
.steps p { color: var(--encre-douce); margin: 0; }

.included ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 2.5rem; max-width: 52rem; }
.included li { padding: .8rem 0 .8rem 1.9rem; border-bottom: 1px solid var(--glace); position: relative; }
.included li::before { content: ""; position: absolute; left: .2rem; top: 1.25rem; width: .8rem; height: .45rem; border-left: 3px solid var(--conforme); border-bottom: 3px solid var(--conforme); transform: rotate(-45deg); }
.aside { color: var(--encre-douce); margin-top: 1.5rem; }

.faq details { border-bottom: 1px solid var(--glace); max-width: 52rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 0; font-size: 1.08rem; }
.faq details p { margin: 0 0 1.1rem; color: var(--encre-douce); }

/* Formulaire */
.demo { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; background: var(--papier); border-radius: 8px; margin-bottom: 3rem !important; border: 1px solid var(--glace); }
.demo-intro p { color: var(--encre-douce); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .95rem; }
input, textarea {
  font: 400 1rem/1.4 var(--font); color: var(--encre);
  border: 1px solid #a9c6d1; border-radius: 6px; padding: .7rem .8rem; background: #fff;
}
input:focus, textarea:focus { outline: 3px solid var(--bleu); outline-offset: 0; border-color: var(--bleu); }
.wide { grid-column: 1 / -1; }
.cf-turnstile:empty { display: none; } /* vide (script pas encore chargé ou bloqué) : aucune place, pas même l'écart de la grille */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .9rem; color: var(--encre-douce); margin: 0; }
.status { margin: 0; min-height: 1.5em; font-weight: 700; }
.status.done { color: var(--conforme); }
.status.error { color: var(--alerte); }

footer { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 3rem; border-top: 1px solid var(--glace); color: var(--encre-douce); font-size: .95rem; }
footer p { margin: .3rem 0; }
footer a { margin-right: 1.25rem; }

/* Pages de texte (mentions, confidentialité) */
.doc { max-width: 46rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.doc h1 { font-size: 2rem; max-width: none; margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }

@media (max-width: 860px) {
  .hero, .demo { grid-template-columns: 1fr; }
  .sheet { transform: none; }
  .cols, .steps ol { grid-template-columns: 1fr; gap: 1.75rem; }
  .included ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  main > section { padding: 2.5rem 1rem; }
  .top { padding: 1rem; }
  .top nav .btn.small { display: none; }
  .top nav .link { white-space: nowrap; }
  .brand { font-size: 1.15rem; }
  form { grid-template-columns: 1fr; }
  .rows li, .rows li.alert { grid-template-columns: 3.6rem 5.6rem 1fr; font-size: .95rem; }
  .demo { margin: 0 1rem 2rem !important; padding: 1.5rem 1rem; }
}
