/* Supports de la formation One Week Apps : charte de Focus (direction C) : bleu nuit, orange pour l'action, Quicksand et Montserrat. */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Quicksand:wght@600;700&display=swap");
:root {
  --bg: #0E2147;
  --bg-deep: #081430;
  --bg-glow: #1E3F7A;
  --surface: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.14);
  --text: #F7F9FC;
  --muted: #9FB0CF;
  --accent: #FF8A3D;
  --accent-label: #FF9A4D;
  --accent-ink: #0B1530;
  --ok: #3ECF8E;
  --code: #081430;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, var(--bg-glow), var(--bg) 55%, var(--bg-deep)) fixed, var(--bg);
  color: var(--text);
  font: 18px/1.65 "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 48px 20px 96px; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

/* En-tête */
h1, h2, h3 { font-family: "Quicksand", "Montserrat", sans-serif; }
.eyebrow { color: var(--accent-label); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin: 10px 0 16px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.2rem; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 18px 0 0; }
.meta .edition { display: inline-block; margin-top: 6px; color: var(--text); font-style: italic; }

/* Sommaire */
nav.toc { margin: 36px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
nav.toc h2 { font-size: 1rem; margin: 0 0 10px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
nav.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: mod; display: grid; gap: 6px; }
nav.toc li { counter-increment: mod; display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }
nav.toc li::before { content: counter(mod); color: var(--accent); font-weight: 800; }
nav.toc a { color: var(--text); text-decoration: none; }
nav.toc a:hover { color: var(--accent); }
nav.toc li.plain { counter-increment: none; }
nav.toc li.plain::before { content: "·"; color: var(--muted); }
nav.toc li.locked a { color: var(--muted); }
nav.toc li.locked::after { content: " · dans la formation"; grid-column: 2; color: var(--muted); font-size: 0.85rem; }

/* Modules */
section.module { margin-top: 72px; scroll-margin-top: 24px; }
.module-label { color: var(--accent-label); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 6px; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 20px; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 36px 0 10px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin: 4px 0; }
strong { color: #fff; }

/* Code */
pre {
  position: relative; background: var(--code); border: 1px solid var(--line); border-radius: 14px;
  padding: 46px 18px 16px; margin: 4px 0 20px; overflow-x: auto;
  font: 15px/1.55 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; tab-size: 4;
}
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.copy {
  position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 13px/1 inherit; cursor: pointer;
}
.copy:hover { color: var(--text); }

/* Encadrés */
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note .note-title { font-weight: 700; margin: 0 0 6px; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }

/* Captures d'écran */
figure.shot { margin: 24px 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; }
figure.shot img { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); background: #000; }
figure.shot figcaption { color: var(--muted); font-size: 0.98rem; }
figure.shot.flat img { border-radius: 14px; background: #fff; }
figure.wide { margin: 24px 0; }
figure.wide img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
figure.wide figcaption { color: var(--muted); font-size: 0.98rem; margin-top: 10px; }
@media (max-width: 600px) {
  figure.shot { grid-template-columns: 1fr; justify-items: center; }
  figure.shot img { max-width: 260px; }
}

/* Aperçu : fin de l'extrait */
.paywall { margin-top: 72px; background: rgba(255,138,61,0.10); border: 1px solid var(--accent); border-radius: 24px; padding: 28px 24px; box-shadow: 0 18px 50px rgba(8, 20, 48, 0.45); }
.paywall h2 { margin-bottom: 12px; }
.paywall ul { margin-bottom: 22px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
}

footer { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
footer p { margin: 0 0 8px; }
pre.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Texte secondaire : liens vers les étapes du dépôt, précisions */
.muted { color: var(--muted); font-size: 0.95rem; }
