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: 80px;
    font-weight: 700;
    margin-top: -30px;
}

.grille-projets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.carte-projet {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.image-projet {
    position: relative;
    width: 100%;
    aspect-ratio: 1.4 / 1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background-color: #ddd;
    cursor: pointer;
}

/* Conteneur overlay "Voir plus" cliquable */
.image-projet .over {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.image-projet:hover .over {
    background-color: rgba(0,0,0,0.25);
    opacity: 1;
    pointer-events: auto;
}

/* Style du lien "Voir plus" */
.image-projet .over a {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    background-color: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.image-projet .over a:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Style des images (une seule image, pas de transition) */
.image-projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

/* Titre et description */
.carte-projet h3,
.carte-projet p {
    text-align: left;
    margin-left: 5px;
}

.carte-projet h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #222;
    font-weight: bold;
}

.carte-projet p {
    font-size: 0.95rem;
    color: #555;
    margin: 8px 0 0;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .grille-projets {
        grid-template-columns: 1fr;
    }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #E5E1DC;
    top: 0;
    left: 0;
    z-index: -1;
}
main {
    margin-top: 10vh; /* décale contenu sous header */
}

.back-link {
    position: relative;
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 6px 12px;
    z-index: 1200;
}

#pluss {
   font-size: 14px;
    color: black;
}
