/**
 * ================================================================
 * PREMIUM PAGE STYLES - QUIZ DE CARABIN
 * ================================================================
 * Design immersif avec animations et responsive
 * À placer dans: frontend/css/premium.css
 * ================================================================
 */

/* ===========================
   VARIABLES
   =========================== */
:root {
  --premium-gold: #ffd700;
  --premium-orange: #ff9800;
  --primary-color: #00d4ff;
  --secondary-color: #667eea;
  --success-color: #43e97b;
  --dark-bg: #0f0f1e;
  --card-bg: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #b8b8d1;
}

/* ===========================
   LAYOUT & BACKGROUND
   =========================== */
body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.premium-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
}

/* Orbes de gradient animés */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--premium-gold), var(--premium-orange));
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-color), var(--secondary-color));
  top: 40%;
  right: -300px;
  animation-delay: 5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-color), var(--primary-color));
  bottom: -200px;
  left: 30%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 50px) scale(0.9);
  }
  75% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

/* Particules flottantes */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--premium-gold);
  border-radius: 50%;
  box-shadow: 
    0 0 10px var(--premium-gold),
    100px 200px 10px var(--primary-color),
    200px 100px 10px var(--premium-gold),
    300px 300px 10px var(--secondary-color);
  animation: particles 15s linear infinite;
}

@keyframes particles {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-1000px) rotate(360deg);
    opacity: 0;
  }
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar.transparent {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
}

/* ===========================
   HERO SECTION
   =========================== */
.premium-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

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

.crown-icon {
  font-size: 5rem;
  color: var(--premium-gold);
  margin-bottom: 30px;
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 30px 0;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-orange), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin: 0 0 50px 0;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--premium-gold), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===========================
   SECTION HEADER
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===========================
   PLANS COMPARISON
   =========================== */
.plans-comparison {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: start;
}

/* Plan Card */
.plan-card {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 40px 30px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: slideUp 0.6s ease backwards;
}

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

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

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Plan Featured (Premium Mensuel) */
.plan-card.featured {
  border-color: var(--premium-gold);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
  transform: scale(1.05);
}

.plan-card.featured:hover {
  transform: scale(1.08) translateY(-10px);
}

/* Badges */
.featured-badge,
.savings-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-badge {
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-orange));
  color: var(--dark-bg);
}

.savings-badge {
  background: linear-gradient(135deg, var(--success-color), #38f9d7);
  color: white;
}

/* Plan Header */
.plan-header {
  text-align: center;
  margin-bottom: 30px;
}

.plan-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

.plan-icon.premium {
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-orange));
  color: var(--dark-bg);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.plan-name {
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--premium-gold), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-currency {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.price-period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.plan-description {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.original-price {
  text-decoration: line-through;
  color: #ee5a6f;
  display: block;
  margin-bottom: 5px;
}

/* Features List */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.feature-item {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item i {
  color: var(--success-color);
  margin-top: 3px;
  flex-shrink: 0;
}

.feature-item.disabled {
  opacity: 0.4;
}

.feature-item.disabled i {
  color: #ee5a6f;
}

.feature-item.highlight {
  background: rgba(255, 215, 0, 0.05);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.feature-item.highlight i {
  color: var(--premium-gold);
}

/* Plan Buttons */
.plan-btn {
  width: 100%;
  padding: 16px 30px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-free {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-free:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-premium {
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-orange));
  color: var(--dark-bg);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-premium:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.btn-annual {
  background: linear-gradient(135deg, var(--success-color), #38f9d7);
  color: white;
  box-shadow: 0 10px 30px rgba(67, 233, 123, 0.4);
}

.btn-annual:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(67, 233, 123, 0.5);
}

.guarantee {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guarantee i {
  color: var(--success-color);
}

/* ===========================
   FEATURES SHOWCASE
   =========================== */
.features-showcase {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.2);
}

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

.feature-card {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--premium-gold);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-orange));
  color: var(--dark-bg);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin: 0 0 15px 0;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.rating {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  color: var(--premium-gold);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img,
.avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.testimonial-author strong {
  display: block;
  margin-bottom: 3px;
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===========================
   FAQ
   =========================== */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
  color: var(--premium-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 25px 20px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   FINAL CTA
   =========================== */
.final-cta {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 100px;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin: 0 0 20px 0;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 0 40px 0;
}

.cta-btn {
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-orange));
  color: var(--dark-bg);
  border: none;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.cta-note {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .premium-hero {
    padding: 100px 15px 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .plan-card {
    padding: 30px 20px;
  }

  .price-amount {
    font-size: 2.5rem;
  }
}