/* ===== FORMATION CMA-TAXI — STYLES GLOBAUX MODERNISÉS ===== */
:root {
  /* Palette moderne et professionnelle */
  --primary: #0f172a;          /* Slate-900 - Plus profond et moderne */
  --primary-light: #1e293b;    /* Slate-800 */
  --primary-lighter: #334155;  /* Slate-700 */
  --accent: #f59e0b;           /* Amber-500 - Gardé pour la cohérence */
  --accent-light: #fbbf24;     /* Amber-400 */
  --accent-dark: #d97706;      /* Amber-600 */
  --success: #10b981;          /* Emerald-500 - Plus moderne */
  --success-light: #34d399;    /* Emerald-400 */
  --danger: #ef4444;           /* Red-500 - Plus vibrant */
  --warning: #f59e0b;          /* Amber-500 */
  --info: #3b82f6;             /* Blue-500 */

  /* Fonds et surfaces */
  --bg-primary: #fafbfc;       /* Très léger gris */
  --bg-secondary: #f8fafc;     /* Variation subtile */
  --bg-card: #ffffff;
  --bg-overlay: rgba(15, 23, 42, 0.95);

  /* Textes */
  --text-primary: #0f172a;     /* Slate-900 */
  --text-secondary: #475569;   /* Slate-600 */
  --text-muted: #64748b;       /* Slate-500 */
  --text-inverse: #ffffff;

  /* Bordures et séparateurs */
  --border-light: #e2e8f0;     /* Slate-200 */
  --border-medium: #cbd5e1;    /* Slate-300 */
  --border-focus: #3b82f6;     /* Blue-500 */

  /* Ombres modernes */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Rayons de bordure */
  --radius-sm: 0.375rem;       /* 6px */
  --radius: 0.5rem;            /* 8px */
  --radius-md: 0.75rem;        /* 12px */
  --radius-lg: 1rem;           /* 16px */
  --radius-xl: 1.5rem;         /* 24px */
  --radius-full: 9999px;

  /* Espacement */
  --space-1: 0.25rem;          /* 4px */
  --space-2: 0.5rem;           /* 8px */
  --space-3: 0.75rem;          /* 12px */
  --space-4: 1rem;             /* 16px */
  --space-5: 1.25rem;          /* 20px */
  --space-6: 1.5rem;           /* 24px */
  --space-8: 2rem;             /* 32px */
  --space-10: 2.5rem;          /* 40px */
  --space-12: 3rem;            /* 48px */

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===== TYPOGRAPHIE MODERNE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hiérarchie typographique moderne */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-6);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
}

/* Liens modernes */
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--accent);
}

a:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== HEADER MODERNE AVEC GLASSMORPHISM ===== */
.site-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 41, 59, 0.8) 50%,
    rgba(51, 65, 85, 0.9) 100%);
  z-index: -1;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  position: relative;
}

/* Logo moderne avec animation */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.125rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.logo-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.logo:hover .logo-badge::before {
  left: 100%;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--text-inverse) 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text p {
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0;
  font-weight: 500;
}
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 12px;
}

.logo-area:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 10px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(251,191,36,0.3);
  position: relative;
  overflow: hidden;
}

.logo-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.logo-area:hover .logo-badge::before {
  left: 100%;
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text p {
  font-size: 0.65rem;
  opacity: 0.9;
  margin: 4px 0 0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ===== NAVIGATION MODERNE ===== */
nav.main-nav {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

nav.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent);
  transition: var(--transition-slow);
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

nav.main-nav a:hover::before {
  left: 100%;
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 80%;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.2);
}

nav.main-nav a.active {
  background: linear-gradient(135deg,
    var(--accent) 0%,
    var(--accent-light) 100%);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  border-color: var(--accent);
}

/* Indicateur de section active */
nav.main-nav a.active::after {
  background: var(--text-primary);
  width: 60%;
}

/* Mobile menu button moderne */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  font-size: 1.25rem;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 20px;
  }

  .logo-text h1 {
    font-size: 1rem;
  }

  .logo-text p {
    font-size: 0.6rem;
  }

  nav.main-nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  nav.main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav.main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: left;
  }

  nav.main-nav a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== MODULE NAVIGATION ===== */
