/* ==========================================================================
   Lollabo : page Découvre (.dc-). DA v7 « Blitz × Meeko ». Mobile d'abord.
   ========================================================================== */
.dc { gap: 20px; --dc-cat: var(--cat-lab, #14b8a6); }
.dc-h { margin: 0; font: 800 22px/1.1 var(--f-display); letter-spacing: -.03em; color: var(--text); }
.dc-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dc-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dc-none { margin: 0; color: var(--muted); font-size: 14px; }
.dc-grid .dc-none { grid-column: 1 / -1; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); text-align: center; }

/* ---------- Profil ---------- */
.dc-profile { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(600px 240px at 0% 0%, rgba(255, 91, 58, .1), transparent 70%), var(--panel); }
.dc-profile-k { margin: 0 0 8px; font: 600 12px/1 var(--f-body); color: var(--muted); }
.dc-mains { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dc-mains li { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.dc-mains img { border-radius: 9px; flex: none; }
.dc-mains span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-mains b { font: 700 13px/1.1 var(--f-display); white-space: nowrap; }
.dc-mains small { font-size: 11px; color: var(--muted); }
.dc-profile-sum { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.dc-profile-sum b { color: var(--text); font-weight: 600; }

/* ---------- Carte de champion ---------- */
.dc-card { position: relative; min-width: 0; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform .18s, border-color .18s; }
.dc-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.dc-card[hidden] { display: none; }
.dc-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.dc-card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px; }
.dc-art { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-3); overflow: hidden; }
.dc-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .25s; }
.dc-card:hover .dc-art img { transform: scale(1.04); }
.dc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 0%, transparent 45%); }
.dc-body { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; margin-top: -14px; position: relative; flex: 1; }
.dc-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.dc-name b { font: 800 19px/1.1 var(--f-display); letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-roles { display: flex; gap: 4px; flex: none; }
.dc-roles img { opacity: .8; }
.dc-why { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 4px; }
.dc-lvl { display: inline-flex; align-items: center; gap: 3px; font: 600 12px/1 var(--f-body); color: var(--text-2); }
.dc-lvl i { width: 5px; height: 12px; border-radius: 2px; background: var(--panel-3); }
.dc-lvl i:last-of-type { margin-right: 4px; }
.dc-lvl.is-1 i:nth-child(-n+1) { background: var(--mint); }
.dc-lvl.is-2 i:nth-child(-n+2) { background: var(--gold); }
.dc-lvl.is-3 i:nth-child(-n+3) { background: var(--loss); }
.dc-wr { font: 500 12px/1 var(--f-mono); color: var(--muted); }

/* Cœur (wishlist) */
.dc-heart { position: absolute; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(14, 13, 15, .72); color: var(--text-2); cursor: pointer; transition: border-color .15s, color .15s, transform .15s; }
.dc-card:not(.is-compact) .dc-heart { right: 10px; top: 10px; }
.dc-heart svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dc-heart:hover { border-color: var(--accent); color: var(--text); transform: scale(1.06); }
.dc-heart.is-on { border-color: var(--accent); color: var(--accent); }
.dc-heart.is-on svg { fill: currentColor; }
.dc-heart:disabled { cursor: progress; }

/* Variante compacte (« si tu aimes ») */
.dc-card.is-compact { border-radius: 12px; background: var(--bg-2); }
.dc-card.is-compact .dc-card-link { flex-direction: row; align-items: center; gap: 12px; padding: 8px 52px 8px 8px; }
.dc-card.is-compact .dc-art { flex: none; width: 56px; height: 56px; aspect-ratio: auto; border-radius: 10px; }
.dc-card.is-compact .dc-art::after { display: none; }
.dc-card.is-compact .dc-body { padding: 0; margin: 0; gap: 3px; min-width: 0; }
.dc-card.is-compact .dc-name { padding: 0; }
.dc-card.is-compact .dc-name b { font-size: 15px; }
.dc-card.is-compact .dc-why { font-size: 12.5px; }
.dc-card.is-compact .dc-heart { right: 8px; top: 50%; margin-top: -18px; }

/* ---------- Si tu aimes ---------- */
.dc-likes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dc-like { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.dc-like-from { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 14px; color: var(--text-2); }
.dc-like-from img { border-radius: 8px; }
.dc-like-from b { color: var(--text); font-family: var(--f-display); font-weight: 700; }
.dc-like-list { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Pools par poste ---------- */
.dc-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dc-tabs::-webkit-scrollbar { display: none; }
.dc-tabs a { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font: 600 14px/1 var(--f-body); text-decoration: none; transition: border-color .15s, color .15s; }
.dc-tabs a img { opacity: .7; }
.dc-tabs a:hover { border-color: var(--line-2); color: var(--text); }
.dc-tabs a.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dc-tabs a.is-on img { opacity: 1; filter: brightness(0); }
.dc-filter { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.dc-filter button { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 600 13px/1 var(--f-body); cursor: pointer; }
.dc-filter button:hover { color: var(--text); }
.dc-filter button.is-on { background: var(--panel-3); color: var(--text); }
.dc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dc-grid[hidden] { display: none; }

/* ---------- Wishlist ---------- */
.dc-count { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 8px; background: var(--panel-3); font: 600 13px/24px var(--f-mono); text-align: center; color: var(--text); }
.dc-wishlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dc-wishlist a { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font: 600 13px/1 var(--f-body); transition: border-color .15s; }
.dc-wishlist a:hover { border-color: var(--accent); }
.dc-wishlist img { border-radius: 9px; }

/* Petits écrans : cartes en 2 colonnes, plus serrées */
@media (max-width: 559px) {
    .dc-grid .dc-art { aspect-ratio: 4 / 3; }
    .dc-grid .dc-body { padding: 0 10px 10px; margin-top: -10px; gap: 4px; }
    .dc-grid .dc-name b { font-size: 15px; }
    .dc-grid .dc-roles img { width: 14px; height: 14px; }
    .dc-grid .dc-why { font-size: 12px; }
    .dc-grid .dc-wr { display: none; }
    .dc-grid .dc-card .dc-heart { width: 32px; height: 32px; right: 6px; top: 6px; }
}
@media (min-width: 560px) {
    .dc-grid { gap: 12px; }
}
@media (min-width: 900px) {
    .dc-profile { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 20px; }
    .dc-profile-sum { max-width: 360px; text-align: right; }
    .dc-likes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dc-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .dc-h { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .dc-card, .dc-art img, .dc-heart { transition: none; }
    .dc-card:hover, .dc-heart:hover { transform: none; }
    .dc-card:hover .dc-art img { transform: none; }
}
