/* =========================================================================
   necro.zalidan.com - Guide Necromancer (Conquest of Azeroth)
   Theme "crypte" : obsidienne + os + givre + peste
   Cinzel (display) - Spectral (corps) - Oswald (stats / badges)
   Cousin du theme de coa.zalidan.com, avec l'identite Necromancer.
   ========================================================================= */

:root {
  --bg:        #080a0e;
  --bg-2:      #0d1016;
  --surface:   #131822;
  --surface-2: #1a2030;
  --surface-3: #212939;
  --line:      #28303f;
  --line-warm: #3a3526;
  --ink:       #e8e3d4;
  --ink-dim:   #aca695;
  --ink-faint: #757c8c;

  --gold:      #e3b24a;
  --gold-deep: #b7842d;
  --bone:      #d8d2bd;

  /* identites de spe */
  --anim:      #8fc264;   /* Animation : vert necrotique */
  --anim-dp:   #4f7a35;
  --death:     #a888c9;   /* Death : peste / ombre */
  --death-dp:  #6b4f8a;
  --rime:      #6fc7e8;   /* Rime : givre */
  --rime-dp:   #2f7f9e;

  --crimson:   #d64b3c;
  --danger:    #e0574a;
  --ok:        #7fb069;

  --t-S: #e04a56;
  --t-A: #e0873f;
  --t-B: #e0c23f;
  --t-C: #7fa650;
  --t-D: #5d6b83;

  --radius: 4px;
  --maxw: 1080px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.85);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Spectral", Georgia, serif;
  --font-stat: "Oswald", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  scrollbar-color: var(--surface-2) var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(1000px 560px at 82% -10%, rgba(111,199,232,.055), transparent 60%),
    radial-gradient(880px 500px at 10% 2%, rgba(143,194,100,.05), transparent 58%),
    radial-gradient(700px 700px at 50% 110%, rgba(227,178,74,.045), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* grain de film */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1240px; }

a { color: var(--rime); text-decoration: none; transition: color .18s; }
a:hover { color: #9adcf5; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

:focus-visible { outline: 2px solid var(--rime); outline-offset: 3px; }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  margin: 56px 0;
}

/* =========================================================================
   Barre de navigation
   ========================================================================= */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8,10,14,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 26px; height: 60px;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.brand:hover { color: var(--gold); }
.brand img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-warm); }

.navlinks {
  display: flex; gap: 20px; margin-left: auto;
  font-family: var(--font-stat); font-size: 13px;
  letter-spacing: .09em; text-transform: uppercase;
}
.navlinks a { color: var(--ink-dim); }
.navlinks a:hover { color: var(--gold); }

.nav-toggle, .nav-toggle-label { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  padding: 84px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 760px; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(143,194,100,.13), transparent 72%);
}

.hero-in { position: relative; z-index: 2; display: flex; gap: 42px; align-items: center; }

.hero-crest {
  width: 128px; height: 128px; flex: 0 0 128px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-warm), 0 0 46px -6px rgba(143,194,100,.4);
}

.eyebrow {
  font-family: var(--font-stat); font-size: 12.5px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}

.hero h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: .3em; }
.hero h1 .sub { display: block; font-size: .42em; letter-spacing: .18em; color: var(--ink-faint); text-transform: uppercase; margin-top: .55em; }

.lede { font-size: 19.5px; color: var(--ink-dim); max-width: 62ch; margin: 0; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
  font-family: var(--font-stat); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
.hero-meta span {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; color: var(--ink-faint); background: var(--surface);
}

/* =========================================================================
   Sections
   ========================================================================= */

section { padding: 62px 0 8px; }
section > .wrap > h2 { font-size: clamp(27px, 3.6vw, 36px); }

.sec-num {
  font-family: var(--font-stat); font-size: 12.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 10px;
}

.sec-intro { color: var(--ink-dim); max-width: 70ch; font-size: 18px; }

/* =========================================================================
   Verdict / encadres
   ========================================================================= */

.callout {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(227,178,74,.07), rgba(227,178,74,0) 70%);
  padding: 18px 22px; margin: 26px 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout.tldr { border-left-color: var(--anim); background: linear-gradient(90deg, rgba(143,194,100,.09), transparent 70%); }
.callout.warn { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(224,87,74,.08), transparent 70%); }
.callout.frost { border-left-color: var(--rime); background: linear-gradient(90deg, rgba(111,199,232,.08), transparent 70%); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  font-family: var(--font-stat); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px;
}
.callout.tldr .label { color: var(--anim); }
.callout.warn .label { color: var(--danger); }
.callout.frost .label { color: var(--rime); }

/* =========================================================================
   Cartes de spe
   ========================================================================= */

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 12px; }

.spec-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--gold));
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.spec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.spec-card.anim  { --accent: var(--anim); }
.spec-card.death { --accent: var(--death); }
.spec-card.rime  { --accent: var(--rime); }

.spec-card h3 { font-size: 24px; margin-bottom: 4px; color: var(--accent); }
.spec-card .role {
  font-family: var(--font-stat); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px;
}
.spec-card p { margin: 0 0 16px; font-size: 16px; color: var(--ink-dim); }
.spec-card .verdict {
  margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line);
  font-family: var(--font-stat); font-size: 13px; letter-spacing: .06em;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.spec-card .note { font-size: 26px; color: var(--accent); font-weight: 600; }
.spec-card .note small { font-size: 13px; color: var(--ink-faint); font-weight: 400; }

/* =========================================================================
   Tableaux
   ========================================================================= */

.table-scroll {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* sans ces deux lignes, la min-width du tableau remonte dans la grille parente
     et fait deborder la page sur mobile */
  min-width: 0;
  max-width: 100%;
}

