/* =====================================================
   LE QG ACADEMY - Animations Lumineuses & Dynamiques
   Effets visuels sans interaction (auto-animés)
   Optimisé pour mobile
   ===================================================== */

/* =====================================================
   1. KEYFRAMES - ANIMATIONS DE BASE
   ===================================================== */

/* Pulsation lumineuse douce */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(255, 189, 217, 0.3),
            0 0 10px rgba(255, 189, 217, 0.2),
            0 0 20px rgba(255, 189, 217, 0.1);
    }
    50% {
        box-shadow: 
            0 0 10px rgba(255, 189, 217, 0.5),
            0 0 20px rgba(255, 189, 217, 0.4),
            0 0 40px rgba(255, 189, 217, 0.2),
            0 0 60px rgba(255, 189, 217, 0.1);
    }
}

/* Glow multicolore */
@keyframes glow-rainbow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(255, 189, 217, 0.4),
            0 0 30px rgba(255, 189, 217, 0.2);
    }
    33% {
        box-shadow: 
            0 0 15px rgba(241, 255, 175, 0.4),
            0 0 30px rgba(241, 255, 175, 0.2);
    }
    66% {
        box-shadow: 
            0 0 15px rgba(243, 234, 184, 0.4),
            0 0 30px rgba(243, 234, 184, 0.2);
    }
}

/* Shimmer - effet de brillance qui traverse */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Border glow animée */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(255, 189, 217, 0.3);
    }
    50% {
        border-color: rgba(255, 189, 217, 0.8);
    }
}

/* Floating effect */
@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Rotation douce */
@keyframes rotate-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Sparkle - étincelle */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Breathing - respiration */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Wave light - vague lumineuse */
@keyframes wave-light {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Text glow */
@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 189, 217, 0.3);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(255, 189, 217, 0.6),
            0 0 20px rgba(255, 189, 217, 0.4),
            0 0 30px rgba(255, 189, 217, 0.2);
    }
}

/* Pulse ring */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Gradient shift */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Stars twinkle */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* =====================================================
   2. BOUTONS CTA - ANIMATIONS LUMINEUSES
   ===================================================== */

/* Animation de base pour tous les boutons CTA */
.btn-cta {
    position: relative;
    overflow: hidden;
    animation: glow-pulse 3s ease-in-out infinite;
    z-index: 1;
}

/* Effet shimmer sur les boutons */
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

/* Pulse ring effect autour des boutons principaux */
.btn-cta::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(255, 189, 217, 0.6);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

/* Bouton Hero principal - effet plus intense */
.hero .btn-cta {
    animation: glow-rainbow 4s ease-in-out infinite;
}

.hero .btn-cta::after {
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Bouton pricing - animation spéciale */
.pricing-cta {
    animation: glow-pulse 2s ease-in-out infinite, breathing 3s ease-in-out infinite;
}

/* Navigation CTA */
.nav-cta {
    animation: glow-pulse 4s ease-in-out infinite;
}

.nav-cta::before {
    animation: shimmer 4s ease-in-out infinite;
}

/* =====================================================
   3. CARTES GLASS - ANIMATIONS AUTOMATIQUES
   ===================================================== */

/* Glow subtil sur toutes les cartes glass */
.glass-card {
    animation: border-glow 4s ease-in-out infinite;
    border: 1px solid rgba(255, 189, 217, 0.3);
}

/* Problem cards - animation décalée */
.problem-card:nth-child(1) {
    animation: border-glow 4s ease-in-out infinite 0s;
}
.problem-card:nth-child(2) {
    animation: border-glow 4s ease-in-out infinite 0.5s;
}
.problem-card:nth-child(3) {
    animation: border-glow 4s ease-in-out infinite 1s;
}

/* Solution cards - effet de flottement subtil */
.solution-card {
    animation: float-gentle 6s ease-in-out infinite, border-glow 4s ease-in-out infinite;
}

.solution-card:nth-child(1) { animation-delay: 0s, 0s; }
.solution-card:nth-child(2) { animation-delay: 1s, 0.5s; }
.solution-card:nth-child(3) { animation-delay: 2s, 1s; }
.solution-card:nth-child(4) { animation-delay: 3s, 1.5s; }

/* Impact cards */
.impact-card {
    animation: border-glow 5s ease-in-out infinite;
}

.impact-card:nth-child(1) { animation-delay: 0s; }
.impact-card:nth-child(2) { animation-delay: 0.5s; }
.impact-card:nth-child(3) { animation-delay: 1s; }
.impact-card:nth-child(4) { animation-delay: 1.5s; }

/* Calc cards - glow animé */
.calc-card {
    animation: glow-pulse 3s ease-in-out infinite;
}

.calc-card:nth-child(1) { animation-delay: 0s; }
.calc-card:nth-child(2) { animation-delay: 0.3s; }
.calc-card:nth-child(3) { animation-delay: 0.6s; }

/* Module cards */
.module {
    position: relative;
}

.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-pink), 
        var(--color-yellow), 
        var(--color-cream), 
        var(--color-pink)
    );
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Pricing card - glow premium */
.pricing-card {
    animation: glow-rainbow 5s ease-in-out infinite;
}

