/* GSForever : guides tirés du classeur de Ss7even (hub, progression d'armes, quêtes de donjons, articles).
   S'appuie sur les variables et briques de site.css et pages.css (page-head, chip, tag, lightbox). */

/* ---------- Couleurs des classes et factions ---------- */
.cls-guerrier { --cls: #c69b6d; } .cls-paladin { --cls: #f48cba; } .cls-chasseur { --cls: #aad372; }
.cls-voleur { --cls: #fff468; } .cls-pretre { --cls: #ffffff; } .cls-chaman { --cls: #2b8ff0; }
.cls-mage { --cls: #3fc7eb; } .cls-demoniste { --cls: #8788ee; } .cls-druide { --cls: #ff7c0a; }
.is-h { --fac: #ff5d6c; } .is-a { --fac: #4c9dff; }

.gd-icon { flex: none; }
.gd-head .kicker .gd-icon { width: 16px; height: 16px; }

/* ---------- Hub ---------- */
.gd-hub { padding-top: 48px; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.gd-grid > .gd-card:first-child:not(.is-small) { grid-column: 1 / -1; }
.gd-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 3px solid var(--ink-900);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-800) 70%);
  box-shadow: var(--hard);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.gd-card:hover, .gd-card:focus-visible { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--cyan); border-color: var(--ink-900); }
.gd-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink-900);
  border-radius: 14px;
  background: var(--cyan);
  color: var(--ink-900);
  box-shadow: 3px 3px 0 var(--ink-900);
}
.gd-card-icon .gd-icon { width: 30px; height: 30px; }
.gd-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gd-card-tag { color: var(--cyan-bright); font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.gd-card-title { color: var(--white); font-size: 1.35rem; font-style: italic; font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.gd-card-summary { color: var(--text-soft); }
.gd-card-meta { color: var(--text-muted); font-size: .85rem; }
.gd-card-go { margin-left: auto; align-self: center; color: var(--cyan); font-size: 1.6rem; font-weight: 800; transition: transform .18s var(--ease); }
.gd-card:hover .gd-card-go { transform: translateX(4px); }
.gd-grid > .gd-card:first-child:not(.is-small) .gd-card-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.gd-grid > .gd-card:first-child:not(.is-small) .gd-card-icon { width: 72px; height: 72px; }
.gd-card.is-small { padding: 16px 18px; align-items: center; }
.gd-card.is-small .gd-card-icon { width: 42px; height: 42px; border-radius: 10px; }
.gd-card.is-small .gd-card-icon .gd-icon { width: 22px; height: 22px; }
.gd-card.is-small .gd-card-title { font-size: 1.05rem; }
.gd-written { margin-top: 56px; }

/* ---------- Commun aux guides ---------- */
.gd { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
.gd-note {
  max-width: 900px;
  padding: 16px 20px;
  border-left: 5px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--cyan-soft);
  color: var(--text-soft);
}
.gd-note p { margin: 0; }
.gd-note p + p { margin-top: 8px; }
.gd-note strong { color: var(--white); }
.gd-pill, .gd-faction {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.gd-pill { color: var(--text-muted); }
.gd-pill[class*="cls-"] { color: var(--cls); }
.gd-faction { color: var(--fac); }
.gd-credit { margin: 0; text-align: center; }
.gd-more { padding-top: 24px; border-top: 2px solid var(--line-soft); }
.gd-more h2 { margin: 0 0 18px; }
.gd-grid-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 24px; }

/* Sélecteur : étapes, classes, faction, niveau */
.gd-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 3px solid var(--ink-900);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  box-shadow: var(--hard);
}
.gd-picker-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; }
.gd-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.gd-step legend { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0; color: var(--white); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.gd-step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: var(--ink-900); font-size: .8rem; font-style: normal; }
.gd-step-row { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.gd-step-level { flex: 1 1 260px; }
.gd-classes { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-class {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 14px 4px 4px;
  border: 2px solid var(--ink-600);
  border-radius: 999px;
  background: var(--ink-850);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s var(--ease);
}
.gd-class img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cls); }
.gd-class:hover { border-color: var(--cls); transform: translateY(-1px); }
.gd-class[aria-pressed="true"] { border-color: var(--cls); background: color-mix(in srgb, var(--cls) 22%, var(--ink-850)); color: var(--white); box-shadow: 0 0 0 2px var(--ink-900), 0 0 18px color-mix(in srgb, var(--cls) 45%, transparent); }
.gd-picker:has(.gd-class[aria-pressed="true"]) .gd-class:not([aria-pressed="true"]) { opacity: .55; }
.gd-picker:has(.gd-class[aria-pressed="true"]) .gd-class:not([aria-pressed="true"]):hover { opacity: 1; }
.gd-seg { display: inline-flex; border: 2px solid var(--ink-900); border-radius: 999px; overflow: hidden; background: var(--ink-850); }
.gd-seg button { min-height: 44px; padding: 6px 18px; border: 0; background: none; color: var(--text-soft); font: inherit; font-weight: 700; cursor: pointer; }
.gd-seg button + button { border-left: 2px solid var(--ink-900); }
.gd-seg button[aria-pressed="true"] { background: var(--fac, var(--cyan)); color: var(--ink-900); }
.gd-seg-small button { min-height: 36px; padding: 4px 14px; font-size: .9rem; }
.gd-level { display: flex; align-items: center; gap: 14px; }
.gd-level input { flex: 1; min-width: 140px; height: 28px; accent-color: var(--cyan); cursor: pointer; }
.gd-level output { min-width: 92px; padding: 4px 12px; border-radius: 999px; background: var(--ink-900); color: var(--cyan-bright); font-weight: 800; text-align: center; }
.gd-status { flex-basis: 100%; margin: 0; color: var(--text-muted); font-size: .92rem; }

