/* -----------------------------
   Variables et Reset
----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #1a1a1a;
  --secondary: #4a5568;
  --accent: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text-primary: #1a202c;
  --text-secondary: #64748b;
  --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);
  
  /* Transitions douces */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   MODE SOMBRE
   ======================================== */
[data-theme="dark"] {
  --primary: #f8fafc;
  --secondary: #cbd5e1;
  --accent: #60a5fa;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --background: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.6), 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.6);
}

/* Respecter la préférence système par défaut */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #f8fafc;
    --secondary: #cbd5e1;
    --accent: #60a5fa;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --background: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.6), 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.6);
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   TOGGLE MODE SOMBRE
   ======================================== */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.theme-toggle-btn {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--border);
  border-radius: 999px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

[data-theme="dark"] .theme-toggle-btn {
  background: #475569;
  border-color: #64748b;
}

.theme-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-slider::before {
  content: '☀️';
  font-size: 12px;
}

[data-theme="dark"] .theme-toggle-slider {
  transform: translateX(28px);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

[data-theme="dark"] .theme-toggle-slider::before {
  content: '🌙';
}

.theme-toggle:hover .theme-toggle-btn {
  border-color: var(--accent);
}

.theme-toggle:focus-within .theme-toggle-btn {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Checkbox caché mais accessible */
.theme-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* -----------------------------
   Accessibilité
----------------------------- */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Skip link - invisible sauf au focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transition: top 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* -----------------------------
   Navigation principale
----------------------------- */
.main-nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

.brand-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  transition: color 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link .icon {
  font-size: 1.125rem;
}

.nav-link:hover {
  background: var(--background);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--primary);
  color: var(--background);
}

[data-theme="dark"] .nav-link.active {
  background: var(--accent);
  color: var(--background);
}

.nav-link:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-user .user-btn {
  padding: 0.625rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.nav-user .user-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.nav-user .user-btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* -----------------------------
   Dashboard Main
----------------------------- */
.dashboard-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color 0.3s ease;
}

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

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.stat-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* -----------------------------
   Progress Section
----------------------------- */
.progress-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.progress-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.progress-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.progress-bar-large {
  height: 12px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

[data-theme="dark"] .progress-fill {
  background: linear-gradient(90deg, #60a5fa 0%, #8b5cf6 100%);
}

/* -----------------------------
   Tip Section
----------------------------- */
.tip-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

[data-theme="dark"] .tip-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  border-color: #334155;
}

.tip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tip-header .icon {
  font-size: 1.5rem;
}

.tip-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.tip-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.tip-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: white;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

[data-theme="dark"] .tag {
  background: #334155;
  border-color: #475569;
  color: var(--text-secondary);
}

/* -----------------------------
   Recent Activity
----------------------------- */
.recent-activity {
  margin-bottom: 2rem;
}

.recent-activity h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.activity-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

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

.activity-empty {
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.activity-empty p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.activity-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.activity-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.activity-icon.success {
  background: #d1fae5;
}

[data-theme="dark"] .activity-icon.success {
  background: #064e3b;
}

.activity-icon.error {
  background: #fee2e2;
}

[data-theme="dark"] .activity-icon.error {
  background: #7f1d1d;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.activity-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* -----------------------------
   Skills Overview
----------------------------- */
.skills-overview {
  margin-bottom: 2rem;
}

.skills-overview h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.skills-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

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

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.skill-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.skill-card:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-weight: 600;
  font-size: 1.125rem;
  text-transform: capitalize;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.skill-badge {
  padding: 0.25rem 0.75rem;
  background: var(--background);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.skill-progress {
  margin-bottom: 0.75rem;
}

.skill-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

[data-theme="dark"] .skill-progress-fill {
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
}

.skill-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* -----------------------------
   Buttons
----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
  outline: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #357abd, #2868a8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary {
  background: var(--background);
  color: var(--text-primary);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--card-bg);
  border-color: var(--accent);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .btn-danger {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

[data-theme="dark"] .btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
}

.btn.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -----------------------------
   Competences Grid
----------------------------- */
.competences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.competence-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.competence-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.competence-card:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.competence-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.competence-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: capitalize;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.competence-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.competence-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.competence-stat {
  flex: 1;
}

.competence-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.competence-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.competence-progress {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.competence-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s ease;
}

.competence-progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.competence-action {
  width: 100%;
}

/* -----------------------------
   Exercices - Onglets
----------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--background);
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.tabButton {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.tabButton.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.tabButton:hover:not(.active) {
  background-color: var(--background);
  border-color: var(--accent);
}

.tabButton:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* -----------------------------
   Exercices - Question en cadre
----------------------------- */
#situation {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  margin: 2rem 0 !important;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  position: relative;
  overflow: visible;
  font-size: 1.125rem !important;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: fadeInSlide 0.4s ease-out;
  transition: var(--transition);
}

[data-theme="dark"] #situation {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.5),
    0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
}

#situation::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
  border-radius: 16px 0 0 16px;
}

[data-theme="dark"] #situation::before {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

#situation::after {
  content: '❓';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  opacity: 0.15;
  pointer-events: none;
}

