/* Palmarès (correctif 51) : tournois officiels en jeu et vainqueurs. Chargé après app.css, refonte.css et trophies.css. */

.hall { padding-bottom: 64px; }
.hall__section + .hall__section { margin-top: 56px; }
.hall__title { margin: 0 0 18px; font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -.015em; }

/* --- En jeu : le trophée à remporter, à côté de son tournoi ------------------------------------------------------ */
.hall-open { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; }
.hall-open__card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px 24px 20px 18px; border-radius: var(--radius); background: radial-gradient(ellipse 60% 90% at 12% 70%, rgba(118, 215, 255, .14), transparent 70%), var(--bg-2); border: 1px solid var(--line); }
.hall-open__card--league { background: radial-gradient(ellipse 60% 90% at 12% 70%, rgba(148, 117, 255, .18), transparent 70%), var(--bg-2); }
.hall-open__trophy { align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hall-open__trophy .trophy { width: 100%; max-width: 150px; height: auto; }
/* Photo du trophée envoyée par l'organisation : une vignette carrée, recadrée au centre */
.hall-open__trophy--image .trophy, .hall-win__trophy--image .trophy { max-width: none; aspect-ratio: 1; }
.hall-open__trophy--image .trophy__img, .hall-win__trophy--image .trophy__img { object-fit: cover; object-position: 50% 50%; border-radius: 14px; filter: none; }
.hall-open__state { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--ice); }
.hall-open__card--league .hall-open__state { color: #B9A6FF; }
.hall-open__body h3 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.15; }
.hall-open__body h3 a { color: var(--frost); }
.hall-open__meta, .hall-open__prize, .hall-open__count { margin: 0 0 4px; font-size: var(--fs-sm); color: #C3CCDC; }
.hall-open__prize { color: var(--gold, #FFC857); font-weight: 600; }
.hall-open__count { margin-bottom: 14px; font-weight: 700; color: var(--frost); }

/* --- Pas encore de vainqueur ------------------------------------------------------------------------------------ */
.hall-empty { padding: 34px 30px; border-radius: var(--radius); border: 1px dashed var(--line-strong); text-align: center; }
.hall-empty p { margin: 0 auto 16px; max-width: 56ch; color: #C3CCDC; }
.hall-empty__big { font-size: 1.375rem; font-weight: 800; color: var(--frost) !important; }

/* --- Vainqueurs ------------------------------------------------------------------------------------------------- */
.hall-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.hall-layout > :only-child { grid-column: 1 / -1; }
.hall-wins { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hall-win { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 24px 18px 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.hall-win:first-child { background: radial-gradient(ellipse 50% 100% at 8% 60%, rgba(255, 200, 87, .14), transparent 70%), var(--bg-2); border-color: rgba(255, 200, 87, .35); }
.hall-win__trophy .trophy { width: 100%; max-width: 120px; height: auto; margin: 0 auto; }
.hall-win__event { margin: 0 0 4px; font-size: var(--fs-sm); color: var(--steel); }
.hall-win__event a { font-weight: 700; color: #C3CCDC; }
.hall-win__winner { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.015em; }
.hall-win__winner a { color: var(--frost); }
.hall-win__roster { margin: 0 0 10px; font-size: var(--fs-sm); color: #C3CCDC; }
.hall-win__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.hall-win__facts li { padding: 4px 10px; border-radius: 999px; background: var(--bg-3); font-size: var(--fs-xs); color: #C3CCDC; }

.hall-ranking { padding: 18px 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 16px); }
.hall-ranking__title { margin: 0 0 12px; font-size: 1.125rem; }
.hall-ranking ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.hall-ranking li { counter-increment: rank; display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.hall-ranking li::before { content: counter(rank); width: 1.4em; font-weight: 800; color: var(--steel); }
.hall-ranking li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-ranking li a { color: var(--frost); font-weight: 600; }
.hall-ranking li strong { color: var(--gold, #FFC857); font-size: var(--fs-xs); }

@media (max-width: 1023px) {
  .hall-layout { grid-template-columns: 1fr; }
  .hall-ranking { position: static; }
}
@media (max-width: 719px) {
  .hall-open__card { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .hall-win { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .hall-win__winner { font-size: 1.375rem; }
}