/* ---------- Progression d'armes ---------- */
.gd-best {
  padding: 20px 22px;
  border: 3px solid var(--ink-900);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 20%, var(--ink-800)), var(--ink-800));
  box-shadow: var(--hard-cyan);
}
.gd-best h2 { margin: 0 0 4px; }
.gd-best > p { margin: 0 0 14px; }
.gd-best-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.gd-best-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(6, 16, 23, .55); }
.gd-best-type { grid-column: 1 / -1; color: var(--text-muted); font-size: .75rem; font-weight: 700; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; }
.gd-best-type:hover { color: var(--cyan-bright); }
.gd-best-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.gd-best-name a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-best-dps { align-self: center; color: var(--white); font-weight: 800; white-space: nowrap; }

.gd-types { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-types .chip { min-height: 38px; text-decoration: none; }
.gd-types .chip:hover { border-color: var(--cyan); color: var(--white); }
.gd-count { margin-left: 4px; color: var(--text-muted); font-size: .8em; }
.gd-type { scroll-margin-top: 96px; }
.gd-type-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.gd-type-head h2 { margin: 0; }
.gd-who { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gd-who img { display: block; border: 2px solid var(--cls); border-radius: 50%; }
.gd-weapons-list { display: flex; flex-direction: column; margin: 0; padding: 0; border: 2px solid var(--ink-900); border-radius: var(--r-md); overflow: hidden; list-style: none; }
.gd-w {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--ink-800);
  transition: opacity .2s, background .2s;
}
.gd-w:nth-child(even) { background: var(--ink-750); }
.gd-w + .gd-w { border-top: 1px solid var(--line-soft); }
.gd-w-level { color: var(--white); font-size: 1.35rem; font-style: italic; font-weight: 900; text-align: center; line-height: 1; }
.gd-w-level small { display: block; color: var(--text-muted); font-size: .65rem; font-style: normal; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.gd-w-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gd-w-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 700; }
.gd-w-name a { text-decoration: none; }
.gd-w-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gd-w-name a.q1 { color: var(--white); }
.gd-w-icon { width: 28px; height: 28px; flex: none; border: 1.5px solid var(--ink-900); border-radius: 6px; background: var(--ink-900); }
.gd-w-icon.is-empty { display: inline-block; }
.gd-w-source { color: var(--text-muted); font-size: .88rem; }
.gd-w-source a { color: var(--text-soft); }
.gd-w-dps { position: relative; display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; padding-bottom: 8px; color: var(--white); }
.gd-w-dps b { font-size: 1.2rem; font-weight: 800; }
.gd-w-dps small { color: var(--text-muted); font-size: .72rem; font-weight: 700; }
.gd-w-dps i { position: absolute; right: 0; bottom: 0; width: 100%; height: 4px; border-radius: 2px; background: var(--ink-900); }
.gd-w-dps i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--cyan-bright)); }
.gd-w-badge:empty { display: none; }
.gd-w-badge {
  position: absolute;
  top: -1px;
  right: 14px;
  padding: 1px 10px;
  border: 2px solid var(--ink-900);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--cyan);
  color: var(--ink-900);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gd-w.is-now { z-index: 1; background: color-mix(in srgb, var(--cyan) 18%, var(--ink-800)); box-shadow: inset 5px 0 0 var(--cyan); }
