/* =====================================================
   GLOBAL PROS SOLUTIONS - ANIMATIONS PREMIUM
   Animations avancées pour pages dynamiques
   ===================================================== */

/* ================================================
   1. SCROLL REVEAL ANIMATIONS
   ================================================ */

.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Variantes de direction */
.reveal-from-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-from-right {
    opacity: 0;
    transform: translateX(40px);
}

.reveal-from-left.reveal-visible,
.reveal-from-right.reveal-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.reveal-visible {
    opacity: 1;
    transform: scale(1);
}


/* ================================================
   2. KEYFRAME ANIMATIONS
   ================================================ */

/* Float Animation - Subtile */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Animation - Badges */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
    }
}

/* Icon Bounce */
@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1) translateY(-5px);
    }
    50% {
        transform: scale(1.05) translateY(-2px);
    }
    75% {
        transform: scale(1.08) translateY(-3px);
    }
}

/* Number Scale */
@keyframes numberScale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 184, 230, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 184, 230, 0.6);
    }
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Slide In Bottom */
@keyframes slideInBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide In Top */
@keyframes slideInTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Rotate In */
@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}


/* ================================================
   3. HOVER EFFECTS PREMIUM
   ================================================ */

/* Hover Lift avec Shadow */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.15);
}

/* Hover Glow */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 184, 230, 0.4),
                0 10px 40px rgba(0, 51, 102, 0.2);
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Hover Tilt (3D) */
.hover-tilt {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}


/* ================================================
   4. LOADING & PROGRESS ANIMATIONS
   ================================================ */

/* Progress Bar Fill */
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: inherit;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

/* Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid rgba(0, 51, 102, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}


/* ================================================
   5. LIST ITEM ANIMATIONS
   ================================================ */

.list-item-hidden {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-item-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}


/* ================================================
   6. CARD ANIMATIONS SPÉCIFIQUES
   ================================================ */

/* Pillar Card Enhanced */
.pillar-card-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

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

/* Offer Card Enhanced */
.offer-card-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

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

/* Step Card */
.step-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 184, 230, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.step-card:hover::before {
    left: 100%;
}


/* ================================================
   7. LOGO REVEAL ANIMATION
   ================================================ */

.client-logo-card,
.logo-reveal {
    animation: slideInBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* Testimonial Card */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================
   8. BUTTON ANIMATIONS
   ================================================ */

.btn-primary,
.btn-offer,
.btn-cta-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before,
.btn-offer::before,
.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-offer:hover::before,
.btn-cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover,
.btn-offer:hover,
.btn-cta-primary:hover {
    transform: translateY(-3px);
}

.btn-primary:active,
.btn-offer:active,
.btn-cta-primary:active {
    transform: translateY(-1px);
}


/* ================================================
   9. SECTION TRANSITIONS
   ================================================ */

section {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ================================================
   10. RESPONSIVE ANIMATIONS
   ================================================ */

@media (max-width: 768px) {
    /* Réduire les animations sur mobile pour performance */
    .reveal-element {
        transform: translateY(20px);
    }
    
    .hover-lift:hover,
    .hover-scale:hover {
        transform: none;
    }
    
    .pillar-card-premium:hover,
    .offer-card-premium:hover {
        transform: translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Désactiver animations pour accessibilité */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ================================================
   11. SCROLL PROGRESS BAR
   ================================================ */

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.1s ease;
}


/* ================================================
   12. UTILITY CLASSES
   ================================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }
.duration-700 { transition-duration: 0.7s; }
.duration-1000 { transition-duration: 1s; }
