/* Tier lists (22 novembre 2026, inc/tier-lists.php). Mêmes panneaux, boutons et
   étiquettes de jeu que le reste du site ; seules les couleurs des rangs
   sont propres à la page (le code couleur que tout le monde connaît). */
.tl {
  --tl-S: #F2545B; --tl-A: #F59E42; --tl-B: #F2D14B;
  --tl-C: #7BC96F; --tl-D: #5AA9E6; --tl-F: #A594E0;
  --tl-tuile: 13rem;
  display: flex; flex-direction: column; gap: 2.4rem;
  /* L'espace avant le pied de page, comme sur les autres pages. */
  padding-bottom: 5rem;
}
.tl h2 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: 2.2rem; margin: 0; }
.tl .panel { padding: 2.4rem; }

.tl-tete { margin: 0; }

/* --- L'outil --- */
.tl-outil { display: flex; flex-direction: column; gap: 1.6rem; }
.tl-barre { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; justify-content: space-between; }
.tl-avance { margin: 0; color: var(--c-text-muted); font-size: 1.3rem; }
.tl-avance b { color: var(--c-text); font-family: var(--font-heading); font-size: 1.7rem; }
.tl-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.tl-btn { background: transparent; border: 1px solid var(--c-border-strong); color: var(--c-text); }
.tl-btn:hover { border-color: var(--c-text); }
.tl-btn.confirme { border-color: var(--c-red-bright); color: var(--c-red-bright); }

.tl-rangs { display: flex; flex-direction: column; gap: .55rem; }
.tl-rang { display: flex; align-items: stretch; border: 1px solid var(--c-border); border-radius: 1.3rem; overflow: hidden; background: var(--c-surface-2); min-height: calc(var(--tl-tuile) * .5625 + 1.6rem); }
.tl-rang__nom {
  flex: 0 0 8.5rem; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 3.2rem; line-height: 1.1;
  color: #000; padding: .4rem; word-break: break-word; outline: none; cursor: text;
}
.tl-rang__nom:focus-visible { box-shadow: inset 0 0 0 3px #fff; }
.tl-rang[data-rang="S"] .tl-rang__nom, .tl-pose__rang[data-rang="S"] { background: var(--tl-S); }
.tl-rang[data-rang="A"] .tl-rang__nom, .tl-pose__rang[data-rang="A"] { background: var(--tl-A); }
.tl-rang[data-rang="B"] .tl-rang__nom, .tl-pose__rang[data-rang="B"] { background: var(--tl-B); }
.tl-rang[data-rang="C"] .tl-rang__nom, .tl-pose__rang[data-rang="C"] { background: var(--tl-C); }
.tl-rang[data-rang="D"] .tl-rang__nom, .tl-pose__rang[data-rang="D"] { background: var(--tl-D); }
.tl-rang[data-rang="F"] .tl-rang__nom, .tl-pose__rang[data-rang="F"] { background: var(--tl-F); }

.tl-zone { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .6rem; padding: .8rem; min-width: 0; transition: background .15s; }
.tl-zone.cible { background: rgba(255, 255, 255, .08); }
.tl.choix .tl-rangs .tl-zone { cursor: pointer; }
.tl.choix .tl-rangs .tl-zone:hover { background: rgba(255, 255, 255, .06); }

/* --- Les tuiles --- */
.tl-tuile {
  position: relative; flex: 0 0 auto; width: var(--tl-tuile); aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--c-border-strong);
  border-radius: .9rem; overflow: hidden; background: #000; color: var(--c-text); cursor: grab; font: inherit;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.tl-tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tl-tuile__nom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem .6rem .5rem; text-align: left;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; line-height: 1.15;
  background: linear-gradient(transparent, rgba(0, 0, 0, .9) 55%); pointer-events: none;
}
.tl-tuile__badge {
  position: absolute; top: .45rem; left: .45rem; z-index: 1; padding: .1rem .5rem; border-radius: .4rem; background: var(--c-red);
  font-family: var(--font-heading); font-weight: 700; font-size: .95rem; letter-spacing: .02em; pointer-events: none;
}
.tl-tuile--texte { background: linear-gradient(150deg, rgba(159, 6, 9, .5), rgba(0, 0, 0, .9) 70%); }
.tl-tuile--texte .tl-tuile__nom { top: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .15rem; padding: 1.8rem .6rem .6rem; background: none; font-size: 1.3rem; }
.tl-tuile__nom small { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--c-text-muted); }
.tl-tuile:hover { border-color: #fff; transform: translateY(-2px); }
.tl-tuile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tl-tuile.choisie { border-color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 1.2rem var(--c-red-glow); }
.tl-tuile.fantome { opacity: .28; }
.tl-tuile.masquee { display: none; }
.tl-tuile.vol { position: fixed; z-index: 9999; pointer-events: none; cursor: grabbing; transform: rotate(-3deg) scale(1.06); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .7); transition: none; margin: 0; }
body.tl-glisse { cursor: grabbing; user-select: none; -webkit-user-select: none; }