/* Choice cards */
.choice-yes {
    animation: glow-pulse 3s ease-in-out infinite;
}

.choice-no {
    animation: border-glow 5s ease-in-out infinite;
    border-color: rgba(96, 92, 71, 0.2);
}

/* =====================================================
   4. ICÔNES - ANIMATIONS
   ===================================================== */

/* Icônes dans les cartes */
.card-icon,
.impact-icon {
    animation: breathing 3s ease-in-out infinite;
}

.problem-card:nth-child(1) .card-icon { animation-delay: 0s; }
.problem-card:nth-child(2) .card-icon { animation-delay: 0.3s; }
.problem-card:nth-child(3) .card-icon { animation-delay: 0.6s; }

/* Timeline markers */
.timeline-marker {
    animation: glow-pulse 3s ease-in-out infinite;
    position: relative;
}

.timeline-item:nth-child(1) .timeline-marker { animation-delay: 0s; }
.timeline-item:nth-child(2) .timeline-marker { animation-delay: 0.2s; }
.timeline-item:nth-child(3) .timeline-marker { animation-delay: 0.4s; }
.timeline-item:nth-child(4) .timeline-marker { animation-delay: 0.6s; }
.timeline-item:nth-child(5) .timeline-marker { animation-delay: 0.8s; }

/* Check icons - pulse subtil */
.check-icon {
    animation: breathing 2s ease-in-out infinite;
    display: inline-block;
}

/* Module numbers */
.module-number {
    animation: glow-pulse 4s ease-in-out infinite;
}

/* =====================================================
   5. TEXTE - ANIMATIONS LUMINEUSES
   ===================================================== */

/* Accent cursive - glow */
.accent-cursive {
    animation: text-glow 3s ease-in-out infinite;
}

/* Prix principal */
.price-main,
.price-highlight {
    animation: text-glow 2s ease-in-out infinite;
}

/* Highlights text */
.text-highlight {
    position: relative;
    animation: breathing 4s ease-in-out infinite;
}

/* Hero subtitle highlight */
.hero-subtitle .highlight {
    animation: text-glow 2.5s ease-in-out infinite;
}

/* =====================================================
   6. ÉLÉMENTS DE FOND - PARTICULES LUMINEUSES
   ===================================================== */

/* Conteneur de particules */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Particules individuelles */
.particle {
    position: absolute;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

/* Floating circles améliorés */
.floating-circle {
    animation: float-gentle 8s ease-in-out infinite, glow-pulse 4s ease-in-out infinite;
}

.circle-1 {
    animation-delay: 0s, 0s;
}

.circle-2 {
    animation-delay: 2s, 1s;
}

.circle-3 {
    animation-delay: 4s, 2s;
}

/* Hero blob */
.hero-blob {
    animation: rotate-slow 30s linear infinite, breathing 8s ease-in-out infinite;
}

/* =====================================================
   7. SECTIONS SPÉCIALES
   ===================================================== */

/* Vision section - ambiance magique */
.vision-section .glass-card {
    animation: glow-rainbow 6s ease-in-out infinite;
}

/* MRR section - emphase sur les calculs */
.mrr-section .mrr-definition {
    animation: border-glow 4s ease-in-out infinite;
}

/* FAQ items - no animation */

/* PS section - glow important */
.ps-content {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Recap items */
.recap-item {
    animation: border-glow 4s ease-in-out infinite;
}

.recap-item:nth-child(1) { animation-delay: 0s; }
.recap-item:nth-child(2) { animation-delay: 0.2s; }
.recap-item:nth-child(3) { animation-delay: 0.4s; }
.recap-item:nth-child(4) { animation-delay: 0.6s; }
.recap-item:nth-child(5) { animation-delay: 0.8s; }
.recap-item:nth-child(6) { animation-delay: 1s; }
.recap-item:nth-child(7) { animation-delay: 1.2s; }

/* Total value box */
.total-value {
    animation: glow-rainbow 4s ease-in-out infinite;
    padding: 30px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   8. COMPARAISON TABLE
   ===================================================== */

.comparison-table {
    animation: border-glow 5s ease-in-out infinite;
}

.comparison-row {
    position: relative;
}

.comparison-cell.after {
    position: relative;
}

.comparison-cell.after::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--color-pink);
    animation: grow-height 2s ease-out forwards;
    animation-delay: calc(var(--row-index, 0) * 0.2s);
    border-radius: 2px;
}

@keyframes grow-height {
    to {
        height: 80%;
    }
}

/* =====================================================
   9. SCROLL TO TOP BUTTON
   ===================================================== */

.scroll-to-top {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* =====================================================
   10. NAVBAR GLOW
   ===================================================== */

.navbar {
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 189, 217, 0.5) 20%,
        rgba(241, 255, 175, 0.5) 50%,
        rgba(255, 189, 217, 0.5) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: gradient-shift 4s ease infinite;
}

/* =====================================================
   11. TESTIMONIALS GLOW
   ===================================================== */

.testimonial-screenshot {
    animation: border-glow 4s ease-in-out infinite;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.testimonial-screenshot:nth-child(1) { animation-delay: 0s; }
.testimonial-screenshot:nth-child(2) { animation-delay: 0.3s; }
.testimonial-screenshot:nth-child(3) { animation-delay: 0.6s; }
.testimonial-screenshot:nth-child(4) { animation-delay: 0.9s; }

/* =====================================================
   12. FORWHO CARDS
   ===================================================== */

.forwho-yes {
    animation: glow-pulse 4s ease-in-out infinite;
}

.forwho-no {
    animation: border-glow 5s ease-in-out infinite;
}

/* =====================================================
   13. RESSOURCE ITEMS
   ===================================================== */

.resource-item {
    position: relative;
    padding-left: 20px;
}

.resource-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-pink);
    animation: breathing 3s ease-in-out infinite;
    border-radius: 2px;
}

