/* Documentation layout — sidebar + article, cohérent avec la charte du site. */
.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: var(--panel, #0d1f3a);
  border: 1px solid var(--border, #1e2d4a);
  border-radius: 12px;
  padding: 18px;
}
.docs-sidebar-title {
  font-weight: 700;
  color: #fff;
  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, #7e8aa3);
}
.docs-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim, #c2cde0);
  font-size: 0.93rem;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.docs-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.docs-link.active {
  background: linear-gradient(135deg, rgba(51, 231, 197, 0.16), rgba(0, 145, 255, 0.16));
  color: #fff;
  font-weight: 600;
}

.docs-content {
  min-width: 0;
}
.docs-article {
  background: var(--panel, #0d1f3a);
  border: 1px solid var(--border, #1e2d4a);
  border-radius: 12px;
  padding: 36px 44px;
  color: var(--text-dim, #cdd7ea);
  line-height: 1.7;
}
.docs-article h1 {
  font-size: 1.9rem;
  color: #fff;
  margin: 0 0 18px;
}
.docs-article h2 {
  font-size: 1.35rem;
  color: #fff;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #1e2d4a);
}
.docs-article h3 {
  font-size: 1.08rem;
  color: #eaf0fb;
  margin: 24px 0 8px;
}
.docs-article p,
.docs-article li {
  color: var(--text-dim, #cdd7ea);
}
.docs-article a {
  color: var(--accent, #33e7c5);
  text-decoration: none;
}
.docs-article a:hover {
  text-decoration: underline;
}
.docs-article strong {
  color: #fff;
}
.docs-article code {
  background: #0a1124;
  border: 1px solid var(--border, #1e2d4a);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: #7eecd5;
}
.docs-article pre {
  background: #070d1a;
  border: 1px solid var(--border, #1e2d4a);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.5;
}
.docs-article pre code {
  background: none;
  border: none;
  padding: 0;
  color: #b7c7e8;
  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, #1e2d4a);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.docs-article th {
  background: #0a1124;
  color: #fff;
  font-weight: 600;
}
.docs-article blockquote {
  border-left: 3px solid var(--accent, #33e7c5);
  margin: 16px 0;
  padding: 4px 16px;
  background: rgba(51, 231, 197, 0.05);
  border-radius: 0 8px 8px 0;
}
.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, #33e7c5);
  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: var(--panel, #0d1f3a);
  border: 1px solid var(--border, #1e2d4a);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease;
}
.docs-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #33e7c5);
}
.docs-card-icon {
  font-size: 2rem;
}
.docs-card h3 {
  color: #fff;
  margin: 10px 0 6px;
  font-size: 1.05rem;
}
.docs-card p {
  color: var(--text-mute, #8aa0c2);
  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;
  }
}
