/* === style-boutique.css — ÉcoStyle (corrigé alignement images) === */

/* --- Palette naturelle --- */
:root {
  --vert-doux: #8cbf75;
  --beige-fond: #f9f7f2;
  --brun-clair: #a67b5b;
  --texte-fonce: #333;
  --blanc: #ffffff;
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--beige-fond);
  color: var(--texte-fonce);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--blanc);
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--vert-doux);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--texte-fonce);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--vert-doux);
}

.burger {
  display: none;
  font-size: 1.8rem;
  color: var(--vert-doux);
  cursor: pointer;
}

/* === MINI PANIER === */
.mini-panier {
  background-color: var(--vert-doux);
  color: var(--blanc);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.mini-panier:hover {
  background-color: var(--brun-clair);
}

/* === SECTION BOUTIQUE === */
.boutique {
  padding: 4rem 2rem;
  text-align: center;
}

.boutique h1 {
  font-family: 'Poppins', sans-serif;
  color: var(--vert-doux);
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

/* --- Grille de produits UNIFORME --- */
.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 280px);
  justify-content: center;
  gap: 2rem;
}

.produit {
  background-color: var(--blanc);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  width: 280px;           /* largeur fixe */
  height: 420px;          /* hauteur fixe pour toutes les cartes */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.produit img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

/* --- Contenu produit --- */
.produit h3 {
  font-family: 'Poppins', sans-serif;
  margin: 1rem 0 0.5rem;
  color: var(--texte-fonce);
  font-size: 1.1rem;
}

.prix {
  color: var(--brun-clair);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* --- Bouton ajouter au panier --- */
.ajouter-panier {
  background-color: var(--vert-doux);
  color: var(--blanc);
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin: 0 1rem 1rem 1rem;
  transition: background-color 0.3s ease;
}

.ajouter-panier:hover {
  background-color: var(--brun-clair);
}

/* === FOOTER === */
footer {
  background-color: var(--brun-clair);
  color: var(--blanc);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: var(--blanc);
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: block;
  }
}