/* =====================================================
   14. LOGO ANIMATION
   ===================================================== */

.logo-img {
    animation: breathing 4s ease-in-out infinite;
}

/* =====================================================
   15. MOBILE OPTIMIZATIONS
   ===================================================== */

@media (max-width: 768px) {
    /* Réduire l'intensité des animations sur mobile */
    
    .btn-cta {
        animation: glow-pulse 4s ease-in-out infinite;
    }
    
    .btn-cta::after {
        animation: pulse-ring 3s ease-out infinite;
    }
    
    .btn-cta::before {
        animation: shimmer 4s ease-in-out infinite;
    }
    
    /* Simplifier les animations de cartes */
    .solution-card {
        animation: border-glow 5s ease-in-out infinite;
    }
    
    .glass-card {
        animation: border-glow 5s ease-in-out infinite;
    }
    
    /* Réduire le floating effect */
    .floating-circle {
        animation: float-gentle 12s ease-in-out infinite;
    }
    
    /* Simplifier les glows sur texte */
    .accent-cursive,
    .price-main,
    .price-highlight {
        animation: text-glow 4s ease-in-out infinite;
    }
    
    /* Timeline markers plus subtils */
    .timeline-marker {
        animation: glow-pulse 4s ease-in-out infinite;
    }
    
    /* Module avant effet plus simple */
    .module::before {
        animation: gradient-shift 6s ease infinite;
    }
}

@media (max-width: 480px) {
    /* Animations encore plus légères pour petits écrans */
    
    .btn-cta {
        animation: glow-pulse 5s ease-in-out infinite;
    }
    
    .btn-cta::after {
        display: none; /* Désactiver le pulse ring */
    }
    
    .glass-card {
        animation: none;
        border: 1px solid rgba(255, 189, 217, 0.3);
    }
    
    /* Garder quelques animations essentielles */
    .pricing-card,
    .choice-yes,
    .ps-content {
        animation: border-glow 6s ease-in-out infinite;
    }
    
    .hero .btn-cta,
    .pricing-cta {
        animation: glow-pulse 4s ease-in-out infinite;
    }
    
    /* Simplifier les icônes */
    .card-icon,
    .impact-icon {
        animation: none;
    }
    
    /* Floating circles désactivés */
    .floating-circle {
        animation: none;
        opacity: 0.3;
    }
    
    /* Désactiver les effets de fond sur mobile */
    .hero::after,
    .pricing-section::after,
    .choice-section::after {
        display: none;
    }
}

/* =====================================================
   16. RESPECT DES PRÉFÉRENCES UTILISATEUR
   ===================================================== */

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

/* =====================================================
   17. EFFETS SPÉCIAUX ADDITIONNELS
   ===================================================== */

/* Gradient animé sur le fond de sections */
.hero,
.pricing-section,
.choice-section {
    position: relative;
}

.hero::after,
.pricing-section::after,
.choice-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 189, 217, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(241, 255, 175, 0.1) 0%, transparent 50%);
    animation: breathing 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Star decoration */
.star-decoration {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-pink);
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 189, 217, 0.8);
}

/* =====================================================
   18. HOVER ENHANCEMENTS (conservés pour desktop)
   ===================================================== */

@media (hover: hover) {
    .btn-cta:hover {
        animation: glow-rainbow 1s ease-in-out infinite;
        transform: translateY(-2px);
    }
    
    .glass-card:hover {
        animation: glow-pulse 1.5s ease-in-out infinite;
    }
    
    .timeline-item:hover .timeline-marker {
        animation: glow-rainbow 1s ease-in-out infinite;
    }
}
