/* Conteneur principal de la fiche personnage */
.fiche-section { 
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  background-color: #1A1A1D; 
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  border: 2px solid #3C3C41;
}

/* Titre principal du personnage sur la fiche */
.fiche-section > h1 {
  font-size: 3.2rem;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 4px solid #e63946; 
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
  color: #e63946;
  text-shadow: 0 0 8px #e63946b3;
}

/* Section image et description */
.presentation-personnage { /* Contient l'image et le texte de description */
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  border-bottom: 2px solid #3C3C41; /* Ligne de séparation */
  padding-bottom: 2.5rem;
}

.image-personnage { /* Image du personnage principal */
  width: 350px;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  border: 3px solid #457B9D; 
}

.texte-description { /* Bloc de texte de description */
  flex: 1;
  background: #252529; 
  padding: 1.8rem;
  border-radius: 10px;
  border: 1px solid #3C3C41;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3); 
}

.texte-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #A8DADC; 
}

/* Sous-titres des sections */
.fiche-section > h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #E63946;
  text-shadow: 0 0 5px rgba(230, 57, 70, 0.5);
}

/* Liste des miniatures des autres personnages */
.liste-autres {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Carte miniature d'un autre personnage */
.carte-miniature {
  width: 140px;
  border: 2px solid #457B9D; 
  padding: 0.8rem;
  text-align: center;
  background: #1f1f22; 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.carte-miniature:hover {
  transform: translateY(-4px); 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  border-color: #E63946; 
}

.carte-miniature img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  border: 1px solid #3C3C41;
}

.carte-miniature div { /* Nom du personnage dans la miniature */
  font-weight: bold;
  font-size: 1rem;
  color: #F1FAEE;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.carte-miniature a { /* Lien "Voir" dans la miniature */
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  background: #3C3C41; 
  color: #F1FAEE;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.carte-miniature a:hover {
  background: #E63946; 
  color: #1A1A1D; 
}

/* Logo de licence à côté du titre */
.logo-licence {
  height: 4em;
  vertical-align: middle;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5));
}

/* Navigation entre les personnages (précédent/suivant) */
.navigation-personnages { /* Conteneur de la nav précédente/suivante */
  margin-top: 4rem;
  display: flex;
  justify-content: space-around;
  padding: 1.5rem 2.5rem;
  border-top: 2px solid #3C3C41;
  padding-top: 2.5rem;
}

.bouton-navigationP, .bouton-navigationS { /* Bouton de navigation précédent/suivant */
  background-color: #457B9D; 
  color: #F1FAEE;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.bouton-navigationP:hover {
  background-color: #E63946; 
  transform: translateX(-10px);
}

.bouton-navigationS:hover {
  background-color: #E63946; 
  transform: translateX(10px);
}