/* ===== Hero Section ===== */
.hero-fiches {
  background: linear-gradient(135deg, #f3eaf7 0%, #e7e3f7 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.5rem;
  margin: 0 0 16px 0;
}

.hero-fiches p {
  color: #9d6232;
  font-size: 1.2rem;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Section Fiches ===== */
.fiches-medias-section {
  padding: 40px 0 80px 0;
}

.fiches-medias-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 #66bda3;
  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 #66bda322;
}

.filtre-btn.active,
.filtre-btn:hover {
  background: #66bda3;
  color: #fff;
  box-shadow: 0 4px 16px #66bda344;
}

/* ===== Grille de fiches ===== */
.fiches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 40px 0;
}

/* ===== Fiche Média ===== */
.fiche-media {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px #c9c7e4;
  display: flex;
  flex-direction: column;
  width: 380px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  min-height: 520px;
}

.fiche-media:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px #66bda3aa;
}

.fiche-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  background: #f3eaf7;
  display: block;
}

/* ===== Contenu de la fiche ===== */
.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.3rem;
}

.fiche-meta {
  font-size: 0.98em;
  color: #9d6232;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fiche-meta .type {
  background: #66bda3;
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: bold;
}

.fiche-meta .plateforme {
  color: #eb7f97;
  font-weight: bold;
}

.fiche-meta .duree {
  color: #f29229;
  font-weight: bold;
}

.niveau-cozy {
  font-size: 1em;
  color: #66bda3;
  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: #66bda3;
  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 #66bda322;
}

/* ===== 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 #66bda322;
  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); }
}

/* ===== 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-media {
    width: 95vw;
    max-width: 400px;
  }
}

@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-media img {
    height: 200px;
  }
  
  .filtres {
    gap: 10px;
  }
  
  .filtre-btn {
    padding: 6px 16px;
    font-size: 0.95em;
  }
}