/* ===== Hero ===== */
.hero-fiches {
  background: linear-gradient(135deg, #fbeaf1 0%, #fff6ea 100%);
  padding: 60px 0;
  text-align: center;
  border-radius: 0 0 32px 32px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px #c9c7e422;
}

.hero-fiches h1 {
  color: #6e3071;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2.4rem;
  margin: 0 0 16px 0;
}

.hero-fiches p {
  color: #9d6232;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Section ===== */
.fiches-produits-section {
  padding: 40px 0 80px 0;
}

.fiches-produits-section h2 {
  color: #6e3071;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

/* ===== Filtres ===== */
.filtres-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px #c9c7e4;
  margin: 40px auto 0 auto;
  padding: 32px 0 18px 0;
  max-width: 900px;
}

.filtres-section h2 {
  color: #6e3071;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 18px;
  text-align: center;
}

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.filtre-btn {
  background: #fff;
  color: #6e3071;
  border: 2px solid #f29229;
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-family: 'Poppins', Arial, sans-serif;
  box-shadow: 0 2px 8px #f2922922;
}

.filtre-btn.active,
.filtre-btn:hover {
  background: #f29229;
  color: #fff;
  box-shadow: 0 4px 16px #f2922944;
}

/* ===== Grille ===== */
.fiches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 40px 0;
}

/* ===== Fiche Produit ===== */
.fiche-produit {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px #c9c7e4;
  display: flex;
  flex-direction: column;
  width: 340px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  min-height: 520px;
}

.fiche-produit:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px #f29229aa;
}

.fiche-produit img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  background: #f3eaf7;
  display: block;
}

/* ===== Contenu ===== */
.fiche-content {
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fiche-content h3 {
  color: #6e3071;
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0 0 8px 0;
  font-size: 1.25rem;
}

.fiche-meta {
  font-size: 0.98em;
  color: #9d6232;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fiche-meta .categorie {
  background: #f29229;
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: bold;
}

.fiche-meta .prix {
  color: #eb7f97;
  font-weight: bold;
  font-size: 1.1em;
}

.fiche-meta .marque {
  color: #66bda3;
  font-weight: bold;
  font-style: italic;
}

.niveau-cozy {
  font-size: 1em;
  color: #f29229;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.niveau-cozy .etoiles {
  font-size: 1.2em;
  letter-spacing: 2px;
}

.fiche-content p {
  color: #6e3071;
  font-size: 1.05em;
  margin-bottom: 10px;
  line-height: 1.5;
}

.fiche-tags {
  margin-top: 8px;
  margin-bottom: 12px;
}

.fiche-tags .tag {
  background: #f29229;
  color: #fff;
  border-radius: 12px;
  padding: 3px 12px;
  margin-right: 6px;
  margin-bottom: 4px;
  font-size: 0.95em;
  display: inline-block;
  box-shadow: 0 1px 4px #f2922922;
}

/* ===== Actions (bouton lien) ===== */
.fiche-actions {
  margin-top: auto;
  padding-top: 8px;
}

.btn-lien {
  background: #f29229;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 16px;
  font-weight: bold;
  font-family: 'Poppins', Arial, sans-serif;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px #f2922944;
}

.btn-lien:hover {
  background: #e8841d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #f2922966;
}

/* ===== Badges ===== */
.badge {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.08em;
  font-weight: bold;
  padding: 6px 18px;
  border-radius: 20px;
  box-shadow: 0 2px 8px #f2922922;
  z-index: 2;
  letter-spacing: 1px;
  text-align: center;
  min-width: 120px;
  max-width: 90%;
  white-space: nowrap;
  animation: badge-pop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
  border: 2.5px solid transparent;
}

.badge-coupdecoeur {
  background: #eb7f97;
  color: #fff;
  border-color: #eb7f97;
  box-shadow: 0 4px 16px #eb7f9744;
  text-shadow: 0 1px 4px #eb7f9744;
}

.badge-nouveau {
  background: #f29229;
  color: #fff;
  border-color: #f29229;
  box-shadow: 0 4px 16px #f2922944;
  text-shadow: 0 1px 4px #f2922944;
}

@keyframes badge-pop {
  0% { transform: scale(0.7) translateX(-50%) rotate(-10deg); opacity: 0; }
  70% { transform: scale(1.1) translateX(-50%) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) translateX(-50%) rotate(0deg); }
}

/* ===== Variantes pour fiches avec badges ===== */
.fiche-produit:has(.badge-coupdecoeur) {
  background: #fbeaf1;
  border: 3px solid #eb7f97;
  border-radius: 0;
}

.fiche-produit:has(.badge-nouveau) {
  background: #fff6ea;
  border: 3px solid #f29229;
  border-radius: 0;
}

.fiche-produit:not(:has(.badge-coupdecoeur)):not(:has(.badge-nouveau)) {
  border: 3px solid #222;
  border-radius: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-fiches h1 { font-size: 2rem; }
  .hero-fiches p { font-size: 1.1rem; }
  
  .fiches-grid {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  
  .fiche-produit {
    width: 95vw;
    max-width: 380px;
  }
}

@media (max-width: 600px) {
  .hero-fiches {
    padding: 40px 0;
  }
  
  .hero-fiches h1 { font-size: 1.8rem; }
  .hero-fiches p { font-size: 1rem; }
  
  .fiche-content {
    padding: 16px 12px 12px 12px;
  }
  
  .fiche-produit img {
    height: 190px;
  }
  
  .filtre-btn {
    padding: 6px 16px;
    font-size: 0.95em;
  }
}