/* ==================== STATISTIQUES ==================== */
.statistics-container {
  padding: 2rem;
}

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-header h2 {
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  font-size: 2.2rem;
}

.stats-header p {
  margin: 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.stat-card.full-width {
  grid-column: 1 / -1;
}

.stat-card h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text-dark);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.stat-content p {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.stat-content strong {
  color: var(--text-dark);
}

.stat-content h4 {
  margin: 1rem 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.stat-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.stat-content li {
  margin-bottom: 0.5rem;
}

.coming-soon {
  font-style: italic;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 1rem;
}

.stats-actions {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

/* ==================== BOUTONS ==================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 0.5rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #8b5406;
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background: #1e2832;
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .gedcom-container {
    padding: 0 0.5rem;
  }
  
  .upload-area {
    margin: 1rem;
    padding: 2rem 1rem;
  }
  
  .file-info,
  .tool-selection,
  .statistics-container {
    padding: 1rem;
  }
  
  .tool-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Configuration globale responsive */
  .global-config .config-section {
    padding: 1rem 1.5rem;
  }
  
  .config-control {
    padding: 0.5rem;
    align-items: flex-start;
  }
  
  .config-label {
    font-size: 0.95rem;
  }
  
  .config-description {
    font-size: 0.85rem;
  }
  
  .btn {
    margin: 0.25rem;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .century-selector {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .century-dropdown {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .upload-content .upload-icon {
    font-size: 3rem;
  }
  
  .upload-content h3 {
    font-size: 1.2rem;
  }
  
  .stats-header h2 {
    font-size: 1.8rem;
  }
  
  .tool-icon {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
}

/* ==================== ANIMATIONS REMOVED FOR PERFORMANCE ==================== */

/* ==================== INTERFACE STATISTIQUES AVANCÉE ==================== */
.advanced-statistics-container {
  padding: 0;
}


/* Configuration globale */
.global-config {
  background: #f8f9fa;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.global-config .config-section {
  padding: 1.5rem 2rem;
}

.global-config h3 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.config-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.config-control {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  transition: var(--transition);
}

.config-control:hover {
  background: #f8f9fa;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.config-checkbox {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}

.config-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}

.config-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  line-height: 1.3;
  display: block;
}

/* Navigation par onglets */
.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 1rem 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  position: relative;
}

.tab-btn:hover {
  background: rgba(167, 97, 7, 0.1);
  color: var(--primary-color);
}

.tab-btn.active {
  background: white;
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

/* Contenu des onglets */
.tab-content {
  display: none;
  padding: 2rem;
  background: white;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  min-height: 500px;
}

.tab-content.active {
  display: block;
}

.tab-section h2 {
  margin: 0 0 2rem 0;
  color: var(--text-dark);
  font-size: 1.8rem;
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1rem;
}

/* Actions avancées */
.advanced-stats-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-top: 2rem;
}

/* Vue d'ensemble */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.overview-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.overview-card.primary { background: var(--primary-color); color: white; }
.overview-card.secondary { background: var(--secondary-color); color: white; }
.overview-card.success { background: var(--success-color); color: white; }
.overview-card.warning { background: var(--warning-color); color: white; }

.card-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  opacity: 0.9;
}

.card-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-label {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Détails de la vue d'ensemble */
.overview-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.detail-section {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.detail-section h3 {
  margin: 0 0 1rem 0;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.period-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.period-range {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

.period-span {
  color: var(--text-light);
  font-style: italic;
}

.completeness-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.completeness-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.completeness-item span:first-child {
  min-width: 150px;
  font-weight: 500;
}

.completeness-item span:last-child {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

.progress-bar {
  flex: 1;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 6px;
}

/* Longévité */
.longevity-summary {
  margin-bottom: 3rem;
}

.avg-ages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.avg-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary-color);
}

.avg-card.male {
  border-top-color: #3498db;
}

.avg-card.female {
  border-top-color: #e91e63;
}

.avg-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.avg-card.male .avg-number {
  color: #3498db;
}

.avg-card.female .avg-number {
  color: #e91e63;
}

.avg-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.longevity-records {
  margin-bottom: 3rem;
}

.longevity-records h3 {
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-dark);
}

.longevity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.longevity-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border-left: 4px solid var(--border-color);
}

.longevity-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-light);
}

.longevity-item.podium {
  background: #fff9e6;
  border-left-color: #f39c12;
}

.rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
  margin-right: 1rem;
}

.person-info {
  flex: 1;
}

.person-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.person-details {
  font-size: 0.9rem;
  color: var(--text-light);
}

.age-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  min-width: 80px;
  text-align: center;
}

