* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bleu-marine: #0a2540;
  --bleu-marine2: #132a45;
  --blanc: #ffffff;
  --blanc-casse: #f8f7f4;
  --jaune-haiti: #d4a843;
  --jaune-clair: #f3e1b9;
  --gris-texte: #2c3e50;
  --gris-clair: #ecf0f1;
  --rouge-accent: #b22222;
  --police-texte: 'Inter', sans-serif;
  --police-titre: 'Playfair Display', serif;
  --max-width: 1200px;
  --sidebar-width: 260px;
}

body {
  font-family: var(--police-texte);
  background: var(--blanc-casse);
  color: var(--gris-texte);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  color: var(--bleu-marine);
}

a {
  color: var(--bleu-marine);
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 1.5rem;
}

/* Navigation */
nav {
  background: var(--bleu-marine);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--jaune-haiti);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--blanc);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--jaune-haiti);
}

.burger {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 1.8rem;
}

/* Layout principal */
.main-layout {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--blanc);
  padding: 2rem 1rem;
  border-right: 1px solid var(--gris-clair);
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--bleu-marine);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  font-size: 0.9rem;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--jaune-clair);
  color: var(--bleu-marine);
}

.content {
  flex: 1;
  padding: 2rem 1.5rem 4rem;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--jaune-haiti);
  display: inline-block;
}

.hero {
  background: linear-gradient(135deg, var(--bleu-marine) 0%, #1a3f5c 100%);
  color: var(--blanc);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 0 0 20px 20px;
  margin-bottom: 2rem;
}

.hero h1 {
  color: var(--blanc);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--blanc);
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bleu-marine);
}

.stat-label {
  font-size: 0.95rem;
  color: #666;
}

/* Info box */
.info-box {
  background: var(--blanc);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 1.5rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Tableaux */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--bleu-marine);
  color: white;
  padding: 0.75rem;
  text-align: left;
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gris-clair);
}

/* Graphiques */
.chart-container {
  background: var(--blanc);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 1.5rem 0;
  max-width: 600px;
}

canvas {
  width: 100% !important;
  height: auto !important;
}

/* Bouton téléchargement */
.btn-download {
  display: inline-block;
  background: var(--jaune-haiti);
  color: var(--bleu-marine);
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: 40px;
  transition: background 0.3s;
}

.btn-download:hover {
  background: #b8912e;
}

/* Footer */
footer {
  background: var(--bleu-marine);
  color: var(--blanc);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}