/* --- Layout global --- */
body.doc-body {
  background: #ffffff;
  font-family: "Inter", sans-serif;
  color: #1f2937;
  margin: 0;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* --- Barre latérale --- */
.doc-sidebar {
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.doc-nav h3 {
  font-size: 1.1rem;
  color: #111827;
  margin-bottom: 1em;
}

.doc-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.doc-nav a {
  display: block;
  padding: 6px 0;
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
}

.doc-nav a:hover {
  background: #e0e7ff;
  color: #1e40af;
  padding-left: 6px;
  transition: all 0.2s;
}

/* --- Contenu principal --- */
.doc-main {
  padding: 40px;
  max-width: 900px;
  margin: auto;
}

.doc-main h1, .doc-main h2, .doc-main h3 {
  color: #111827;
  margin-top: 1.5em;
}

.doc-main img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.doc-main a {
  color: #2563eb;
}

.doc-main pre, .doc-main code {
  background: #0b1020;
  color: #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  overflow-x: auto;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}
/* --- Suppression du point bleu (ancre Gutenberg / WordPress) --- */
.doc-main h1::before,
.doc-main h2::before,
.doc-main h3::before,
.doc-main h4::before,
.doc-main h5::before,
.doc-main h6::before {
  content: none !important;
  display: none !important;
}

.doc-main h1::after,
.doc-main h2::after,
.doc-main h3::after,
.doc-main h4::after,
.doc-main h5::after,
.doc-main h6::after {
  content: none !important;
  display: none !important;
}
/* Supprime les marqueurs/points ajoutés aux titres par le thème */
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after,
h1::before, h2::before, h3::before, h4::before, h5::before, h6::before,
.entry-content h1::after, .entry-content h2::after, .entry-content h3::after, 
.entry-content h4::after, .entry-content h5::after, .entry-content h6::after,
.entry-content h1::before, .entry-content h2::before, .entry-content h3::before, 
.entry-content h4::before, .entry-content h5::before, .entry-content h6::before,
.wp-block-post-content h1::after, .wp-block-post-content h2::after, .wp-block-post-content h3::after, 
.wp-block-post-content h4::after, .wp-block-post-content h5::after, .wp-block-post-content h6::after,
.wp-block-post-content h1::before, .wp-block-post-content h2::before, .wp-block-post-content h3::before, 
.wp-block-post-content h4::before, .wp-block-post-content h5::before, .wp-block-post-content h6::before,
.wp-block-heading::after, .wp-block-heading::before {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