.age-badge.m {
  background: #3498db;
}

.age-badge.f {
  background: #e91e63;
}

.age-badge:not(.m):not(.f) {
  background: #95a5a6;
}

/* Centenaires */
.centenarians {
  margin-top: 3rem;
}

.centenarians h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--success-color);
}

.centenarians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.centenarian-card {
  text-align: center;
  padding: 1.5rem;
  background: #e8f5e8;
  border-radius: var(--border-radius);
  border: 2px solid var(--success-color);
}

.centenarian-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.centenarian-age {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
}

/* Démographie */
.demographics-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.gender-distribution h3,
.age-analysis h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: center;
}

.gender-stats {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.gender-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  flex: 1;
  transition: var(--transition);
}

.gender-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.gender-item.male {
  background: #e3f2fd;
  border: 2px solid #2196f3;
}

.gender-item.female {
  background: #fce4ec;
  border: 2px solid #e91e63;
}

.gender-item.unknown {
  background: #f5f5f5;
  border: 2px solid #9e9e9e;
}

.gender-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gender-count {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gender-item.male .gender-count {
  color: #2196f3;
}

.gender-item.female .gender-count {
  color: #e91e63;
}

.gender-item.unknown .gender-count {
  color: #9e9e9e;
}

.gender-percentage {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gender-label {
  font-weight: 500;
  color: var(--text-dark);
}

.age-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.age-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-top: 3px solid var(--primary-color);
}

.age-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.age-label {
  font-weight: 500;
  color: var(--text-light);
}

/* Distribution des tranches d'âge */
.age-distribution-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.age-dist-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.age-dist-label {
  min-width: 80px;
  font-weight: 600;
  color: var(--text-dark);
}

.age-dist-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.age-dist-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
  position: relative;
}

.age-dist-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 80px;
}

.age-dist-values .count {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.age-dist-values .percent {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* Âge au mariage */
.marriage-age-container {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

/* Analyse des naissances */
.birth-analysis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.birth-centuries {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--info-color);
}

.birth-centuries h3 {
  margin: 0 0 1.5rem 0;
  color: var(--info-color);
  text-align: center;
}

.centuries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.century-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-top: 3px solid var(--info-color);
}

.century-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.century-number {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.century-count {
  color: var(--info-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.century-percentage {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Analyse de mortalité */
.mortality-analysis {
  margin-top: 3rem;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--error-color);
}

.mortality-analysis h3 {
  margin: 0 0 2rem 0;
  color: var(--error-color);
  text-align: center;
}

.age-ranges-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.age-range-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: var(--border-radius);
}

.age-range-label {
  min-width: 80px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.age-range-bar {
  flex: 1;
  height: 16px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.age-range-fill {
  height: 100%;
  background: var(--error-color);
  border-radius: 8px;
}

.age-range-count {
  min-width: 100px;
  text-align: right;
  font-weight: 600;
  color: var(--error-color);
  font-size: 0.9rem;
}

/* Graphiques de décennies */
.birth-decades,
.decades-analysis {
  margin-top: 3rem;
}

.birth-decades h3,
.decades-analysis h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Sélecteur de siècle */
.century-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
}

.century-selector label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.century-dropdown {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: white;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-width: 150px;
}

.century-dropdown:hover {
  border-color: var(--primary-color);
}

.century-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(167, 97, 7, 0.1);
}

.century-dropdown option {
  padding: 0.5rem;
  background: white;
  color: var(--text-dark);
}

.decades-chart,
.decades-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.decade-item,
.decade-timeline-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.decade-label,
.decade-year {
  min-width: 80px;
  font-weight: 600;
  color: var(--text-dark);
}

.decade-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.decade-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
}

.decade-count {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

.decade-events {
  flex: 1;
}

.event-breakdown {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.event-breakdown span {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background: var(--bg-light);
  font-weight: 500;
}

.event-breakdown .births {
  background: #e8f5e8;
  color: #27ae60;
}

.event-breakdown .marriages {
  background: #fff3e0;
  color: #f39c12;
}

.event-breakdown .deaths {
  background: #fce4ec;
  color: #e91e63;
}

.event-breakdown .burials {
  background: #f3e5f5;
  color: #9c27b0;
}

.event-breakdown .baptisms {
  background: #e3f2fd;
  color: #2196f3;
}

.total-events {
  font-weight: 600;
  color: var(--text-dark);
}

/* Familles */
.family-overview {
  margin-bottom: 3rem;
}

.family-stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.family-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
}

.family-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.families-with-most-children {
  margin-bottom: 3rem;
}

.families-ranking {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.family-rank-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
  transition: var(--transition);
  border-left: 4px solid var(--border-color);
}

.family-rank-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-light);
}

.family-rank-item.podium {
  background: #fff9e6;
  border-left-color: #f39c12;
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
}

.family-info {
  flex: 1;
}

.parents-names {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.husband {
  color: #2196f3;
}

.wife {
  color: #e91e63;
}

.separator {
  color: var(--text-light);
}

.marriage-date {
  font-size: 0.9rem;
  color: var(--text-light);
}

.children-count {
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  border: 2px solid var(--primary-color);
}

.children-distribution {
  margin-top: 3rem;
}

.distribution-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.distribution-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.distribution-label {
  min-width: 120px;
  font-weight: 600;
  color: var(--text-dark);
}

.distribution-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.distribution-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
}

.distribution-count {
  min-width: 100px;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

/* Géographie */
.geography-overview {
  margin-bottom: 3rem;
}

.geo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.geo-stat {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-weight: 500;
  color: var(--text-light);
}

.top-places {
  margin-bottom: 3rem;
}

.places-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.place-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
  transition: var(--transition);
  border-left: 4px solid var(--border-color);
}

.place-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-light);
}