.gd-w.is-next { box-shadow: inset 5px 0 0 var(--warn); }
.gd-w.is-next .gd-w-badge { background: var(--warn); }
.gd-w.is-past { opacity: .42; }
.gd-w.is-past:hover { opacity: 1; }
.gd-empty { margin: 8px 0 0; }

/* ---------- Quêtes de donjons ---------- */
.gd-dg-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 28px; }
.gd-timeline { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; }
.gd-timeline ol { position: relative; margin: 0; padding: 0; list-style: none; }
.gd-timeline ol::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 17px; width: 3px; border-radius: 2px; background: var(--ink-600); }
.gd-timeline a { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: var(--r-sm); color: var(--text-soft); text-decoration: none; font-size: .92rem; }
.gd-timeline a:hover { background: var(--cyan-soft); color: var(--white); }
.gd-tl-lvl { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 2px solid var(--ink-900); border-radius: 50%; background: var(--ink-700); color: var(--white); font-size: .72rem; font-weight: 800; }
.gd-tl-name { flex: 1; min-width: 0; line-height: 1.2; }
.gd-tl-name small { display: block; color: var(--text-muted); font-size: .78rem; }
.gd-tl-done { color: var(--ok); font-size: .78rem; font-weight: 800; }
.gd-timeline [data-when="now"] .gd-tl-lvl { background: var(--cyan); color: var(--ink-900); }
.gd-timeline [data-when="now"] a { color: var(--white); font-weight: 700; }
.gd-timeline [data-when="past"] a { opacity: .5; }

.gd-dg-list { display: flex; flex-direction: column; gap: 22px; }
.gd-dg { scroll-margin-top: 96px; border: 3px solid var(--ink-900); border-radius: var(--r-lg); background: var(--ink-800); box-shadow: var(--hard); overflow: hidden; transition: opacity .2s; }
.gd-dg[data-when="now"] { box-shadow: var(--hard-cyan); }
.gd-dg[data-when="past"], .gd-dg[data-when="later"] { opacity: .6; }
.gd-dg[data-when="past"]:hover, .gd-dg[data-when="later"]:hover { opacity: 1; }
.gd-dg-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: linear-gradient(120deg, var(--ink-700), var(--ink-800)); border-bottom: 2px solid var(--ink-900); }
.gd-dg-head h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.gd-dg-lvl { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border: 2px solid var(--ink-900); border-radius: 14px; background: var(--cyan); color: var(--ink-900); font-size: 1.5rem; font-style: italic; font-weight: 900; line-height: .9; box-shadow: 3px 3px 0 var(--ink-900); }
.gd-dg-lvl small { display: block; font-size: .6rem; font-style: normal; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.gd-dg-wing { color: var(--cyan-bright); }
.gd-dg-short { margin-left: 6px; padding: 1px 8px; border-radius: 6px; background: var(--ink-900); color: var(--text-muted); font-size: .75rem; font-style: normal; text-decoration: none; vertical-align: middle; }
.gd-dg-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; color: var(--text-muted); font-size: .9rem; }
.gd-pin { display: inline-flex; align-items: center; gap: 4px; }
.gd-dg-count { color: var(--text-soft); font-weight: 600; }
.gd-dg-flag:empty { display: none; }
.gd-dg-flag { margin-left: auto; padding: 3px 12px; border-radius: 999px; background: var(--ink-900); color: var(--text-muted); font-size: .75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.gd-dg[data-when="now"] .gd-dg-flag { background: var(--cyan); color: var(--ink-900); }
.gd-quests { margin: 0; padding: 6px 0; list-style: none; }
.gd-q { display: flex; align-items: flex-start; gap: 12px; padding: 9px 18px; transition: opacity .2s; }
.gd-q + .gd-q { border-top: 1px solid var(--line-soft); }
.gd-q-check { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-top: 1px; cursor: pointer; }
.gd-q-check input { width: 22px; height: 22px; accent-color: var(--ok); cursor: pointer; }
.gd-q-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gd-q-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700; }
.gd-q-name a { color: var(--wow-gold); text-decoration: none; }
.gd-q-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gd-q-info { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--text-muted); font-size: .88rem; }
.gd-q-info b { color: var(--text-soft); font-weight: 600; }
.gd-q-pre a { color: var(--warn); }
.gd-q.is-done { opacity: .5; }
.gd-q.is-done .gd-q-name a { text-decoration: line-through; }

