body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

#projets {
    padding: 60px 20px;
    text-align: center;
}

.titre-section {
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.grille-projets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.carte-projet {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.image-projet {
    width: 80%;
    margin-left: 9%;
    aspect-ratio: 1.4 /  0.8;
    border-radius: 25px;
    overflow: hidden;
    background-color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Styles pour l'image */
.image-projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

/* Styles pour la vidéo */
.image-projet video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

.texte-projet {
    margin-top: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    color: #333;
    text-align: left;
    line-height: 1.6;
}

.back-link {
    position: relative;
    top: 30px;
    left: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 6px 12px;
    z-index: 1200;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #E5E1DC;
    top: 0;
    left: 0;
    z-index: -1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-bottom {
    animation: fadeInUp 1s ease-out forwards;
}