/* ================================
   VARIABLES CSS - THÈME LIGHT
   ================================ */
:root {
  /* Couleurs */
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Neutres - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border-color: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  
  /* Espacements */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ================================
   THÈME DARK
   ================================ */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #475569;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ================================
   RESET & BASE
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
  font-size: 16px;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px var(--spacing-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--spacing-xl);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #ec4899, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: #a78bfa;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a78bfa, #ec4899);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  justify-content: flex-end;
}

.nav-actions .btn {
  white-space: nowrap;
}

.theme-toggle {
  background: var(--bg-tertiary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  padding: 11px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.5);
  color: #cbd5e1;
  border: 1.5px solid rgba(51, 65, 85, 0.8);
}

.btn-secondary:hover {
  background: #7c3aed;
  color: white;
  border-color: #7c3aed;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #7c3aed;
  color: #a78bfa;
}

.btn-outline:hover {
  background: #7c3aed;
  color: white;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

/* ================================
   CONTAINERS & SECTIONS
   ================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

section {
  padding: var(--spacing-2xl) 0;
}

h1 {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.hero-buttons .btn {
  font-size: 15px;
  padding: 12px 28px;
  min-width: 160px;
}

/* ================================
   CARDS
   ================================ */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-lg);
}

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

.card h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  flex: 1;
}

/* ================================
   PRICING CARDS
   ================================ */
.pricing-card {
  position: relative;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all var(--transition-base);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.pricing-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.pricing-price {
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: var(--spacing-lg) 0;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.pricing-features {
  text-align: left;
  margin: var(--spacing-xl) 0;
}

.pricing-features li {
  padding: var(--spacing-md) 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
  margin-right: var(--spacing-md);
}

/* ================================
   GRID LAYOUT
   ================================ */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ================================
   FORMS
   ================================ */
.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

/* ================================
   UTILITIES
   ================================ */
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
  nav {
    gap: var(--spacing-lg);
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .pricing-card.featured {
    transform: scale(1.02);
  }

  .pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
  }
}

@media (max-width: 768px) {
  nav {
    grid-template-columns: 1fr;
    padding: 16px var(--spacing-lg);
    gap: var(--spacing-md);
  }

  .logo {
    font-size: 18px;
    justify-self: start;
  }

  .nav-links {
    grid-column: 1 / -1;
    gap: 16px;
    justify-content: flex-start;
    order: 3;
  }

  .nav-links a {
    font-size: 12px;
  }

  .nav-actions {
    justify-self: end;
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero {
    padding: var(--spacing-lg);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    min-width: unset;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .pricing-badge {
    top: -12px;
    padding: 5px 16px;
    font-size: 11px;
  }

  section {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 480px) {
  nav {
    grid-template-columns: 1fr;
    padding: 12px var(--spacing-md);
  }

  .logo {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 11px;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  .pricing-price {
    font-size: 36px;
  }
}

/* ================================
   AUTRES CLASSES
   ================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  color: var(--text-secondary);
  font-size: 15px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 18px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: var(--spacing-xl) 0;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-2xl) 0;
  margin-top: 0;
}

footer h4 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: var(--spacing-sm);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--primary);
}

footer p {
  color: var(--text-secondary);
  font-size: 13px;
}
