/* Container podium */
.trophees-container {
  position: relative;
  /* important pour le h2 */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 60px;
  margin-top: 40px;
}

/* Déplacement du trophée entier */
.trophee-box {
  position: relative;
  --dx: 0px;
  --dy: 0px;
  transform: translate(var(--dx), var(--dy));
}

/* Carte : scale + variables internes */
.trophee-card {
  position: relative;
  display: inline-block;
  transform-origin: center bottom;
  z-index: 1;

  --scale: 1;
  --x: 50%;

  --y-head: 190px;
  --y-name: 265px;
  --y-chief: 296px;
  --y-level: 380px;

  --name-size: 0.68rem;
  --text-size: 0.9rem;
  --chief-color: #000;

  transform: scale(var(--scale));
  transition: transform 0.3s ease;
}

.trophee-box:hover .trophee-card {
  transform: scale(calc(var(--scale) * 1.08));
}

/* Image (base unique, NE PAS varier width si tu utilises --scale) */
.trophee-img {
  display: block;
  width: 260px;
  height: auto;
}

/* Overlay */
.trophee-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Textes */
.trophee-overlay .faction-name,
.trophee-overlay .faction-chief,
.trophee-overlay .faction-niveau {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
  text-shadow: 0 0 5px #000;
  font-weight: bold;
  white-space: nowrap;
}

.trophee-box.gold .trophee-overlay .faction-name {
  top: var(--y-name);
  font-size: var(--name-size);
}

.trophee-box.gold .trophee-overlay .faction-chief {
  top: var(--y-chief);
  font-size: var(--text-size);
  color: var(--chief-color);
}

.trophee-box.gold .trophee-overlay .faction-niveau {
  top: var(--y-level);
  font-size: var(--text-size);
}

.trophee-box.silver .trophee-overlay .faction-name,
.trophee-box.bronze .trophee-overlay .faction-name {
  top: var(--y-name);
  font-size: 21px;
}

.trophee-box.silver .trophee-overlay .faction-chief,
.trophee-box.bronze .trophee-overlay .faction-chief {
  top: var(--y-chief);
  font-size: 25px;
  color: var(--chief-color);
}

.trophee-box.silver .trophee-overlay .faction-niveau,
.trophee-box.bronze .trophee-overlay .faction-niveau {
  top: var(--y-level);
  font-size: 30px;
}

/* Tête */
.trophee-overlay .player-head {
  position: absolute;
  top: var(--y-head);
  left: var(--x);
  transform: translateX(-50%);
  width: 35px;
  height: 35px;
  border-radius: 5px;
  box-shadow: 0 0 5px #000;
}

/* =========================
   Réglages par trophée (UN SEUL ENDROIT)
   ========================= */

/* GOLD */
.trophee-box.gold {
  --dx: -70px;
  --dy: 200px;
  /* monte si négatif */
}

.trophee-box.gold .trophee-card {
  --scale: 1.7;
  --x: 74%;

  --y-head: 160px;
  --y-name: 233px;
  --y-chief: 255px;
  --y-level: 330px;
}

/* SILVER */
.trophee-box.silver {
  --dx: 15px;
  --dy: 90px;
}

.trophee-box.silver .trophee-card {
  --scale: 0.9;
  --x: 50%;

  --y-head: 100px;
  --y-name: 215px;
  --y-chief: 262px;
  --y-level: 390px;
}

/* BRONZE */
.trophee-box.bronze {
  --dx: 0px;
  --dy: 85px;
}

.trophee-box.bronze .trophee-card {
  --scale: 0.88;
  --x: 50%;

  --y-head: 102px;
  --y-name: 208px;
  --y-chief: 255px;
  --y-level: 395px;
}

/* Couleur du nom */
.trophee-box.gold .faction-name {
  color: #d4a500;
}

.trophee-box.silver .faction-name {
  color: #cacbca;
}

.trophee-box.bronze .faction-name {
  color: #926313;
}

/* Glow gold */
.trophee-box.gold .trophee-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, gold 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0.5;
  z-index: 0;
}


.trophees-container>h2 {
  position: absolute;
  top: 40px;
  /* hauteur au-dessus des trophées */
  right: 30%;
  /* décalage vers la droite */

  margin: 0;
  font-size: 2rem;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;

  white-space: nowrap;
  pointer-events: none;
  /* évite toute interaction bizarre */
}