.place-item.top-place {
  background: #fff9e6;
  border-left-color: #f39c12;
}

.place-rank {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 30px;
  text-align: center;
}

.place-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-dark);
}

.place-count {
  font-weight: 500;
  color: var(--text-light);
}

.countries-analysis {
  margin-top: 3rem;
}

.countries-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.country-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.country-name {
  min-width: 120px;
  font-weight: 600;
  color: var(--text-dark);
}

.country-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.country-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
}

.country-count {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

/* Régions */
.regions-analysis {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.regions-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.region-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.region-name {
  min-width: 120px;
  font-weight: 600;
  color: var(--text-dark);
}

.region-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.region-fill {
  height: 100%;
  background: var(--secondary-color);
  border-radius: 10px;
}

.region-count {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--secondary-color);
}

/* Départements */
.departments-analysis {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.departments-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.department-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.department-name {
  min-width: 120px;
  font-weight: 600;
  color: var(--text-dark);
}

.department-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.department-fill {
  height: 100%;
  background: var(--success-color);
  border-radius: 10px;
}

.department-count {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--success-color);
}

/* Villes */
.towns-analysis {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.towns-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.town-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.town-name {
  min-width: 120px;
  font-weight: 600;
  color: var(--text-dark);
}

.town-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.town-fill {
  height: 100%;
  background: var(--error-color);
  border-radius: 10px;
}

.town-count {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--error-color);
}

/* Lieux-dits */
.subdivisions-analysis {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.subdivisions-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subdivision-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.subdivision-name {
  min-width: 120px;
  font-weight: 600;
  color: var(--text-dark);
}

.subdivision-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.subdivision-fill {
  height: 100%;
  background: var(--warning-color);
  border-radius: 10px;
}

.subdivision-count {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--warning-color);
}

/* Chronologie */
.timeline-overview {
  margin-bottom: 3rem;
}

.timeline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.timeline-stat {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary-color);
}

.events-by-type {
  margin-bottom: 3rem;
}

.events-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-type-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
}

.event-type-name {
  min-width: 150px;
  font-weight: 600;
  color: var(--text-dark);
}

.event-type-bar {
  flex: 1;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.event-type-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 10px;
}