[data-theme="dark"] #situation::after {
  opacity: 0.1;
}

#situation:focus {
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
  border-color: #4a90e2;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

/* -----------------------------
   Exercices - Choix de réponses
----------------------------- */
.choix {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.choix button {
  background: var(--card-bg) !important;
  border: 2px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 1.25rem 1.5rem !important;
  font-size: 1rem !important;
  line-height: 1.6;
  color: var(--text-primary) !important;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.3s ease-out backwards;
  display: block !important;
  width: 100% !important;
}

.choix button:nth-child(1) {
  animation-delay: 0.1s;
}

.choix button:nth-child(2) {
  animation-delay: 0.2s;
}

.choix button:nth-child(3) {
  animation-delay: 0.3s;
}

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

.choix button:hover:not(:disabled) {
  border-color: var(--accent) !important;
  background: var(--background) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.choix button:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(59, 130, 246, 0.1);
}

.choix button:active:not(:disabled) {
  transform: translateY(0);
}

.choix button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Bonne réponse en vert */
.choix button[style*="background-color: rgb(40, 167, 69)"],
.choix button[style*="background-color:#28a745"],
.choix button[style*="background-color: #28a745"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .choix button[style*="background-color: rgb(40, 167, 69)"],
[data-theme="dark"] .choix button[style*="background-color:#28a745"],
[data-theme="dark"] .choix button[style*="background-color: #28a745"] {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4) !important;
}

/* Mauvaise réponse en rouge */
.choix button[style*="background-color: rgb(220, 53, 69)"],
.choix button[style*="background-color:#dc3545"],
.choix button[style*="background-color: #dc3545"] {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #dc2626 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

[data-theme="dark"] .choix button[style*="background-color: rgb(220, 53, 69)"],
[data-theme="dark"] .choix button[style*="background-color:#dc3545"],
[data-theme="dark"] .choix button[style*="background-color: #dc3545"] {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4) !important;
}

/* -----------------------------
   Exercices - Feedback
----------------------------- */
#feedback {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  display: none;
  animation: slideIn 0.3s ease-out;
  transition: var(--transition);
}

[data-theme="dark"] #feedback {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
}

#feedback::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #94a3b8;
}

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

#feedback[style*="color: green"],
#feedback[style*="color:green"] {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #10b981;
}

[data-theme="dark"] #feedback[style*="color: green"],
[data-theme="dark"] #feedback[style*="color:green"] {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-color: #34d399;
  color: #d1fae5 !important;
}

#feedback[style*="color: green"]::before,
#feedback[style*="color:green"]::before {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

[data-theme="dark"] #feedback[style*="color: green"]::before,
[data-theme="dark"] #feedback[style*="color:green"]::before {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
}

#feedback[style*="color: red"],
#feedback[style*="color:red"] {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #ef4444;
}

[data-theme="dark"] #feedback[style*="color: red"],
[data-theme="dark"] #feedback[style*="color:red"] {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  border-color: #f87171;
  color: #fee2e2 !important;
}

#feedback[style*="color: red"]::before,
#feedback[style*="color:red"]::before {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

[data-theme="dark"] #feedback[style*="color: red"]::before,
[data-theme="dark"] #feedback[style*="color:red"]::before {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
}

#feedback small {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  opacity: 0.8;
}

[data-theme="dark"] #feedback small {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* -----------------------------
   Exercices - Bouton Suivant
----------------------------- */
#suivant {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
  margin-top: 1.5rem;
  width: 100%;
  max-width: 300px;
  display: none;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] #suivant {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

#suivant:hover {
  background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

