/**
 * ANIMATIONS - FLUIDANSE
 * Animations globales et écran de chargement
 */

/* === ÉCRAN DE CHARGEMENT === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(184, 49, 47, 0.95) 0%, 
        rgba(214, 69, 69, 0.95) 50%, 
        rgba(232, 160, 130, 0.95) 100%),
        url('../images/images_scrappees/galerie/galerie_spectacle_1.jpeg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1s ease-in-out 3s forwards;
}

.loading-logo {
    background: url('../images/images_scrappees/logo/logo_fluidanse_principal.png') center/contain no-repeat;
    width: 400px;
    height: 100px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInFade 1s ease-out 0.5s forwards;
}

.loading-subtitle {
    font-family: var(--font-texte);
    font-size: 1.2rem;
    color: var(--fluidanse-beige);
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInFade 1s ease-out 1.5s forwards;
}

.loading-progress {
    width: 300px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
    margin-top: 3rem;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: var(--fluidanse-blanc);
    width: 0;
    animation: progressBar 2s ease-in-out 1s forwards;
}

/* === ANIMATIONS KEYFRAMES === */
@keyframes slideInFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressBar {
    to {
        width: 100%;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes parallaxFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-20px) scale(1.05); 
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* === CLASSES D'ANIMATION === */
.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .loading-logo {
        width: 300px;
        height: 80px;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .loading-progress {
        width: 250px;
    }
} 