table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }

thead th {
  background: var(--surface-2);
  font-family: var(--font-stat); font-weight: 500; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-dim); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.016); }
tbody tr:hover { background: rgba(111,199,232,.045); }
tbody td strong { color: var(--ink); font-weight: 600; }
td .pet-name { font-family: var(--font-stat); letter-spacing: .03em; color: var(--bone); font-size: 15px; }

/* =========================================================================
   Badges
   ========================================================================= */

.badge {
  display: inline-block; font-family: var(--font-stat); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor;
  white-space: nowrap; line-height: 1.6;
}
.badge.best   { color: var(--anim); }
.badge.ok     { color: var(--gold); }
.badge.meh    { color: var(--ink-faint); }
.badge.bug    { color: var(--danger); }
.badge.frost  { color: var(--rime); }
.badge.plague { color: var(--death); }

/* =========================================================================
   Listes d'etapes / rotations
   ========================================================================= */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li {
  counter-increment: step;
  position: relative; padding: 0 0 18px 52px; margin: 0;
  border-left: 1px solid var(--line); margin-left: 15px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: -15px; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--gold); font-family: var(--font-stat); font-size: 14px;
  display: grid; place-items: center;
}
.steps li strong { color: var(--ink); }
.steps.frost li::before { color: var(--rime); }
.steps.plague li::before { color: var(--death); }

/* liste a puces custom */
.tips { list-style: none; padding: 0; margin: 22px 0; }
.tips li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--ink-dim); }
.tips li::before {
  content: "\25C6"; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-size: 12px; line-height: 1.9;
}
.tips li strong { color: var(--ink); }
.tips.good li::before { content: "\2713"; color: var(--ok); }
.tips.bad li::before  { content: "\2717"; color: var(--danger); }

/* =========================================================================
   Code / macros
   ========================================================================= */

pre {
  background: #060809; border: 1px solid var(--line); border-left: 3px solid var(--gold-deep);
  border-radius: var(--radius); padding: 16px 18px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.65;
  color: #cfd6c9; margin: 18px 0;
}
code { font-family: var(--font-mono); font-size: .92em; color: var(--bone); }
p code, li code, td code {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px; color: var(--gold);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

.macro-title {
  font-family: var(--font-stat); font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin: 24px 0 -8px;
}

/* =========================================================================
   Citations Discord
   ========================================================================= */

.quote {
  border-left: 2px solid var(--line); padding: 4px 0 4px 18px;
  margin: 18px 0; color: var(--ink-dim); font-style: italic; font-size: 16px;
}
.quote cite {
  display: block; margin-top: 7px; font-style: normal;
  font-family: var(--font-stat); font-size: 12px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-faint);
}
.quote.dev { border-left-color: var(--gold); }
.quote.dev cite { color: var(--gold-deep); }

/* =========================================================================
   Grilles generiques
   ========================================================================= */

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 26px 0; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; }

/* Les elements de grille ont min-width:auto par defaut, donc ils refusent de
   descendre sous leur taille min-content : un tableau large les fait deborder. */
.cols-2 > *, .cols-3 > *, .spec-grid > * { min-width: 0; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  min-width: 0;
  overflow-wrap: break-word;
}
.panel h3 { font-size: 19px; margin-bottom: 12px; }
.panel h4 {
  font-family: var(--font-stat); font-size: 12.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 10px;
}
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

/* =========================================================================
   Barres de stats (logs)
   ========================================================================= */

.bars { margin: 26px 0; }
.bar-row { display: grid; grid-template-columns: 132px 1fr 96px; gap: 14px; align-items: center; margin-bottom: 11px; }
.bar-label { font-family: var(--font-stat); font-size: 13.5px; letter-spacing: .05em; color: var(--ink); }
.bar-track { display: block; height: 21px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--c, var(--gold-deep)), var(--c2, var(--gold))); }
.bar-val { font-family: var(--font-stat); font-size: 14px; color: var(--ink-dim); text-align: right; }
.bar-note { font-family: var(--font-stat); font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }

/* =========================================================================
   Sommaire
   ========================================================================= */

.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin: 34px 0 0;
}
.toc h2 { font-size: 17px; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); font-family: var(--font-stat); font-weight: 500; margin-bottom: 16px; }
.toc ol { columns: 2; column-gap: 40px; margin: 0; padding-left: 20px; color: var(--ink-faint); }
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a { color: var(--ink-dim); }
.toc a:hover { color: var(--gold); }

/* =========================================================================
   Pied de page
   ========================================================================= */

footer {
  margin-top: 80px; border-top: 1px solid var(--line);
  background: var(--bg-2); padding: 40px 0 46px;
  color: var(--ink-faint); font-size: 15px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer a { color: var(--ink-dim); }
footer a:hover { color: var(--gold); }
.footer-note { max-width: 62ch; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .hero { padding: 54px 0 44px; }
  .hero-in { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero-crest { width: 92px; height: 92px; flex-basis: 92px; }
  .spec-grid, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .bar-row { grid-template-columns: 106px 1fr 78px; gap: 10px; }

  .nav-toggle-label {
    display: block; margin-left: auto; cursor: pointer;
    font-size: 22px; color: var(--ink-dim); line-height: 1; padding: 6px 4px;
  }
  .navlinks {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .navlinks a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .navlinks { display: flex; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .topbar-in { padding: 0 18px; }
  table { font-size: 14.5px; }
  .steps li { padding-left: 44px; }
}

@media print {
  .topbar, footer { display: none; }
  body { background: #fff; color: #000; }
}