/* ---------- Articles ---------- */
.gd-article { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: 40px; }
.gd-article .gd-toc { order: 2; position: sticky; top: 96px; padding: 16px 18px; border: 2px solid var(--ink-900); border-radius: var(--r-md); background: var(--ink-800); }
.gd-article:not(:has(.gd-toc)) { grid-template-columns: minmax(0, 860px); }
.gd-toc strong { display: block; margin-bottom: 8px; color: var(--white); font-style: italic; text-transform: uppercase; }
.gd-toc ol { margin: 0; padding-left: 18px; color: var(--text-muted); }
.gd-toc li + li { margin-top: 6px; }
.gd-toc a { color: var(--text-soft); text-decoration: none; }
.gd-toc a:hover { color: var(--cyan-bright); }
.gd-prose { display: flex; flex-direction: column; gap: 28px; max-width: 860px; font-size: 1.05rem; line-height: 1.7; }
.gd-part { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.gd-part:empty { display: none; }
.gd-part h2 { margin: 6px 0 0; padding-left: 14px; border-left: 5px solid var(--cyan); }
.gd-part p { margin: 0; color: var(--text); }
.gd-part a { color: var(--cyan-bright); }
.gd-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gd-list li { position: relative; padding: 8px 14px 8px 40px; border-radius: var(--r-sm); background: var(--ink-800); }
.gd-list li::before { content: ""; position: absolute; top: 50%; left: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--cyan); transform: translateY(-50%) rotate(45deg); }
.gd-callout { padding: 14px 18px; border: 2px solid var(--ink-900); border-left: 6px solid var(--cyan); border-radius: var(--r-md); background: var(--cyan-soft); }
.gd-table-wrap { overflow-x: auto; border: 2px solid var(--ink-900); border-radius: var(--r-md); }
.gd-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.gd-table th { padding: 10px 14px; background: var(--ink-900); color: var(--cyan-bright); font-size: .78rem; letter-spacing: 1px; text-align: left; text-transform: uppercase; }
.gd-table td { padding: 10px 14px; border-top: 1px solid var(--line-soft); background: var(--ink-800); vertical-align: top; }
.gd-table tr:nth-child(even) td { background: var(--ink-750); }
.gd-table td .gd-faction + .gd-faction { margin-left: 4px; }
.gd-figure { margin: 0; }
.gd-figure a { display: inline-block; max-width: 100%; cursor: zoom-in; }
.gd-figure img { display: block; max-width: 100%; height: auto; border: 3px solid var(--ink-900); border-radius: var(--r-md); box-shadow: var(--hard); }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .gd-dg-layout, .gd-article { grid-template-columns: minmax(0, 1fr); }
  .gd-timeline { display: none; }
  .gd-article .gd-toc { order: 0; position: static; }
  .gd-type, .gd-dg { scroll-margin-top: 80px; }
}
@media (max-width: 620px) {
  .gd-w { grid-template-columns: 46px minmax(0, 1fr); padding: 12px 10px; }
  .gd-w-dps { grid-column: 2; justify-content: flex-start; padding-bottom: 6px; }
  .gd-w-dps i { width: 120px; left: 0; right: auto; }
  .gd-dg-head { flex-wrap: wrap; }
  .gd-q { padding: 9px 12px; }
  .gd-table thead { display: none; }
  .gd-table tr { display: block; padding: 8px 0; border-top: 1px solid var(--line-soft); background: var(--ink-800); }
  .gd-table td { display: block; padding: 3px 12px; border: 0; background: none !important; }
  .gd-table td[data-label]:not([data-label=""])::before { content: attr(data-label) " : "; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-card, .gd-card-go, .gd-class, .gd-w, .gd-dg, .gd-q { transition: none; }
}

/* ---------- Guides mis en page à la main (sacs, baguette, feu de camp) ---------- */
.gd-story { max-width: 1080px; gap: 36px; }
.gd-brief { padding: 24px 26px; border: 3px solid var(--ink-900); border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 16%, var(--ink-800)), var(--ink-800)); box-shadow: var(--hard-cyan); }
.gd-brief h2 { margin: 0 0 8px; }
.gd-brief p { max-width: 70ch; margin: 0; color: var(--text-soft); font-size: 1.05rem; line-height: 1.65; }
.gd-brief strong { color: var(--white); }
.gd-skill { display: inline-flex; align-items: center; padding: 2px 10px; border: 2px solid var(--ink-900); border-radius: 999px; background: var(--wow-gold); color: var(--ink-900); font-size: .72rem; font-style: normal; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
h2 .gd-skill { margin-left: 8px; }

.gd-item { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 12px 3px 3px; border: 1.5px solid var(--ink-600); border-radius: 10px; background: var(--ink-900); font-size: .95rem; font-weight: 700; line-height: 1.25; text-decoration: none; vertical-align: middle; transition: border-color .15s; }
.gd-item:hover { border-color: currentColor; }
.gd-item img { flex: none; width: 30px; height: 30px; border: 1px solid var(--ink-600); border-radius: 7px; }
.gd-item.q1 { color: var(--white); }
.gd-item-n { color: var(--wow-gold); }
.gd-recipe { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-craft { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; border: 2px dashed var(--ink-600); border-radius: var(--r-md); }
.gd-craft-arrow { color: var(--cyan); font-size: 1.6rem; font-weight: 900; }
.gd-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: path; }
.gd-path li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: var(--r-md); background: rgba(6, 16, 23, .55); }
.gd-path li + li::before { content: "→"; position: absolute; top: 50%; left: -14px; color: var(--cyan); font-weight: 900; transform: translate(-25%, -50%); }
.gd-path small { color: var(--text-muted); }

