/* =========================================================
   Catalogue des techniques (côté élève). Tokens : tokens.css
   ========================================================= */

.technique-catalog .tc-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0.2rem 0 1.1rem; }

.belt-dot {
    display: inline-block; width: 13px; height: 13px; border-radius: 4px; flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ---- Filtres ---- */
.tc-filters {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.85rem 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.7rem;
}
.tc-search {
    width: 100%; background: var(--surface-3); border: 1px solid var(--border-strong);
    color: var(--text); border-radius: 999px; padding: 0.55rem 1rem; font-size: 0.9rem;
}
.tc-search::placeholder { color: var(--text-faint); }
.tc-frow { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.tc-pill {
    padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--surface-3); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.tc-pill:hover { color: var(--text); }
.tc-pill.active { background: var(--gold-soft); color: var(--gold-strong); border-color: var(--gold); }
.tc-sep { flex: 1 1 auto; }
.tc-level { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.tc-level select {
    background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
    border-radius: 999px; padding: 0.32rem 0.7rem; font-size: 0.8rem;
}

/* ---- Grille ---- */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tc-card {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.tc-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tc-thumb {
    position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 2.4rem; overflow: hidden;
    background: radial-gradient(120% 120% at 30% 0%, rgba(230, 201, 138, 0.16), transparent 55%), var(--surface-3);
}
.tc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tc-ph { opacity: 0.65; }
.tc-badge-cat {
    position: absolute; left: 0.55rem; bottom: 0.55rem; font-size: 0.68rem; font-weight: 600; color: var(--text);
    background: rgba(6, 32, 44, 0.7); border: 1px solid var(--border-strong); border-radius: 999px;
    padding: 0.12rem 0.55rem; backdrop-filter: blur(4px);
}
.tc-badge-belt {
    position: absolute; right: 0.55rem; top: 0.55rem; display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.66rem; color: var(--text); background: rgba(6, 32, 44, 0.7); border: 1px solid var(--border-strong);
    border-radius: 999px; padding: 0.12rem 0.5rem; backdrop-filter: blur(4px);
}
.tc-body { padding: 0.7rem 0.85rem 0.85rem; }
.tc-nm { font-weight: 600; font-size: 0.95rem; line-height: 1.15; }
.tc-jp { font-size: 0.74rem; color: var(--text-faint); }
.tc-lock { margin-top: 0.5rem; font-size: 0.72rem; color: var(--warning); }

/* Technique verrouillée (au-dessus du niveau) */
.tc-card.locked .tc-thumb { filter: grayscale(1) brightness(0.5); }
.tc-card.locked .tc-thumb::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; }
.tc-card.locked .tc-nm { color: var(--text-muted); }

.tc-empty { text-align: center; color: var(--text-faint); font-size: 0.85rem; padding: 1.5rem; }

/* ---- Modale détail ---- */
.tc-overlay { position: fixed; inset: 0; background: rgba(2, 12, 18, 0.66); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 1050; padding: 1rem; }
.tc-overlay[hidden] { display: none; }
.tc-modal { width: min(640px, 96vw); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tc-modal-img {
    position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 4rem;
    background: radial-gradient(120% 120% at 30% 0%, rgba(230, 201, 138, 0.18), transparent 55%), var(--surface-3);
}
.tc-play { position: absolute; right: 0.8rem; bottom: 0.8rem; font-size: 0.76rem; font-weight: 600; color: var(--text); background: rgba(6, 32, 44, 0.7); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.25rem 0.7rem; }
.tc-modal-body { padding: 1.1rem 1.3rem 1.3rem; }
.tc-modal-top { display: flex; align-items: flex-start; gap: 0.6rem; }
.tc-modal-name { font-size: 1.25rem; font-weight: 700; }
.tc-modal-jp { color: var(--text-faint); font-size: 0.85rem; }
.tc-modal-close { margin-left: auto; border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--text-muted); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.tc-modal-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0; }
.tc-modal-chips .chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 500; color: var(--text); background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.18rem 0.65rem; }
.tc-modal-chips .chip.accent { color: var(--gold-strong); background: var(--gold-soft); border-color: var(--gold); }
.tc-modal-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0 0; }
