.docs-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 8rem;
  align-items: start;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: calc(80px + 2rem); /* under the header */
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.docs-nav-link {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4) !important;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
}

.docs-nav-link:hover {
  color: rgba(0, 0, 0, 0.7) !important;
  background: rgba(0, 0, 0, 0.04);
}

.docs-nav-link.active {
  color: rgba(0, 0, 0, 0.9) !important;
  border-left-color: rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.05);
}

/* Contenu — hauteur stable pour que la sidebar ne bouge pas */
.docs-content {
  min-height: 80vh;
}

/* Sections — une seule visible à la fois */
.docs-section {
  display: none;
}

.docs-section.active {
  display: block;
}

.docs-section h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  line-height: 1.15;
}

.docs-section h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin: 2rem 0 0.75rem;
}

.docs-section p {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.72);
  margin-bottom: 0.75rem;
}

.docs-section ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.docs-section li {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.72);
  margin-bottom: 0.2rem;
}

/* Bloc formulaire rétractation */
.docs-retractation {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.docs-retractation h2 {
  margin-top: 0;
}

/* Footer legal links */
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}

.footer-legal a {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.35) !important;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: rgba(0, 0, 0, 0.65) !important;
}

@media (max-width: 1024px) {
  .footer-legal {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 750px) {
  .docs-page {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
