/* ============================================================
   PAGE CLASSEMENT
   ============================================================ */

.page-classement { max-width: 960px; margin: 0 auto; padding: 36px 24px 64px; display: flex; flex-direction: column; gap: 22px; }

.classement-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 36px 32px; border-radius: 22px;
  background: linear-gradient(135deg, var(--fougere), var(--fougere-nuit));
  color: var(--beige); box-shadow: var(--ombre-forte);
}
.classement-hero h1 { color: var(--beige-clair); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; }
.classement-hero p { opacity: 0.9; }
.fronde-classement { position: absolute; width: 210px; right: 10px; top: -70px; transform: rotate(40deg); opacity: 0.2; }

/* Onglets des critères */
.onglets { display: flex; flex-wrap: wrap; gap: 8px; }
.onglet { background: var(--beige-clair); color: var(--fougere-fonce); box-shadow: inset 0 0 0 2px var(--beige-fonce); }
.onglet:hover { background: var(--fougere-pale); }
.onglet[aria-selected="true"] { background: var(--fougere); color: var(--beige-clair); box-shadow: 0 2px 0 var(--fougere-nuit); }
.explication { margin-top: -8px; }

/* Choix du jeu : au-dessus des critères, en plus gros */
.choix-jeu { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--beige-fonce); }
.onglet-jeu { font-size: 1.05em; padding-inline: 22px; }
.onglet-jeu[aria-selected="true"] { background: var(--ocre); color: var(--fougere-nuit); box-shadow: 0 2px 0 #a87b1f; }

/* Avatars */
.avatar-podium, .avatar-liste {
  flex: none; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--fougere); color: var(--beige-clair);
  font-family: var(--police-titre); font-weight: 800;
}
.avatar-podium img, .avatar-liste img { width: 100%; height: 100%; object-fit: cover; }
.avatar-podium { width: 72px; height: 72px; font-size: 1.8em; border: 4px solid var(--beige-clair); box-shadow: var(--ombre); }
.avatar-liste { width: 40px; height: 40px; font-size: 1.1em; }

/* Podium des 3 premiers */
.podium-classement { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-top: 10px; }
.marche-classement { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 180px; text-align: center; }
.marche-classement strong { font-size: 1.1em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marche-classement .valeur { font-weight: 700; color: var(--fougere-fonce); }
.socle {
  width: 100%; border-radius: 12px 12px 0 0;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 10px;
  font-family: var(--police-titre); font-weight: 800; font-size: 2em; color: var(--beige-clair);
}
.place-1 .socle { height: 120px; background: linear-gradient(var(--ocre), #a87b1f); }
.place-2 .socle { height: 88px; background: linear-gradient(var(--mousse), var(--fougere)); }
.place-3 .socle { height: 64px; background: linear-gradient(var(--fougere), var(--fougere-fonce)); }
.place-1 .avatar-podium { width: 88px; height: 88px; border-color: var(--ocre); }

/* Liste à partir de la 4e place */
.liste-classement { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.liste-classement li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-radius: 12px;
  background: var(--beige-clair); border: 1px solid var(--beige-fonce);
}
.rang { width: 28px; font-family: var(--police-titre); font-weight: 800; color: var(--texte-doux); }
.liste-classement strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-classement .valeur { font-weight: 700; color: var(--fougere-fonce); }

.vide-classement { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 0; text-align: center; }
.vide-classement img { width: 70px; opacity: 0.35; transform: rotate(-15deg); margin-bottom: 8px; }

@media (max-width: 600px) {
  .marche-classement { width: 110px; }
  .avatar-podium { width: 56px; height: 56px; }
  .place-1 .avatar-podium { width: 64px; height: 64px; }
  .parties { display: none; }
  .page-classement { padding: 24px 16px 48px; }
  .classement-hero { padding: 26px 22px; }
  /* Les critères : une seule ligne qu'on fait glisser du doigt */
  .onglets {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding: 2px 16px 6px;
  }
  .onglet { flex: none; }
}
