/* -------------------------*/
/* Galerie d’images */
/* -------------------------*/


.gallery {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;                             /* Passe à la ligne si besoin */
}

.gallery img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);      /* Ombre légère */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.15);                       /* Zoom au survol */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);    /* Ombre renforcée au survol */
}

.image {
  position: relative;                          /* Permet un positionnement absolu interne */
  display: inline-block;
  width: 290px;
  flex-direction: column;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  margin-bottom : 1rem;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;                           /* Coupe l’image pour remplir sans déformation */
  transition: transform 0.3s ease;
}

.telecharger-bouton {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);                 /* Centre le bouton horizontalement */
  background-color: rgba(0, 0, 0, 0.7);         /* Fond semi-transparent */
  color: white;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 5px;
  opacity: 0;                                  /* Caché par défaut */
  transition: opacity 0.3s ease;
}

.image:hover .telecharger-bouton {
  opacity: 1;                                  /* Apparaît quand on survole l’image */
}

/*pieds de page*/

.footer {
  text-align: center;
  padding: 15px;
  background-color: #f5f5f5;
  font-size: 14px;
  color: #555;
}

.footer a {
  color: #555;
  text-decoration: none;
  margin-left: 5px;
}

.footer a:hover {
  color: #000;
}

/*legende*/
.caption {
  font-size: 14px;
  color: #555;
  margin: 8px 0;
  font-style: italic;
}

