/* 
 * CSS inspiré exactement de startup-pro.demo.nextjstemplates.com/pricing
 * Style sombre moderne avec couleurs et layout identiques
 */

/* === RESET ET VARIABLES === */
:root {
  /* Couleurs exactes de startup-pro dark mode */
  --background-primary: #030712;
  --background-secondary: #111827;
  --background-card: #1f2937;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-primary: #374151;
  --border-secondary: #4b5563;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-card: linear-gradient(145deg, #1f2937 0%, #111827 100%);
  --shadow-primary: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === HEADER EXACT STARTUP-PRO === */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--accent-blue);
}

.header-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* === LAYOUT PRINCIPAL === */
.main-content {
  padding-top: 70px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HERO SECTION === */
.pricing-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.pricing-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === TOGGLE BILLING === */
.billing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}

.toggle-container {
  display: flex;
  background: var(--background-card);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border-primary);
}

.toggle-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.toggle-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-card);
}

.toggle-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* === GRILLE DES PRIX === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  align-items: center; /* Alignement vertical au centre */
}

.pricing-grid::after {
  content: none; /* Visible uniquement sur petits écrans */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseArrow 2s infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes pulseArrow {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* === CARTES DE PRIX === */
.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blue);
}

.pricing-card:hover::before {
  opacity: 0.1;
}

/* Badge et mise en avant populaire */
.pricing-card.popular {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
  padding: 44px 36px;
  z-index: 2;
}

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

.pricing-card.popular::after {
  content: 'Most Popular';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 40px;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contenu des cartes */
.plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.plan-price {
  margin-bottom: 32px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Liste des fonctionnalités */
.features-list {
  list-style: none;
  margin-bottom: 32px;
}

.features-list li {
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 15px;
  position: relative;
  padding-left: 24px;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
  font-size: 16px;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-card);
}

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

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

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

/* === COMPTEUR OFFRE LIMITÉE === */
.counter-container {
  background: rgba(31, 41, 55, 0.7);
  border-top: 1px solid var(--border-primary);
  border-radius: 0 0 16px 16px;
  padding: 20px 24px;
  margin-top: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.counter-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.counter-container h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.counter-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.counter-display {
  margin-bottom: 16px;
}

.counter-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.counter-total {
  font-size: 16px;
  color: var(--text-secondary);
  margin-left: 8px;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: var(--background-secondary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.8s ease;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.counter-status {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  display: inline-block;
}

.counter-status.urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.counter-status.normal {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card {
  animation: fadeInUp 0.6s ease forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
    height: 60px;
  }
  
  .nav-links {
    display: none;
  }
  
  .pricing-hero h1 {
    font-size: 36px;
  }
  
  .pricing-hero p {
    font-size: 18px;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
  }
  
  .pricing-card {
    padding: 32px 24px;
  }
  
  .pricing-card.popular {
    padding: 32px 24px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .counter-container {
    padding: 16px;
    margin-top: 20px;
  }
  
  .counter-container h3 {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 300px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  
  .pricing-card {
    scroll-snap-align: start;
    min-width: 280px;
  }
  
  .pricing-grid::after {
    content: '';
    display: block;
  }
}

@media (max-width: 480px) {
  .pricing-hero {
    padding: 60px 0 40px;
  }
  
  .pricing-hero h1 {
    font-size: 28px;
  }
  
  .price-amount {
    font-size: 36px;
  }
  
  .counter-container {
    padding: 24px 16px;
  }
  
  .counter-number {
    font-size: 28px;
  }
}

/* === ÉTATS DE HOVER AVANCÉS === */
.pricing-card:hover .plan-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card:hover .features-list li::before {
  color: var(--accent-blue);
  transform: scale(1.2);
  transition: all 0.3s ease;
}

/* === EFFETS DE LUMIÈRE === */
.pricing-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: -1;
}

.pricing-card:hover::after {
  width: 200px;
  height: 200px;
}

/* Styles supplémentaires pour le compteur redessiné */
.pricing-card.popular .counter-container {
  margin-left: -24px;
  margin-right: -24px;
  width: calc(100% + 48px);
  margin-bottom: -32px;
}
