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

/* Adaptation pour site sombre */
.bg-light {
  background-color: var(--dark-lighter) !important;
  color: var(--text-primary) !important;
}

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

.table-dark {
  --bs-table-bg: var(--dark-card);
  --bs-table-striped-bg: var(--dark-lighter);
  --bs-table-border-color: var(--border-color);
}

.table thead {
  background: var(--dark-card);
  border-bottom: 2px solid var(--border-color);
}

/* 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-secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--dark-card);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.section-divider {
  height: 1px;
  background: var(--border-color);
  margin: 3rem 0;
}

.emergency-contact {
  background: var(--dark-card);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  border: 2px solid var(--primary);
}

.emergency-contact h3 {
  color: var(--primary);
  margin-top: 0;
}

.emergency-contact p {
  margin-bottom: 0.5rem;
}

.emergency-contact strong {
  color: var(--text-primary);
}