.module-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.module-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.module-nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.module-nav-item {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.1);
}

.module-nav-item:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.module-nav-item.active {
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
  border-color: rgba(255,255,255,0.3);
}

.module-nav-item.completed {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  color: white;
}

.module-nav-item.completed::after {
  content: '✓';
  margin-left: 8px;
  font-weight: bold;
}

/* Progress indicator */
.module-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #f59e0b 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(245,158,11,0.5);
}

.progress-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

/* Module sections */
.content-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.content-section:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.content-section h2 {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  position: relative;
}

.content-section h2::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 100%);
}

/* Enhanced buttons */
.btn-synthese {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
  border: 2px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.btn-synthese::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-synthese:hover::before {
  left: 100%;
}

.btn-synthese:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245,158,11,0.4);
}

.btn-synthese:active {
  transform: translateY(-1px);
}

/* Enhanced callouts */
.callout {
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.callout.info {
  background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
  border: 1px solid #90caf9;
}

.callout.success {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  border: 1px solid #81c784;
}

.callout.warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
}

.callout.danger {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 1px solid #e57373;
}

.callout-icon {
  font-size: 1.5rem;
  margin-right: 12px;
}

.callout-body h4 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== MAIN CONTENT ===== */
main { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }

/* ===== SECTION TITLE ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

.section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.section-title .icon { font-size: 1.8rem; }

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ===== CARTES MODERNES ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition: var(--transition-normal);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    var(--accent-light) 50%,
    var(--primary-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(245, 158, 11, 0.02) 0%,
    rgba(15, 23, 42, 0.01) 100%);
  opacity: 0;
  transition: var(--transition-normal);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
  transition: var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  transition: var(--transition-fast);
  position: relative;
}

.card:hover h3 {
  color: var(--primary-light);
  transform: translateX(4px);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.card-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}

/* Tags modernes */
.tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tag:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.tag.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.tag.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
  border-color: rgba(59, 130, 246, 0.2);
}

.tag.red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.tag.purple {
  background: rgba(147, 51, 234, 0.1);
  color: #7c3aed;
  border-color: rgba(147, 51, 234, 0.2);
}

.tag.orange {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.2);
}

/* Bouton de téléchargement moderne */
.download-btn {
  background: linear-gradient(135deg,
    var(--success) 0%,
    var(--success-light) 100%);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent);
  transition: var(--transition-slow);
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* Enhanced breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

.breadcrumb .sep {
  color: var(--text-light);
  margin: 0 4px;
}

/* Enhanced buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 58, 92, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

/* Enhanced forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Enhanced interactive elements */
.progress-container {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.tab-container {
  margin: 20px 0;
}

.tab-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced animations and effects */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Enhanced tooltips */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background: var(--text-dark);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Enhanced notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideInRight 0.3s ease-out;
}

.notification.success {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
}

.notification.error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.notification.info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.notification .close-btn {
  float: right;
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.8;
}

.notification .close-btn:hover {
  opacity: 1;
}

/* Accessibility enhancements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--text-dark);
  }
  
  .btn {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header {
    padding: 15px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 40px 20px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card {
    padding: 20px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .tab-buttons {
    flex-direction: column;
  }
  
  .notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
  }
}

.tag.green { background: #dcfce7; color: #15803d; }
.tag.orange { background: #fef3c7; color: #d97706; }
.tag.red { background: #fee2e2; color: #dc2626; }
.tag.purple { background: #f3e8ff; color: #7c3aed; }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  background: var(--border);
  border-radius: 10px;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transition: width 0.5s ease;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; }

/* ===== COURS PAGE ===== */
.module-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.module-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.module-header .subtitle { opacity: 0.85; font-size: 1rem; }
.module-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.module-nav-item {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.module-nav-item:hover { background: rgba(255,255,255,0.3); }
.module-nav-item.active { background: var(--accent); color: var(--primary); font-weight: 700; }

/* ===== CONTENT SECTIONS ===== */
.content-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-light);
}

