/* ===== Hero ===== */
.hero-fiches {
  background: linear-gradient(135deg, #e7e3f7 0%, #fbeaf1 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: 680px;
  margin: 0 auto;
}

/* ===== Section & Titre ===== */
.fiches-loisirs-section { padding: 40px 0 80px 0; }
.fiches-loisirs-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 #eb7f97;
  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 #eb7f9722;
}
.filtre-btn.active,
.filtre-btn:hover {
  background: #eb7f97;
  color: #fff;
  box-shadow: 0 4px 16px #eb7f9744;
}

/* ===== Grille ===== */
.fiches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 40px 0;
}

/* ===== Fiche Loisir ===== */
.fiche-loisir {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px #c9c7e4;
  display: flex;
  flex-direction: column;
  width: 360px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  min-height: 480px;
}
.fiche-loisir:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px #eb7f97aa;
}
.fiche-loisir 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;
}
.fiche-meta .type {
  background: #eb7f97;
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: bold;
}
.niveau-cozy {
  font-size: 1em;
  color: #eb7f97;
  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; }
.fiche-tags .tag {
  background: #eb7f97;
  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 #eb7f9722;
}

/* ===== Badges spéciaux (optionnel) ===== */
.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 #eb7f9722;
  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-loisir:has(.badge-coupdecoeur) { background: #fbeaf1; border: 3px solid #eb7f97; border-radius: 0; }
.fiche-loisir:has(.badge-nouveau)     { background: #fff6ea; border: 3px solid #f29229; border-radius: 0; }
.fiche-loisir: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; }
  .fiches-grid { flex-direction: column; align-items: center; gap: 28px; }
  .fiche-loisir { width: 95vw; max-width: 400px; }
}
@media (max-width: 600px) {
  .hero-fiches { padding: 40px 0; }
  .hero-fiches p { font-size: 1rem; }
  .fiche-content { padding: 16px 12px 12px 12px; }
  .fiche-loisir img { height: 190px; }
  .filtre-btn { padding: 6px 16px; font-size: 0.95em; }
}