.gd-steps { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.gd-stepcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; padding: 24px 26px 24px 84px; border: 3px solid var(--ink-900); border-radius: var(--r-lg); background: var(--ink-800); box-shadow: var(--hard); counter-increment: step; }
.gd-stepcard::before { content: counter(step); position: absolute; top: 22px; left: 22px; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink-900); border-radius: 12px; background: var(--cyan); color: var(--ink-900); font-size: 1.4rem; font-style: italic; font-weight: 900; box-shadow: 3px 3px 0 var(--ink-900); }
.gd-stepcard + .gd-stepcard::after { content: ""; position: absolute; top: -25px; left: 43px; width: 3px; height: 22px; background: var(--ink-600); }
.gd-stepcard-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gd-stepcard-text h2 { margin: 6px 0 0; }
.gd-stepcard-text p { margin: 0; color: var(--text); line-height: 1.65; }
.gd-stepcard-text .btn { align-self: flex-start; }
.gd-stepcard-shot { width: 300px; }
.gd-stepcard-shot .gd-figure img { width: 100%; }
.gd-tip { padding: 10px 14px; border-left: 4px solid var(--wow-gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(255, 209, 0, .07); color: var(--text-soft) !important; font-size: .95rem; }
.gd-checklist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gd-checklist li { display: flex; align-items: center; gap: 10px; }
.gd-checklist b { min-width: 30px; color: var(--wow-gold); font-size: 1.1rem; text-align: right; }

.gd-ladder { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gd-ladder li { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(80px, 180px) 84px; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--ink-850); }
.gd-ladder-wide li { grid-template-columns: 170px minmax(0, 1fr) minmax(80px, 200px) 84px; }
.gd-ladder .gd-skill { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.gd-ladder-what { min-width: 0; font-weight: 700; color: var(--white); }
.gd-ladder-what a { color: inherit; text-decoration: none; }
.gd-ladder-what a:hover { color: var(--cyan-bright); text-decoration: underline; }
.gd-ladder-what small { margin-left: 6px; color: var(--text-muted); font-weight: 500; }
.gd-ladder-bar { position: relative; height: 8px; border-radius: 4px; background: var(--ink-900); }
.gd-ladder-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--cyan-bright)); }
.gd-ladder b { color: var(--white); text-align: right; white-space: nowrap; }

.gd-slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gd-slot { display: grid; place-items: center; width: 74px; height: 74px; border: 3px solid var(--ink-900); border-radius: 12px; background: radial-gradient(circle at 30% 25%, var(--ink-600), var(--ink-850)); color: var(--text-muted); font-size: 1.3rem; font-weight: 900; text-align: center; box-shadow: inset 0 0 0 2px rgba(255, 209, 0, .25); }
.gd-slot.is-base { width: auto; padding: 0 16px; font-size: .8rem; text-transform: uppercase; }
.gd-slot.is-reagent { width: auto; padding: 0 16px; border-style: dashed; border-color: var(--wow-gold); color: var(--wow-gold); font-size: .8rem; text-transform: uppercase; }

