:root {
  --fond: #f4f1ea;
  --texte: #1c2733;
  --doux: #5b6773;
  --accent: #24425f;
  --alerte: #8a3b12;
  --bord: #d8d2c4;
  --surface: #ffffff;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 34rem; margin: 0 auto; padding: 24px 16px 48px; }
main.large { max-width: 60rem; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.sous-titre { color: var(--doux); margin: 0 0 24px; }
ol.etapes { padding: 0; margin: 0 0 24px; list-style: none; counter-reset: etape; }
ol.etapes li {
  counter-increment: etape;
  position: relative;
  padding: 12px 12px 12px 52px;
  margin-bottom: 8px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: var(--surface);
}
ol.etapes li::before {
  content: counter(etape);
  position: absolute; left: 12px; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 600;
}
ol.etapes li.faite { opacity: 0.55; }
ol.etapes li.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.avertissement { border-left: 4px solid var(--alerte); background: var(--surface); padding: 12px; border-radius: 6px; margin-bottom: 20px; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input, select, button { font: inherit; }
input[type="text"], input[type="password"], input[type="number"], select {
  width: 100%; padding: 12px; border: 1px solid var(--bord); border-radius: 8px; background: var(--surface); color: var(--texte);
}
button {
  display: block; width: 100%; margin-top: 12px; padding: 14px;
  border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600;
}
button.second { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
button:disabled { opacity: 0.5; }
.detail { display: block; margin-top: 8px; color: var(--doux); font-size: 0.8rem; overflow-wrap: anywhere; }
.etat { margin-top: 16px; padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--bord); white-space: pre-wrap; }
[hidden] { display: none !important; }
.defile { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 6px; border-bottom: 1px solid var(--bord); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); padding: 12px; border-radius: 8px; border: 1px solid var(--bord); font-size: 0.8rem; }
