@import url("a-general.css");

/* --------------------------------
   Titres & texte
----------------------------------*/
p {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  text-align: justify;
}

h1 {
  text-align: center;
  color: white;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 50px;
  text-shadow: #ee6314 6px 0 4px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* --------------------------------
   Conteneur des cartes
----------------------------------*/
.conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 40px 40px;
}

/* --------------------------------
   Carte d'un héros
----------------------------------*/
.photos {
  background-color: #393939;
  width: 260px;              /* largeur fixe pour uniformiser */
  border-radius: 5px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* lien autour de l'image */
.photos .example-image-link {
  display: block;
}

/* Image : même taille pour tout le monde */
.photos img {
  width: 100%;
  height: 230px;             /* même hauteur pour toutes les images */
  object-fit: cover;         /* recadre proprement sans déformer */
  border: 3px solid #ee6314;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.photos img:hover {
  transform: scale(1.03);
  opacity: 0.85;
}

/* Zone texte */
.photos .texte {
  width: 100%;
  font-size: 1.1em;
  color: white;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}

.photos .texte h3 {
  margin: 0 0 4px;
  font-size: 1.1em;
}

.photos .texte p {
  margin: 0;
  font-size: 0.75em;
  line-height: 1.3;
}

/* --------------------------------
   Filtres (TOUT / TANK / DÉGÂTS / SOUTIEN)
----------------------------------*/
.heroes-filters {
  display: inline-flex;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid #475569;
  margin: 20px auto 10px;
}

/* Centrer le bloc de filtres */
.heroes-filters-wrapper {
  display: flex;
  justify-content: center;
}

/* Boutons individuels */
.filter-btn {
  border: none;
  background: transparent;
  color: #e5e7eb;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-btn + .filter-btn {
  border-left: 1px solid #475569;
}

/* État actif */
.filter-btn.actif {
  background: #f97316;
  color: #111827;
}

/* Hover */
.filter-btn:hover:not(.actif) {
  background: rgba(148, 163, 184, 0.25);
}

/* --------------------------------
   Responsive
----------------------------------*/

/* Tablette */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .conteneur {
    padding: 20px;
  }

  .photos {
    width: 45%;
  }
}

/* Mobile */
@media screen and (max-width: 767px) {
  .conteneur {
    padding: 10px;
  }

  .photos {
    width: 100%;
  }

  h1 {
    font-size: 36px;
  }
}