/* Variables et reset */
:root {
  --primary-dark: #0A2F6C;
  --primary-light: #2A6F9C;
  --accent-gold: #D4A373;
  --accent-green: #2C6E49;
  --gray-bg: #F8F9FA;
  --gray-text: #2C3E50;
  --white: #FFFFFF;
  --shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-text);
  background-color: var(--white);
  line-height: 1.5;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--primary-light);
  padding-left: 1rem;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header fixe */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 0.8rem 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.logo a {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-dark);
  text-decoration: none;
}
.logo span {
  font-weight: 400;
  color: var(--primary-light);
}
.main-nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}
.main-nav a {
  text-decoration: none;
  color: var(--gray-text);
  font-weight: 500;
  transition: 0.2s;
}
.main-nav a:hover {
  color: var(--primary-light);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  color: var(--primary-light);
  font-weight: 600;
  transition: 0.3s;
}
.btn-outline:hover {
  background: var(--primary-light);
  color: white;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-dark);
}

/* Sidebar TOC */
.toc-sidebar {
  position: fixed;
  top: 80px;
  left: 20px;
  width: 260px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
  z-index: 999;
  backdrop-filter: blur(4px);
  background-color: rgba(255,255,255,0.95);
}
.toc-title {
  font-weight: 700;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.3rem;
}
.toc-list {
  list-style: none;
}
.toc-list li {
  margin-bottom: 0.6rem;
}
.toc-list a {
  text-decoration: none;
  color: var(--gray-text);
  font-size: 0.9rem;
  transition: 0.2s;
}
.toc-list a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}
.main-content {
  margin-left: 300px;
  margin-top: 80px;
  padding: 2rem 0;
}
section {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}

/* Cartes et grilles */
.card {
  background: var(--gray-bg);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-3px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.mt-3 {
  margin-top: 2rem;
}
.hero-section {
  background: linear-gradient(135deg, #eef2f9 0%, #ffffff 100%);
  border-radius: 0 0 40px 40px;
  padding: 3rem 0;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.stat-item {
  background: white;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  box-shadow: var(--shadow);
  font-weight: 500;
}
.stat-item span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: block;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.partners-logos i, .partners-logos span {
  font-size: 1.2rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  box-shadow: var(--shadow);
}
.badge-card {
  background: var(--primary-light);
  color: white;
  border-radius: 40px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  font-weight: 500;
}
.stats-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.rec-card {
  background: var(--gray-bg);
  border-left: 5px solid var(--accent-gold);
  padding: 1rem;
  border-radius: 16px;
}
.main-footer {
  background: var(--primary-dark);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}
.main-footer a {
  color: var(--accent-gold);
  text-decoration: none;
}
.source {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.5rem;
}