/* --- La réserve --- */
.tl-reserve { display: flex; flex-direction: column; gap: 1.1rem; margin-top: .7rem; }
.tl-reserve__tete { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; justify-content: space-between; }
.tl-reserve__tete h2 span { color: var(--c-text-muted); font-size: 1.4rem; margin-left: .3rem; }
.tl-filtres, .tl-parjeu__liens { display: flex; flex-wrap: wrap; gap: .55rem; }
.tl-filtre {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1.1rem; border-radius: 99rem; border: 1px solid var(--c-border-strong);
  background: transparent; color: var(--c-text); font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; cursor: pointer; text-decoration: none;
}
.tl-filtre:hover { border-color: #fff; }
.tl-filtre.actif { background: var(--c-red); border-color: var(--c-red); }
.tl-filtre small { color: var(--c-text-muted); font-family: var(--font-body); font-weight: 400; }
.tl-zone--reserve { border: 1px dashed var(--c-border-strong); border-radius: 1.3rem; min-height: calc(var(--tl-tuile) * .5625 + 1.6rem); }
.tl-zone--reserve:empty::after { content: attr(data-vide); color: var(--c-text-muted); font-size: 1.3rem; padding: 1.6rem; }
.tl-aide { margin: 0; color: var(--c-text-dim); font-size: 1.15rem; }

/* --- La barre de placement --- */
.tl-pose {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.3rem; border-radius: 1.5rem; background: rgba(0, 0, 0, .92); border: 1px solid var(--c-border-strong);
  box-shadow: 0 .8rem 2.5rem rgba(0, 0, 0, .7); max-width: calc(100vw - 1.5rem);
}
.tl-pose[hidden] { display: none; }
.tl-pose__nom { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; max-width: 24rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-pose__rangs { display: flex; gap: .3rem; }
.tl-pose__rangs button { width: 4rem; height: 4rem; border: 0; border-radius: .8rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem; color: #000; cursor: pointer; }
.tl-pose__rangs button:hover, .tl-pose__rangs button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.tl-pose__rangs .tl-pose__retour, .tl-pose__rangs .tl-pose__fermer { background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4rem; }

/* --- Index, questions --- */
.tl-parjeu { display: flex; flex-direction: column; gap: 1.1rem; }
.tl-parjeu .hero__desc { margin: .3rem 0 0; }

/* --- Les cartes (hub et « More tier lists ») --- */
.tl-famille, .tl-autres { display: flex; flex-direction: column; gap: 1.1rem; }
.tl-famille > .section-titre, .tl-autres > .section-titre { font-size: 2.2rem; margin: 0; }
.tl-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(27rem, 1fr)); gap: 1.6rem; }
.tl .tl-carte { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--c-text); text-decoration: none; transition: transform .15s, border-color .15s; }
.tl .tl-carte:hover { transform: translateY(-3px); border-color: var(--c-red-bright); }
.tl-carte__visuel { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; background: #000; }
.tl-carte__visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-carte__visuel--texte { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: .55rem; padding: 1.6rem; background: linear-gradient(150deg, rgba(159, 6, 9, .55), rgba(0, 0, 0, .9) 75%); }
.tl-carte__visuel--texte i { font-style: normal; font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; padding: .35rem .8rem; border: 1px solid var(--c-border-strong); border-radius: .4rem; background: rgba(0, 0, 0, .45); }
.tl-carte__corps { display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem; }
.tl-carte__corps strong { font-family: var(--font-heading); font-size: 1.7rem; }
.tl-carte__meta { color: var(--c-text-muted); font-size: 1.3rem; }
.tl-carte__cta { margin-top: .4rem; color: var(--c-red-bright); font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; }

.tl-toast { position: fixed; left: 50%; top: 9rem; transform: translateX(-50%); z-index: 9500; padding: 1rem 1.6rem; border-radius: 1rem; background: #fff; color: #000; font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; box-shadow: 0 .6rem 2rem rgba(0, 0, 0, .6); }

@media (max-width: 700px) {
  .tl { --tl-tuile: 9.8rem; gap: 1.6rem; }
  .tl .panel { padding: 1.6rem; }
  .tl-rang__nom { flex-basis: 4.6rem; font-size: 2.2rem; }
  .tl-actions { width: 100%; }
  .tl-actions .btn { flex: 1; justify-content: center; padding-left: .5rem; padding-right: .5rem; }
  .tl-pose { bottom: 8.6rem; flex-direction: column; gap: .4rem; align-items: stretch; }
  .tl-pose__nom { max-width: none; text-align: center; }
  .tl-pose__rangs button { width: 4.4rem; height: 4.4rem; }
  .tl-filtres { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: .2rem; scrollbar-width: none; }
  .tl-filtre { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .tl-tuile, .tl .tl-carte { transition: none; } }

/* Noms longs : deux lignes au plus sur une tuile à visuel. */
.tl-tuile:not(.tl-tuile--texte) .tl-tuile__nom { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* --- Le classement de la communauté (inc/tier-lists-communaute.php) --- */
.tl-commu { display: flex; flex-direction: column; gap: 1.4rem; }
.tl-commu__phrase { margin: 0; font-size: 1.5rem; max-width: 100rem; }
.tl-commu__phrase b { font-family: var(--font-heading); }
.tl-commu__note { margin: 0; color: var(--c-text-dim); font-size: 1.15rem; }
.tl-commu__legende { display: flex; flex-wrap: wrap; gap: 1.6rem; color: var(--c-text-muted); font-size: 1.15rem; }
.tl-commu__legende span { display: inline-flex; align-items: center; gap: .5rem; }

.tl-rang--lecture { min-height: 0; }
.tl-rang--lecture .tl-rang__nom { flex-basis: 5rem; font-size: 2.2rem; cursor: default; }
.tl-rang--lecture .tl-zone:empty::after { content: "—"; color: var(--c-text-dim); padding: .6rem; }
.tl-tuile--petite { width: calc(var(--tl-tuile) * .72); cursor: default; }
.tl-tuile--petite:hover { transform: none; border-color: var(--c-border-strong); }
.tl-tuile--petite .tl-tuile__nom { font-size: 1rem; }
.tl-tuile--petite .tl-tuile__nom small { display: none; }
.tl-tuile--petite.tl-tuile--texte .tl-tuile__nom { font-size: 1rem; padding: 1.6rem .4rem .4rem; }
/* La moyenne de la tuile, et l'écart avec mon propre classement. */
.tl-moy, .tl-moi { position: absolute; top: .4rem; z-index: 2; padding: .05rem .45rem; border-radius: .4rem; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; line-height: 1.5; }
.tl-moy { right: .4rem; background: rgba(0, 0, 0, .78); color: #fff; }
.tl-moi { right: 3.6rem; color: #000; }
.tl-moi[data-rang="S"] { background: var(--tl-S); } .tl-moi[data-rang="A"] { background: var(--tl-A); } .tl-moi[data-rang="B"] { background: var(--tl-B); }
.tl-moi[data-rang="C"] { background: var(--tl-C); } .tl-moi[data-rang="D"] { background: var(--tl-D); } .tl-moi[data-rang="F"] { background: var(--tl-F); }
.tl-commu__legende .tl-moy, .tl-commu__legende .tl-moi { position: static; }

/* Avant le seuil : la jauge. */
.tl-commu__attente { display: flex; flex-direction: column; gap: .8rem; padding: 2.4rem; border: 1px dashed var(--c-border-strong); border-radius: 1.3rem; text-align: center; align-items: center; }
.tl-commu__attente p { margin: 0; color: var(--c-text-muted); }
.tl-commu__attente strong { font-family: var(--font-heading); font-size: 2.2rem; }
.tl-commu__jauge { width: min(40rem, 100%); height: .9rem; border-radius: 99rem; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tl-commu__jauge i { display: block; height: 100%; background: var(--c-red-bright); border-radius: 99rem; }

@media (max-width: 700px) {
  .tl-moi { right: 3.2rem; }
}

/* --- Retours du 22 novembre 2026 ---------------------------------------- */

/* Le fil d'Ariane : des pilules, comme les raccourcis d'un jeu et le menu ;
   la page courante est pleine, en rouge. */
.tl-ariane { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem; align-self: flex-start; margin-top: 2.4rem;
  padding: .5rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .55); }
.tl-ariane a, .tl-ariane .actif { display: inline-flex; align-items: center; gap: .7rem; height: 3.4rem; padding: 0 1.5rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; color: #fff; text-decoration: none; white-space: nowrap; }
.tl-ariane a { border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); transition: background .3s, border-color .3s; }
.tl-ariane a:hover { background: var(--c-red); border-color: var(--c-red); }
.tl-ariane .actif { background: var(--c-red); }
.tl-ariane a svg { width: 1.7rem; height: 1.7rem; }
.tl-ariane__sep { width: 1.3rem; height: 1.3rem; color: rgba(255, 255, 255, .35); flex: 0 0 auto; }
.tl-tete.hero-simple { padding-top: 2.4rem; }

/* Les votes : en-tête, chiffres, statistiques. */
.tl-commu__tete { display: flex; flex-direction: column; gap: .5rem; }
.tl-commu__meta { margin: 0; color: var(--c-text-muted); font-size: 1.3rem; max-width: 90rem; }
.tl-commu__meta.ok { color: var(--tl-C); }
.tl-commu .jeu-chiffres { margin: 0; }
.tl-commu .jeu-chiffres b { font-size: 2.2rem; }
.tl-stats__titre { margin: 1rem 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem; }
.tl-stats { display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: 1.3rem; overflow: hidden; }
.tl-stats__ligne { display: grid; grid-template-columns: 3.4rem minmax(0, 2.2fr) 7rem 6rem minmax(10rem, 3fr); align-items: center; gap: 1.2rem;
  padding: .7rem 1.4rem; font-size: 1.3rem; border-top: 1px solid var(--c-border); }
.tl-stats__ligne:first-child { border-top: 0; }
.tl-stats__ligne--tete { background: var(--c-surface-2); color: var(--c-text-muted); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }
.tl-stats__ligne--plus { display: none; }
.tl-stats.tout .tl-stats__ligne--plus { display: grid; }
.tl-stats__rang { color: var(--c-text-dim); font-family: var(--font-heading); font-variant-numeric: tabular-nums; }
.tl-stats__nom { display: flex; align-items: center; gap: .7rem; min-width: 0; font-family: var(--font-heading); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-stats__lettre { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .6rem; color: #000; font-style: normal; font-weight: 700; }
.tl-stats__moy { font-family: var(--font-heading); font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-stats__n { color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.tl-stats__barre { display: flex; height: 1rem; border-radius: 99rem; overflow: hidden; background: rgba(255, 255, 255, .08); }
.tl-stats__barre i { display: block; min-width: 2px; }
.tl-stats [data-rang="S"] { background: var(--tl-S); } .tl-stats [data-rang="A"] { background: var(--tl-A); } .tl-stats [data-rang="B"] { background: var(--tl-B); }
.tl-stats [data-rang="C"] { background: var(--tl-C); } .tl-stats [data-rang="D"] { background: var(--tl-D); } .tl-stats [data-rang="F"] { background: var(--tl-F); }
.tl-stats__tout { align-self: flex-start; }

/* Le bloc pour les moteurs, tout en bas : questions et liste des éléments,
   en petit. Il doit se lire, pas se voir. */
.tl .tl-seo { padding: 1.6rem 2rem; display: flex; flex-direction: column; gap: .5rem; font-size: 1.15rem; line-height: 1.5; color: var(--c-text-dim); }
.tl-seo h2 { font-size: 1.4rem; color: var(--c-text-muted); }
.tl-seo h3 { margin: .8rem 0 0; font-family: var(--font-heading); font-size: 1.25rem; color: var(--c-text-muted); }
.tl-seo p { margin: 0; }
.tl-seo details { border-top: 1px solid var(--c-border); padding-top: .4rem; }
.tl-seo summary { cursor: pointer; color: var(--c-text-muted); font-weight: 600; }
.tl-seo details p { margin: .3rem 0 .2rem; max-width: 100rem; }
.tl-seo a { color: var(--c-text-muted); text-decoration: none; }
.tl-seo a:hover { color: #fff; }
.tl-seo__nom { font-family: var(--font-heading); font-weight: 600; color: var(--c-text-muted); }
.tl-seo__an { margin-right: .4rem; }

@media (max-width: 700px) {
  .tl { padding-bottom: 3rem; }
  .tl-ariane { margin-top: 1.4rem; border-radius: 2.2rem; }
  .tl-actions .btn { flex: 1 1 40%; }
  .tl-stats__ligne { grid-template-columns: 2.6rem minmax(0, 1fr) 5rem 4rem; gap: .8rem; padding: .7rem 1rem; }
  .tl-stats__barre { grid-column: 2 / -1; }
  .tl-stats__ligne--tete span:last-child { display: none; }
  .tl-stats__nom .badge-jeu { display: none; }
}
