/* Nouvelle charte (/v2/nouveau) : structure + recoloration des composants existants.
   Chargé après /v2/static/css/app.css : les rendus existants gardent leur logique,
   seules couleurs, polices, bordures et espacements changent. */
:root {
    --bg: #0b0e14; --surface: #121722; --surface-2: #171d2a; --surface-3: #1e2534;
    --border: #232b3a; --border-strong: #313b4f;
    --text: #e8ebf1; --text-2: #a7b0c0; --text-3: #6f7a8c;
    --gold: #e8b447; --gold-soft: rgba(232,180,71,.12);
    --blue: #4ea1ff; --blue-soft: rgba(78,161,255,.12);
    --red: #f0625d; --red-soft: rgba(240,98,93,.12);
    --orange: #ff9f43; --orange-soft: rgba(255,159,67,.12);
    --green: #3ecf8e; --green-soft: rgba(62,207,142,.12);
}

body.nv { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, sans-serif; font-feature-settings: "tnum"; }
body.nv a { color: inherit; }
.nv-muted { color: var(--text-2); font-size: 13px; }
.nv-good { color: var(--green); font-weight: 600; }
.nv-bad { color: var(--red); font-weight: 600; }

/* ---------- Barre du haut ---------- */
.nv-topbar { display: flex; align-items: center; gap: 18px; height: 56px; padding: 0 22px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.nv-logo { font-weight: 700; letter-spacing: .08em; color: var(--gold) !important; text-decoration: none; white-space: nowrap; }
.nv-logo span { color: var(--text-2); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.nv-crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; min-width: 0; overflow: hidden; white-space: nowrap; }
.nv-crumbs a { text-decoration: none; color: var(--text-2); }
.nv-crumbs a:hover { color: var(--text); }
.nv-crumbs i { color: var(--text-3); font-size: 14px; }
.nv-crumbs b { color: var(--text); font-weight: 600; }
.nv-top-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Boutons ---------- */
.nv-btn, body.nv button.nv-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; margin: 0; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: 500 13px Inter, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; opacity: 1; }
body.nv .nv-btn:hover { border-color: var(--text-3); }
/* Même spécificité que « body.nv button.nv-btn » : sinon le bouton doré restait gris. */
body.nv .nv-btn.primary { background: var(--gold); border-color: var(--gold); color: #1b1407; font-weight: 600; }
body.nv .nv-btn.primary:hover { filter: brightness(1.06); border-color: var(--gold); }
body.nv .nv-btn.ghost { background: transparent; }
body.nv .nv-btn.selected { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
body.nv .nv-btn.big { height: 44px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.nv-btn i { font-size: 16px; }

/* ---------- Mise en page ---------- */
.nv-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.nv-sidebar { border-right: 1px solid var(--border); background: var(--surface); padding: 18px 14px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.nv-main { padding: 22px 28px 80px; width: 100%; max-width: 1320px; min-width: 0; margin: 0 auto; }
.nv-label { color: var(--text-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 6px 8px; }
body.nv select.nv-select { width: 100%; padding: 10px 12px; font: 500 13px Inter, sans-serif; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; }

.nv-boss { border-radius: 8px; margin-bottom: 4px; }
.nv-boss.open { background: var(--surface-2); padding-bottom: 8px; }
body.nv button.nv-boss-head { display: flex; align-items: center; gap: 7px; width: 100%; margin: 0; padding: 9px 10px; background: transparent; border: 0; color: var(--text); font: 600 13px Inter, sans-serif; text-align: left; cursor: pointer; border-radius: 8px; }
body.nv button.nv-boss-head:hover { background: var(--surface-3); }
.nv-boss-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-pill { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap; }
.nv-pill.kill { color: var(--green); border-color: rgba(62,207,142,.4); background: var(--green-soft); }
/* Difficultés : NM vert, HM violet, MM orange (teintes douces de la charte) */
.nv-pill.diff { font-weight: 700; letter-spacing: .03em; }
.nv-pill.diff-1 { color: var(--text-2); }
.nv-pill.diff-3 { color: #3ecf8e; border-color: rgba(62,207,142,.45); background: rgba(62,207,142,.10); }
.nv-pill.diff-4 { color: #b197fc; border-color: rgba(177,151,252,.45); background: rgba(177,151,252,.10); }
.nv-pill.diff-5 { color: #ff9f43; border-color: rgba(255,159,67,.45); background: rgba(255,159,67,.10); }
.nv-fights { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 10px 0; }
.nv-fight, body.nv button.nv-fight { font: 500 12px Inter, sans-serif; margin: 0; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); text-decoration: none; cursor: pointer; }
.nv-fight:hover { border-color: var(--text-3); color: var(--text); }
.nv-fight.kill { color: var(--green); }
.nv-fight.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.nv-fight.more { color: var(--text-3); }

/* ---------- Cartes ---------- */
.nv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.nv-fight-head { display: flex; align-items: center; gap: 14px; }
/* Encadré « Analyse du raid » à droite de l'en-tête du combat (bien visible). */
.nv-raid-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 16px; border: 1px solid var(--gold); border-radius: 12px; background: var(--gold-soft); }
.nv-raid-cta-text b { display: block; font-weight: 700; color: var(--gold); }
.nv-raid-cta-text small { display: block; color: var(--text-2); font-size: 12px; }
.nv-raid-cta.active { background: transparent; }
.nv-fight-title { font-size: 20px; font-weight: 700; }
.nv-roster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; margin-top: 16px; }
.nv-roster-side { display: grid; gap: 14px; align-content: start; }
.nv-role-title { color: var(--text-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.nv-role-title span { color: var(--text-3); font-weight: 500; }
.nv-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nv-role-dps .nv-players { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
.nv-player { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; border-left: 3px solid var(--c); text-decoration: none; min-width: 0; }
.nv-player:hover { border-color: var(--border-strong); border-left-color: var(--c); background: var(--surface-3); }
/* Le nom passe en priorité : c'est la spé qui se raccourcit si la case est étroite. */
.nv-player b { color: var(--c); font-weight: 600; white-space: nowrap; flex-shrink: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.nv-player small { color: var(--text-3); margin-left: auto; font-size: 11px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nv-player.active { border-color: var(--gold); background: var(--gold-soft); border-left-color: var(--c); }
.nv-hint { margin-top: 14px; color: var(--text-3); font-size: 13px; display: flex; gap: 6px; align-items: center; }

.nv-player-head { display: flex; align-items: center; gap: 16px; }
.nv-avatar { width: 46px; height: 46px; border-radius: 10px; border: 2px solid; }
.nv-player-name { font-size: 22px; font-weight: 700; line-height: 1.15; }
.nv-parse { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 66px; height: 50px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--p); background: color-mix(in srgb, var(--p) 12%, transparent); }
.nv-parse b { font-size: 20px; color: var(--p); line-height: 1; }
.nv-parse small { font-size: 10px; color: var(--text-2); }
.nv-steps { margin-left: auto; display: flex; gap: 8px; }
.nv-next { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--gold); background: var(--gold-soft); }
.nv-next-icon { font-size: 30px; color: var(--gold); }
.nv-next-title { font-size: 16px; font-weight: 700; }
.nv-next-text { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.nv-next .nv-btn { margin-left: auto; }

.nv-criteria { color: var(--text-2); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0 6px; }
.nv-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin: 6px 0 4px; overflow-x: auto; }
body.nv button.nv-tab { display: flex; gap: 6px; align-items: center; margin: 0; padding: 10px 0; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--text-2); font: 500 14px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
body.nv button.nv-tab:hover { color: var(--text); }
body.nv button.nv-tab.active { color: var(--text); border-bottom-color: var(--gold); }
.nv-count { font-size: 11px; background: var(--orange-soft); color: var(--orange); border-radius: 999px; padding: 0 6px; font-weight: 600; }

.nv-empty { margin: 60px auto; max-width: 520px; text-align: center; padding: 40px 24px; border: 1px dashed var(--border-strong); border-radius: 14px; }
.nv-empty i { font-size: 34px; color: var(--gold); }
.nv-empty-title { font-size: 18px; font-weight: 600; margin: 8px 0 4px; }

/* ---------- Recoloration des composants existants ---------- */
.nv-main h2, .nv-main h3 { font-weight: 600; }
.nv-main .small-note { color: var(--text-2); }
.nv-main .quick-compare, .nv-main .log-state, .nv-main .priority-box, .nv-main .individual-summary,
.nv-main .cycle-section, .nv-main .raid-audit-box, .nv-main .talents-v2, .nv-main .summary-box,
.nv-main .beta-timeline, .nv-main .raid-audit-priority {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.nv-main .quick-compare, .nv-main .talents-v2 { margin-top: 0; margin-bottom: 16px; }
.nv-main .quick-stat, .nv-main .stat, .nv-main .priority-card, .nv-main .raid-audit-stat, .nv-main .opener-sequence,
.nv-main .death-v2, .nv-main .rot-finding, .nv-main .raid-audit-row, .nv-main .opener-info, .nv-main .death-v2-hit {
    background: var(--surface-2); border-color: var(--border);
}
.nv-main .stat-value, .nv-main .quick-stat-value { color: var(--text); }
.nv-main .reference-link { color: var(--gold); }
.nv-main .quick-table th, .nv-main .quick-table td, .nv-main .comparison-table th, .nv-main .comparison-table td,
.nv-main .reference-table th, .nv-main .reference-table td { border-bottom-color: var(--border); }
.nv-main .quick-table th, .nv-main .comparison-table th, .nv-main .reference-table th { color: var(--text-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.nv-main .spell-icon { border-color: var(--border-strong); }
.nv-main .analysis-tab-panel { padding-top: 16px; }
.nv-main .raid-audit-tabs, .nv-main .analysis-tabs { gap: 22px; border-bottom: 1px solid var(--border); }
.nv-main .analysis-tab-button { margin: 0; padding: 10px 0; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--text-2); font: 500 14px Inter, sans-serif; }
.nv-main .analysis-tab-button:hover { color: var(--text); border-color: transparent; }
.nv-main .analysis-tab-button.active { background: transparent; color: var(--text); border-bottom-color: var(--gold); }
.nv-main .raid-audit-title { font-size: 18px; font-weight: 700; }
.nv-main .priority-title, .nv-main .individual-summary-title, .nv-main .raid-audit-priority-title { font-weight: 700; }
.nv-main .talents-v2-mode.active { background: var(--gold); border-color: var(--gold); }
.nv-main .opener-sequence-chip { background: var(--surface-3); border-color: var(--border-strong); }
.nv-main .timing-ok { color: var(--green); }
.nv-main .timing-warn { color: var(--orange); }
.nv-main .status-missing, .nv-main .status-below { color: var(--red); }
.nv-main .status-above { color: var(--orange); }
.nv-main .death-v2.avoidable { border-left-color: var(--red); }
.nv-main .death-v2.strategy { border-left-color: var(--orange); }
.nv-main .death-v2.raid { border-left-color: var(--blue); }

@media (max-width: 1100px) {
    .nv-layout { grid-template-columns: 240px minmax(0, 1fr); }
    .nv-main { padding: 18px 16px 60px; }
    .nv-roster { grid-template-columns: 1fr; }
    .nv-player-head { flex-wrap: wrap; }
    .nv-fight-head { flex-wrap: wrap; }
    .nv-raid-cta { margin-left: 0; }
    .nv-crumbs { display: none; }
}
@media (max-width: 760px) {
    .nv-layout { grid-template-columns: 1fr; }
    .nv-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
    .nv-top-actions .nv-btn span { display: none; }
}

/* Barre latérale : raids récents */
.nv-raid { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; margin-bottom: 3px; }
.nv-raid b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-raid small { display: block; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-raid:hover { background: var(--surface-2); }
.nv-raid.active { background: var(--gold-soft); border-color: rgba(232,180,71,.45); }
.nv-raid.active b { color: var(--gold); }

/* Accueil d'un raid : cartes des boss */
.nv-overview-head { margin-bottom: 12px; }
.nv-boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.nv-boss-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.nv-boss-card:hover { border-color: var(--border-strong); }
.nv-boss-card.killed { border-top: 3px solid var(--green); }
.nv-boss-card-head { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nv-boss-card-name { font-size: 16px; font-weight: 700; flex: 1; }
.nv-boss-card-head:hover .nv-boss-card-name { color: var(--gold); }
.nv-boss-card-status { display: flex; align-items: center; gap: 6px; margin: 6px 0 10px; color: var(--text-2); font-size: 13px; }
.nv-boss-card-status i { color: var(--text-3); }
.nv-boss-card .nv-fights { padding: 0; }

/* Rotation : trinkets actifs en bas de l'onglet. */
.nv-rotation-trinkets { margin-top: 22px; }

/* Timeline : casts annulés (début de cast sans cast terminé), sur la piste « toi ». */
.beta-timeline-event.mine.cancelled {
    background: repeating-linear-gradient(135deg, rgba(255,99,99,.55) 0 4px, rgba(255,99,99,.12) 4px 8px);
    border: 1px dashed #ff7b7b; z-index: 5; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.beta-timeline-cancel-mark { color: #ffd6d6; font-size: 10px; font-weight: 700; line-height: 1; }
.beta-timeline-dot.cancelled { background: repeating-linear-gradient(135deg, #ff6b6b 0 3px, rgba(255,99,99,.2) 3px 6px); border: 1px dashed #ff7b7b; }
.beta-timeline-cancel-count { color: #ff8f8f; font-weight: 600; }

/* Combat : replay Warcraft Logs (impossible de l'afficher dans notre site) à côté d'« Analyser le raid ». */
.nv-fight-actions { margin-left: auto; display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.nv-fight-actions .nv-raid-cta { margin-left: 0; }
.nv-replay-btn { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 12px; text-decoration: none;
    border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--text); transition: border-color .15s, background .15s; }
.nv-replay-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.nv-replay-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #0b0e14; font-size: 18px; flex: none; }
.nv-replay-text b { display: block; font-weight: 700; }
.nv-replay-text small { display: block; color: var(--text-2); font-size: 12px; }
@media (max-width: 900px) { .nv-fight-actions { margin-left: 0; } }

/* Combat : bloc Dégâts & parses sous la liste des joueurs. */
.nv-damage-card { margin-top: 0; }
.nv-damage-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.nv-damage-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.nv-damage-title .ti { color: var(--gold); }
.nv-damage-wait { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.nv-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: nv-spin .8s linear infinite; }
@keyframes nv-spin { to { transform: rotate(360deg); } }

/* Analyser le raid → Dégâts & parses */
.v2-dmg-targets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.v2-dmg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border, rgba(255,255,255,.12)); background: rgba(255,255,255,.03); color: var(--text-2, #c9ced8); font-size: 13px; }
.v2-dmg-chip span { color: var(--text-3, #8a93a3); font-size: 12px; }
.v2-dmg-chip:hover { border-color: var(--gold); }
.v2-dmg-chip.active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.v2-dmg-chip.active span { color: var(--gold); }
.v2-dmg-others { font-size: 12px; margin: -2px 0 8px; }
.v2-dmg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.v2-dmg-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3, #8a93a3); padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.v2-dmg-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.v2-dmg-table .v2-dmg-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-dmg-rank { width: 28px; color: var(--text-3, #8a93a3); font-variant-numeric: tabular-nums; }
.v2-dmg-name { white-space: nowrap; font-weight: 600; }
.v2-dmg-name .ti { font-size: 13px; color: var(--text-3, #8a93a3); }
.v2-dmg-name .nv-muted { font-weight: 400; font-size: 12px; }
.v2-dmg-bar { width: 38%; min-width: 150px; white-space: nowrap; }
.v2-dmg-track { display: inline-block; vertical-align: middle; width: calc(100% - 58px); height: 14px; border-radius: 3px; background: rgba(255,255,255,.04); overflow: hidden; }
.v2-dmg-fill { display: block; height: 100%; border-radius: 3px; opacity: .8; }
.v2-dmg-share { display: inline-block; vertical-align: middle; width: 52px; text-align: right; font-size: 12px; color: var(--text-2, #c9ced8); font-variant-numeric: tabular-nums; }
.v2-dmg-parse { width: 64px; text-align: center; }
.v2-parse { display: inline-block; min-width: 34px; padding: 2px 6px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.05); }
.v2-parse.p-grey { color: #9d9d9d; } .v2-parse.p-green { color: #1eff00; } .v2-parse.p-blue { color: #0070ff; }
.v2-parse.p-purple { color: #a335ee; } .v2-parse.p-orange { color: #ff8000; } .v2-parse.p-pink { color: #e268a8; }
.v2-parse.p-gold { color: #e5cc80; }
.v2-dmg-title { margin: 22px 0 6px; font-size: 16px; }

/* Talents : « Copier les talents » (code d'import WoW du build le plus joué). */
.talents-copy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 14px; padding: 12px 14px;
    border: 1px solid var(--gold); border-radius: 12px; background: var(--gold-soft); }
.talents-copy-btn { white-space: nowrap; }
body.nv .nv-btn.primary.talents-copy-btn.copied { background: #3ecf8e; border-color: #3ecf8e; color: #0b0e14; }
.talents-copy-info { font-size: 13px; color: var(--text); line-height: 1.5; }
.talents-copy-info small { display: block; color: var(--text-2); font-size: 12px; }

/* Talents (vue majorité) : contrepartie d'une différence — où le point va à la place. */
.talent-instead { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: 4px; }
.talent-instead-label { color: var(--text-2); font-size: 13px; }
.talent-instead-or { color: var(--text-3); font-size: 12px; }
.talent-node.alt-reference { outline: 2px dashed #f0b429; outline-offset: 2px; border-radius: 8px; }
.talent-node.alt-reference .talent-node-icon { filter: none; opacity: .75; }
.talent-node.alt-mine { outline: 2px dashed #43a0fb; outline-offset: 2px; border-radius: 8px; }
.talent-tag.alt-reference { color: #f0b429; border: 1px dashed #f0b429; background: rgba(15,17,23,.92); }
.talent-tag.alt-mine { background: rgba(15,17,23,.92); color: #43a0fb; border: 1px dashed #43a0fb; }

/* Barre du haut : lien Warcraft Logs un peu plus visible (sans en faire un bouton principal). */
body.nv a.nv-btn.nv-wcl-btn { border: 1px solid rgba(232,180,71,.55); background: var(--gold-soft); color: var(--text); gap: 8px; }
body.nv a.nv-btn.nv-wcl-btn .ti { color: var(--gold); }
body.nv a.nv-btn.nv-wcl-btn b { color: var(--gold); font-weight: 700; }
body.nv a.nv-btn.nv-wcl-btn:hover { border-color: var(--gold); background: rgba(232,180,71,.2); }
@media (max-width: 900px) { body.nv a.nv-btn.nv-wcl-btn span { display: none; } }

/* Raids récents : semaines récentes, puis années et mois (repliables). */
.nv-week, .nv-year, .nv-month { margin-bottom: 2px; }
body.nv button.nv-week-head, body.nv button.nv-year-head, body.nv button.nv-month-head {
    display: flex; align-items: center; gap: 7px; width: 100%; margin: 0; padding: 8px 6px; border: none; border-radius: 0;
    background: transparent; color: var(--text-2); cursor: pointer; text-align: left; }
body.nv button.nv-week-head { font: 600 14px Inter, sans-serif; border-top: 1px solid var(--border); }
body.nv button.nv-year-head { font: 700 16px Inter, sans-serif; border-top: 1px solid var(--border-strong); margin-top: 6px; padding: 10px 6px; }
body.nv button.nv-month-head { font: 600 13px Inter, sans-serif; padding: 6px 6px 6px 14px; }
body.nv button.nv-week-head:hover, body.nv button.nv-year-head:hover, body.nv button.nv-month-head:hover { color: var(--text); }
.nv-week-head .ti, .nv-year-head .ti, .nv-month-head .ti { font-size: 15px; color: var(--text-3); }
.nv-week-head small, .nv-year-head small, .nv-month-head small { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 12px; }
.nv-week.open > .nv-week-head, .nv-month.open > .nv-month-head { color: var(--text); }
.nv-year.open > .nv-year-head, .nv-year-head span { color: var(--gold); }
.nv-week-body { padding: 2px 0 4px 8px; }
.nv-month-body { padding: 2px 0 4px 20px; }
.nv-demo-note { margin: 0 4px 10px; padding: 8px 10px; border: 1px dashed rgba(255,159,67,.55); border-radius: 8px; color: #ff9f43; font-size: 12px; }

/* Timeline : une seule légende, bien visible (plus d'étiquette RÉF / TOI sur chaque ligne). */
.beta-timeline-key { display: grid; gap: 6px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--text-2); align-self: flex-start; }
.beta-timeline-key-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.beta-timeline-key-bar { display: inline-block; width: 34px; height: 12px; border-radius: 2px; flex: none; }
.beta-timeline-key-bar.ref { background: #e9b52b; border: 1px solid #ffd35e; }
.beta-timeline-key-bar.mine { background: #43a0fb; border: 1px solid #8dccff; }
.beta-timeline-key-bar.cancelled { background: repeating-linear-gradient(135deg, rgba(255,99,99,.55) 0 4px, rgba(255,99,99,.12) 4px 8px); border: 1px dashed #ff7b7b; }
.beta-timeline-key .key-ref { color: #f0b429; }
.beta-timeline-key .key-mine { color: #4ea1ff; }
.beta-timeline-key .key-cancel { color: #ff8f8f; }

/* Timeline : colonne des sorts = casts de la référence, les tiens et les annulés (pas de décalage : demande du 30/09). */
.beta-timeline-spell-count { font-size: 10px; }

/* Vue rapide : onglets DPS par sort / Uptime */
.nv-quick-tabs > .nv-quick-tabbar { margin-bottom: 10px; }
.up-table td { vertical-align: middle; }
.up-bars { width: 26%; min-width: 120px; }
.up-bar { display: block; height: 5px; border-radius: 3px; margin: 2px 0; }
.up-bar.mine { background: var(--blue); }
.up-bar.ref { background: var(--gold); }
.up-diff { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.up-diff.less { color: var(--orange); }
.up-diff.more { color: var(--blue); }
.up-diff.close { color: var(--text-3); }
.up-empty { padding: 10px 0; }

/* Analyser le raid → Dégâts subis : classement, détail de chaque joueur au clic. */
.rt-row { display: grid; grid-template-columns: 28px minmax(170px, 1.3fr) minmax(150px, 2fr) 90px 90px; gap: 8px; align-items: center; padding: 6px 8px; font-size: 14px; }
.rt-head { font-size: 12px; font-weight: 600; color: var(--text-3); border-bottom: 1px solid rgba(255,255,255,.08); margin-top: 6px; }
.rt-player { border-bottom: 1px solid rgba(255,255,255,.04); }
.rt-player > summary { list-style: none; cursor: pointer; }
.rt-player > summary::-webkit-details-marker { display: none; }
.rt-player > summary:hover { background: rgba(255,255,255,.03); }
.rt-player > summary:focus-visible { outline: 1px solid var(--gold); }
.rt-player[open] > summary { background: var(--gold-soft); }
.rt-chevron { font-size: 13px; color: var(--text-3); transition: transform .15s; margin-right: 2px; }
.rt-player[open] .rt-chevron { transform: rotate(90deg); }
.rt-row .rt-bar { width: auto; min-width: 0; }
.rt-detail { padding: 6px 8px 14px 36px; }
.rt-spell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rt-spell img { width: 18px; height: 18px; border-radius: 3px; }
.rt-kind { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.rt-kind.target { color: var(--gold); border-color: rgba(232,180,71,.35); }
.rt-kind.raid { color: #b48cff; border-color: rgba(180,140,255,.35); }
.rt-kind.self { color: var(--text-3); }
.rt-source { font-size: 12px; color: var(--text-3); }
.rt-note { font-size: 12px; margin-top: 6px; }
@media (max-width: 700px) {
    .rt-row { grid-template-columns: 24px 1fr 80px; }
    .rt-row > :nth-child(3), .rt-row > :nth-child(5) { display: none; }
    .rt-detail { padding-left: 8px; }
}

/* Dégâts & parses : clic sur un joueur = détail de ses dégâts, sort par sort. */
.v2-dmg-click { cursor: pointer; }
.v2-dmg-click:hover td { background: rgba(255,255,255,.03); }
.v2-dmg-click.open td { background: var(--gold-soft); }
.v2-dmg-click.open .rt-chevron { transform: rotate(90deg); }
.v2-dmg-name .rt-chevron { font-size: 13px; margin-right: 2px; }
.v2-dmg-detail { padding: 6px 8px 14px 36px !important; background: rgba(255,255,255,.015); }
.v2-dmg-detail-wait { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
@media (max-width: 700px) { .v2-dmg-detail { padding-left: 8px !important; } }
.rt-add { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--orange); white-space: nowrap; }

/* Analyser le raid → Résumé : une ligne par mort importante. */
.raid-death-line { display: grid; grid-template-columns: 44px minmax(150px, auto) 1fr auto; gap: 10px; align-items: center; padding: 8px 10px;
    border-radius: 8px; background: rgba(255,255,255,.025); border-left: 3px solid var(--border); font-size: 14px; }
.raid-death-line + .raid-death-line { margin-top: 6px; }
.raid-death-line.avoidable { border-left-color: var(--red); }
.raid-death-line.strategy { border-left-color: var(--orange); }
.raid-death-line.mechanic { border-left-color: var(--gold); }
.raid-death-line.tank { border-left-color: var(--blue); }
.raid-death-line-time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.raid-death-line-names { color: var(--text-2); font-size: 13px; }
.raid-death-line-cause { color: var(--text-2); min-width: 0; }
.raid-death-line-more { margin-top: 10px; font-size: 13px; color: var(--text-3); }
@media (max-width: 700px) { .raid-death-line { grid-template-columns: 40px 1fr; } .raid-death-line > :nth-child(n+3) { grid-column: 2; } }
/* Dégâts subis : la mention « mêlée d'add » passe à la ligne (plus d'ascenseur horizontal). */
.rt-add { display: block; margin: 3px 0 0 24px; white-space: normal; }

/* Vue rapide : « DPS par sort » / « Uptime » en vrais boutons, bien visibles. */
.nv-quick-tabs > .nv-quick-tabbar { display: inline-flex; gap: 6px; padding: 4px; margin: 0 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow: visible; }
body.nv .nv-quick-tabbar button.nv-tab { padding: 9px 18px; border: 0; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--text-2); }
body.nv .nv-quick-tabbar button.nv-tab:hover { background: rgba(255,255,255,.04); color: var(--text); }
body.nv .nv-quick-tabbar button.nv-tab.active { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(232,180,71,.45); }
body.nv .nv-quick-tabbar button.nv-tab .ti { font-size: 17px; }
body.nv .nv-quick-tabbar button.nv-tab:focus-visible { outline: 1px solid var(--gold); }

/* Talents : les trois arbres (classe, héros, spé) centrés dans le cadre, pas collés à gauche. */
.talent-trees { margin-left: auto; margin-right: auto; }

/* Bouton « Accueil » bien visible dans la barre du haut. */
.nv-home-btn { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; padding: 5px 12px; border-radius: 8px;
    border: 1px solid rgba(232,180,71,.45); background: var(--gold-soft); color: var(--gold); font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.nv-home-btn:hover { background: rgba(232,180,71,.22); color: var(--gold); }
.nv-home-btn .ti { font-size: 15px; }

/* Bouton « Voir le log de X sur Warcraft Logs » (comparaison rapide, Uptime) */
.ref-log-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--gold);
    background: var(--gold-soft); color: var(--gold) !important; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.ref-log-btn b { color: var(--text); }
.ref-log-btn:hover { background: rgba(232,180,71,.22); text-decoration: none; }
.ref-log-btn .ti { font-size: 16px; }
/* Bloc « Dégâts / Soins » de la page d'un combat : deux onglets */
/* Bloc « Dégâts / Soins » d'un combat : onglets en vrais boutons, comme « DPS par sort / Uptime » (02/10). */
.nv-damage-head .v2-dh-tabs { display: inline-flex; gap: 6px; padding: 4px; margin: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow: visible; }
body.nv .v2-dh-tabs button.nv-tab { padding: 9px 18px; border: 0; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--text-2); }
body.nv .v2-dh-tabs button.nv-tab:hover { background: rgba(255,255,255,.04); color: var(--text); }
body.nv .v2-dh-tabs button.nv-tab.active { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(232,180,71,.45); }
body.nv .v2-dh-tabs button.nv-tab .ti { font-size: 17px; }
body.nv .v2-dh-tabs button.nv-tab:focus-visible { outline: 1px solid var(--gold); }
.nv-damage-head:has(.v2-dh-tabs) { align-items: center; }
.v2-dh-panel { display: none; }
.v2-dh-panel.active { display: block; }
/* Analyser le raid → Sorts du boss */
.ab-fill { background: var(--orange); }
/* Analyser le raid → Morts : une ligne par mort, détail au clic */
.dl-item + .dl-item { margin-top: 6px; }
.dl-item > summary { list-style: none; cursor: pointer; }
.dl-item > summary::-webkit-details-marker { display: none; }
.dl-item > summary:focus-visible { outline: 1px solid var(--gold); border-radius: 8px; }
.dl-item > summary .raid-death-line { grid-template-columns: 62px minmax(150px, auto) 1fr auto; }
.dl-item > summary:hover .raid-death-line { background: rgba(255,255,255,.05); }
.dl-item[open] > summary .raid-death-line { background: var(--gold-soft); }
.dl-item[open] .rt-chevron { transform: rotate(90deg); }
.dl-detail { padding: 10px 10px 14px 24px; border-left: 3px solid var(--border); margin-left: 0; }
.dl-why { font-size: 14px; }
.dl-extra { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.dl-extra .inline-spell-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; border-radius: 3px; }
.dl-label { display: inline-block; min-width: 96px; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.dl-events-title { margin: 12px 0 4px; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.dl-events td { padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.dl-events .inline-spell-icon { width: 18px; height: 18px; border-radius: 3px; }
.dl-time { width: 64px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-minus { color: var(--red); }
.dl-absorbed { display: block; font-size: 11px; color: var(--text-3); }
.dl-hp { width: 150px; white-space: nowrap; }
.dl-hp-track { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.dl-hp-fill { display: block; height: 100%; }
.dl-hp-fill.ok { background: var(--green); }
.dl-hp-fill.mid { background: var(--orange); }
.dl-hp-fill.low { background: var(--red); }
.dl-hp-value { display: inline-block; width: 46px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.dl-wipe { padding: 10px 12px; border-radius: 8px; background: var(--red-soft); border-left: 3px solid var(--red); font-size: 14px; }
@media (max-width: 700px) { .dl-item > summary .raid-death-line { grid-template-columns: 56px 1fr; } .dl-hp-track { width: 50px; } }
/* Morts : ce qui restait au joueur (défensifs prêts, pierre et potion de soin pas utilisées) */
.raid-death-line { grid-template-columns: 44px minmax(150px, auto) 1fr auto auto; }
.dl-item > summary .raid-death-line { grid-template-columns: 62px minmax(150px, auto) 1fr auto auto; }
.dl-left-slot:empty { display: none; }
.dl-left-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
    color: var(--gold); border: 1px solid rgba(232,180,71,.45); background: var(--gold-soft); }
.dl-left { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.025); border-left: 3px solid var(--border-strong); }
.dl-left.warn { border-left-color: var(--gold); background: var(--gold-soft); }
.dl-left-title { font-size: 13px; color: var(--text-2); }
.dl-left-title strong { color: var(--text); }
.dl-left-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dl-left-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.dl-left-item small { color: var(--text-3); font-size: 12px; }
.dl-left-item .inline-spell-icon { width: 20px; height: 20px; border-radius: 4px; margin: 0; }
.dl-left-emoji { font-size: 15px; line-height: 1; }
.dl-left-note { margin-top: 6px; font-size: 12px; color: var(--text-3); }
@media (max-width: 700px) { .dl-item > summary .raid-death-line { grid-template-columns: 56px 1fr; } }
.dl-legend { margin: -2px 0 10px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.dl-legend .dl-left-pill { font-size: 11px; padding: 0 6px; margin-right: 2px; }
@media (max-width: 700px) { .raid-death-line { grid-template-columns: 40px 1fr; } }
/* Accueil d'un raid : parses (joueurs × boss tués, un clic sur un parse ouvre l'analyse) */
.nv-parses-card { margin-top: 16px; }
.rp-table th.rp-boss { text-align: center; font-size: 11px; line-height: 1.25; white-space: normal; min-width: 64px; max-width: 96px; text-transform: none; letter-spacing: 0; vertical-align: bottom; }
.rp-table th.rp-boss a { display: block; color: var(--text-2); text-decoration: none; margin-bottom: 3px; }
.rp-table th.rp-boss a:hover { color: var(--gold); }
.rp-table th.rp-boss .nv-pill { font-size: 10px; padding: 0 5px; }
.rp-table td.rp-cell { text-align: center; padding-left: 4px; padding-right: 4px; }
.rp-table tr.rp-role td { padding-top: 12px; color: var(--text-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rp-table tr.rp-role td .ti { margin-right: 6px; }
.rp-table tr.rp-role td span { font-weight: 500; }
.rp-link { text-decoration: none; display: inline-block; border-radius: 6px; }
.rp-link:hover .v2-parse { box-shadow: inset 0 0 0 1px currentColor; }
.nv-parses-none { margin-top: 16px; }
/* Parses : onglets par difficulté (NM / HM / MM de la soirée) */
.nv-damage-head .rp-tabs button.nv-tab { padding: 6px 16px; font-size: 14px; }
/* Parses de la guilde (lien en haut de la colonne de gauche, page /parses) */
.nv-guild-link { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 9px 12px; border-radius: 10px; text-decoration: none;
    border: 1px solid rgba(232,180,71,.45); background: var(--gold-soft); color: var(--gold) !important; font-weight: 600; font-size: 14px; }
.nv-guild-link:hover { background: rgba(232,180,71,.22); }
.nv-guild-link.active { border-color: var(--gold); }
.nv-guild-link .ti { font-size: 17px; }
.nv-guild-tabs { margin: 0 0 14px !important; }
.nv-guild-raids { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.rp-player { text-decoration: none; }
.rp-player:hover span { text-decoration: underline; }
.nv-guild-tabs { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--border) !important; border-radius: 12px; background: var(--surface-2); overflow: visible; }
/* Parses : colonne « Moyenne » (une par joueur et par difficulté) */
.rp-table .rp-avg { text-align: center; border-left: 1px solid var(--border); }
/* Tableaux de parses plus lisibles : portraits des boss, gros chiffres sur fond teinté, ligne survolée, moyenne en avant */
.rp-table th.rp-boss { min-width: 72px; padding-bottom: 8px; }
.rp-table th.rp-boss a, .rp-table th.rp-boss .rp-boss-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rp-boss-icon { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border-strong); object-fit: cover; }
.rp-table th.rp-boss a:hover .rp-boss-icon { border-color: var(--gold); }
.rp-table td { padding-top: 5px; padding-bottom: 5px; }
.rp-table .v2-parse { min-width: 40px; padding: 4px 8px; font-size: 14px; border-radius: 7px; background: color-mix(in srgb, currentColor 13%, transparent); }
.rp-table tbody tr:not(.rp-role):hover td { background: rgba(255,255,255,.04); }
.rp-table tr.rp-role td { padding-top: 14px; padding-bottom: 6px; color: var(--text-2); font-size: 12px; border-bottom: 1px solid var(--border-strong); }
.rp-table th.rp-avg { color: var(--gold); }
.rp-table td.rp-avg .v2-parse { font-size: 15px; min-width: 46px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent); }
.rp-table td.v2-dmg-name, .rp-table th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
/* Meilleurs parses de la guilde : explication et « Difficulté : » bien lisibles */
.nv-guild-card .nv-guild-sub { margin: -2px 0 14px; font-size: 15px; color: var(--text-2); }
.nv-guild-card .nv-guild-sub strong { color: var(--text); }
.nv-guild-tabs-row { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.nv-guild-tabs-row .nv-guild-tabs { margin: 0 !important; }
.nv-guild-tabs-label { color: var(--text-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rp-table th.rp-avg-raid { white-space: normal; max-width: 90px; line-height: 1.25; }

.nv-footer { text-align: center; padding: 18px 12px 26px; border-top: 1px solid var(--border); }
.nv-footer a { color: var(--text-3); font-size: 12px; text-decoration: none; }
.nv-footer a:hover { color: var(--gold, #e8b447); text-decoration: underline; }
