/* Documentation — sidebar + article. Charte « Coffre suisse » (clair, rouge/graphite). */
.docs-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--border, #e7e7ea);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(20, 22, 28, 0.05));
}
.docs-sidebar-title {
  font-weight: 700;
  color: var(--ink, #1e232b);
  margin-bottom: 12px;
}
.docs-sidebar-label {
  margin: 16px 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute, #98a0aa);
}
.docs-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim, #677079);
  font-size: 0.93rem;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.docs-link:hover {
  background: var(--bg-3, #eef0f3);
  color: var(--ink, #1e232b);
}
.docs-link.active {
  background: rgba(228, 0, 43, 0.08);
  color: var(--accent, #e4002b);
  font-weight: 600;
}

.docs-content {
  min-width: 0;
}
.docs-article {
  background: #fff;
  border: 1px solid var(--border, #e7e7ea);
  border-radius: 12px;
  padding: 36px 44px;
  color: var(--text, #3d434d);
  line-height: 1.7;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(20, 22, 28, 0.05));
}
.docs-article h1,
.docs-article h2,
.docs-article h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--ink, #1e232b);
  letter-spacing: -0.01em;
}
.docs-article h1 {
  font-size: 1.9rem;
  margin: 0 0 18px;
}
.docs-article h2 {
  font-size: 1.4rem;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #e7e7ea);
}
.docs-article h3 {
  font-size: 1.12rem;
  margin: 24px 0 8px;
}
.docs-article p,
.docs-article li {
  color: var(--text, #3d434d);
}
.docs-article a {
  color: var(--accent, #e4002b);
  text-decoration: none;
}
.docs-article a:hover {
  text-decoration: underline;
}
.docs-article strong {
  color: var(--ink, #1e232b);
  font-weight: 600;
}
/* Code en ligne : pastille claire, lisible sur fond blanc. */
.docs-article code {
  background: var(--bg-3, #eef0f3);
  border: 1px solid var(--border, #e7e7ea);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: #1e232b;
}
/* Blocs de commande : sombres (terminal), sur la page claire. */
.docs-article pre {
  background: #14181f;
  border: 1px solid #232a33;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.55;
}
.docs-article pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d6dde6;
  font-size: 0.82rem;
}
.docs-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.docs-article th,
.docs-article td {
  border: 1px solid var(--border, #e7e7ea);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.docs-article th {
  background: var(--bg-2, #f5f6f8);
  color: var(--ink, #1e232b);
  font-weight: 700;
}
.docs-article blockquote {
  border-left: 3px solid var(--accent, #e4002b);
  margin: 16px 0;
  padding: 8px 16px;
  background: rgba(228, 0, 43, 0.05);
  border-radius: 0 8px 8px 0;
  color: var(--text, #3d434d);
}
.docs-article ul,
.docs-article ol {
  padding-left: 22px;
}
.docs-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 4px;
}
.docs-foot a {
  color: var(--accent, #e4002b);
  text-decoration: none;
}

/* Hub cards */
.docs-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.docs-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border, #e7e7ea);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(20, 22, 28, 0.05));
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.docs-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #e4002b);
  box-shadow: var(--shadow, 0 4px 16px rgba(20, 22, 28, 0.08));
}
.docs-card-icon {
  font-size: 2rem;
}
.docs-card h3 {
  color: var(--ink, #1e232b);
  margin: 10px 0 6px;
  font-size: 1.05rem;
}
.docs-card p {
  color: var(--text-mute, #98a0aa);
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 880px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
  }
  .docs-article {
    padding: 24px 20px;
  }
}