[data-theme="dark"] #suivant:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.5);
}

#suivant:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 
    0 4px 12px rgba(74, 144, 226, 0.4),
    0 0 0 3px rgba(74, 144, 226, 0.1);
}

#suivant:active {
  transform: translateY(0);
}

/* -----------------------------
   Exercices - Barre de progression
----------------------------- */
.progress-container {
  background-color: var(--border);
  height: 8px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

#progressBar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #4a90e2 0%, #8b5cf6 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] #progressBar {
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
}

/* -----------------------------
   Écran de résultats
----------------------------- */
.results-container {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border: 2px solid #3b82f6;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  text-align: center;
  transition: var(--transition);
}

[data-theme="dark"] .results-container {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  border-color: #60a5fa;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.results-container h3 {
  color: #1e40af;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  transition: color 0.3s ease;
}

[data-theme="dark"] .results-container h3 {
  color: #93c5fd;
}

.results-container p {
  font-size: 1.125rem;
  margin: 0.75rem 0;
  color: #334155;
  transition: color 0.3s ease;
}

[data-theme="dark"] .results-container p {
  color: #cbd5e1;
}

.results-container strong {
  color: #1e40af;
  font-weight: 700;
  transition: color 0.3s ease;
}

[data-theme="dark"] .results-container strong {
  color: #60a5fa;
}

/* -----------------------------
   Account Section
----------------------------- */
.account-section {
  background: var(--card-bg);
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.account-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.section-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-input,
.account-section input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--card-bg);
  color: var(--text-primary);
}

.form-input:focus,
.account-section input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.form-input:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

.form-input[aria-invalid="true"] {
  border-color: var(--danger);
  background-color: rgba(239, 68, 68, 0.05);
}

[data-theme="dark"] .form-input[aria-invalid="true"] {
  background-color: rgba(248, 113, 113, 0.1);
}

.form-input[aria-invalid="false"] {
  border-color: var(--success);
}

.form-help {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}

.error-message {
  display: block;
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.error-message:empty {
  display: none;
}

.account-section .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.message-container {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
  transition: var(--transition);
}

.message-container.success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--success);
  color: #065f46;
}

[data-theme="dark"] .message-container.success {
  background-color: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.message-container.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 2px solid var(--danger);
  color: #991b1b;
}

[data-theme="dark"] .message-container.error {
  background-color: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.message-container.info {
  background-color: rgba(59, 130, 246, 0.1);
  border: 2px solid var(--accent);
  color: #1e40af;
}

[data-theme="dark"] .message-container.info {
  background-color: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.message-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.user-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--background);
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 1rem 0;
  transition: var(--transition);
}

.user-status.connected {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 2px solid var(--success);
}

