/* Grille principale pour l'arbre */
.arbre {
  display: grid;
  grid-template-columns: repeat(3, 300px); /* 3 colonnes fixes */
  grid-auto-rows: auto;
  gap: 40px;
  justify-content: center; /* centre la grille */
  align-items: start;
}

/* Case personnage */
.personnage {
  background: none; /* pas de fond noir */
  color: white;
  text-align: center;
  padding: 10px;
  width: 220px;   /* largeur fixe pour homogénéiser */
  min-height: 300px; /* espace réservé pour image + texte */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Image */
.personnage img {
  max-height: 255px; /* limite pour éviter trop grand */
  width: auto;
  margin-bottom: 10px;
  border-radius: 4px;
  display: block;
}

/* Texte */
.personnage span {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.4em; /* espace entre lignes */
}

/* Liens dans l'arbre */
.arbre a {
  color: white;
  text-decoration: none;
}

.arbre a:hover {
  text-decoration: underline;
}
