/* ============================================================
   MONCOACH CONVERSION BOOST CSS v1.0
   Optimisations visuelles pour maximiser les conversions
   ============================================================ */

/* ==========================================
   AMÉLIORATION LANDING PAGE HERO
   ========================================== */

.landing-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-benefits {
  position: relative;
}

.hero-benefit {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.hero-benefit:nth-child(1) { animation-delay: 0.1s; }
.hero-benefit:nth-child(2) { animation-delay: 0.2s; }
.hero-benefit:nth-child(3) { animation-delay: 0.3s; }
.hero-benefit:nth-child(4) { animation-delay: 0.4s; }

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

/* CTA Buttons - Plus impactants */
.btn-primary-large,
.upgrade-cta,
.stripe-submit,
.auth-submit,
.pro-gate-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.btn-primary-large:hover,
.upgrade-cta:hover,
.stripe-submit:hover,
.auth-submit:hover,
.pro-gate-btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5) !important;
}

.btn-primary-large::after,
.upgrade-cta::after,
.stripe-submit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary-large:hover::after,
.upgrade-cta:hover::after,
.stripe-submit:hover::after {
  transform: translateX(100%);
}

/* ==========================================
   TRUST INDICATORS - PLUS VISIBLES
   ========================================== */

.trust-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%) !important;
  border-top: none !important;
  border-bottom: 2px solid #e0e7ff !important;
}

.trust-item strong {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge animé */
.trust-badge-main,
.cb-testimonials-badge {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(34, 197, 94, 0.2);
  }
}

/* ==========================================
   CARDS - HOVER EFFECTS AMÉLIORÉS
   ========================================== */

.testimonial-item,
.feature-item,
.step-simple,
.cb-testimonial-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.testimonial-item:hover,
.feature-item:hover,
.step-simple:hover,
.cb-testimonial-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================
   PRICING CARDS - PLUS ATTRACTIFS
   ========================================== */

.pricing-card,
.stripe-plan {
  transition: all 0.3s ease !important;
}

.pricing-card:hover,
.stripe-plan:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.pricing-card.popular,
.stripe-plan.selected {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25) !important;
  border-width: 3px !important;
}

.pricing-card.popular::before,
.pricing-badge,
.plan-badge {
  animation: bounce-subtle 2s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

/* ==========================================
   MODALS - PLUS PREMIUM
   ========================================== */

.modal-overlay,
.stripe-modal-overlay,
.cb-exit-overlay {
  backdrop-filter: blur(8px) !important;
}

.upgrade-modal,
.stripe-modal,
.auth-modal {
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

/* ==========================================
   TRIAL BANNER - PLUS VISIBLE
   ========================================== */

.trial-banner,
.stripe-trial-info {
  position: relative;
  overflow: hidden;
}

.trial-banner::before,
.stripe-trial-info::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(-30%, -30%); }
  50% { transform: translate(30%, 30%); }
}

/* ==========================================
   GARANTIE - BADGE RENFORCÉ
   ========================================== */

.cb-guarantee-badge {
  animation: guarantee-pulse 3s ease-in-out infinite;
}

@keyframes guarantee-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

/* ==========================================
   COACH LOUIS - PLUS HUMAIN
   ========================================== */

.coach-card {
  position: relative;
  overflow: visible;
}

.coach-card::before {
  content: '💬';
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 32px;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

.coach-status {
  position: relative;
}

.coach-status .status-dot {
  animation: online-pulse 2s ease-in-out infinite;
}

@keyframes online-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* ==========================================
   URGENCY ELEMENTS
   ========================================== */

.cb-urgency-timer {
  animation: urgency-shake 10s ease-in-out infinite;
}

@keyframes urgency-shake {
  0%, 90%, 100% { transform: translateX(0); }
  92%, 96% { transform: translateX(-3px); }
  94%, 98% { transform: translateX(3px); }
}

.cb-timer-countdown {
  animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* ==========================================
   QUIZ OPTIONS - PLUS ENGAGEANTS
   ========================================== */

.quiz-option,
.goal-card,
.eq-option {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.quiz-option:hover,
.goal-card:hover,
.eq-option:hover {
  transform: translateX(8px) !important;
  border-color: #3b82f6 !important;
  background: linear-gradient(135deg, #eff6ff, #fff) !important;
}

.quiz-option:active,
.goal-card:active,
.eq-option:active {
  transform: scale(0.98) !important;
}

/* ==========================================
   SOCIAL PROOF - NOTIFICATIONS
   ========================================== */

.cb-social-proof {
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cb-social-proof.cb-sp-visible {
  animation: attention-grab 0.5s ease-in-out;
}

@keyframes attention-grab {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ==========================================
   LIVE VIEWERS BADGE
   ========================================== */

.cb-live-viewers {
  animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================
   FORM INPUTS - MEILLEURE UX
   ========================================== */

input:focus,
select:focus,
textarea:focus,
.chat-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

/* Placeholder plus visible */
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  transition: opacity 0.2s;
}

input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0.5;
}

/* ==========================================
   RESPONSIVE OPTIMIZATIONS
   ========================================== */

@media (max-width: 768px) {
  .btn-primary-large,
  .upgrade-cta,
  .stripe-submit {
    padding: 16px 24px !important;
    font-size: 16px !important;
  }
  
  .pricing-card.popular {
    transform: scale(1.02);
  }
  
  .cb-social-proof {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* ==========================================
   PERFORMANCE - REDUCE MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   DARK MODE SUPPORT (FUTURE)
   ========================================== */

@media (prefers-color-scheme: dark) {
  /* Préparation pour un futur mode sombre */
}
