/* ---- Certification ---- */

#certification {
    font-size: 2rem;
    padding: 5% 0;
    font-weight: bold;
    color: var(--my-green);


}

.gallery-de-certification {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 colonnes */
    gap: 15px;
    /* Espacement entre les images */
    justify-content: center;
    /* Centre la grille */
    max-width: 100em;
    /* Ajuste la largeur */
    margin: auto;
    /* Centre la galerie */
    padding: 20px;
}

.gallery-de-certification img {
    width: 100%;
    /* Prend toute la place dans la cellule */
    height: auto;
    /* Garde les proportions */
    border-radius: 10px;
    /* Coins arrondis (optionnel) */
    transition: transform 0.3s ease-in-out;
}

/* Miniature */
.thumbnail {
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px){
    .gallery-de-certification{
        grid-template-columns: repeat(1, 1fr);
    }

}