/* Couleurs de docs/tokens.json (thèmes sombre et clair). */
:root {
  --fond: #ffffff;
  --fond-eleve: #f2f2f7;
  --texte: #000000;
  --texte-secondaire: #636366;
  --accent: #ff5400;
  --accent-doux: rgba(255, 84, 0, 0.12);
  --filet: rgba(60, 60, 67, 0.18);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #000000;
    --fond-eleve: #1c1c1e;
    --texte: #ffffff;
    --texte-secondaire: #9a9aa0;
    --accent-doux: rgba(255, 84, 0, 0.2);
    --filet: rgba(84, 84, 88, 0.6);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

.icone {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
}

h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.5px; margin: 24px 0 8px; }
h2 { font-size: 22px; line-height: 1.25; margin: 40px 0 8px; }
p, li { color: var(--texte-secondaire); }
strong { color: var(--texte); font-weight: 600; }
a { color: var(--accent); }

.chapeau { font-size: 20px; color: var(--texte); }

.carte {
  background: var(--fond-eleve);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}

.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; }
.etapes li { counter-increment: etape; position: relative; padding-left: 52px; margin: 0 0 20px; min-height: 36px; }
.etapes li:last-child { margin-bottom: 0; }
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-doux); color: var(--accent);
  font-weight: 700; text-align: center; line-height: 36px;
}

.code { font: 600 28px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 4px; color: var(--texte); }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--filet);
  font-size: 15px;
  color: var(--texte-secondaire);
}
footer a { margin-right: 16px; }
