/* Limiter la vidéo d'arrière-plan à la section ContactAnime */
.ContactAnime {
    position: relative;
}

.ContactAnime .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.ContactAnime .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Style de la section de contact */
.contact-section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 50px;
    height: 20vh;
}

.contact-section h1,
.contact-section p {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.contact-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation-delay: 0.5s;
}

.contact-section p {
    font-size: 1.2rem;
    margin: 5px 0;
    animation-delay: 1s;
}

.contact-section a {
    color: #ffe600;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Animation du texte */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Mobile display */



#ContactAnimeMobile {
    display: none; /* Masqué par défaut sur les grands écrans */
}


@media screen and (max-width: 810px) {

    .ContactAnime {
        display: none;
    }

    #ContactAnimeMobile {
        display: block; /* Visible uniquement en mode mobile */
    }

    #ContactAnimeMobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
    }

    #ContactAnimeMobile .video-background {
        width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
    }

    #ContactAnimeMobile .video-background video {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    #ContactAnimeMobile .contact-section {
        padding: 20px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 10px;
        margin-top: 10px;
        width: 90%;
    }

    #ContactAnimeMobile .contact-section h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    #ContactAnimeMobile .contact-section p {
        font-size: 16px;
        margin: 5px 0;
    }

    #ContactAnimeMobile .contact-section a {
        color: #FFD700;
        text-decoration: none;
        font-weight: bold;
    }

    #ContactAnimeMobile .contact-section a:hover {
        text-decoration: underline;
    }
}