[data-theme="dark"] .user-status.connected {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.status-icon {
  font-size: 1.5rem;
}

/* -----------------------------
   Menu
----------------------------- */
.menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.quick-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.menu .btn {
  flex: 1;
  min-width: 200px;
}

/* -----------------------------
   Progression Page
----------------------------- */
.score-section {
  text-align: center;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.score {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.5rem;
}

[data-theme="dark"] .score {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progression-bar-section {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#progressBarContainerGlobal {
  background-color: var(--border);
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

#progressBarGlobal {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

[data-theme="dark"] #progressBarGlobal {
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
}

.history {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.history-list li {
  background-color: var(--background);
  margin-bottom: 0.75rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  transition: var(--transition);
}

.history-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

/* ========================================
   PAGES À PROPOS ET CONTACT
   ======================================== */

/* Introduction contact */
.contact-intro {
  margin-bottom: 3rem;
}

.intro-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: var(--transition);
}

[data-theme="dark"] .intro-card {
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
  box-shadow: 0 10px 30px rgba(76, 29, 149, 0.4);
}

.intro-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.intro-card p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.contact-reasons {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  text-align: left;
}

.contact-reasons li {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-reasons li:hover {
  background: rgba(255, 255, 255, 0.25);
}

.contact-reasons li span {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Section formulaire */
.contact-form-section {
  margin-bottom: 3rem;
}

.contact-form-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

/* Select */
.contact-form select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 3rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

[data-theme="dark"] .contact-form select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Textarea */
.contact-form textarea.form-input {
  resize: vertical;
  min-height: 150px;
  font-family: inherit;
}

/* Actions du formulaire */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Informations complémentaires */
.contact-info-section {
  margin-bottom: 3rem;
}

.contact-info-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

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

.info-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.info-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.info-card strong {
  color: var(--accent);
  font-weight: 600;
}

/* Page À propos */
.about-section {
  margin-bottom: 3rem;
}

.about-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: var(--transition);
}

[data-theme="dark"] .about-card {
  background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
  box-shadow: 0 10px 30px rgba(76, 29, 149, 0.4);
}

.about-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.about-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.about-card p {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Section Créateur */
.creator-section {
  margin-bottom: 3rem;
}

.creator-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-left: 6px solid #667eea;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

[data-theme="dark"] .creator-card {
  border-left-color: #60a5fa;
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.creator-avatar {
  font-size: 4rem;
  flex-shrink: 0;
}

.creator-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.creator-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  font-style: italic;
  transition: color 0.3s ease;
}

.creator-content p {
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.creator-content p:last-child {
  margin-bottom: 0;
}

.creator-content strong {
  color: #667eea;
  font-weight: 600;
}

[data-theme="dark"] .creator-content strong {
  color: #60a5fa;
}

.creator-mission {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #3b82f6;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-weight: 500;
  color: #1e40af;
  transition: var(--transition);
}

[data-theme="dark"] .creator-mission {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  border-left-color: #60a5fa;
  color: #93c5fd;
}

.creator-mission span {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Grille de fonctionnalités */
.features-section {
  margin-bottom: 3rem;
}

.features-section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-card:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Public cible */
.audience-section {
  margin-bottom: 3rem;
}

.audience-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

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

.audience-card {
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.audience-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.audience-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.audience-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

/* Statistiques À propos */
.stats-about-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  transition: var(--transition);
}

[data-theme="dark"] .stats-about-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.stats-about-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.stats-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-about-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-about-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .stat-about-value {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-about-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Références scientifiques */
.references-section {
  margin-bottom: 3rem;
}

.references-section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.references-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  list-style: none;
  transition: var(--transition);
}

.references-list li {
  padding: 1rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 1rem;
  background: var(--background);
  border-radius: 4px;
  line-height: 1.6;
  transition: var(--transition);
}

.references-list li:hover {
  transform: translateX(4px);
}

.references-list li:last-child {
  margin-bottom: 0;
}

.references-list strong {
  color: var(--accent);
  font-weight: 600;
}

/* Contact */
.contact-section {
  margin-bottom: 3rem;
}

.contact-card {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  transition: var(--transition);
}

[data-theme="dark"] .contact-card {
  background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
  border-color: #fbbf24;
}

.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #856404;
}

[data-theme="dark"] .contact-card h2 {
  color: #fcd34d;
}

.contact-card p {
  line-height: 1.7;
  color: #856404;
  margin-bottom: 1rem;
}

[data-theme="dark"] .contact-card p {
  color: #fde68a;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* Accessibilité */
.accessibility-section {
  margin-bottom: 3rem;
}

.accessibility-card {
  background: var(--card-bg);
  border: 2px solid var(--success);
  border-radius: 12px;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  transition: var(--transition);
}

.accessibility-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.accessibility-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--success);
}

.accessibility-card p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.accessibility-card ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.accessibility-card ul li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  line-height: 1.6;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.accessibility-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1.25rem;
}

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-link {
    justify-content: center;
  }
  
  .nav-user {
    justify-content: center;
  }
  
  .dashboard-main {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }

  #situation {
    padding: 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  #situation::after {
    font-size: 1.5rem;
    top: 1rem;
    right: 1rem;
  }

  .choix button {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
  }

  #feedback {
    padding: 1.25rem;
    font-size: 0.9375rem;
  }

  #suivant {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .menu .btn {
    width: 100%;
    min-width: auto;
  }

  .about-card {
    padding: 2rem 1.5rem;
  }

  .about-icon {
    font-size: 3rem;
  }

  .about-card h2 {
    font-size: 1.5rem;
  }

  .about-card p {
    font-size: 1rem;
  }

  .features-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .stats-about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-about-value {
    font-size: 2.5rem;
  }

  .feature-card,
  .audience-card {
    padding: 1.5rem;
  }

  .references-list,
  .contact-card,
  .accessibility-card,
  .creator-card {
    padding: 1.5rem;
  }

  .creator-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .creator-avatar {
    font-size: 3rem;
  }

  .intro-card {
    padding: 2rem 1.5rem;
  }

  .intro-icon {
    font-size: 3rem;
  }

  .contact-reasons {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #situation {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .choix {
    gap: 0.75rem;
  }

  .choix button {
    padding: 0.875rem 1rem;
    border-radius: 10px;
  }

  .form-input {
    font-size: 16px;
  }

  .stats-about-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .feature-card,
  .contact-card,
  .accessibility-card,
  .creator-card {
    padding: 1.25rem;
  }

  .creator-content p {
    font-size: 1rem;
  }

  .intro-card,
  .contact-form,
  .info-card {
    padding: 1.5rem;
  }

  .message-container {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .contact-form h2 {
    font-size: 1.5rem;
  }
}

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

  .choix button:hover:not(:disabled),
  #suivant:hover,
  .stat-card:hover,
  .skill-card:hover,
  .feature-card:hover,
  .audience-card:hover {
    transform: none !important;
  }
}

