body {
  font-family: 'Segoe UI', sans-serif;
  margin: 20px;
  background-color: #f9f9f9;
  color: #333;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.card img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.card img:hover {
  transform: scale(1.05);
}

.card h2 {
  margin: 10px 0 5px;
  font-size: 1.1em;
}

.card p {
  font-size: 0.9em;
  margin: 5px 0;
}

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

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

#close-modal {
  position: fixed;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.small-img {
  width: 100%;
  height: 180px;  /* taille standard des cartes */
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 40px;
  background-color: #dcdcdc; /* gris clair */
  color: #333;
}

/* Effet hover sur la ligne entière du tableau */
table tbody tr {
  transition: background-color 0.3s, transform 0.2s;
}

table tbody tr:hover {
  background-color: #f0f0f0;   /* fond gris clair au survol */
  transform: scale(1.01);      /* léger zoom */
  cursor: pointer;
}

/* Effet hover uniquement sur les images */
td img:hover {
  transform: scale(1.05);       /* léger zoom sur l'image */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* ombre subtile */
}
