.pricing-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5rem 2rem;
  overflow: hidden;
}

.pricing-container {
  max-width: 1400px;
  margin: 0 auto;
}

.bg-animated {
  position: absolute; /* avant: fixed -> on limite à la section */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1729 100%);
}

.bg-animated::before,
.bg-animated::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.bg-animated::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -300px;
  left: -200px;
  animation-delay: -5s;
}

.bg-animated::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: -250px;
  right: -150px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* HEADER */
.pricing-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 5rem;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 0 80px rgba(139, 92, 246, 0.3);
}

.pricing-subtitle {
  font-size: 1.5rem;
  color: #94a3b8;
  margin: 0;
  font-weight: 400;
}

/* Comparison hint */
.comparison-hint {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 3rem;
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: #a78bfa;
  font-size: 0.9rem;
  font-weight: 600;
}

/* GRID */
.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  perspective: 1000px;
}

/* CARDS */
.pricing-card {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 1s ease-out backwards;
  overflow: hidden;
  transform-style: preserve-3d;
}

.pricing-card:nth-child(1) { animation-delay: 0.6s; }
.pricing-card:nth-child(2) { animation-delay: 0.8s; }
.pricing-card:nth-child(3) { animation-delay: 1s; }

/* Glow effect on hover */
.pricing-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #8b5cf6);
  border-radius: 28px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
  animation: rotate 3s linear infinite;
  background-size: 200% 200%;
}

@keyframes rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pricing-card:hover::before {
  opacity: 0.4;
}

.pricing-card:hover {
  transform: translateY(-16px) rotateX(2deg);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow:
    0 40px 100px rgba(139, 92, 246, 0.3),
    0 0 0 1px rgba(139, 92, 246, 0.1) inset;
  background: rgba(20, 30, 50, 0.7);
}

/* Featured */
.pricing-card.featured {
  border: 2px solid rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.08);
  transform: scale(1.08);
  box-shadow: 0 30px 80px rgba(139, 92, 246, 0.25);
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-16px) rotateX(2deg);
}

.pricing-card.featured::before {
  opacity: 0.2;
}

.pricing-card.featured:hover::before {
  opacity: 0.5;
}

/* Badge */
.card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* Card header */
.card-header {
  margin-bottom: 2rem;
}

.card-name {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.pricing-card:hover .card-name {
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-tagline {
  font-size: 1rem;
  color: #94a3b8;
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

/* Price block */
.card-price {
  margin: 1.75rem 0;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.pricing-card:hover .card-price {
  transform: scale(1.05);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.2) inset;
}

.card-price::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.pricing-card:hover .card-price::before {
  left: 100%;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.price-note {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.75rem 0 0 0;
  font-weight: 500;
}

/* Features */
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  opacity: 0.8;
  transition: all 0.3s ease;
  transform-origin: left;
}

.pricing-card:hover .feature-item {
  opacity: 1;
  padding-left: 0.5rem;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  margin-top: 0.125rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* CTA Button with magnetic effect */
.card-cta {
  position: relative;
  width: 100%;
  padding: 1.4rem 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
  font-family: inherit;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.card-cta::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 ease;
}

.card-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(139, 92, 246, 0.6),
    0 0 0 3px rgba(139, 92, 246, 0.2);
}

.card-cta:hover::before {
  left: 100%;
}

.card-cta:active {
  transform: translateY(-2px) scale(0.98);
}

.card-cta::after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.card-cta:hover::after {
  opacity: 1;
  right: 1rem;
}

/* Trust section */
.trust-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.trust-text {
  font-size: 1.125rem;
  color: #a78bfa;
  margin: 0;
  font-weight: 600;
}

/* Success toast */
.success-message {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
  font-weight: 600;
  z-index: 1000;
}

.success-message.show {
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: scale(1) translateY(-16px);
  }
}

@media (max-width: 768px) {
  .pricing-section {
  padding: 2.5rem 1rem;
  }

  .pricing-grid {
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 1.6rem;
  }

  .pricing-title {
    font-size: 2.4rem;
  }

  .pricing-subtitle {
    font-size: 1.05rem;
  }

 .card-header {
    margin-bottom: 1.5rem;
  }
  
  .card-name {
   font-size: 1.75rem;
  }

  .card-tagline {
    font-size: 0.95rem;
  }

  .card-price {
    margin: 1.5rem 0;
    padding: 1.35rem;
  }

  .price-amount {
   font-size: 2.3rem;
  }

  .price-note {
    font-size: 0.8rem;
  }

  .card-features {
    margin-bottom: 1.75rem;
  }

  .feature-item {
    padding: 0.75rem 0;
  }

  .card-cta {
    padding: 1.1rem 1.4rem;
    font-size: 1.05rem;
  }
  
    .card-badge {
    top: 0.9rem;
    right: 0.9rem;
    font-size: 0.65rem;
    padding: 0.5rem 0.9rem;
    letter-spacing: 0.06em;
  }
-

  .pricing-header {
    margin-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}