/* VideoGenAPI - Styles optimisés */
.videoapi-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 25%, #EC4899 50%, #F97316 100%);
}

.videoapi-gradient-text {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 25%, #EC4899 50%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Optimisations vidéo */
.video-container {
    position: relative;
    overflow: hidden;
    background-color: #111827;
}

.video-lazy {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.video-lazy.loaded {
    opacity: 1;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    background-size: 400% 400%;
    animation: shimmer 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder::before {
    content: '';
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #9ca3af;
    opacity: 0.5;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3e%3cpath d='M8 5v14l11-7z'/%3e%3c/svg%3e") no-repeat center;
    mask-size: 24px;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optimisations mobile */
@media (max-width: 768px) {
    .video-container {
        border-radius: 12px;
    }

    .video-lazy {
        object-fit: cover;
    }
}

/* Animations optimisées */
.float {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: float 8s ease-in-out infinite;
}

.float-fast {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Optimisations de performance */
.transform-gpu {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.will-change-transform {
    will-change: transform;
}

/* Réduction du nombre de repaints */
.group-hover-optimized:hover .scale-effect {
    transform: scale(1.05) translateZ(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Styles pour l'Intersection Observer */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Preload optimizations */
.preload-critical {
    font-display: swap;
}
