/* Calculateur de talents WoW Forever (grille partagée : styles.css) */

.tc-page { --class: var(--ivory); }

/* ---------- Bandeau ---------- */

.tc-hero { margin-top: 18px; padding: 34px 0 26px; }
.tc-title {
  margin: 0; font: 800 clamp(32px, 4.6vw, 54px)/1.05 var(--modern); letter-spacing: -.035em; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.tc-hero .lead { margin: 10px 0 22px; color: #e3eef0; }

.tc-classes { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-classes a {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  font: 600 14px/1 var(--modern); color: #e3eef0; background: rgba(3, 20, 32, .45);
  border: 1px solid rgba(239, 227, 200, .2); transition: border-color .15s ease, background .15s ease;
}
.tc-classes a img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.tc-classes a:hover { border-color: var(--class); }
.tc-classes a[aria-current="page"] { color: #111; background: var(--class); border-color: var(--class); }

/* ---------- Grille des classes (/talents) ---------- */

.tc-stage { padding: 40px 0 56px; }
/* Calculateur dessiné par le script : sa place est réservée d'avance, sinon la liste des talents
   (rendue par le serveur, juste en dessous) est repoussée d'un coup vers le bas (CLS) */
[data-page="talentsClass"] #tc-app:empty { min-height: 100vh; }
.tc-pick { margin: 0 0 18px; font: 700 20px/1.2 var(--modern); color: #fff; }
.tc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tc-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), rgba(3, 20, 32, .5);
  border: 1px solid rgba(239, 227, 200, .12); transition: transform .15s ease, border-color .15s ease;
}
.tc-card:hover { transform: translateY(-2px); border-color: var(--class); }
.tc-card img { border-radius: 10px; box-shadow: 0 0 0 2px var(--class), 0 6px 16px rgba(0,0,0,.4); margin-bottom: 6px; }
.tc-card b { font: 800 20px/1.1 var(--modern); color: var(--class); letter-spacing: -.02em; }
.tc-card span { color: var(--muted); font-size: 13px; }

/* ---------- Barre du calculateur ---------- */

.tc-bar {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px;
  background: rgba(3, 20, 32, .55); border: 1px solid rgba(239, 227, 200, .14); margin-bottom: 10px;
}
.tc-split { font: 800 30px/1 var(--modern); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tc-split i { font-style: normal; color: var(--muted); margin: 0 4px; font-weight: 400; }
.tc-stat { display: flex; flex-direction: column-reverse; }
.tc-stat b { font: 800 26px/1 var(--modern); color: #ffe2a6; font-variant-numeric: tabular-nums; }
.tc-stat span { margin-top: 5px; font: 600 11px/1 var(--modern); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tc-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tc-actions .btn { padding: 10px 14px; font-size: 14px; }
.tc-actions #tc-remove[aria-pressed="true"] { color: #111; background: #ff9a8f; box-shadow: none; }
.tc-hint { margin: 0 0 20px; color: var(--muted); font-size: 13px; }

/* ---------- Arbres ---------- */

.tc-stage .tree h3 { align-items: center; gap: 8px; }
.tc-stage .tree h3 img { border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.tc-stage .tree h3 em { font-style: normal; flex: 1; }
.tree-reset {
  font: 700 15px/1 var(--modern); color: var(--muted); background: none; border: 1px solid rgba(239,227,200,.2);
  border-radius: 6px; width: 28px; height: 28px; cursor: pointer;
}
.tree-reset:hover { color: #fff; border-color: var(--sand); }
.tree-next { margin: -4px 0 6px; width: 100%; font: 600 12px/1.2 var(--modern); color: var(--muted); }
.tc-stage .grid .tal { cursor: pointer; user-select: none; -webkit-touch-callout: none; }
.tc-stage .grid .tal.off { cursor: not-allowed; }
.tc-source { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Liste complète (rendue par le serveur) ---------- */

.tc-list { padding: 56px 0; }
.tc-index h2 { margin: 0 0 20px; font: 800 clamp(22px, 3vw, 30px)/1.15 var(--modern); color: #fff6e2; letter-spacing: -.02em; }
.tc-index-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tc-index h3 { margin: 0 0 10px; font: 700 18px/1.2 var(--modern); color: #fff6e2; }
.tc-index h3 small { font-weight: 500; color: #e6d7b6; font-size: 13px; margin-left: 6px; }
.tc-index ul { list-style: none; margin: 0; padding: 0; }
.tc-index li { padding: 7px 0; border-bottom: 1px dotted rgba(241, 228, 198, .28); color: #eadcbf; font-size: 14px; }
.tc-index li b { color: #fff6e2; font-weight: 600; }
.tc-index li span { color: #d9c9a6; font-size: 12.5px; }
.tc-index > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
.tc-index > ul a { color: #fff6e2; font-weight: 600; }
.tc-index > ul a:hover { text-decoration: underline; }
.tc-index > ul span { display: block; }
.tc-index-source { margin: 18px 0 0; font-size: 12.5px; color: #d9c9a6; }

@media (max-width: 760px) {
  .tc-bar { gap: 14px; }
  .tc-actions { margin-left: 0; width: 100%; }
  .tc-actions .btn { flex: 1; }
  .tc-index-specs { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) { .tc-hint { display: none; } }

/* ---------- Infobulle des talents (rang actuel + rang suivant) ---------- */

.tc-tip {
  position: fixed; z-index: 100; width: min(340px, calc(100vw - 16px)); padding: 12px 14px 10px;
  background: linear-gradient(180deg, #0d1b33, #070f1f); color: #fff;
  border: 1px solid rgba(160, 180, 220, .45); border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 14px 32px rgba(0,0,0,.6);
  font: 13px/1.45 var(--modern); pointer-events: none;
}
.tc-tip p { margin: 6px 0 0; }
.tip-name { display: block; font-size: 15px; font-weight: 700; }
.tip-rank { display: block; color: #fff; }
.tip-row { display: flex; justify-content: space-between; gap: 12px; color: #fff; }
.tip-desc { color: #ffd100; }
.tip-next { color: #fff; margin-top: 10px !important; }
.tip-req { color: #ff4040; }
.tip-hint { color: #1eff00; font-size: 12px; }
.tc-index li p { margin: 3px 0 0; color: #e6d7b6; font-size: 13px; line-height: 1.45; }
