/* Animations de base améliorées */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(29, 185, 84, 0.5),
            0 0 60px rgba(29, 185, 84, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(29, 185, 84, 0.8),
            0 0 120px rgba(29, 185, 84, 0.5);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delay-1 {
    animation: slideUp 0.8s ease-out 0.3s both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.6s both;
}

.animate-slide-up-delay-3 {
    animation: slideUp 0.8s ease-out 0.9s both;
}

/* Hero gradient pour mobile amélioré */
.hero-gradient {
    background: linear-gradient(135deg,
            rgba(29, 185, 84, 0.3) 0%,
            rgba(0, 0, 0, 0.8) 50%,
            rgba(30, 215, 96, 0.3) 100%);
}

.hero-gradient-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(29, 185, 84, 0.4) 0%,
            rgba(0, 0, 0, 0.9) 30%,
            rgba(0, 0, 0, 0.9) 70%,
            rgba(30, 215, 96, 0.4) 100%);
    z-index: 1;
}

/* Effets de verre améliorés */
.glass-effect {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(29, 185, 84, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Effets de survol */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(29, 185, 84, 0.3);
}

.nike-hover {
    transition: all 0.2s ease;
}

.nike-hover:hover {
    color: #1ed760 !important;
    transform: translateX(5px);
}

/* Styles des boutons */
.btn-hero {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #1DB954, #1ed760);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1ed760, #1DB954);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.4);
}

.glow-effect:hover {
    animation: pulse-glow 2s infinite;
}

.pulse-green {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Texte néon */
.neon-text {
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.5),
        0 0 20px rgba(29, 185, 84, 0.3),
        0 0 30px rgba(29, 185, 84, 0.1);
}

/* Gradients héro */
.hero-gradient {
    background: linear-gradient(45deg, #1DB954, #1ed760);
}

/* Vidéo responsive optimisée pour mobile */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.video-bg.loaded {
    opacity: 1;
}

/* Optimisations mobiles */
@media (max-width: 768px) {
    .video-container {
        display: block !important;
    }

    .hero-gradient-fallback.show {
        display: block !important;
    }

    .video-bg {
        /* Forcer l'affichage sur mobile */
        display: block !important;
        min-height: 100vh;
        width: 100vw;
        object-fit: cover;
    }
}

/* Performance et compatibilité */
@media (prefers-reduced-motion: reduce) {

    .floating,
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-up-delay-1,
    .animate-slide-up-delay-2,
    .animate-slide-up-delay-3 {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 2rem;
        line-height: 1.2;
    }
}