/* -----------------------------
   Print
----------------------------- */
@media print {
  .skip-link,
  .main-nav,
  .quick-nav,
  .btn,
  #suivant,
  .theme-toggle {
    display: none;
  }

  #situation {
    background: white;
    border: 2px solid #000;
    box-shadow: none;
  }

  #situation::before,
  #situation::after {
    display: none;
  }

  .choix button {
    background: white;
    border: 1px solid #000;
    box-shadow: none;
  }

  .account-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ========================================
   MODE SOMBRE - VARIABLES ET STYLES
   À ajouter AU DÉBUT de style.css (après :root)
   ======================================== */

/* Variables pour le mode sombre */
[data-theme="dark"] {
  --primary: #f8fafc;
  --secondary: #94a3b8;
  --accent: #60a5fa;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --background: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.6), 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   BOUTON DE BASCULEMENT MODE SOMBRE
   ======================================== */

.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 1.5rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

.theme-toggle:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

/* Animation de rotation lors du changement */
.theme-toggle.rotating {
  animation: rotate360 0.5s ease-in-out;
}

@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Icônes du bouton */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: scale(0);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: scale(0);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: scale(1);
}

/* Mobile - Bouton plus petit */
@media (max-width: 768px) {
  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* ========================================
   AJUSTEMENTS MODE SOMBRE
   ======================================== */

/* Message mode visiteur - IMPORTANT */
[data-theme="dark"] #anonymousNotice {
  background: #422006 !important;
  border-color: #f59e0b !important;
  color: #fef3c7 !important;
}

[data-theme="dark"] #anonymousNotice strong {
  color: #fbbf24 !important;
}

[data-theme="dark"] #anonymousNotice a {
  color: #60a5fa !important;
}

/* Conseil du jour - IMPORTANT */
[data-theme="dark"] .tip-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

