/* Guide « How to use » de la console support : mêmes couleurs que la console (base.css). */
:root {
  --bg: #f6f5f2; --card: #ffffff; --soft: #fbfaf8; --border: #e6e3dd; --strong: #d6d2ca;
  --text: #2b2d31; --muted: #6d7078; --accent: #4e79a7; --accent-soft: #e2ebf5;
  --mark: #e8590c; --red: #b0414b; --red-soft: #f8e3e5; --yellow-soft: #f8eed8; --yellow: #93661b;
  --green: #3f7d5c; --green-soft: #e3f1e8; --shadow: 0 1px 2px rgba(40, 35, 25, .06), 0 8px 24px rgba(40, 35, 25, .06);
}
:root[data-theme="dark"] {
  --bg: #1b1c1f; --card: #25272b; --soft: #202226; --border: #34363b; --strong: #45484e;
  --text: #e8e8ea; --muted: #a3a6ad; --accent: #86a9d0; --accent-soft: #2a3542;
  --red: #e08a92; --red-soft: #3a2629; --yellow-soft: #3a3222; --yellow: #dcb565;
  --green: #7fc19f; --green-soft: #23352c; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
b { font-weight: 650; }
i { color: var(--muted); font-style: normal; background: var(--soft); border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; font-size: .92em; white-space: nowrap; }
td i, .rules i { white-space: normal; }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  height: 56px; padding: 0 20px; background: var(--soft); border-bottom: 1px solid var(--border);
}
.back { text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px; border: 1px solid var(--strong); border-radius: 10px; background: var(--card); color: var(--text); }
.back:hover { border-color: var(--accent); color: var(--accent); }
.top-title { font-weight: 700; color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border: 1px solid var(--strong); border-radius: 10px; background: var(--card); color: var(--text); }

.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; }
.toc { position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; padding: 28px 12px 28px 20px; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.toc a b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--border); color: var(--text); font-size: 12px; line-height: 20px; text-align: center; }
.toc a:hover { background: var(--card); color: var(--text); }
.toc a.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.toc a.on b { background: var(--accent); color: #fff; }
.toc .toc-rules { color: var(--red); font-weight: 600; margin-bottom: 8px; }

main { padding: 36px 28px 80px; min-width: 0; max-width: 940px; }
section { margin-bottom: 72px; }
.hero { margin-bottom: 36px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 12px; font-size: 38px; line-height: 1.15; letter-spacing: -.02em; }
.lead { margin: 0 0 14px; font-size: 19px; color: var(--muted); max-width: 660px; }
.note { display: inline-block; margin: 0; padding: 6px 12px; font-size: 14px; background: var(--yellow-soft); color: var(--yellow); border-radius: 10px; }
h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 19px; line-height: 38px; text-align: center; }
h3 { margin: 34px 0 10px; font-size: 19px; line-height: 1.3; }
.step-text > h3:first-child { margin-top: 0; }
p { margin: 0 0 12px; }
.intro { font-size: 17.5px; color: var(--muted); max-width: 720px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }

.rules { background: var(--card); border: 1px solid var(--border); border-left: 5px solid var(--red); border-radius: 16px; padding: 24px 28px 14px; box-shadow: var(--shadow); }
.rules h2 { color: var(--red); font-size: 24px; }
.rules ol { columns: 2; column-gap: 36px; padding-left: 22px; }
.rules li { break-inside: avoid; margin-bottom: 12px; }

.shot, .clip { margin: 16px 0 18px; }
.shot img, .clip video { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.shot img { cursor: zoom-in; }
figcaption { margin-top: 9px; font-size: 14.5px; color: var(--muted); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 18px 0 26px; }
.step .shot, .step .clip { margin: 0; }
.shot.narrow img { width: auto; max-width: 100%; max-height: 560px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 14px; }

.legend { list-style: none; padding: 0; counter-reset: mark; display: grid; gap: 6px 28px; }
.legend.cols { grid-template-columns: 1fr 1fr; }
.legend li { counter-increment: mark; position: relative; padding-left: 34px; margin: 0; }
.legend li::before { content: counter(mark); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--mark); color: #fff; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; }
.routine { counter-reset: r; list-style: none; padding: 0; }
.routine li { counter-increment: r; position: relative; padding: 10px 14px 10px 50px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.routine li::before { content: counter(r); position: absolute; left: 14px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; line-height: 24px; text-align: center; }

.tip, .check, .warn { padding: 10px 14px; border-radius: 12px; font-size: 15px; }
.tip { background: var(--accent-soft); }
.check { background: var(--green-soft); }
.warn { background: var(--red-soft); color: var(--red); font-weight: 600; }

.table { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--card); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--soft); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; width: 34%; }
footer { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 18px; }

.zoom { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(20, 20, 22, .82); cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-toggle { display: block; }
  .top-title { display: none; }
  .toc { display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 9; max-height: 70vh; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .toc.open { display: flex; }
  main { padding: 24px 16px 60px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .step, .pair, .legend.cols { grid-template-columns: minmax(0, 1fr); }
  .rules { padding: 18px 18px 8px; }
  .rules ol { columns: 1; }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  section { margin-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .top, .toc, .clip { display: none; }
  .shell { display: block; }
  section { break-inside: avoid-page; margin-bottom: 28px; }
  .shot img { box-shadow: none; }
}