.gd-block { display: flex; flex-direction: column; gap: 14px; }
.gd-block-head h2 { margin: 0; }
.gd-block-head p { margin: 4px 0 0; }
.gd-block .gd-seg { align-self: flex-start; }
.gd-bags { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gd-bag { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 2px solid var(--ink-900); border-radius: var(--r-md); background: var(--ink-800); }
.gd-bag-size { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 12px; background: var(--ink-900); color: var(--wow-gold); line-height: 1; }
.gd-bag-size b { font-size: 1.4rem; font-style: italic; font-weight: 900; }
.gd-bag-size small { font-size: .62rem; text-transform: uppercase; color: var(--text-muted); }
.gd-bag-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gd-bag-quest { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700; }
.gd-bag-quest a { color: var(--wow-gold); text-decoration: none; }
.gd-bag-quest a:hover { text-decoration: underline; }
.gd-bag-info { color: var(--text-muted); font-size: .88rem; }
.gd-bag-info a { color: var(--text-soft); }

.gd-buffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gd-buff { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; padding: 14px; border: 2px solid var(--ink-900); border-radius: var(--r-md); background: var(--ink-800); box-shadow: 3px 3px 0 var(--ink-900); }
.gd-buff img { grid-row: 1 / 3; border: 2px solid var(--ink-900); border-radius: 8px; }
.gd-buff-job { color: var(--white); font-style: italic; font-weight: 800; text-transform: uppercase; }
.gd-buff-item { color: var(--text-muted); font-size: .88rem; }
.gd-buff-effect { grid-column: 1 / -1; margin-top: 10px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--cyan-soft); color: var(--cyan-bright); font-weight: 800; text-align: center; }

@media (max-width: 760px) {
  .gd-stepcard { grid-template-columns: minmax(0, 1fr); padding: 70px 16px 18px; }
  .gd-stepcard::before { top: 16px; left: 16px; }
  .gd-stepcard + .gd-stepcard::after { left: 37px; }
  .gd-stepcard-shot { width: 100%; max-width: 360px; }
  .gd-ladder li, .gd-ladder-wide li { grid-template-columns: minmax(0, 1fr) auto; }
  .gd-ladder-bar { grid-column: 1 / -1; grid-row: 3; }
  .gd-path li + li::before { display: none; }
}

/* Une couleur par taille de sac (6 places : couleur de base). */
.size-8 { --size: #ffd100; } .size-10 { --size: #3ee08f; } .size-12 { --size: #4c9dff; } .size-14 { --size: #b26cff; }
.size-16 { --size: #ff8a1f; } .size-18 { --size: #ff5d6c; } .size-20 { --size: #ff6ad5; }
.gd-bag[class*="size-"] { border-left: 6px solid var(--size, var(--ink-900)); }
.gd-bag .gd-bag-size { color: var(--size, var(--wow-gold)); box-shadow: inset 0 0 0 2px var(--size, transparent); }
.gd-ladder li[class*="size-"] { border-left: 5px solid var(--size, var(--ink-600)); }
.gd-ladder li[class*="size-"] .gd-ladder-bar i { background: var(--size, linear-gradient(90deg, var(--teal), var(--cyan-bright))); }
.gd-ladder li[class*="size-"] b { color: var(--size, var(--white)); }

/* Titres des guides plus visibles */
.gd-brief h2, .gd-block-head h2, .gd-type-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.gd-stepcard-text h2, .gd-dg-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.gd-block-head h2 { padding-left: 14px; border-left: 6px solid var(--cyan); }
.gd-block-head p { font-size: 1.02rem; }

/* ---------- Guide de classe ---------- */
.gd-classguide { max-width: 1180px; gap: 40px; }
.gd-icon-class { border-radius: 50%; border: 2px solid var(--ink-900); }
.gd-head .kicker .gd-icon-class { width: 20px; height: 20px; }
.gd-card-icon .gd-icon-class { width: 100%; height: 100%; border-radius: 12px; border: 0; }
.gd-class-nav { position: sticky; top: 72px; z-index: 4; padding: 10px 0; background: linear-gradient(var(--ink-850) 70%, transparent); }

.gd-proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.gd-pc { padding: 18px 20px; border: 2px solid var(--ink-900); border-radius: var(--r-lg); background: var(--ink-800); box-shadow: var(--hard); }
.gd-pc h3 { margin: 0 0 12px; font-style: italic; text-transform: uppercase; }
.gd-pc.is-pro h3 { color: var(--ok); }
.gd-pc.is-con h3 { color: var(--bad); }
.gd-pc ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gd-pc li { position: relative; padding-left: 28px; line-height: 1.5; }
.gd-pc li::before { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; color: var(--ink-900); }
.gd-pc.is-pro li::before { content: "+"; background: var(--ok); }
.gd-pc.is-con li::before { content: "−"; background: var(--bad); }

.gd-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: pr; }
.gd-principles li { position: relative; padding: 50px 18px 18px; border: 2px solid var(--ink-900); border-radius: var(--r-md); background: var(--ink-800); line-height: 1.55; counter-increment: pr; }
.gd-principles li::before { content: counter(pr); position: absolute; top: 14px; left: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--cyan); color: var(--ink-900); font-weight: 900; font-style: italic; }

