.projets-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0px 51px 0 51px;
  gap: 0 20px; /* 0 entre les lignes, 20px entre les colonnes */
}

.projets-grid a {
  text-decoration: none;
}

.bloc {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 0; /* aucun espace vertical supplémentaire */
}

.bloc img {
  width: 100%;
  height: 460px;      /* hauteur fixe */
  object-fit: cover;  /* recadrage */
  display: block;
}

.bloc h2 {
  font-family: "georgiapro", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  margin-top: 16px;
  color: black;
  text-decoration: none;
}

.bloc p {
  font-family: "georgiapro", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  margin-top: 5px;
  color: black;
}

/* --- Responsive --- */

/* Tablette : 2 projets par ligne, images grandes */
@media screen and (max-width: 1124px) {
  .bloc {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .bloc img {
    height: 460px; /* même hauteur que desktop */
  }
}

/* Mobile : 1 projet par ligne, image toujours grande */
@media screen and (max-width: 600px) {
  .projets-grid {
    margin: 10px 20px 0 20px;
    flex-direction: column;
    align-items: center;
  }

  .bloc {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .bloc img {
    height: 460px; /* garder la même hauteur */
  }

  .bloc h2 {
    font-size: 16px;
    margin-top: 12px;
  }

  .bloc p {
    font-size: 14px;
    margin-top: 4px;
  }
}
