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%;
}

/* Conteneur principal de l’image */
.image-projet {
    position: relative;
    width: 80%;
    margin-left: 9%;
    aspect-ratio: 1.4 / 1;
    border-radius: 25px;
    overflow: hidden;
    background-color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Conteneur de slider horizontal */
.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

/* Toutes les images dans le slider */
.slider img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* Texte du projet */
.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;
}

/* Animation d’apparition au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.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;
}
