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

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

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

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

.table thead {
  background: var(--gradient-dark);
  border-bottom: 2px solid var(--accent);
  color: var(--text-primary);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.05));
}

/* Styles pour les sections */
h1 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  color: var(--accent);
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

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

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

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

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

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

li {
  margin-bottom: 0.5rem;
}

.last-update {
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.highlight-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.25rem;
}