html {
  height: 100%;
  width: 100%;
  font-family: Calibri, Arial;
  font-size: 18px;
  background-color: #e7e3c2;
}

header {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between; 
  padding: 4%;
  background-color: #d3cc94;
  h2 {
    margin: 0 auto;  /* Centre le titre */
    text-align: center;
  }
}

h1 {
  margin: 0 auto;
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-around; 
  flex-wrap: wrap;
  padding: 2%;
  background-color: #d3cc94;
}


.menu {
  height: 100%;
  width: 25%;
  position: fixed;
  top: 0;
  left: -250%;
  /* Caché par défaut */
  background-color: #d3cd94;
  padding-top: 60px;
  transition: 0.3s;
}

/* Liens du menu */
.menu a {
  padding: 4% 4%;
  display: block;
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.menu a:hover {
  background-color: #bfb766;
}

/* Bouton pour ouvrir le menu */
.open-btn {
  position: fixed;
  left: 2%;
  top: 5%;
  font-size: 20px;
  background-color: #cec788;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}

.parallax {
  transform: translateY(calc(var(--scroll) * 0.3px));
  /* Ajuste l'effet */
}

/* Bouton pour fermer le menu */
.close-btn {
  position: absolute;
  left: 1%;
  top: 1%;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.produits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.produits figure {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  width: 200px;
  height: 370px;
  overflow: auto;
}

.produits figure:hover {
  transform: scale(1.04);
}

.produits img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.submenu {
  position: relative;
}

.submenu-content {
  display: none;
  flex-direction: column;
  margin-left: 15px;
}

.submenu:hover .submenu-content {
  display: flex;
}

/* Prix */
.produits p strong {
  font-size: 1.2rem;
  color: #0000cc;
}

/* Disponibilité */
.produits .disponible {
  color: #00c400;
  font-weight: bold;
}

.produits .indisponible {
  color: #e10000;
  font-weight: bold;
}

.produits h2 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}
