/* Pages annexes Bobiné — charte Nocturne */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--color-text);
  line-height: 1.62;
  font-size: 16px;
  text-wrap: pretty;
  background:
    radial-gradient(1100px 640px at 88% -200px, color-mix(in srgb, var(--color-accent-900) 70%, transparent), transparent 60%),
    radial-gradient(900px 700px at -10% 100%, rgba(0,0,0,.3), transparent 55%),
    var(--color-bg);
}
* { box-sizing: border-box; }
a { color: var(--color-accent-300); text-decoration: none; }
a:hover { color: var(--color-accent-200); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 3px; }

/* En-tête de site */
.site-head {
  display: flex; align-items: center; gap: 22px;
  padding: 18px clamp(20px, 5vw, 40px);
  border-bottom: 1px solid var(--color-divider);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--color-bg) 78%, transparent);
}
.site-head .brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); }
.site-head .brand img { display: block; border-radius: 7px; }
.site-head .brand b { font-weight: 600; letter-spacing: -.01em; font-size: 16px; }
.site-head .brand em {
  font-style: normal; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 52%, transparent);
}
.site-head .spacer { flex: 1; }

/* Corps du document */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 40px) 24px; }
.doc .kicker {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-accent); margin: 0 0 18px;
}
.doc h1 {
  font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -.02em;
  font-weight: 500; margin: 0 0 22px; max-width: 24ch;
}
.doc h2 {
  font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 500;
  margin: 52px 0 16px; padding-top: 26px;
  border-top: 1px solid var(--color-divider);
}
.doc h3 { font-size: 17px; line-height: 1.3; font-weight: 500; margin: 28px 0 10px; }
.doc p { margin: 0 0 14px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.doc strong { color: var(--color-text); font-weight: 500; }
.doc ul { margin: 0 0 16px; padding-left: 20px; }
.doc ul li { margin-bottom: 8px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.doc ul li::marker { color: var(--color-accent-500); }
.doc hr { display: none; }
.doc .meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: 0 0 34px; padding: 0 0 26px;
  border-bottom: 1px solid var(--color-divider);
  font-size: 13.5px; color: color-mix(in srgb, var(--color-text) 58%, transparent);
}
.doc .meta strong { color: color-mix(in srgb, var(--color-text) 78%, transparent); font-weight: 500; }
.doc .lede {
  font-size: 17.5px; line-height: 1.6; max-width: 60ch;
  color: color-mix(in srgb, var(--color-text) 82%, transparent); margin: 0 0 34px;
}
code {
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  border: 1px solid var(--color-neutral-700);
  border-radius: 5px; padding: 1px 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .86em; word-break: break-word;
}
table {
  border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14.5px;
}
th, td {
  border: 1px solid var(--color-neutral-700); padding: 10px 12px; text-align: left;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
th {
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  font-weight: 500; color: var(--color-text);
  font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase;
}

/* Encarts */
.note {
  background: color-mix(in srgb, var(--color-surface) 62%, transparent);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md, 8px);
  padding: 18px 20px; margin: 26px 0;
  font-size: 15px; color: color-mix(in srgb, var(--color-text) 78%, transparent);
}
.note p:last-child { margin-bottom: 0; }
.note strong:first-child { color: var(--color-accent); }

/* Étapes numérotées */
ol.steps { list-style: none; counter-reset: step; margin: 8px 0 0; padding: 0; }
ol.steps > li {
  counter-increment: step; position: relative;
  padding: 20px 0 20px 58px;
  border-bottom: 1px solid var(--color-divider);
}
ol.steps > li:last-child { border-bottom: none; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 18px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-accent-700);
  background: color-mix(in srgb, var(--color-accent-900) 55%, transparent);
  color: var(--color-accent-200);
  border-radius: 50%;
  font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums;
}
ol.steps .step-title { font-weight: 500; margin-bottom: 4px; }
ol.steps .step-detail { font-size: 15px; margin: 0; }

/* Bande de perforations */
.perfs { display: flex; gap: 10px; justify-content: center; padding: 44px 0 4px; }
.perfs i { width: 14px; height: 18px; border-radius: 3px; background: var(--color-neutral-700); display: block; }

/* Pied de page */
.site-foot {
  max-width: 760px; margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 40px) 48px;
  border-top: 1px solid var(--color-divider);
  font-size: 12.5px; line-height: 1.7;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.site-foot p { margin: 0 0 8px; }
.site-foot nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; margin-top: 10px; }
.doc-wide + .site-foot, .site-foot.wide { max-width: 1200px; }

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .site-head .brand em { display: none; }
}
