#tier-list {
  max-width: 1500px; /* limite largeur liste */
  margin: 0 auto; /* centre horizontalement */
  border: 2px solid black;
  overflow: hidden; /* coupe ce sui depasse des bords */
}

/* Pour chaque étagère (tierRow) */
.tier-row {
  display: flex; /* met les titres et les cartes sur la même ligne */
  align-items: stretch; /* titre prend toute la hauteur */
  gap: 3px; /* espace entre le titre et les cartes */
  background-color: rgb(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(8px);
  min-height: 100px;
  border-bottom: 2px solid black;
}
.tier-row:last-child {
  border-bottom: none; /* sup le dernier bottom line */
}
/* Pour chaque étiquette d'étagère (rowTitle) */
.tier-row h2 {
  margin: 0;
  padding: 10px 30px;
  font-family: BlueNight-Regular;
  font-weight: lighter;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  max-width: 60px;
  font-size: 20px;
  text-align: center;
  word-wrap: break-word; /* force le retour à la ligne au besoin */
  overflow-wrap: break-word;
  white-space: normal; /* permet le retour à la ligne automatique */
  overflow: hidden;
  text-transform: uppercase;
}

/* Pour chaque rangée conteneur de cartes */
.tier-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  flex-grow: 1;
  min-height: 110px;
  position: relative;
  z-index: 1;
}

.tier-S h2 {
  background-color: rgb(255, 81, 78, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(8px);
}
.tier-A h2 {
  background-color: rgb(255, 174, 75, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(8px);
}
.tier-B h2 {
  background-color: rgb(255, 223, 83, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(8px);
}
.tier-C h2 {
  background-color: rgb(166, 255, 114, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(8px);
}
.tier-EW h2 {
  background-color: rgb(140, 228, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(8px);
}
