/* ============================================
   ANIMATIONS
   ============================================ */

/* Bounce animation pour scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 20px var(--glow-pink),
                     0 0 40px var(--glow-pink);
    }
    50% {
        text-shadow: 0 0 30px var(--glow-pink),
                     0 0 60px var(--glow-pink),
                     0 0 80px var(--glow-pink);
    }
}

/* CTA Pulse animation */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--glow-pink);
    }
    50% {
        box-shadow: 0 0 40px var(--glow-pink), 0 0 60px var(--glow-pink);
    }
}

/* Badge Pulse animation */
@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(124, 58, 237, 0.6);
    }
}

/* Particle float animation */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

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

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Slide up animation - NOUVEAU pour sticky CTA */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal fade in - NOUVEAU */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal scale in - NOUVEAU */
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Offer pulse - NOUVEAU pour launch offer */
@keyframes offerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--glow-pink);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 50px var(--glow-pink), 0 0 70px var(--glow-pink);
    }
}

/* ============================================
   APPLY ANIMATIONS
   ============================================ */

/* Glow text animation */
.glow-text {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* CTA Pulse on hover */
.btn-primary:hover {
    animation: ctaPulse 2s infinite;
}

/* ============================================
   GALLERY ITEMS - Staggered animations
   ============================================ */
.gallery-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }

/* ============================================
   PACKAGE CARDS - Staggered animations
   ============================================ */
.package-card {
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
    overflow: hidden;
}

.package-card:nth-child(1) { animation-delay: 0.2s; }
.package-card:nth-child(2) { animation-delay: 0.4s; }
.package-card:nth-child(3) { animation-delay: 0.6s; }

/* ============================================
   PROCESS STEPS - Staggered animations
   ============================================ */
.process-step {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.3s; }
.process-step:nth-child(3) { animation-delay: 0.5s; }
.process-step:nth-child(4) { animation-delay: 0.7s; }


/* ============================================
   FAQ ITEMS - Staggered animations
   ============================================ */
.faq-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   SMOOTH SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

/* Hover glow effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    filter: drop-shadow(0 0 20px var(--glow-pink));
}

/* Image zoom on hover */
.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Button lift on hover */
.btn-primary,
.btn-secondary,
.btn-package {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-package:hover {
    transform: translateY(-3px);
}

/* Card hover effects */
.package-wrapper,
.package-card,
.process-step,
.faq-item {
    transition: all 0.3s ease;
}

.package-wrapper:hover .package-card,
.process-step:hover {
    transform: translateY(-10px);
}

/* Social links hover effect */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) rotate(5deg);
}

/* ============================================
   MOBILE MENU ANIMATION
   ============================================ */
.nav-links {
    transition: right 0.3s ease;
}

.nav-links.active {
    animation: slideInRight 0.3s ease-out;
}

/* ============================================
   LOADING STATES
   ============================================ */

/* Skeleton loading animation */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        rgba(255,255,255,0.1) 50%,
        var(--bg-card) 100%
    );
    background-size: 200px 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

/* ============================================
   ENTRANCE ANIMATIONS FOR HERO
   ============================================ */
.hero-title {
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-tagline {
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeIn 1s ease-out 0.8s both;
}

.hero-stats {
    animation: fadeIn 1s ease-out 1s both;
}

.scroll-indicator {
    animation: fadeIn 1s ease-out 1.2s both, bounce 2s 1.5s infinite;
}

/* ============================================
   LIGHTBOX ANIMATIONS
   ============================================ */
.lightbox.active {
    animation: fadeIn 0.3s ease-out;
}

.lightbox.active .lightbox-image {
    animation: scaleIn 0.4s ease-out 0.1s both;
}

.lightbox.active .lightbox-caption {
    animation: slideInLeft 0.4s ease-out 0.2s both;
}

/* ============================================
   FILTER BUTTON ANIMATIONS
   ============================================ */
.filter-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-pink);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
    height: 100%;
}

/* ============================================
   CONTACT BUTTON MICRO-INTERACTION
   ============================================ */
.contact-btn {
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,0,110,0.2), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

/* ============================================
   MODAL ANIMATIONS - NOUVEAU
   ============================================ */
.modal-overlay {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay.active .modal-container {
    animation: modalScaleIn 0.4s ease-out;
}

/* Close animation */
.modal-overlay.closing {
    animation: modalFadeIn 0.3s ease-out reverse;
}

.modal-overlay.closing .modal-container {
    animation: modalScaleIn 0.3s ease-out reverse;
}

/* ============================================
   LAUNCH OFFER ANIMATIONS - NOUVEAU
   ============================================ */
.launch-offer {
    animation: fadeIn 1s ease-out 0.3s both;
}

.offer-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

.btn-offer:hover {
    animation: offerPulse 1.5s ease-in-out infinite;
}

/* Progress bar fill animation */
.progress-fill {
    animation: progressFill 1s ease-out 0.5s both;
}

@keyframes progressFill {
    from {
        width: 0;
    }
}

/* ============================================
   STICKY CTA ANIMATIONS - NOUVEAU
   ============================================ */
.sticky-cta {
    animation: slideUp 0.5s ease-out;
}

.sticky-cta:hover {
    animation: ctaPulse 2s infinite;
}

.sticky-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* ============================================
   PACKAGE LAUNCH BADGE - NOUVEAU
   ============================================ */
.package-launch-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .glow-text {
        animation: none;
    }
    
    .offer-badge,
    .sticky-badge,
    .package-launch-badge {
        animation: none;
    }
}

/* GPU acceleration for animations */
.gallery-item,
.package-wrapper,
.package-card,
.process-step,
.btn-primary,
.btn-secondary,
.social-link,
.modal-container,
.sticky-cta {
    will-change: transform;
}

/* ============================================
   MOBILE SPECIFIC ANIMATIONS
   ============================================ */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .gallery-item {
        animation-duration: 0.4s;
    }
    
    .package-card,
    .process-step {
        animation-duration: 0.5s;
    }
    
    /* Simplify hover effects on mobile */
    .package-card:hover,
    .process-step:hover {
        transform: translateY(-5px);
    }
    
    /* Remove complex animations on mobile for performance */
    .btn-primary:hover,
    .btn-offer:hover {
        animation: none;
    }
    
    /* Simpler modal animation on mobile */
    .modal-container {
        animation-duration: 0.3s;
    }
}
