/* Documentation Zolaa — HTML statique (public/help/html/) */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --radius: 12px;
  --shadow: 0 1px 3px rgb(15 23 42 / 8%);
  --max: 56rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
}

.doc-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.doc-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doc-brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: inherit;
  text-decoration: none;
}
.doc-brand:hover {
  text-decoration: underline;
}

.doc-header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
}
.doc-header-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.doc-header-links a:hover {
  text-decoration: underline;
}

.doc-layout {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .doc-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.doc-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .doc-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

.doc-sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.doc-nav a {
  display: block;
  padding: 0.35rem 0.5rem;
  margin: 0.15rem 0;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.doc-nav a:hover {
  background: #f1f5f9;
}
.doc-nav a[aria-current="page"] {
  background: #e0f2fe;
  color: var(--brand-dark);
  font-weight: 600;
}

.doc-nav .nav-group {
  margin-top: 1rem;
}
.doc-nav .nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.doc-main {
  min-width: 0;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.doc-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

.doc-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.doc-meta code {
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8em;
}

.doc-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #e0f2fe;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.doc-lead {
  font-size: 1.05rem;
  color: #334155;
  margin: 0 0 1.5rem;
}

.doc-block {
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.doc-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.doc-block h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.doc-block .desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Liste « point par point » sous chaque capture (alignée avec /help) */
.doc-points {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--brand);
  background: #f8fafc;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.doc-points .doc-points-label {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-points ol {
  margin: 0;
  padding-left: 1.25rem;
}
.doc-points li {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.doc-shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f172a;
}
.doc-shot figcaption {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  background: #1e293b;
}

.doc-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.doc-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.doc-steps li {
  position: relative;
  padding: 0.75rem 0 0.75rem 3rem;
  border-bottom: 1px solid var(--border);
}
.doc-steps li:last-child {
  border-bottom: 0;
}
.doc-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
}

.doc-tips {
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.doc-tips h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.doc-tips ul {
  margin: 0;
  padding-left: 1.25rem;
}
.doc-tips li {
  margin: 0.35rem 0;
}

.doc-footer {
  max-width: 72rem;
  margin: 2rem auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
.doc-footer a {
  color: var(--brand);
}

.toc-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .toc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.toc-card {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.toc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(15 23 42 / 10%);
}
.toc-card strong {
  display: block;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}
.toc-card span {
  font-size: 0.875rem;
  color: var(--muted);
}

.faq-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--brand-dark);
}
.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
}

@media print {
  .doc-sidebar,
  .doc-header-links {
    display: none;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
}