[data-theme="dark"] .tip-text {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .tag {
  background: #334155 !important;
  color: #cbd5e1 !important;
}

/* Cartes de stats */
[data-theme="dark"] .stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

[data-theme="dark"] .stat-value {
  color: var(--text-primary);
}

[data-theme="dark"] .stat-subtitle {
  color: var(--text-secondary);
}

/* Barre de progression */
[data-theme="dark"] .progress-bar-large {
  background: #1e293b;
}

[data-theme="dark"] .progress-fill {
  background: linear-gradient(90deg, #34d399, #10b981);
}

/* Activité récente */
[data-theme="dark"] .activity-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

[data-theme="dark"] .activity-item:hover {
  background: #334155;
}

[data-theme="dark"] .activity-title {
  color: var(--text-primary);
}

[data-theme="dark"] .activity-desc,
[data-theme="dark"] .activity-time {
  color: var(--text-secondary);
}

/* Compétences */
[data-theme="dark"] .skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

[data-theme="dark"] .skill-card:hover {
  border-color: var(--accent);
  background: #334155;
}

[data-theme="dark"] .skill-name {
  color: var(--text-primary);
}

[data-theme="dark"] .skill-progress-bar {
  background: #1e293b;
}

[data-theme="dark"] .skill-progress-fill {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

/* Exercices - Question */
[data-theme="dark"] #situation {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  border-color: #475569 !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] #situation::before {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%) !important;
}

/* Exercices - Boutons de réponse */
[data-theme="dark"] .choix button {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .choix button:hover {
  background: #334155 !important;
  border-color: var(--accent) !important;
}

[data-theme="dark"] .choix button:focus {
  border-color: var(--accent) !important;
}

/* Boutons corrects/incorrects */
[data-theme="dark"] .choix button[style*="background-color: rgb(16, 185, 129)"],
[data-theme="dark"] .choix button[style*="background-color:#10b981"],
[data-theme="dark"] .choix button[style*="background-color: #10b981"],
[data-theme="dark"] .choix button.correct {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border-color: #059669 !important;
}

[data-theme="dark"] .choix button[style*="background-color: rgb(239, 68, 68)"],
[data-theme="dark"] .choix button[style*="background-color:#ef4444"],
[data-theme="dark"] .choix button[style*="background-color: #ef4444"],
[data-theme="dark"] .choix button.incorrect {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  border-color: #dc2626 !important;
}

/* Feedback */
[data-theme="dark"] #feedback {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] #feedback::before {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
}

/* Formulaires */
[data-theme="dark"] .form-input,
[data-theme="dark"] .account-section input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .account-section input:focus {
  border-color: var(--accent) !important;
  background: #334155 !important;
}

[data-theme="dark"] .form-input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .form-help {
  color: var(--text-secondary);
}

/* Boutons */
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

[data-theme="dark"] .btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

[data-theme="dark"] .btn-secondary:hover {
  background: #334155;
  border-color: var(--accent);
}

/* Page À propos - Sections spéciales */
[data-theme="dark"] .about-card {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

[data-theme="dark"] .creator-card {
  background: var(--card-bg);
  border-color: #475569;
  border-left-color: #60a5fa;
}

[data-theme="dark"] .creator-content strong {
  color: #60a5fa;
}

[data-theme="dark"] .creator-mission {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  border-left-color: #60a5fa;
  color: #bfdbfe;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .audience-card,
[data-theme="dark"] .info-card {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .audience-card:hover,
[data-theme="dark"] .info-card:hover {
  border-color: var(--accent);
  background: #334155;
}

[data-theme="dark"] .stats-about-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .stat-about-card {
  background: var(--card-bg);
}

[data-theme="dark"] .references-list {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] .references-list li {
  background: #1e293b;
  border-left-color: var(--accent);
}

[data-theme="dark"] .references-list strong {
  color: var(--accent);
}

[data-theme="dark"] .contact-card {
  background: linear-gradient(135deg, #422006 0%, #78350f 100%);
  border-color: #f59e0b;
}

[data-theme="dark"] .contact-card h2,
[data-theme="dark"] .contact-card p {
  color: #fef3c7;
}

[data-theme="dark"] .accessibility-card {
  background: var(--card-bg);
  border-color: #10b981;
}

[data-theme="dark"] .accessibility-card h2 {
  color: #34d399;
}

/* Page Contact */
[data-theme="dark"] .intro-card {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

[data-theme="dark"] .contact-reasons li {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-form {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] .message-container.success {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: #10b981;
  color: #d1fae5;
}

[data-theme="dark"] .message-container.error {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border-color: #ef4444;
  color: #fecaca;
}

/* Navigation tabs */
[data-theme="dark"] .tabs {
  background: var(--card-bg);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .tabButton {
  color: var(--text-secondary);
  border-bottom-color: transparent;
}

[data-theme="dark"] .tabButton:hover {
  color: var(--text-primary);
  background: #334155;
}

[data-theme="dark"] .tabButton.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Progression - Historique */
[data-theme="dark"] #history li {
  border-left-color: var(--success);
}

[data-theme="dark"] #history li[style*="background-color: #d4edda"] {
  background-color: #064e3b !important;
  border-left-color: #10b981 !important;
}

[data-theme="dark"] #history li[style*="background-color: #f8d7da"] {
  background-color: #7f1d1d !important;
  border-left-color: #ef4444 !important;
}

/* Tables */
[data-theme="dark"] table {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] th {
  background: #334155;
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] td {
  border-color: var(--border);
  color: var(--text-primary);
}

/* Scrollbar personnalisée (optionnel) */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 12px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1e293b;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 6px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Transitions fluides pour tous les éléments */
* {
  transition: background-color 0.3s ease, 
              border-color 0.3s ease, 
              color 0.3s ease;
}

/* Désactiver les transitions pour les éléments spécifiques si besoin */
.no-transition {
  transition: none !important;
}