.event-type-count {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

/* Records */
.records-categories {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.records-category {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
}

.records-category h3 {
  margin: 0 0 2rem 0;
  color: var(--text-dark);
  font-size: 1.4rem;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.record-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  gap: 1.5rem;
  background: white;
  border: 2px solid transparent;
}

.record-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Records de longévité */
.record-card.longevity.male {
  border-color: #2196f3;
  background: #e3f2fd;
}

.record-card.longevity.female {
  border-color: #e91e63;
  background: #fce4ec;
}

/* Records de naissance */
.record-card.birth.oldest {
  border-color: #8bc34a;
  background: #e8f5e8;
}

.record-card.birth.newest {
  border-color: #ff9800;
  background: #fff3e0;
}

/* Records de mariage */
.record-card.marriage.young {
  border-color: #ff5722;
  background: #ffebee;
}

.record-card.marriage.old {
  border-color: #795548;
  background: #efebe9;
}

.record-card.marriage.long {
  border-color: #e91e63;
  background: #fce4ec;
}

.record-card.marriage.multiple {
  border-color: #9c27b0;
  background: #f3e5f5;
}

/* Records chronologiques */
.record-card.chronological.early {
  border-color: #607d8b;
  background: #eceff1;
}

.record-card.chronological.late {
  border-color: #3f51b5;
  background: #e8eaf6;
}

/* Records de famille */
.record-card.family.prolific {
  border-color: #4caf50;
  background: #e8f5e8;
}

.record-card.family.old-parent {
  border-color: #795548;
  background: #efebe9;
}

.record-card.family.young-parent {
  border-color: #ff9800;
  background: #fff3e0;
}

/* Records d'écarts et extrêmes */
.record-card.extreme.young-death {
  border-color: #f44336;
  background: #ffebee;
}

.record-card.extreme.age-gap {
  border-color: #9c27b0;
  background: #f3e5f5;
}

.record-card.extreme.traveler {
  border-color: #00bcd4;
  background: #e0f2f1;
}

.record-card.extreme.widowhood {
  border-color: #607d8b;
  background: #eceff1;
}

.record-card.extreme.sibling-gap {
  border-color: #ff5722;
  background: #ffebee;
}

.record-card.extreme.generations {
  border-color: #8bc34a;
  background: #e8f5e8;
}

.record-icon {
  font-size: 2.5rem;
  opacity: 0.8;
  min-width: 60px;
  text-align: center;
}

.record-content {
  flex: 1;
}

.record-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.record-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.record-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.records-explanation {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--info-color);
}

.records-explanation h3 {
  margin: 0 0 1rem 0;
  color: var(--info-color);
}

.records-explanation p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* Noms */
.names-overview {
  margin-bottom: 3rem;
}

.names-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.names-stat {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary-color);
}

.surnames-analysis {
  margin-bottom: 3rem;
}

.surnames-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.surname-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  gap: 1rem;
  transition: var(--transition);
  border-left: 4px solid var(--border-color);
}

.surname-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-light);
}

.surname-item.top-surname {
  background: #fff9e6;
  border-left-color: #f39c12;
}

.surname-rank {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 30px;
  text-align: center;
}

.surname-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.surname-count {
  font-weight: 500;
  color: var(--text-light);
}

.given-names-analysis {
  margin-top: 3rem;
}

.given-names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.male-names,
.female-names {
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--bg-light);
}

.male-names {
  border-left: 4px solid #2196f3;
}

.female-names {
  border-left: 4px solid #e91e63;
}

.male-names h3 {
  color: #2196f3;
  margin-bottom: 1.5rem;
  text-align: center;
}

.female-names h3 {
  color: #e91e63;
  margin-bottom: 1.5rem;
  text-align: center;
}

.names-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.name-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  gap: 1rem;
  transition: var(--transition);
}

.name-item:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-light);
}

.name-item.male {
  border-left: 3px solid #2196f3;
}

.name-item.female {
  border-left: 3px solid #e91e63;
}

.name-rank {
  font-weight: 700;
  color: var(--primary-color);
  min-width: 25px;
  text-align: center;
  font-size: 0.9rem;
}

.name-text {
  flex: 1;
  font-weight: 600;
  color: var(--text-dark);
}

