h1 {
  text-align: center;
  margin-bottom: 2rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
  gap: 1.5rem; /* espace entre les cartes */
  margin-top: 2rem;
}

.product-card {
  position: relative;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
  max-width: 100%;
  height: 200px;
  border-radius: 0.2rem;
  object-fit: cover;
}

.product-card .product-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  text-decoration: none;
  color: #333;

}

.product-card h3 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.25rem;
}

.product-card .price {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.product-card .btn {
  background-color: rgba(160, 112, 48, 1);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  text-decoration: none;
  margin-right: 0.5rem;
}

.product-card .btn:hover {
  background-color: rgba(98, 68, 28, 1);
}

.product-card .btn-link {
  color: rgba(160, 112, 48, 1);
  text-decoration: none;
}

.product-card .btn-link:hover {
  text-decoration: underline;
}

/* ---------- Bouton "Revenir en arrière" ---------- */

.spacer-large {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
  justify-content: center;
}

.btn-secondary {
  text-align: center;
  margin: 2rem 0;
}
.btn-secondary button {
  border: 1px solid rgba(98, 68, 28, 1);
  color: rgba(98, 68, 28, 1);
  background-color: transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-secondary button:hover {
  background-color: rgba(98, 68, 28, 1);
  cursor: pointer;
  color: #fff;
}

.spacer-large a {
  color: rgba(98, 68, 28, 1);
}

/* Empêcher les vrais boutons et lien d'être bloqués par le lien global */
.product-card .btn,
.product-card .btn-link {
    position: relative;
    z-index: 2;
}

.categorie-description {
    text-align: center;
    font-style: italic;
    margin-bottom: 1.5rem;
}