/* ===== VARIABLES ET CONFIGURATION ===== */
:root {
  /* Couleurs principales */
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #8b5cf6;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  
  /* Couleurs neutres */
  --dark: #1f2937;
  --darker: #111827;
  --light: #f8fafc;
  --lighter: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Couleurs sémantiques */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Dégradés */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #4f46e5 100%);
  
  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Typographie */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Espacements */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Bordures */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Animations */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ET BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--gray-600);
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-600);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LAYOUT ET CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* ===== HEADER ET NAVIGATION ===== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s var(--ease-in-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand-logo {
  background: var(--gradient-primary);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo i {
  color: white;
  font-size: 1.5rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.brand-name span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s var(--ease-in-out);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s var(--ease-in-out);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out);
  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.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.trust-indicators {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (min-width: 640px) {
  .trust-indicators {
    flex-direction: row;
    justify-content: center;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* ===== SECTIONS GÉNÉRIQUES ===== */
.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  display: block;
}

.section-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CARTES DE TEST ===== */
.tests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .tests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tests-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.test-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.test-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-in-out);
}

.test-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.test-card:hover::before {
  transform: scaleX(1);
}

.test-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.test-icon {
  background: var(--gradient-primary);
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transition: transform 0.3s var(--ease-bounce);
}

.test-card:hover .test-icon {
  transform: scale(1.1);
}

.test-icon i {
  color: white;
  font-size: 1.5rem;
}

.test-badge {
  background: var(--gradient-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.test-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-md);
  transition: color 0.3s var(--ease-in-out);
}

.test-card:hover .test-title {
  color: var(--primary);
}

.test-description {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.test-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.test-duration, .test-questions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gray-50);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.test-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-100);
}

.test-difficulty {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
}

/* ===== FORMULAIRES ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  transition: all 0.3s var(--ease-in-out);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.feature-icon {
  background: var(--gray-50);
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon.primary {
  background: rgba(124, 58, 237, 0.1);
}

.feature-icon.primary i {
  color: var(--primary);
}

.feature-icon.green {
  background: rgba(16, 185, 129, 0.1);
}

.feature-icon.green i {
  color: var(--success);
}

.feature-icon.purple {
  background: rgba(139, 92, 246, 0.1);
}

.feature-icon.purple i {
  color: var(--primary-light);
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.1);
}

.feature-icon.blue i {
  color: var(--info);
}

.feature-icon i {
  font-size: 1.5rem;
}

.feature-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-content p {
  color: var(--gray-600);
  margin-bottom: 0;
}

.feature-visual {
  position: relative;
}

.progress-card {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.progress-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.progress-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.progress-header i {
  font-size: 3rem;
  color: #fbbf24;
  margin-bottom: var(--space-md);
}

.progress-header h3 {
  color: white;
  margin-bottom: var(--space-xs);
}

.progress-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.progress-bar {
  width: 96px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 var(--space-md);
}

.progress-fill {
  height: 100%;
  background: #fbbf24;
  border-radius: 3px;
  transition: width 1s var(--ease-out);
}

.progress-value {
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 36px;
  text-align: right;
}

.floating-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

/* ===== PROCESS STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.step-item {
  text-align: center;
  position: relative;
}

.step-indicator {
  position: relative;
  margin-bottom: var(--space-xl);
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto;
  transition: all 0.3s var(--ease-bounce);
  position: relative;
  z-index: 2;
}

.step-item:hover .step-number {
  transform: scale(1.1);
}

.step-connector {
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--gray-300);
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
  }
}

.step-item:last-child .step-connector {
  display: none;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.step-content p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* ===== TÉMOIGNAGES ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  transition: all 0.3s var(--ease-in-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 0.875rem;
}

.testimonial-text {
  color: var(--gray-700);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
  background: var(--gray-50);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--darker);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-logo-icon {
  background: var(--gradient-primary);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon i {
  color: white;
  font-size: 1.25rem;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: var(--gray-400);
  font-size: 1.25rem;
  transition: color 0.3s var(--ease-in-out);
}

.footer-social a:hover {
  color: white;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s var(--ease-in-out);
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--gray-400);
}

.footer-contact i {
  width: 16px;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-xl);
  margin-top: var(--space-2xl);
  text-align: center;
}

.footer-copyright {
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.footer-heart {
  color: #ef4444;
  margin: 0 var(--space-xs);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===== POPUP ===== */