.name-count {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Prénoms rares */
.rare-names-analysis {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.rare-names-analysis h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.name-item.rare {
  background: #fafafa;
  border-left-color: #9e9e9e;
  border-left-style: dashed;
}

.name-item.male.rare {
  border-left-color: #81c784;
}

.name-item.female.rare {
  border-left-color: #f48fb1;
}

.names-list.rare .name-count {
  color: #9e9e9e;
  font-style: italic;
}


/* Relations */
.relationships-overview {
  margin-bottom: 3rem;
}

.relationship-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.relationship-stat {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary-color);
}

.relationship-categories {
  margin-bottom: 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-item {
  display: flex;
  align-items: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  gap: 1.5rem;
  transition: var(--transition);
}

.category-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.category-item.orphans {
  background: #fff3e0;
  border: 2px solid #ff9800;
}

.category-item.childless {
  background: #fce4ec;
  border: 2px solid #e91e63;
}

.category-item.unmarried {
  background: #e8eaf6;
  border: 2px solid #3f51b5;
}

.category-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.category-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.category-percentage {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.category-label {
  font-weight: 500;
  color: var(--text-dark);
}

.relationships-explanation {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--info-color);
}

.relationships-explanation h3 {
  margin: 0 0 1rem 0;
  color: var(--info-color);
}

.relationships-explanation p {
  margin: 0 0 1rem 0;
  color: var(--text-light);
  line-height: 1.6;
}

.relationships-explanation ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-light);
}

.relationships-explanation li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.relationships-explanation strong {
  color: var(--text-dark);
}

/* ==================== SECTION AVANTAGES ==================== */
.seo-content {
  background: #f5f7fa;
  padding: 4rem 0;
}

.advantages-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.advantages-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin: 0 0 3rem 0;
  font-weight: 700;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.advantage-item {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.advantage-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(167, 97, 7, 0.05);
  transform: rotate(45deg);
  transition: var(--transition);
  opacity: 0;
}

.advantage-item:hover::before {
  opacity: 1;
}

.advantage-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-top-color: #c87f0a;
}

