/* WoW Timeline : thème « Abysse ». */
:root {
  --bg: #130F1D;
  --surface: #1D1729;
  --surface-2: #241B30;
  --line: #2E2640;
  --line-soft: #2A2238;
  --ink: #ECE8F5;
  --dim: #A59DBA;
  --faint: #6E6587;
  --violet: #A78BFA;
  --violet-ink: #C4B3FF;
  --venom: #5EE0B0;
  --boss: #FF8FA3;
  --boss-ink: #FFB3BE;
  --display: "Oxanium", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --label-w: 250px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 var(--text); font-variant-numeric: tabular-nums; min-height: 100vh; }
a { color: var(--violet-ink); }
a:hover { color: #E2D9FF; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--venom); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; }
.note { color: var(--dim); font-size: 13px; }
.muted { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Contrôles communs ------------------------------------------------ */
.seg { display: inline-flex; gap: 3px; background: var(--surface); border-radius: 10px; padding: 3px; }
.seg button, .seg a {
  background: transparent; color: var(--dim); border: 0; border-radius: 7px; padding: 7px 12px;
  font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--violet); color: var(--bg); }
.tabs { display: inline-flex; gap: 4px; background: var(--surface); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.tg {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 6px 11px; font-size: 13px;
  background: var(--surface-2); color: var(--dim); border: 1px solid #3A3150;
}
.tg[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn {
  border: 0; border-radius: 9px; padding: 9px 14px; font-weight: 600; font-size: 14px;
  background: var(--violet); color: var(--bg);
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #3A3150; }
.field {
  background: var(--bg); border: 1px solid #3A3150; border-radius: 8px; color: var(--ink);
  padding: 7px 10px; font-size: 14px;
}
.field.time { width: 64px; text-align: center; }
select.field { padding: 6px 8px; }
.lbl-sm { font-size: 12px; color: var(--dim); display: flex; flex-direction: column; gap: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ico { display: inline-grid; place-items: center; background: #3A3150; color: var(--ink); font: 700 11px var(--display); border-radius: 4px; }
img.ico, .ico { width: 22px; height: 22px; flex: none; }

/* ---- Barre du haut (pages d'analyse) ---------------------------------- */
.top {
  display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap;
  padding: 12px 32px; border-bottom: 1px solid var(--line);
}
.mark { font: 700 20px var(--display); letter-spacing: .04em; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.mark svg { flex: none; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.status { margin-left: auto; display: flex; align-items: center; gap: 16px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.status b { color: var(--ink); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--venom); display: inline-block; }
.dot.stale { background: #F5A524; }
.meter { width: 90px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; display: inline-block; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--violet); }
.lang { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.lang select { background: var(--surface); color: var(--ink); border: 1px solid #3A3150; border-radius: 8px; padding: 6px 8px; font-size: 13px; }

/* ---- Accueil ----------------------------------------------------------- */
.home { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side {
  flex: 1 1 250px; max-width: 290px; padding: 26px 22px 40px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px;
}
.side .seg { display: grid; grid-template-columns: 1fr 1fr; }
.raid h2 { font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 6px; }
.bosses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bosses button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: #CFC8E0; text-align: left; font-size: 14px;
}
.bosses button:hover { background: var(--surface); color: var(--ink); }
.bosses button[aria-current="true"] { background: #2A2140; color: var(--ink); }
.state { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px #4A4060; }
.state.full { background: var(--venom); box-shadow: none; }
.state.part { background: var(--violet); box-shadow: none; }
.home main { flex: 999 1 640px; min-width: 0; padding: 30px 44px 56px; display: flex; flex-direction: column; gap: 26px; }
.home-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.home-head h1 { font-size: 52px; font-weight: 700; flex: 1 1 420px; }
.home-head p { margin: 10px 0 0; color: var(--dim); }
.preview { padding: 18px 20px 20px; }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-head h2 { font-size: 20px; font-weight: 600; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.role h2 { font-size: 16px; font-weight: 600; color: var(--dim); margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
.role h2 span { font: 400 12px var(--text); color: var(--faint); }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-size: 13px;
  background: var(--surface); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none;
}
.spec:hover { box-shadow: inset 0 0 0 1px var(--violet); color: var(--ink); }
.spec .cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.spec small { color: var(--faint); }
.spec.off { opacity: .4; pointer-events: none; }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: 12px; color: var(--dim); max-width: 72ch; }
.empty h1 { color: var(--ink); font-size: 26px; margin-bottom: 10px; }
.empty code { color: var(--ink); }

/* ---- Page d'analyse ---------------------------------------------------- */
.page { padding: 22px 32px 56px; display: flex; flex-direction: column; gap: 16px; max-width: 1800px; }
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.head h1 { font-size: 38px; font-weight: 700; flex: 1 1 480px; }
.head h1 .who { color: var(--cls, var(--ink)); }
.head h1 .vs { color: var(--faint); font-weight: 500; }
.bar { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.bar .grow { margin-left: auto; }
.panel { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.panel .group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.panel .group > span:first-child { color: var(--dim); font-size: 13px; margin-right: 2px; }
.groups { display: flex; flex-wrap: wrap; gap: 10px; }
.sgroup { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.sgroup header { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.sgroup header b { font-weight: 600; }
.sgroup header button { background: none; border: 0; color: var(--dim); font-size: 12px; padding: 0; }
.sgroup header button:hover { color: var(--ink); }
.icons { display: flex; gap: 5px; flex-wrap: wrap; max-width: 520px; }
.sp { border: 0; padding: 0; border-radius: 6px; background: none; line-height: 0; }
.sp img, .sp .ico { width: 30px; height: 30px; border-radius: 6px; box-shadow: 0 0 0 2px var(--c, transparent); }
.sp[aria-pressed="false"] { opacity: .25; }
.filters { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: flex-end; }
.filters .search { flex: 1 1 200px; }
.filters .search .field { width: 100%; }

/* ---- Frise ------------------------------------------------------------- */
.tl { overflow: auto; max-height: calc(100vh - 80px); position: relative; padding: 0; }
.grid { position: relative; min-width: 100%; }
.row { display: flex; border-top: 1px solid var(--line-soft); }
.row.axis { height: 30px; position: sticky; top: 0; z-index: 6; background: var(--surface); border-top: 0; border-bottom: 1px solid var(--line); }
.row.blane { height: 26px; background: rgba(255,143,163,.04); }
.row.blane:first-of-type { border-top: 0; }
.row.sep { border-top: 1px solid var(--line); }
.lbl {
  width: var(--label-w); flex: none; position: sticky; left: 0; z-index: 4; background: var(--surface);
  border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 10px;
  font-size: 13px; overflow: hidden; white-space: nowrap;
}
.row:hover .lbl { background: #251D35; }
.lbl .rk { font: 600 13px var(--display); color: var(--faint); width: 30px; flex: none; }
.lbl .nm { color: var(--cls, var(--ink)); overflow: hidden; text-overflow: ellipsis; text-decoration: none; flex: 1; }
.lbl .nm:hover { text-decoration: underline; }
.lbl .amt { color: var(--dim); font-size: 12px; }
.lbl .pl { color: var(--faint); text-decoration: none; font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.lbl .pl:hover { color: var(--ink); border-color: var(--faint); }
.row.blane .lbl { color: var(--boss-ink); font-size: 12px; }
.row.axis .lbl { font: 600 13px var(--display); color: var(--dim); }
.use { width: 70px; flex: none; text-align: right; padding-right: 12px; font: 600 12px/1 var(--display); display: flex; align-items: center; justify-content: flex-end; }
.track { position: relative; flex: none; }
.span { position: absolute; left: 0; height: 4px; border-radius: 2px; background: var(--line); }
.end { position: absolute; font-size: 11px; color: var(--faint); padding-left: 6px; }
.tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line-soft); }
.tick span { position: absolute; top: 7px; left: 4px; font: 500 12px var(--display); color: var(--dim); }
.phase { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(167,139,250,.55); pointer-events: none; }
.phase b { position: absolute; top: 5px; left: 3px; font: 700 11px/16px var(--display); color: var(--bg); background: var(--violet); border-radius: 3px; padding: 0 4px; }
.cast { position: absolute; display: flex; align-items: center; z-index: 2; }
.cast .ico, .cast img { border-radius: 4px; position: relative; }
.cast em { position: relative; font-style: normal; font-size: 11px; margin-left: 3px; text-shadow: 0 1px 2px var(--bg); }
.dur { position: absolute; border-radius: 3px; }
.cdb { position: absolute; border-radius: 0 3px 3px 0; }
.bmark { position: absolute; z-index: 2; }
.bmark img, .bmark .ico { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--boss); }
.brange { position: absolute; height: 4px; border-radius: 2px; background: rgba(255,143,163,.3); }
.cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(236,232,245,.45); pointer-events: none; z-index: 5; display: none; }
.cross span { position: sticky; top: 6px; display: inline-block; transform: translateX(-50%); background: var(--ink); color: var(--bg); font: 600 12px var(--display); padding: 1px 6px; border-radius: 3px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--dim); padding: 10px 14px; border-top: 1px solid var(--line); }
.legend i { display: inline-block; width: 22px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* ---- Couloirs ---------------------------------------------------------- */
.lanes { display: grid; grid-template-columns: 250px minmax(720px, 1fr) 200px; column-gap: 16px; padding: 12px 16px 16px; overflow-x: auto; align-items: center; }
.lanes .ln { padding: 12px 0; border-top: 1px solid var(--line-soft); align-self: stretch; display: flex; align-items: center; gap: 10px; min-width: 0; }
.lanes .ln .t { display: flex; flex-direction: column; min-width: 0; }
.lanes .ln .t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lanes .ln .t small, .lanes .peak small { color: var(--dim); font-size: 12px; }
.lanes .lt { position: relative; border-top: 1px solid var(--line-soft); align-self: stretch; }
.lanes .peak { border-top: 1px solid var(--line-soft); align-self: stretch; padding: 12px 0; font-size: 13px; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.lanes .dotc { position: absolute; width: 8px; height: 8px; border-radius: 50%; margin-left: -4px; }
.lanes .band { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: rgba(167,139,250,.14); box-shadow: inset 0 0 0 1px rgba(167,139,250,.45); }
.const { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.const.hi { background: rgba(94,224,176,.18); color: var(--venom); }
.const.mid { background: rgba(167,139,250,.18); color: var(--violet-ink); }
.const.lo { background: rgba(255,143,163,.15); color: var(--boss-ink); }

/* ---- Plan type --------------------------------------------------------- */
.plan-wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.plan { flex: 999 1 720px; min-width: 0; overflow-x: auto; }
.plan table { border-collapse: collapse; width: 100%; min-width: 760px; }
.plan th, .plan td { border-bottom: 1px solid var(--line-soft); padding: 10px 12px; vertical-align: top; text-align: left; }
.plan th + th, .plan td + td { border-left: 1px solid var(--line-soft); }
.plan thead th { font: 700 16px var(--display); color: var(--violet-ink); }
.plan thead th small { display: block; font: 400 12px var(--text); color: var(--dim); }
.plan .spell { display: flex; gap: 10px; align-items: center; min-width: 200px; }
.plan .spell b { display: block; font-weight: 600; }
.plan .spell small { color: var(--dim); font-size: 12px; }
.moment { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); margin-bottom: 6px; box-shadow: inset 3px 0 0 var(--c); }
.moment .l1 { display: flex; justify-content: space-between; gap: 8px; }
.moment .l1 b { font: 700 15px var(--display); }
.moment small { color: var(--dim); font-size: 12px; }
.moment .react { color: #CFC8E0; font-size: 12px; }
.reminders { flex: 1 1 300px; max-width: 380px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.reminders h2 { font-size: 19px; font-weight: 600; }
.reminders ol { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.reminders li { display: grid; grid-template-columns: 36px 52px 22px minmax(0,1fr); gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.reminders li .p { font-family: var(--display); color: var(--violet-ink); }
.reminders li .tm { font-family: var(--display); font-weight: 600; }
.reminders li .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Phases ------------------------------------------------------------ */
.pd { padding: 14px 18px; }
.pd-grid { display: grid; grid-template-columns: 190px minmax(0,1fr) 56px; gap: 6px 14px; align-items: center; }
.pd-bar { display: flex; gap: 2px; height: 20px; border-radius: 4px; overflow: hidden; }
.pd-bar span { display: flex; align-items: center; padding-left: 6px; font: 600 11px var(--display); color: var(--bg); overflow: hidden; white-space: nowrap; }
.pd-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.pp { display: grid; gap: 14px; }
.pp-panel { padding: 12px 14px 14px; min-width: 0; }
.pp-panel h3 { font-size: 16px; color: var(--violet-ink); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pp-panel h3 small { font: 400 12px var(--text); color: var(--dim); }
.pp-axis { position: relative; height: 18px; }
.pp-axis span { position: absolute; top: 0; font: 500 11px var(--display); color: var(--dim); }
.pp-boss { position: relative; height: 26px; background: var(--surface-2); border-radius: 5px; margin-bottom: 4px; }
.pp-row { position: relative; height: 26px; border-top: 1px solid var(--line-soft); }
.pp-row.dim { opacity: .3; }
.pp-row .cast img, .pp-row .cast .ico { width: 20px; height: 20px; }

/* ---- Infobulle, toast -------------------------------------------------- */
.tip {
  position: fixed; z-index: 30; pointer-events: none; background: #0E0A16; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 13px; max-width: 320px; display: none; white-space: pre-line;
  box-shadow: 0 10px 28px rgba(0,0,0,.5);
}
.tip strong { display: block; font-weight: 600; margin-bottom: 2px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 40; display: none;
  background: var(--venom); color: var(--bg); font-weight: 600; padding: 10px 18px; border-radius: 10px;
}
@media (max-width: 760px) {
  :root { --label-w: 160px; }
  .top { padding: 10px 14px; }
  .page { padding: 16px 14px 40px; }
  .home main { padding: 20px 16px 40px; }
  .side { max-width: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .head h1, .home-head h1 { font-size: 30px; }
  .lbl .amt, .lbl .pl, .use { display: none; }
}

/* Présentation du lien avec l'addon (accueil) */
.about { position: relative; display: flex; flex-wrap: wrap; gap: 22px 36px; padding: 22px 24px;
  background: linear-gradient(120deg, rgba(167,139,250,.14), rgba(94,224,176,.06) 70%), var(--surface); border-color: #3A3150; }
.about-main { flex: 1 1 420px; min-width: 0; }
.about-kicker { margin: 0 0 6px; font: 600 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--venom); }
.about h2 { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.about-main > p:not(.about-kicker) { margin: 0; color: var(--dim); line-height: 1.55; max-width: 72ch; }
.about-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.about-cta .btn { text-decoration: none; }
.about-cta small { color: var(--faint); }
.about-steps { flex: 1 1 260px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.about-steps li { display: flex; flex-direction: column; gap: 2px; }
.about-steps b { font: 600 15px var(--display); display: flex; align-items: center; gap: 10px; }
.about-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--violet); color: var(--bg); font-size: 12px; }
.about-steps span { color: var(--dim); font-size: 14px; padding-left: 32px; }
.about-hide { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 8px; border: 0;
  background: transparent; color: var(--dim); font-size: 22px; cursor: pointer; }
.about-hide:hover, .about-mini:hover { color: var(--ink); background: var(--surface-2); }
.about-mini { align-self: flex-start; border: 1px solid #3A3150; background: transparent; color: var(--dim);
  border-radius: 999px; padding: 6px 14px; font: 500 13px var(--text); cursor: pointer; }
@media (max-width: 760px) { .about { padding: 18px 16px; } }

.about-src { margin-top: 10px !important; font-size: 14px; }
.about a:not(.btn), .foot a { color: var(--violet-ink); }
.foot { border-top: 1px solid var(--line); padding: 22px 44px 30px; color: var(--faint); font-size: 12.5px; line-height: 1.6; }
.foot p { margin: 0 0 4px; max-width: 120ch; }
.foot a:hover { color: var(--ink); }
@media (max-width: 760px) { .foot { padding: 18px 16px 26px; } }

.about-need { margin: 20px 0 10px; font: 600 13px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.addons { display: flex; flex-wrap: wrap; gap: 12px; }
.addon { flex: 1 1 260px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid #4A3E66; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.addon:hover, .addon:focus-visible { border-color: var(--violet); background: var(--surface-2); }
.addon-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--venom); color: var(--bg); font: 700 14px var(--display); }
.addon-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.addon-b b { font: 600 16px var(--display); }
.addon-b small { color: var(--dim); font-size: 13px; line-height: 1.4; }
.addon-go { flex: none; padding: 7px 12px; border-radius: 8px; background: var(--violet); color: var(--bg); font: 600 13px var(--text); }
.addons { flex-direction: column; }
.addon { flex: none; }
.about a.addon { color: var(--ink); }
.about a.addon .addon-b small { color: var(--dim); }
@media (max-width: 760px) { .addon { flex-wrap: wrap; } .addon-go { margin-left: 44px; } }
@media (max-width: 760px) { .addon-b { flex: 1 1 calc(100% - 44px); } .addon { align-items: flex-start; } }

/* Saisons (accueil) */
.season { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 6px; }
.season span { font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.season select { background: var(--bg); color: var(--ink); border: 1px solid #3A3150; border-radius: 9px; padding: 8px 10px; font: 500 14px var(--text); }
.season-one { margin: 4px 0 6px; font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
