/* ---------------------------------------------------- */
/* HERO BOUTIQUE (.hero-boutique)                       */
/* ---------------------------------------------------- */
.hero-boutique {
  height: 240px; /* Mobile */
  background: linear-gradient(135deg, var(--vert-fonce) 0%, #1c3220 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 20px;
  color: var(--blanc);
  overflow: hidden;
  margin-top: 60px; /* hauteur de la navbar mobile */
}

.hero-boutique-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.hero-boutique h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-boutique p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

/* ---------------------------------------------------- */
/* BARRE DE FILTRES (.filtres-boutique)                 */
/* ---------------------------------------------------- */
.filtres-boutique {
  position: -webkit-sticky;
  position: sticky;
  top: 60px; /* Navbar mobile */
  background-color: var(--blanc);
  box-shadow: 0 4px 16px rgba(26, 43, 28, 0.06);
  z-index: 900;
  padding: 12px 16px;
}

.filtres-scroll-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.filtres-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.filtre-btn, .btn-filtre {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--vert-clair);
  background-color: transparent;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--texte-moyen);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filtre-btn.actif, .btn-filtre.actif {
  background-color: var(--vert-principal);
  color: var(--blanc);
  border-color: var(--vert-principal);
  box-shadow: 0 4px 10px rgba(58, 155, 75, 0.2);
}

.filtre-btn:hover:not(.actif), .btn-filtre:hover:not(.actif) {
  background-color: var(--vert-clair);
  border-color: var(--vert-principal);
}

/* ---------------------------------------------------- */
/* GRILLE PRODUITS (.grille-produits)                   */
/* ---------------------------------------------------- */
.grille-produits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 40px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------------------------------------------------- */
/* CARTE PRODUIT (.produit-card)                        */
/* ---------------------------------------------------- */
.produit-card {
  background-color: var(--blanc);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ombre-legere);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.produit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26, 43, 28, 0.12);
}

.produit-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: var(--vert-clair);
}

.produit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.produit-card:hover .produit-image img {
  transform: scale(1.06);
}

.badge-categorie {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--orange-principal);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
}

.produit-corps {
  padding: 24px 24px 16px;
  flex-grow: 1;
}

.produit-nom {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--texte-fonce);
  margin-bottom: 10px;
}

.produit-description {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--texte-moyen);
  line-height: 1.6;
  margin-bottom: 12px;
}

.produit-prix {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--vert-principal);
}

.produit-actions {
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.produit-actions .btn-voir-produit {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
}

.btn-whatsapp-mini {
  padding: 12px;
  background-color: var(--vert-clair);
  color: var(--vert-principal);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.btn-whatsapp-mini svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-whatsapp-mini:hover {
  background-color: var(--vert-principal);
  color: var(--blanc);
  transform: scale(1.05);
}

/* Filtrage masquage */
.produit-card.masque {
  display: none;
}

.produit-card.apparait {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* ---------------------------------------------------- */
/* MODAL PRODUIT (.modal-overlay)                       */
/* ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.ouvert {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal-contenu {
  background-color: var(--blanc);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.35s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.ouvert .modal-contenu {
  transform: translateY(0) scale(1);
}

.modal-fermer {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--blanc);
  border: 1.5px solid var(--vert-clair);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-fermer svg {
  width: 20px;
  height: 20px;
  fill: var(--texte-fonce);
}

.modal-fermer:hover {
  background-color: var(--orange-clair);
  border-color: var(--orange-principal);
}

.modal-grille {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
}

.modal-image {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background-color: var(--creme);
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-img-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--vert-clair);
  border-top-color: var(--vert-principal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.modal-img-loader.visible {
  display: block;
}

.modal-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-badge {
  background-color: var(--orange-clair);
  color: var(--orange-principal);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  align-self: flex-start;
}

#modal-titre {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--texte-fonce);
  line-height: 1.2;
}

.modal-prix {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--vert-principal);
}

.modal-description-courte {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--texte-moyen);
  line-height: 1.6;
}

.modal-separateur {
  height: 1px;
  background-color: var(--vert-clair);
  margin: 4px 0;
}

.modal-details-titre {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--texte-clair);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#modal-details {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--texte-moyen);
  line-height: 1.8;
}

.modal-cta-texte {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--texte-clair);
  line-height: 1.6;
}

.btn-whatsapp-grand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: var(--blanc);
  padding: 16px 28px;
  border-radius: var(--border-radius-round);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-grand svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-whatsapp-grand:hover {
  background-color: #1ebe5d;
  transform: scale(1.02);
}

.modal-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--texte-clair);
  text-align: center;
}

/* ---------------------------------------------------- */
/* SECTION CONTACT RAPIDE (.contact-boutique)          */
/* ---------------------------------------------------- */
.contact-boutique {
  background-color: var(--vert-principal);
  padding: 50px 20px;
  color: var(--blanc);
}

/* ---------------------------------------------------- */
/* MEDIA QUERIES BOUTIQUE                               */
/* ---------------------------------------------------- */
@media (min-width: 768px) {
  /* Hero */
  .hero-boutique {
    height: 360px;
    margin-top: 72px;
  }
  .hero-boutique h1 {
    font-size: 56px;
  }
  .hero-boutique p {
    font-size: 18px;
  }

  /* Filtres */
  .filtres-boutique {
    top: 72px;
    padding: 16px 40px;
  }
  .filtres-scroll-wrapper {
    justify-content: center;
  }

  /* Grille */
  .grille-produits {
    padding: 60px 40px;
  }

  /* Modal */
  .modal-grille {
    grid-template-columns: 1fr 1fr;
  }
  .modal-image {
    border-radius: 24px 0 0 24px;
    min-height: 400px;
  }
  .modal-info {
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
  }
  #modal-titre {
    font-size: 32px;
  }

  /* Contact Boutique */
  .contact-boutique {
    padding: 80px 40px;
  }
}
