/* Simulateur de talents (/talents) : trois arbres de 7 rangées × 4 colonnes, comme la fenêtre de talents du jeu */
.talent-calc { --cell: 44px; --gap: 14px; position: relative; }
.tc-classes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tc-class { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; background: var(--panel-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); cursor: pointer; font: inherit; }
.tc-class img { width: 24px; height: 24px; border-radius: 3px; }
.tc-class.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.tc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 14px; }
.tc-points { font-size: 1.15rem; color: var(--gold); }
.tc-trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tc-tree { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.tc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tc-head img { width: 28px; height: 28px; border-radius: 4px; }
.tc-head h2 { flex: 1; margin: 0; font-size: 1.05rem; }
.tc-count { color: var(--gold); font-size: 1.1rem; }
.tc-tree-reset { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 4px; cursor: pointer; padding: 0 6px; }
.tc-grid { display: grid; grid-template-columns: repeat(4, var(--cell)); grid-template-rows: repeat(7, var(--cell)); gap: var(--gap);
    justify-content: center; }
.tc-talent { position: relative; z-index: 1; width: var(--cell); height: var(--cell); padding: 0; border: 2px solid #3a3f4b; border-radius: 6px;
    background: #000; cursor: pointer; }
.tc-talent img { display: block; width: 100%; height: 100%; border-radius: 4px; }
.tc-talent.locked img { filter: grayscale(1) brightness(.45); }
.tc-talent.open { border-color: #39b54a; }
.tc-talent.partial { border-color: #39b54a; box-shadow: 0 0 6px rgba(57, 181, 74, .5); }
.tc-talent.maxed { border-color: var(--gold); box-shadow: 0 0 8px rgba(255, 209, 0, .45); }
.tc-talent.selected { outline: 2px solid #fff; outline-offset: 2px; }
.tc-talent.st-new::after { content: ''; position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 0 2px #000; }
.tc-rank { position: absolute; right: -6px; bottom: -8px; min-width: 26px; padding: 0 3px; font-size: 11px; line-height: 15px; text-align: center;
    color: #39b54a; background: #000; border: 1px solid #3a3f4b; border-radius: 4px; }
.tc-talent.locked .tc-rank { color: var(--muted); }
.tc-talent.maxed .tc-rank { color: var(--gold); }
.tc-arrow { position: relative; z-index: 0; pointer-events: none; }
.tc-arrow::before { content: ''; position: absolute; background: #4a4f5a; }
.tc-arrow.on::before { background: var(--gold); }
.tc-arrow.down::before { left: calc(50% - 2px); width: 4px; top: var(--cell); bottom: var(--cell); }
.tc-arrow.right::before, .tc-arrow.left::before { top: calc(50% - 2px); height: 4px; left: var(--cell); right: var(--cell); }
.tc-tip { position: absolute; z-index: 20; width: 300px; padding: 10px 12px; background: rgba(8, 10, 18, .97); border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); box-shadow: var(--shadow); pointer-events: none; }
.tc-tip p, .tc-sheet p { margin: 6px 0; }
.tc-tip-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tc-tip-title b { color: var(--gold-2); font-size: 1.02rem; }
.tc-cost { color: var(--text); opacity: .85; margin-top: 2px; }
.tc-need { color: var(--red); font-size: .9em; margin-top: 4px; }
.tc-hint { margin-top: 6px; }
.tc-sheet { position: sticky; bottom: 10px; z-index: 15; margin-top: 12px; }
.tc-sheet .btn { min-width: 52px; font-size: 1.2rem; }
.tc-status { min-height: 1.2em; margin-top: 8px; }
@media (max-width: 1000px) { .tc-trees { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .talent-calc { --cell: 40px; --gap: 12px; } .tc-tip { display: none; } }