.popup-overlay {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.popup-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-header {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-radius: 28px 28px 0 0;
  padding: var(--space-2xl);
  color: white;
  position: relative;
}

.popup-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.popup-title h3 {
  color: white;
  margin-bottom: var(--space-xs);
}

.popup-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.popup-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-in-out);
}

.popup-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.popup-progress {
  margin-top: var(--space-xl);
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.popup-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
}

.step-indicators {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-indicator {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.step-indicator.active {
  background: white;
  border-color: white;
  color: #7c3aed;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.step-indicator.completed {
  background: #10b981;
  border-color: #10b981;
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.step-line {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 12px;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.step-line.completed {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.popup-body {
  padding: var(--space-2xl);
}

.test-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.test-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.step-description {
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
}

/* Cartes de sélection dans le popup */
.selection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.selection-card {
  border: 2px solid var(--gray-200);
  border-radius: 20px;
  padding: var(--space-xl);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  background: white;
  position: relative;
  overflow: hidden;
}

.selection-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.selection-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(139, 92, 246, 0.25);
}

.selection-card.selected {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  box-shadow: 0 16px 32px -8px rgba(139, 92, 246, 0.2);
}

.selection-card.selected::before {
  transform: scaleX(1);
}

.selection-content {
  display: flex;
  align-items: center;
}

.selection-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.level-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.level-beginner {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
}

.level-intermediate {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
}

.level-advanced {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
}

.selection-info {
  flex: 1;
}

.selection-info h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-xs);
}

.selection-info p {
  color: var(--gray-600);
  margin-bottom: 0;
  font-size: 0.875rem;
}

.selection-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--gray-500);
}

.selector-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.selector-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
  transition: transform 0.3s ease;
}

.selection-card.selected .selector-dot {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.selection-card.selected .selector-dot::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Résumé dans le popup */
.summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.summary-value {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.875rem;
}

/* Checkbox personnalisée */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: #dbeafe;
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  cursor: pointer;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-input:checked + .checkbox-custom {
  background: #8b5cf6;
  border-color: #8b5cf6;
  animation: checkmark 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkmark {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.checkbox-input:checked + .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.checkbox-help {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Navigation des étapes */
.step-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2xl);
}

/* ===== NOTIFICATIONS ===== */
.notification-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.notification {
  padding: 16px 20px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid;
}

.notification.success {
  background: rgba(16, 185, 129, 0.95);
  color: white;
  border-left-color: #10b981;
}

.notification.error {
  background: rgba(239, 68, 68, 0.95);
  color: white;
  border-left-color: #ef4444;
}

.notification.info {
  background: rgba(59, 130, 246, 0.95);
  color: white;
  border-left-color: #3b82f6;
}

.notification.warning {
  background: rgba(245, 158, 11, 0.95);
  color: white;
  border-left-color: #f59e0b;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification i {
  font-size: 1.25rem;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #7c3aed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--gray-600);
  font-size: 1rem;
}

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; }

.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .popup-content {
    margin: var(--space-md);
    max-height: calc(100vh - 40px);
  }
  
  .selection-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .selection-icon, .level-icon {
    margin-right: 0;
  }
  
  .step-navigation {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .step-navigation .btn {
    width: 100%;
  }
}

/* ===== ANIMATIONS GLOBALES ===== */
.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-in-up {
  animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Support pour les préférences de 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;
  }
}