/* project.css */

/* Section du projet */
.project-section {
    padding: 60px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

/* Conteneur pour la vidéo et le carrousel */
.media-container {
    flex: 1;
    max-width: 600px;
}

.text-container {
    flex: 1;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

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

/* Style pour la vidéo YouTube */
.video-container iframe {
    width: 100%;
    height: 315px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s forwards;
}

/* Style pour le carrousel et le thumbnail */
.carousel, .thumbnail-image {
    position: relative; /* Assurez-vous que le conteneur a cette propriété */
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.4s forwards;
}

.carousel img, .thumbnail-image img {
    width: 100%;
    height: auto; /* Conserve le ratio de l'image */
    display: block;
    object-fit: cover; /* Assure que l'image couvre toute la surface */
}

/* Styles spécifiques pour le carrousel */
.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
    opacity: 0;
}


.carousel img.active {
    opacity: 1; /* L'image active est visible */
    position: relative; /* L'image active est en position relative */
}

/* Contrôles du carrousel */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}


/* Style pour le bouton de téléchargement */
.download-button {
    display: block;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 40px auto 0;
    text-align: center;
    width: fit-content;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.6s forwards;
}

.download-button:hover {
    background-color: #c0392b;
}
