/* Guide utilisateur — style proche guide Achatbot.eu */
:root {
  --guide-accent: #15803d;
  --guide-accent-dark: #166534;
  --guide-bg: #f8fafc;
  --guide-text: #1e293b;
  --guide-muted: #64748b;
  --guide-border: rgba(15, 23, 42, 0.1);
  --guide-radius: 12px;
  --guide-max: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--guide-text);
  background: #fff;
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--guide-border);
}

.guide-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.guide-logo {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--guide-accent-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.guide-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.guide-nav a {
  color: var(--guide-muted);
  text-decoration: none;
}

.guide-nav a:hover { color: var(--guide-accent); }

.guide-hero {
  background: linear-gradient(180deg, var(--guide-bg) 0%, #fff 100%);
  border-bottom: 1px solid var(--guide-border);
  padding: 2.5rem 1.25rem 2rem;
}

.guide-hero-inner { max-width: var(--guide-max); margin: 0 auto; }

.guide-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--guide-text);
}

.guide-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--guide-muted);
}

.guide-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.guide-toc {
  position: sticky;
  top: 4.5rem;
  background: var(--guide-bg);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius);
  padding: 1rem 1.125rem;
  font-size: 0.8125rem;
}

.guide-toc strong {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--guide-muted);
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.125rem;
}

.guide-toc li { margin: 0.35rem 0; }

.guide-toc-sub {
  margin: 0.25rem 0 0.35rem 1rem;
  padding-left: 0.75rem;
  font-size: 0.8125rem;
  border-left: 2px solid var(--guide-border);
  list-style: none;
  counter-reset: none;
}

.guide-toc-sub li { margin: 0.2rem 0; }

.guide-toc a {
  color: var(--guide-text);
  text-decoration: none;
}

.guide-toc a:hover,
.guide-toc a.is-active {
  color: var(--guide-accent);
  font-weight: 600;
}

.guide-content section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
}

.guide-content h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--guide-accent);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--guide-text);
}

.guide-content h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.guide-content h4 {
  margin: 1rem 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--guide-muted);
}

.guide-content p { margin: 0.75rem 0; }

.guide-content ul,
.guide-content ol {
  margin: 0.75rem 0;
  padding-left: 1.375rem;
}

.guide-content li { margin: 0.35rem 0; }

.guide-callout {
  background: var(--guide-bg);
  border-left: 4px solid var(--guide-accent);
  border-radius: 0 var(--guide-radius) var(--guide-radius) 0;
  padding: 0.875rem 1rem;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.guide-table th,
table.guide-table td {
  border: 1px solid var(--guide-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

table.guide-table th {
  background: var(--guide-accent);
  color: #fff;
  font-weight: 600;
}

table.guide-table tr:nth-child(even) td {
  background: var(--guide-bg);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125em;
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

.guide-faq-item {
  border-bottom: 1px solid var(--guide-border);
  padding: 1rem 0;
}

.guide-faq-item:last-child { border-bottom: 0; }

.guide-faq-item h3 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
}

.guide-glossary dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

.guide-glossary dd {
  margin: 0.25rem 0 0 0;
  color: var(--guide-muted);
  font-size: 0.9375rem;
}

.guide-footer {
  border-top: 1px solid var(--guide-border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--guide-muted);
}

.guide-footer a { color: var(--guide-accent); }