.advantage-item h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0 0 1.5rem 0;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.advantage-item p {
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

/* Animation shimmer */

/* Variantes de couleurs pour chaque avantage */
.advantage-item:nth-child(1) {
  border-top-color: var(--primary-color);
}

.advantage-item:nth-child(1):hover {
  border-top-color: #c87f0a;
}

.advantage-item:nth-child(2) {
  border-top-color: var(--success-color);
}

.advantage-item:nth-child(2):hover {
  border-top-color: #2ecc71;
}

.advantage-item:nth-child(2) h3 {
  color: var(--success-color);
}

.advantage-item:nth-child(3) {
  border-top-color: var(--info-color);
}

.advantage-item:nth-child(3):hover {
  border-top-color: #2980b9;
}

.advantage-item:nth-child(3) h3 {
  color: var(--info-color);
}

.advantage-item:nth-child(4) {
  border-top-color: var(--warning-color);
}

.advantage-item:nth-child(4):hover {
  border-top-color: #e67e22;
}

.advantage-item:nth-child(4) h3 {
  color: var(--warning-color);
}

/* ==================== DÉMOGRAPHIE AVANCÉE ==================== */

/* Navigation des sections démographiques */
.demographics-nav {
  display: flex;
  background: var(--bg-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 0;
}

.demo-nav-btn {
  flex: 1;
  padding: 1rem 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  text-align: center;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.demo-nav-btn:hover {
  background: rgba(167, 97, 7, 0.1);
  color: var(--primary-color);
}

.demo-nav-btn.active {
  background: white;
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.demo-nav-btn .nav-icon {
  font-size: 1.2rem;
  opacity: 0.8;
}

.demo-nav-btn .nav-text {
  font-size: 0.8rem;
}

/* Sections démographiques */
.demo-section {
  display: none;
  padding: 2rem;
  background: white;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  min-height: 600px;
}

.demo-section.active {
  display: block;
}

.demo-section h3 {
  margin: 3rem 0 2rem 0;
  color: var(--text-dark);
  font-size: 1.6rem;
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1rem;
}

.demo-section h3:first-child {
  margin-top: 0;
}

/* Espacement spécifique pour les containers de sections */
.age-pyramid-container,
.age-distribution-container,
.seasonality-analysis,
.marriage-age-container,
.infant-mortality-container,
.life-expectancy-container,
.masculinity-container,
.generation-interval-container,
.variation-coefficient-container {
  margin-bottom: 5rem;
}

.age-pyramid-container:last-child,
.age-distribution-container:last-child,
.seasonality-analysis:last-child,
.marriage-age-container:last-child,
.infant-mortality-container:last-child,
.life-expectancy-container:last-child,
.masculinity-container:last-child,
.generation-interval-container:last-child,
.variation-coefficient-container:last-child {
  margin-bottom: 0;
}

/* Espacement des éléments internes */
.pyramid-chart,
.seasonality-analysis,
.marriage-stats,
.mortality-stats,
.life-expectancy,
.historical-indicators > div {
  margin-bottom: 2rem;
}

.historical-indicators > div:last-child {
  margin-bottom: 0;
}

/* Pyramide des âges */
.pyramid-chart {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--border-color);
}

.pyramid-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1rem;
}

.pyramid-header {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--text-dark);
}

.pyramid-header-male {
  text-align: right;
  color: #2196f3;
}

.pyramid-header-age {
  text-align: center;
  color: var(--primary-color);
}

.pyramid-header-female {
  text-align: left;
  color: #e91e63;
}

.pyramid-bars {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.pyramid-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 1rem;
  height: 35px;
  padding: 0.25rem 0;
  background: white;
  border-radius: 4px;
  margin-bottom: 2px;
}

.pyramid-row > div:first-child {
  display: flex;
  justify-content: flex-end;
}

.pyramid-row > div:last-child {
  display: flex;
  justify-content: flex-start;
}

.pyramid-bar-male,
.pyramid-bar-female {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pyramid-bar-male {
  background: #2196f3;
  justify-content: flex-end;
  padding-right: 12px;
  text-align: right;
  border-radius: 6px 3px 3px 6px;
  display: flex;
  align-items: center;
}

.pyramid-bar-female {
  background: #e91e63;
  justify-content: flex-start;
  padding-left: 12px;
  text-align: left;
  border-radius: 3px 6px 6px 3px;
  display: flex;
  align-items: center;
}

.pyramid-bar-male:hover,
.pyramid-bar-female:hover {
  transform: scaleY(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pyramid-age-label {
  text-align: center;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pyramid-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.legend-color-male {
  width: 20px;
  height: 15px;
  background: #2196f3;
  border-radius: 3px;
}

.legend-color-female {
  width: 20px;
  height: 15px;
  background: #e91e63;
  border-radius: 3px;
}

/* Saisonnalité des naissances */
.seasonality-analysis {
  max-width: 1000px;
  margin: 0 auto;
}

.quarters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.quarter-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.quarter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  transition: var(--transition);
}

.quarter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.quarter-card.spring::before { background: #4caf50; }
.quarter-card.summer::before { background: #ff9800; }
.quarter-card.autumn::before { background: #ff5722; }
.quarter-card.winter::before { background: #2196f3; }

.quarter-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quarter-card.spring .quarter-name { color: #4caf50; }
.quarter-card.summer .quarter-name { color: #ff9800; }
.quarter-card.autumn .quarter-name { color: #ff5722; }
.quarter-card.winter .quarter-name { color: #2196f3; }

.quarter-count {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.quarter-card.spring .quarter-count { color: #4caf50; }
.quarter-card.summer .quarter-count { color: #ff9800; }
.quarter-card.autumn .quarter-count { color: #ff5722; }
.quarter-card.winter .quarter-count { color: #2196f3; }

.quarter-percentage {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 600;
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 0.5rem;
}

.quarter-months {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.7);
  border-radius: var(--border-radius);
  line-height: 1.4;
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.month-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.month-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.month-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.month-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.month-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.month-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
}

/* Statistiques de mariage */
.marriage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.marriage-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.marriage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  transition: var(--transition);
}

.marriage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.marriage-card.male::before { 
  background: #2196f3;
}
.marriage-card.female::before { 
  background: #e91e63;
}
.marriage-card.general::before { 
  background: var(--primary-color);
}

.marriage-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.marriage-card.male .marriage-title { color: #2196f3; }
.marriage-card.female .marriage-title { color: #e91e63; }
.marriage-card.general .marriage-title { color: var(--primary-color); }

.marriage-value {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.marriage-card.male .marriage-value { color: #2196f3; }
.marriage-card.female .marriage-value { color: #e91e63; }
.marriage-card.general .marriage-value { color: var(--primary-color); }

.marriage-label {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.marriage-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--bg-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
}

.marriage-stat {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.marriage-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.marriage-stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* Mortalité */
.mortality-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.mortality-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.mortality-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--error-color);
  transition: var(--transition);
}

.mortality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.mortality-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--error-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mortality-rate {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--error-color);
  margin-bottom: 0.5rem;
  display: block;
}

.mortality-description {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.mortality-breakdown {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--bg-light);
  display: grid;
  gap: 0.75rem;
}

.mortality-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.mortality-item span:first-child {
  color: var(--text-dark);
  font-weight: 600;
}

.mortality-item span:last-child {
  font-weight: 700;
  color: var(--error-color);
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.9rem;
}

/* Espérance de vie */
.life-expectancy {
  margin-bottom: 4rem;
}

.cohorts-chart {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--border-color);
}

.cohorts-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--success-color);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cohorts-header {
  display: grid;
  grid-template-columns: 120px 1fr 120px 100px;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  border-bottom: 3px solid var(--success-color);
}

.cohort-item {
  display: grid;
  grid-template-columns: 120px 1fr 120px 100px;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.cohort-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-light);
  border-left-color: var(--success-color);
  background: white;
}

.cohort-period {
  font-weight: 700;
  color: white;
  text-align: center;
  background: var(--success-color);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cohort-bar {
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.cohort-fill {
  height: 100%;
  background: var(--success-color);
  border-radius: 12px;
  position: relative;
}

.cohort-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.3);
}


.cohort-value {
  text-align: center;
  font-weight: 700;
  color: var(--success-color);
  font-size: 1.1rem;
  background: white;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cohort-count {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  background: white;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Indicateurs historiques */
.historical-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

/* Indice de masculinité */
.masculinity-chart {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-heavy);
  border: 3px solid var(--info-color);
  position: relative;
  overflow: hidden;
}

.masculinity-chart::before {
  content: '⚥';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  color: var(--info-color);
  opacity: 0.3;
}

.masculinity-chart h4 {
  margin: 0 0 3rem 0;
  color: var(--info-color);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

/* Section des éléments de masculinité - affichage horizontal */ 
.masculinity-chart {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-heavy);
  border: 3px solid var(--info-color);
  position: relative;
  overflow: hidden;
}

.masculinity-chart::before {
  content: '⚥';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--info-color);
  opacity: 0.3;
}

/* Container pour les items - disposition horizontale */
.masculinity-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.masculinity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--info-color);
  margin-bottom: 0.8rem;
}

.masculinity-item:last-child {
  margin-bottom: 0;
}

.masculinity-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
  border-left-width: 6px;
}

/* Étiquette du siècle */
.century-label {
  font-weight: 700;
  color: var(--info-color);
  font-size: 1.1rem;
  min-width: 140px;
  text-align: left;
  flex-shrink: 0;
}

/* Container des statistiques */
.masculinity-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-grow: 1;
  justify-content: space-between;
}

/* Compteurs par genre */
.gender-counts {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.male-count, .female-count {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.2);
  color: var(--info-color);
}

/* Indice de masculinité - valeur principale */
.masculinity-index {
  font-weight: 800;
  font-size: 1.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  min-width: 60px;
  text-align: center;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.masculinity-index.normal {
  background: #4caf50;
}

.masculinity-index.high {
  background: #ff9800;
}

.masculinity-index.low {
  background: #2196f3;
}

/* Total count */
.total-count {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  background: #f5f5f5;
  border-radius: 6px;
  min-width: 70px;
  text-align: center;
}

/* Anciens styles supprimés - remplacés par le nouveau design horizontal */

/* Distribution des âges */
.age-distribution-chart {
  background: #fff9e6;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-heavy);
  border: 3px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.age-distribution-chart::before {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  opacity: 0.3;
}

.age-distribution-chart h4 {
  margin: 0 0 3rem 0;
  color: var(--primary-color);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.age-dist-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.age-dist-item {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  border-left: 6px solid var(--primary-color);
  margin-bottom: 0.75rem;
}

.age-dist-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
  border-left-width: 8px;
}

.age-dist-range {
  font-weight: 800;
  color: white;
  text-align: center;
  background: var(--primary-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.age-dist-bar {
  height: 30px;
  background: #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.age-dist-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 15px;
  position: relative;
}

.age-dist-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.4);
}

.age-dist-value {
  text-align: center;
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.4rem;
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid var(--primary-color);
}

/* Statistiques générationnelles */
.generation-stats {
  background: #e8f5e8;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-heavy);
  border: 3px solid var(--success-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.generation-stats::before {
  content: '⏳';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  opacity: 0.3;
}

.generation-stats h4 {
  margin: 0 0 3rem 0;
  color: var(--success-color);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.generation-main-value {
  font-size: 5rem;
  font-weight: 800;
  color: var(--success-color);
  margin: 3rem 0;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  border: 3px solid var(--success-color);
}

.generation-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.generation-detail {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--success-color);
  position: relative;
}

.generation-detail:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy);
  border-width: 4px;
}

.generation-detail-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--success-color);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.generation-detail-label {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Dispersion démographique (Coefficient de variation) */
.variation-coefficient-container {
  margin-bottom: 5rem;
}

.coefficient-card {
  background: #f3e5f5;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  border: 2px solid #9c27b0;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.coefficient-card::before {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  opacity: 0.3;
}

.coefficient-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(156, 39, 176, 0.05);
  transform: rotate(45deg);
}

.coefficient-value {
  font-size: 3rem;
  font-weight: 800;
  color: #9c27b0;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 2px solid #9c27b0;
  position: relative;
  z-index: 2;
}

.coefficient-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #9c27b0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  position: relative;
  z-index: 2;
}

.coefficient-info {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid #9c27b0;
  position: relative;
  z-index: 2;
}

/* ==================== RESPONSIVE DÉMOGRAPHIE ==================== */
@media (max-width: 768px) {
  .demographics-nav {
    flex-wrap: wrap;
  }
  
  .demo-nav-btn {
    flex: 1 1 50%;
    min-height: 60px;
    font-size: 0.8rem;
    padding: 0.75rem 0.5rem;
  }
  
  .demo-nav-btn .nav-icon {
    font-size: 1rem;
  }
  
  .demo-nav-btn .nav-text {
    font-size: 0.7rem;
  }
  
  .demo-section {
    padding: 1rem;
  }
  
  .pyramid-chart {
    padding: 1rem;
  }
  
  .pyramid-row {
    grid-template-columns: 1fr 50px 1fr;
    gap: 0.25rem;
    height: 25px;
  }
  
  .pyramid-age-label {
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
  }
  
  .pyramid-legend {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .quarters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .months-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .marriage-stats,
  .mortality-stats {
    grid-template-columns: 1fr;
  }
  
  .historical-indicators {
    grid-template-columns: 1fr;
  }
  
  .generation-details {
    grid-template-columns: 1fr;
  }

  .masculinity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
  }
  
  .masculinity-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
  }
  
  .gender-counts {
    justify-content: space-between;
    width: 100%;
  }
  
  .age-dist-item {
    grid-template-columns: 100px 1fr 80px;
    gap: 1rem;
    padding: 1.5rem;
  }

  .coefficient-card {
    padding: 1.5rem;
  }

  .coefficient-value {
    font-size: 2.5rem;
    padding: 0.75rem;
  }

  .coefficient-label {
    font-size: 1rem;
  }

  .coefficient-info {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .demo-nav-btn {
    flex: 1 1 100%;
    min-height: 50px;
  }
  
  .quarters-grid {
    grid-template-columns: 1fr;
  }
  
  .months-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pyramid-row {
    grid-template-columns: 1fr 40px 1fr;
    height: 20px;
  }
  
  .pyramid-age-label {
    font-size: 0.7rem;
  }
  
  .cohorts-chart,
  .masculinity-chart,
  .age-distribution-chart,
  .generation-stats {
    padding: 1rem;
  }

  .masculinity-item {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem;
  }
  
  .masculinity-stats {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .century-label {
    min-width: auto;
    font-size: 1rem;
  }
  
  .masculinity-index {
    font-size: 1.1rem;
  }
  
  .age-dist-item {
    grid-template-columns: 80px 1fr 60px;
    gap: 0.5rem;
    padding: 1rem;
  }

  .century-label {
    font-size: 0.9rem;
  }
  
  .age-dist-range {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .coefficient-card {
    padding: 1rem;
  }

  .coefficient-value {
    font-size: 2rem;
    padding: 0.5rem;
  }

  .coefficient-label {
    font-size: 0.9rem;
  }

  .coefficient-info {
    font-size: 0.75rem;
  }
}

/* ==================== UTILITAIRES ==================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }