/* Animation d'accueil */
#welcome-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #355379fc; /* Fond de secours si la vidéo ne charge pas */
    z-index: 1000;
    overflow: hidden;
}

/* Vidéo d'arrière-plan */
#animation-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pour couvrir tout l'espace */
    z-index: -1; /* Placer la vidéo en arrière-plan */
}

/* Contenu de l'animation */
.animation-content {
    text-align: center;
    color: #fff;
    z-index: 1; /* Placer le contenu au-dessus de la vidéo */
    animation: fadeIn 2s ease-in-out; /* Animation d'apparition */
}

.animation-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideDown 1.5s ease-in-out; /* Animation du titre */
}

.animation-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: slideUp 1.5s ease-in-out; /* Animation du texte */
}

/* Bouton "Passer l'animation" */
#skip-animation {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: fadeIn 2.5s ease-in-out; /* Animation du bouton */
}

#skip-animation:hover {
    background-color: #0056b3;
}

/* Animations CSS */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideDown {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .animation-content h1 {
        font-size: 2rem; /* Taille du titre réduite sur mobile */
    }

    .animation-content p {
        font-size: 1.2rem; /* Taille du texte réduite sur mobile */
    }

    #skip-animation {
        font-size: 0.9rem; /* Taille du bouton réduite sur mobile */
    }
}