.content-section h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.content-section h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 20px 0 10px;
}

.content-section p { margin-bottom: 12px; color: var(--text); }

.content-section ul, .content-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-section li { margin-bottom: 6px; }

/* ===== CALLOUT BOXES ===== */
.callout {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 4px solid;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-icon { font-size: 1.4rem; flex-shrink: 0; }
.callout-body h4 { font-weight: 700; margin-bottom: 4px; }
.callout-body p { margin: 0; font-size: 0.9rem; }

.callout.info { background: #e0f2fe; border-color: #0369a1; color: #0c4a6e; }
.callout.warning { background: #fef3c7; border-color: #d97706; color: #78350f; }
.callout.success { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.callout.danger { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
tr:nth-child(even) td { background: #f8fafc; }
tr:hover td { background: #e0f2fe; }

/* ===== QUIZ STYLES ===== */
.quiz-container { max-width: 800px; margin: 0 auto; }

.quiz-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
}

.quiz-header h1 { font-size: 1.8rem; margin-bottom: 8px; }

.question-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.question-card.answered { border-color: var(--success); }
.question-number {
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.question-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; color: var(--primary); }

.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.option:hover { border-color: var(--primary-light); background: #e0f2fe; }
.option input[type="radio"] { accent-color: var(--primary); }

.option.correct { border-color: var(--success); background: #dcfce7; }
.option.wrong { border-color: var(--danger); background: #fee2e2; }

.explanation {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f0fdf4;
  border-left: 3px solid var(--success);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: #166534;
  display: none;
}

.explanation.visible { display: block; }

.quiz-score {
  background: linear-gradient(135deg, var(--success), #15803d);
  color: white;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 32px;
  display: none;
}

.quiz-score.visible { display: block; }
.score-number { font-size: 3rem; font-weight: 800; }
.score-label { font-size: 1.1rem; opacity: 0.9; }

/* ===== EXERCICE STYLES ===== */
.exercice-header {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.exercice-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid #7c3aed;
}

.exercice-section h2 { color: #7c3aed; }

.data-table th { background: #7c3aed; }

/* ===== DOCUMENT STYLES ===== */
.document-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
}

.document-card:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.doc-icon { font-size: 2.5rem; flex-shrink: 0; }
.doc-info h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.doc-info p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.doc-actions { margin-left: auto; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 24px;
  margin-top: 60px;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
  padding: 12px 0;
}

.breadcrumb a { color: var(--primary-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}

.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  nav.main-nav { flex-wrap: wrap; justify-content: center; }
  .hero h2 { font-size: 1.6rem; }
  main { padding: 24px 16px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PRINT BUTTONS ===== */
.print-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-print-handout { background: #0369a1; color: white; }
.btn-print-handout:hover { background: #0c4a6e; }
.btn-print-correction { background: #15803d; color: white; }
.btn-print-correction:hover { background: #14532d; }

/* ===== THEMATIC TAG ===== */
.tag.tpp { background: #e0f2fe; color: #0369a1; }
.tag.securite { background: #fee2e2; color: #dc2626; }
.tag.geo { background: #dcfce7; color: #15803d; }
.tag.anglais { background: #f3e8ff; color: #7c3aed; }
.tag.gestion { background: #fef3c7; color: #d97706; }

/* ===== SECTION QUIZ THEMATIQUE ===== */
.quiz-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 32px 0 16px;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== PRINT ===== */
@media print {
  .site-header, nav, footer, .btn, .btn-print, .print-bar, .breadcrumb,
  .quiz-score, button { display: none !important; }
  .content-section { box-shadow: none; border: 1px solid #ccc; }
  body { background: white; font-size: 12pt; }
  .question-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; margin-bottom: 12pt; }
  .explanation { display: none !important; }
  .option.correct, .option.wrong { background: white !important; border-color: #ccc !important; }
}
