/* Protection contre le défilement horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Adaptation du thème */
.bg-light {
  background-color: var(--light) !important;
  color: var(--text-primary) !important;
}

/* Typographie juridique */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Listes */
ul, ol {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Sections numérotées */
.article-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(var(--text-primary), 0.1);
}

.article-section:last-child {
  border-bottom: none;
}

.article-number {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Table responsive */
.table-responsive {
  margin-bottom: 2rem;
}

.table {
  color: var(--text-primary);
  border-color: rgba(var(--text-primary), 0.1);
}

.table thead {
  background: var(--light);
  border-bottom: 2px solid rgba(var(--text-primary), 0.15);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(var(--primary), 0.03);
}

/* Emphase */
strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Date de mise à jour */
.update-date {
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.8;
}