.gd-phase-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-phase-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 2px solid var(--ink-600); border-radius: 999px; background: var(--ink-850); color: var(--text); text-decoration: none; font-weight: 700; }
.gd-phase-nav a:hover { border-color: var(--cyan); color: var(--white); }
.gd-phase-nav b { padding: 3px 10px; border-radius: 999px; background: var(--cyan); color: var(--ink-900); font-size: .8rem; }

.gd-phase { scroll-margin-top: 130px; display: flex; flex-direction: column; gap: 18px; padding: 22px; border: 3px solid var(--ink-900); border-radius: var(--r-lg); background: var(--ink-800); box-shadow: var(--hard); }
.gd-phase-head { display: flex; align-items: flex-start; gap: 16px; }
.gd-phase-head h3 { margin: 4px 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.gd-phase-head h3 small { color: var(--text-muted); font-size: .9rem; font-style: normal; font-weight: 600; text-transform: none; }
.gd-phase-head p { margin: 0 0 6px; color: var(--text-soft); line-height: 1.6; }
.gd-tree { border: 2px solid var(--ink-900); border-radius: var(--r-md); background: var(--ink-850); padding: 14px; }
.gd-tree iframe { display: block; width: 100%; height: 760px; border: 0; background: transparent; }
.gd-phase-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }
.gd-phase-col, .gd-phase-after { padding: 16px 18px; border-radius: var(--r-md); background: var(--ink-850); }
.gd-mini { margin: 0 0 12px; color: var(--cyan-bright); font-size: .8rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.gd-talents { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gd-talents li { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; }
.gd-talents b { padding: 3px 8px; border-radius: 6px; background: var(--ink-700); color: var(--wow-gold); font-size: .82rem; text-align: center; white-space: nowrap; }

.gd-rotation { display: flex; flex-direction: column; gap: 10px; }
.gd-rotation p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.gd-rotation .gd-rot-head { margin-top: 6px; color: var(--wow-gold); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .5px; }
.gd-rotation .gd-rot-head:first-child { margin-top: 0; }
.gd-chain { display: flex; flex-direction: column; gap: 6px; }
.gd-chain-label { color: var(--text-muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.gd-chain-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gd-chain-step { padding: 5px 11px; border: 1.5px solid var(--ink-600); border-radius: 8px; background: var(--ink-800); color: var(--white); font-weight: 700; font-size: .92rem; }
.gd-chain-step:first-child { border-color: var(--cyan); }
.gd-chain-arrow { color: var(--wow-gold); font-size: 1.2rem; font-weight: 900; }
.gd-prio { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; }
.gd-prio b { display: grid; place-items: center; height: 28px; border-radius: 8px; background: var(--wow-gold); color: var(--ink-900); font-size: .85rem; }
.gd-prio span { padding-top: 3px; line-height: 1.5; }

.gd-fork { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border: 3px dashed var(--wow-gold); border-radius: var(--r-lg); background: rgba(255, 209, 0, .06); }
.gd-fork-title { color: var(--white); font-size: 1.15rem; font-style: italic; }
.gd-fork-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.gd-fork-option { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 2px solid var(--ink-900); border-radius: var(--r-md); background: var(--ink-800); color: var(--text); text-decoration: none; box-shadow: 3px 3px 0 var(--ink-900); transition: transform .15s var(--ease); }
.gd-fork-option:hover { transform: translate(-2px, -2px); border-color: var(--wow-gold); }
.gd-fork-option b { color: var(--wow-gold); font-style: italic; text-transform: uppercase; }

.gd-macro { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.gd-macro p { margin: 0; line-height: 1.6; }
.gd-code { position: relative; }
.gd-code pre { margin: 0; padding: 16px 18px; padding-right: 110px; overflow-x: auto; border: 2px solid var(--ink-900); border-radius: var(--r-md); background: #03090d; color: var(--cyan-bright); font-size: .95rem; line-height: 1.6; }
.gd-code .btn { position: absolute; top: 10px; right: 10px; }

.gd-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gd-stat { padding: 8px 16px; border: 2px solid var(--ink-900); border-radius: 999px; background: var(--cyan); color: var(--ink-900); font-weight: 900; font-style: italic; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink-900); }
.gd-stat ~ .gd-stat { background: var(--ink-700); color: var(--white); }
.gd-gear-text { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.gd-gear-text p { margin: 0; color: var(--text-soft); line-height: 1.6; }
.gd-gear-title { margin: 8px 0 0; }

@media (max-width: 760px) {
  .gd-phase { padding: 14px; }
  .gd-phase-body { grid-template-columns: minmax(0, 1fr); }
  .gd-class-nav { position: static; }
}

/* ---------- Guides de leveling : une carte par classe ---------- */
.gd-classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.gd-class-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px 20px; border: 3px solid var(--ink-900); border-radius: var(--r-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--cls) 16%, var(--ink-800)), var(--ink-800) 70%); box-shadow: var(--hard); color: var(--text); text-align: center; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.gd-class-card img { width: 64px; height: 64px; border: 3px solid var(--cls); border-radius: 50%; box-shadow: 0 0 22px color-mix(in srgb, var(--cls) 40%, transparent); }
.gd-class-card strong { color: var(--white); font-size: 1.25rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.gd-class-card-meta { color: var(--text-muted); font-size: .88rem; }
.gd-class-card-go { margin-top: 4px; color: var(--cls); font-weight: 800; }
a.gd-class-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--cls); }
.gd-class-card.is-soon { opacity: .45; filter: grayscale(.7); }
.gd-class-card.is-soon .gd-class-card-meta { padding: 2px 10px; border-radius: 999px; background: var(--ink-900); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .72rem; }
/* Rotation seule (pas de liste de talents, ex. respé) : toute la largeur. */
.gd-phase-col:only-child { grid-column: 1 / -1; }
/* Guide de classe : sous-points de rotation, plusieurs macros et priorités de stats, liens de build en plus. */
.gd-rotation .gd-rot-bullet { position: relative; margin-left: 48px; padding-left: 16px; }
.gd-rotation .gd-rot-bullet::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--wow-gold); transform: rotate(45deg); }
.gd-macros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.gd-macro-block { display: flex; flex-direction: column; gap: 6px; }
.gd-macro-block .gd-mini { margin: 0; }
.gd-stats-row { display: flex; flex-direction: column; gap: 8px; }
.gd-stats-row .gd-mini { margin: 0; }
.gd-stats-row p { margin: 0; }
.gd-phase-builds { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-gear-title small { color: var(--text-muted); font-size: .85rem; font-style: normal; font-weight: 600; text-transform: none; }
.gd-code pre { white-space: pre-wrap; word-break: break-word; }

/* Palier en plusieurs versions (Solo, Duo ou groupe, spé) : petite étiquette dans l'onglet et le titre. */
.gd-phase-nav span small { display: block; font-size: .72rem; font-weight: 600; color: var(--text-muted); line-height: 1.1; }
.gd-variant { display: inline-block; margin-left: 6px; padding: 2px 10px; border: 2px solid var(--cyan); border-radius: 999px; font-size: .78rem; font-style: italic; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--cyan); vertical-align: middle; }
.gd-prio.is-sub { margin-left: 34px; }
.gd-prio.is-sub b { background: transparent; border: 2px solid currentColor; color: var(--cyan); }

/* Point très long des bases : toute la largeur, texte sur deux colonnes. */
.gd-principles li.is-wide { grid-column: 1 / -1; columns: 2 360px; column-gap: 32px; }
/* Palier à rotation longue et peu de talents : talents en haut (en grille), rotation dessous sur deux colonnes. */
.gd-phase-body.is-stacked { grid-template-columns: minmax(0, 1fr); }
.gd-phase-body.is-stacked .gd-talents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px 24px; }
.gd-phase-body.is-stacked .gd-rotation { display: block; columns: 2 380px; column-gap: 36px; }
.gd-phase-body.is-stacked .gd-rotation > * { margin: 0 0 10px; break-inside: avoid; }
.gd-phase-body.is-stacked .gd-rotation > .gd-rot-head { break-after: avoid; }
