/*
Theme Name: Welya Tutos
Theme URI: https://welyatutos.fr/
Author: UnclePickle
Description: Thème premium pour Les Tutos de Welya. Design sombre, dédié aux guides Path of Exile.
Version: 1.2.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: welya-tutos
Domain Path: /languages
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  /* Surfaces — charbon teinte chaud, jamais #000 pur */
  --bg:        #0c0b0a;
  --bg-2:      #131110;
  --surface:   #1a1714;
  --surface-2: #221d18;
  --hairline:  rgba(236, 230, 218, 0.10);
  --hairline-strong: rgba(236, 230, 218, 0.20);

  /* Encre */
  --ink:       #ece6da;
  --ink-dim:   #a59c8c;
  --ink-faint: #6c655a;

  /* Accents par hemisphere */
  --poe1:      #c8843f;   /* cuivre — Path of Exile 1 */
  --poe1-soft: #e0a868;
  --poe1-glow: rgba(200, 132, 63, 0.32);

  --poe2:      #5d9aa8;   /* acier froid — Path of Exile 2 */
  --poe2-soft: #8fc0cc;
  --poe2-glow: rgba(93, 154, 168, 0.32);

  /* Palette PoE etendue */
  --amber:       #d4a04a;
  --amber-soft:  #f0c878;
  --corruption:  #6b9e4f;  /* gem corrupted vert */
  --corruption-soft: #94c46f;
  --spark:       #ff6b1a;  /* orange vif — live, critique */
  --spark-soft:  #ff8e4a;
  --spark-glow:  rgba(255, 107, 26, 0.45);

  /* Accent neutre du reste de page (origin story, footer) */
  --accent:    var(--poe1);

  --maxw:      1600px;
  --radius:    14px;
  --radius-sm: 8px;

  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);

  --z-header:  100;
  --z-overlay: 200;
  --z-grain:   500;

  --art-hero: url("assets/img/key-art-no-logo.jpg");
  --art-act1: url("assets/img/act1-concept.jpg");
  --art-act2: url("assets/img/act2-concept.jpg");
  --art-act3: url("assets/img/act3-concept.jpg");
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #0c0b0a;
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
:is(h1, h2, h3, h4, h5, h6, p, li, td, th) img { display: inline-block; vertical-align: middle; }

a { color: var(--poe1-soft); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--ink); }

h1, h2 {
  font-family: "MedievalSharp", "Cinzel", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.35em;
  text-wrap: balance;
}
h3, h4 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
ul li:last-child, ol li:last-child, p:last-child { margin-bottom: 0; }

:is(.is-layout-flow, .is-layout-constrained) > *:where(:not(h1,h2,h3,h4,h5,h6)) {
  margin-block-start: 0;
  margin-block-end: 1.1em;
}
:is(.is-layout-flow, .is-layout-constrained) > *:where(:not(h1,h2,h3,h4,h5,h6)):last-child {
  margin-block-end: 0;
}

::selection { background: var(--poe1); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--poe1-soft);
  outline-offset: 3px;
  border-radius: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -120%;
  z-index: var(--z-overlay);
  background: var(--poe1);
  color: var(--bg);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--bg); }



/* ============================================================
   3. Layout helpers
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-soft);
  background: rgba(212, 160, 74, 0.10);
  border: 1px solid rgba(212, 160, 74, 0.22);
  padding: 0.32rem 0.7rem 0.32rem 0.55rem;
  border-radius: 999px;
  margin: 0 0 1rem;
  white-space: nowrap;
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--amber);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 160, 74, 0.7);
  flex-shrink: 0;
}
.hero-half--poe1 .kicker {
  color: var(--poe1-soft);
  background: rgba(200, 132, 63, 0.12);
  border-color: rgba(200, 132, 63, 0.28);
}
.hero-half--poe1 .kicker::before {
  background: var(--poe1);
  box-shadow: 0 0 8px var(--poe1-glow);
}
.hero-half--poe2 .kicker {
  color: var(--poe2-soft);
  background: rgba(93, 154, 168, 0.12);
  border-color: rgba(93, 154, 168, 0.30);
}
.hero-half--poe2 .kicker::before {
  background: var(--poe2);
  box-shadow: 0 0 8px var(--poe2-glow);
}
.stream__info .kicker {
  color: var(--spark-soft);
  background: rgba(255, 107, 26, 0.12);
  border-color: rgba(255, 107, 26, 0.30);
}
.stream__info .kicker::before {
  background: var(--spark);
  box-shadow: 0 0 10px var(--spark-glow);
  animation: kicker-spark 1.8s ease-in-out infinite;
}
@keyframes kicker-spark {
  0%, 100% { opacity: 1; transform: rotate(45deg) scale(1); }
  50% { opacity: 0.55; transform: rotate(45deg) scale(0.85); }
}

/* ============================================================
   4.5 Hub editorial
   ============================================================ */
.guide-hub {
  position: relative;
  min-height: min(78vh, 820px);
  padding-block: clamp(6.8rem, 10vw, 8.8rem) clamp(3.1rem, 5vw, 4.6rem);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 11, 10, 0.96) 0%, rgba(12, 11, 10, 0.78) 38%, rgba(12, 11, 10, 0.5) 67%, rgba(12, 11, 10, 0.92) 100%),
    linear-gradient(180deg, rgba(12, 11, 10, 0.18) 0%, rgba(12, 11, 10, 0.92) 100%),
    var(--art-hero),
    radial-gradient(46% 72% at 75% 28%, rgba(255, 107, 26, 0.2), transparent 70%),
    var(--bg);
  background-size: cover, cover, cover, auto, auto;
  background-position: center, center, center 28%, center, center;
}
.guide-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(45% 52% at 64% 22%, rgba(255, 142, 74, 0.2), transparent 65%),
    radial-gradient(70% 60% at 18% 18%, rgba(93, 154, 168, 0.14), transparent 66%),
    linear-gradient(90deg, rgba(212, 160, 74, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(212, 160, 74, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 92px 92px, 92px 92px;
  mask-image: radial-gradient(62% 70% at 48% 18%, #000 0%, transparent 74%);
}
.guide-hub::after {
  content: "WELYA";
  position: absolute;
  right: clamp(-1rem, 4vw, 4rem);
  bottom: -0.18em;
  pointer-events: none;
  color: rgba(236, 230, 218, 0.035);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.08em;
}
.guide-hub__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.guide-hub__intro h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 7.4vw, 6.6rem);
  letter-spacing: 0;
  color: #fff7e7;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.72);
}
.guide-hub__intro p:not(.kicker) {
  max-width: 58ch;
  color: var(--ink-dim);
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
}
.guide-hub__side {
  display: grid;
  gap: 1rem;
  align-self: end;
}
.welya-compass {
  position: relative;
  min-height: clamp(300px, 38vw, 470px);
  overflow: hidden;
  border: 1px solid rgba(212, 160, 74, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.1), rgba(12, 11, 10, 0.84)),
    radial-gradient(100% 80% at 80% 0%, rgba(93, 154, 168, 0.24), transparent 62%),
    var(--surface);
  box-shadow:
    0 30px 90px -32px rgba(0, 0, 0, 0.88),
    inset 0 0 0 1px rgba(236, 230, 218, 0.04);
  isolation: isolate;
}
.welya-compass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(212, 160, 74, 0.16) 0 1px, transparent 1px 18px),
    radial-gradient(80% 54% at 50% 0%, transparent 20%, rgba(12, 11, 10, 0.58) 100%);
  mix-blend-mode: screen;
  opacity: 0.62;
}
.welya-compass__portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.welya-compass__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  filter: saturate(0.9) contrast(1.04);
}
.welya-compass__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 11, 10, 0.18), rgba(12, 11, 10, 0.08) 45%, rgba(12, 11, 10, 0.72)),
    linear-gradient(0deg, rgba(12, 11, 10, 0.92), transparent 54%);
}
.welya-compass__note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(236, 230, 218, 0.18);
  border-radius: 8px;
  background: rgba(15, 13, 11, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.welya-compass__note span,
.welya-compass__runes span {
  color: var(--amber-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.welya-compass__note strong {
  max-width: 29ch;
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0;
}
.welya-compass__runes {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.66rem;
  border: 1px solid rgba(143, 192, 204, 0.3);
  border-radius: 999px;
  background: rgba(10, 18, 20, 0.68);
  box-shadow: 0 0 28px rgba(93, 154, 168, 0.18);
}
.welya-compass__runes i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--poe2-soft);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(143, 192, 204, 0.72);
}
.guide-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  width: min(100%, 680px);
  margin-top: 2rem;
  padding: 0.45rem;
  border: 1px solid rgba(212, 160, 74, 0.24);
  border-radius: 8px;
  background: rgba(26, 23, 20, 0.82);
  box-shadow: 0 20px 70px -34px rgba(212, 160, 74, 0.52);
}
.guide-search input,
.guide-search button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font: inherit;
}
.guide-search input {
  min-width: 0;
  padding: 0 1rem;
  color: var(--ink);
  background: transparent;
}
.guide-search input::placeholder { color: var(--ink-faint); }
.guide-search button {
  padding-inline: 1.25rem;
  color: #1b1308;
  background: var(--amber-soft);
  font-weight: 700;
  cursor: pointer;
}
.catalog-entry-grid {
  display: grid;
  gap: 0.85rem;
}
.catalog-entry {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding: 1.05rem 1.15rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background:
    linear-gradient(135deg, rgba(34, 29, 24, 0.94), rgba(19, 17, 16, 0.88)),
    radial-gradient(80% 120% at 95% 0%, color-mix(in srgb, var(--entry-color, var(--amber)) 18%, transparent), transparent 60%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(236, 230, 218, 0.025);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.catalog-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--entry-color, var(--amber));
}
.catalog-entry span {
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.catalog-entry strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.25;
}
.catalog-entry:hover {
  transform: translateX(4px);
  color: var(--ink);
  border-color: var(--entry-color, var(--amber));
}
.catalog-entry--poe1 { --entry-color: var(--poe1); }
.catalog-entry--poe2 { --entry-color: var(--poe2); }
.catalog-entry--tutos { --entry-color: var(--corruption); }

.guide-showcase {
  position: relative;
  margin-top: -1px;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  background:
    linear-gradient(180deg, rgba(19, 17, 16, 0.54), rgba(15, 13, 12, 0.78) 48%, rgba(15, 13, 12, 0.98)),
    var(--art-act2),
    radial-gradient(70% 60% at 12% 0%, rgba(212, 160, 74, 0.1), transparent 60%),
    linear-gradient(180deg, #131110 0%, #0f0d0c 100%);
  background-size: cover, cover, auto, auto;
  background-position: center, center 18%, center, center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.guide-showcase::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg-2));
  pointer-events: none;
  z-index: 2;
}
.guide-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(180deg, rgba(15, 13, 12, 0.04), rgba(15, 13, 12, 0.72) 54%, rgba(15, 13, 12, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(236, 230, 218, 0.06) 20px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(236, 230, 218, 0.035) 24px);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}
.guide-showcase > .wrap {
  position: relative;
  z-index: 1;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-heading h2 {
  max-width: 16ch;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}
.section-heading__link {
  flex-shrink: 0;
  color: var(--amber-soft);
  font-weight: 700;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.guide-card {
  --card-bg: var(--art-act1);
  position: relative;
  grid-column: span 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(34, 29, 24, 0.92), rgba(17, 15, 13, 0.98)),
    var(--surface);
  box-shadow: 0 18px 48px -34px rgba(0, 0, 0, 0.95);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.guide-card:nth-child(1) { --card-bg: var(--art-hero); }
.guide-card:nth-child(2) { --card-bg: var(--art-act1); }
.guide-card:nth-child(3) { --card-bg: var(--art-act3); }
.guide-card:nth-child(4) { --card-bg: var(--art-act2); }
.guide-card:nth-child(5) { --card-bg: var(--art-act1); }
.guide-card:nth-child(6) { --card-bg: var(--art-act3); }
.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(212, 160, 74, 0.24), transparent 24%),
    linear-gradient(180deg, transparent, rgba(212, 160, 74, 0.08));
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}
.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  box-shadow: 0 26px 70px -34px rgba(212, 160, 74, 0.28);
}
.guide-card:hover::before {
  opacity: 1;
}
.guide-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.06), rgba(12, 11, 10, 0.34)),
    var(--card-bg),
    radial-gradient(60% 80% at 50% 20%, rgba(212, 160, 74, 0.16), transparent 70%),
    var(--surface-2);
  background-size: cover, cover, auto, auto;
  background-position: center, center, center, center;
}
.guide-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 46%, rgba(12, 11, 10, 0.7)),
    linear-gradient(120deg, rgba(236, 230, 218, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.55;
}
.guide-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.3s var(--ease);
}
.guide-card:hover .guide-card__media img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}
.guide-card__sigil {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(212, 160, 74, 0.34);
  border-radius: 4px;
  background: rgba(12, 11, 10, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  color: var(--amber-soft);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.guide-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}
.guide-card__tags,
.guide-rail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}
.guide-card__tag a,
.guide-rail__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(212, 160, 74, 0.28);
  border-radius: 4px;
  color: var(--amber-soft);
  background: rgba(212, 160, 74, 0.08);
  font-size: 0.73rem;
  font-weight: 700;
}
.guide-card__tag--category a {
  border-color: rgba(93, 154, 168, 0.34);
  color: var(--poe2-soft);
  background: rgba(93, 154, 168, 0.09);
}
.guide-card h3 {
  font-size: 1.12rem;
  line-height: 1.25;
}
.guide-card:nth-child(1) h3,
.guide-card:nth-child(2) h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}
.guide-card h3 a { color: var(--ink); }
.guide-card p {
  flex: 1;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.guide-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-faint);
  font-size: 0.82rem;
}
.guide-card__meta a {
  color: var(--amber-soft);
  font-weight: 700;
}
.guide-empty {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 2rem;
  background: var(--surface);
}

@media (max-width: 920px) {
  .guide-hub__grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-card,
  .guide-card:nth-child(1),
  .guide-card:nth-child(2) {
    grid-column: auto;
  }
  .catalog-entry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .guide-hub {
    min-height: auto;
    padding-top: 6.2rem;
  }
  .guide-hub::after { font-size: 22vw; }
  .guide-hub__intro h1 { max-width: 9ch; }
  .welya-compass { min-height: 360px; }
  .guide-search { grid-template-columns: 1fr; }
  .catalog-entry-grid,
  .section-heading {
    display: grid;
  }
  .catalog-entry-grid {
    grid-template-columns: 1fr;
  }
  .section-heading__link { justify-self: start; }
}

/* Gem divider — separateur inspire item border PoE */
.gem-divider {
  --gem-color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 480px;
  padding-block: 0.5rem;
  color: var(--hairline-strong);
  pointer-events: none;
  user-select: none;
}
.gem-divider::before,
.gem-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--hairline-strong) 20%,
    var(--hairline-strong) 80%,
    transparent 100%);
}
.gem-divider__gem {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transform: rotate(45deg);
  background: var(--bg);
  border: 1.5px solid var(--gem-color);
  box-shadow:
    inset 0 0 6px rgba(0,0,0,0.6),
    0 0 12px color-mix(in srgb, var(--gem-color) 50%, transparent);
}
.gem-divider__gem::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gem-color);
  opacity: 0.5;
  box-shadow: 0 0 4px var(--gem-color);
}
.gem-divider--poe1 { --gem-color: var(--poe1); }
.gem-divider--poe2 { --gem-color: var(--poe2); }
.gem-divider--corruption { --gem-color: var(--corruption); }

/* Reveal au scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   4. Boutons
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.99); }

/* Spark sweep — etincelle qui traverse le bouton */
.btn--poe1::before,
.btn--poe2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.55) 50%,
    transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn--poe1:hover::before,
.btn--poe2:hover::before { transform: translateX(120%); }

.btn--poe1 {
  background: var(--poe1);
  color: #1a1208;
  box-shadow: 0 10px 30px -10px var(--poe1-glow);
  animation: btn-pulse-poe1 2.6s ease-in-out infinite;
}
.btn--poe1:hover {
  background: var(--poe1-soft);
  color: #1a1208;
  box-shadow:
    0 16px 40px -10px var(--poe1-glow),
    0 0 0 4px rgba(200, 132, 63, 0.18),
    0 0 30px rgba(200, 132, 63, 0.5);
  animation-play-state: paused;
}
@keyframes btn-pulse-poe1 {
  0%, 100% { box-shadow: 0 10px 30px -10px var(--poe1-glow); }
  50%      { box-shadow: 0 10px 30px -10px var(--poe1-glow),
                         0 0 0 3px rgba(200, 132, 63, 0.22); }
}

.btn--poe2 {
  background: var(--poe2);
  color: #07181c;
  box-shadow: 0 10px 30px -10px var(--poe2-glow);
  animation: btn-pulse-poe2 2.6s ease-in-out infinite;
}
.btn--poe2:hover {
  background: var(--poe2-soft);
  color: #07181c;
  box-shadow:
    0 16px 40px -10px var(--poe2-glow),
    0 0 0 4px rgba(93, 154, 168, 0.20),
    0 0 30px rgba(93, 154, 168, 0.5);
  animation-play-state: paused;
}
@keyframes btn-pulse-poe2 {
  0%, 100% { box-shadow: 0 10px 30px -10px var(--poe2-glow); }
  50%      { box-shadow: 0 10px 30px -10px var(--poe2-glow),
                         0 0 0 3px rgba(93, 154, 168, 0.22); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--poe1, .btn--poe2 { animation: none; }
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover { border-color: var(--ink-dim); color: var(--ink); background: rgba(236,230,218,0.04); }

/* ============================================================
   5. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(12, 11, 10, 0.94);
  border-bottom-color: var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.site-brand:hover { color: var(--ink); }
.site-brand__avatar .custom-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  max-width: none;
  pointer-events: none;
}
.site-brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--poe1), #6e3f1c);
  color: #1a1208;
  font-size: 1.1rem;
}
.site-brand__avatar {
  display: block;
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  box-shadow:
    0 0 0 2px rgba(12, 11, 10, 0.9),
    0 0 0 3px var(--poe1-glow),
    0 6px 16px -6px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  position: relative;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-brand__avatar img {
  position: absolute;
  /* Cadre serre sur le visage de Welya (cote droit, partie centrale). */
  width: 260%;
  height: auto;
  top: -117%;
  left: -121%;
  max-width: none;
  pointer-events: none;
}
.site-brand:hover .site-brand__avatar {
  transform: rotate(-3deg);
  box-shadow:
    0 0 0 2px rgba(12, 11, 10, 0.9),
    0 0 0 3px var(--poe1),
    0 8px 22px -6px rgba(0, 0, 0, 0.7);
}
.site-brand__name { line-height: 1; white-space: nowrap; }

/* Nav */
.primary-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 0.35rem;
}
.primary-nav a {
  display: block;
  padding: 0.5rem 0.95rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.primary-nav a:hover { color: var(--ink); background: rgba(236,230,218,0.05); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--poe1-soft);
}
.primary-nav .nav-logo { height: 5rem; width: auto; vertical-align: middle; display: inline-block; }
.primary-nav { flex: 1; }
.primary-nav li:has(.nav-logo):first-of-type { margin-left: auto; padding-left: 0.5rem; }

/* Actions header — reseaux sociaux + recherche + burger */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-social {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 0.1rem;
}
.site-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.18s var(--ease);
}
.site-social a:hover {
  color: var(--ink);
  background: rgba(236, 230, 218, 0.06);
  transform: translateY(-2px);
}
.site-social svg { display: block; }

.header-search {
  position: relative;
}
.header-search__toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink-dim);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.18s var(--ease);
}
.header-search__toggle:hover,
.header-search__toggle[aria-expanded="true"] {
  color: var(--ink);
  background: rgba(236, 230, 218, 0.06);
}
.header-search__toggle:hover { transform: translateY(-2px); }
.header-search__toggle:focus-visible {
  outline: 2px solid var(--poe2-soft);
  outline-offset: 2px;
}
.header-search__toggle svg { display: block; }

.header-search__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(460px, calc(100vw - 2rem));
  padding: 0.55rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  background: rgba(18, 16, 14, 0.98);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  box-shadow: 0 18px 55px -18px rgba(0, 0, 0, 0.8);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.header-search__panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.header-search__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-search__form:focus-within {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(93, 154, 168, 0.45);
}
.header-search__field {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding-inline: 1rem;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.header-search__submit {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0;
  color: var(--amber-soft);
  background: rgba(212, 160, 74, 0.1);
  border: 0;
  border-left: 1px solid rgba(212, 160, 74, 0.2);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-search__submit:hover {
  color: #f3c878;
  background: rgba(212, 160, 74, 0.18);
}
.header-search__submit svg { display: block; }
.header-search__submit:focus-visible {
  outline: 2px solid var(--poe2-soft);
  outline-offset: -3px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .header-search__panel { right: calc(-40px - 0.4rem); }
  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg-2);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s var(--ease);
  }
  .primary-nav.is-open { max-height: 70vh; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 0.6rem clamp(1.25rem, 4vw, 3rem) 1.4rem; }
  .primary-nav a { padding: 0.85rem 0.5rem; font-size: 1rem; }
}

@media (max-width: 430px) {
  .site-header__inner { gap: 0.55rem; }
  .site-brand {
    gap: 0.45rem;
    font-size: 0.82rem;
    letter-spacing: 0;
  }
  .site-brand__avatar {
    width: 34px;
    height: 34px;
  }
  .site-social a {
    width: 32px;
    height: 32px;
  }
  .header-search__toggle {
    width: 32px;
    height: 32px;
  }
  .header-search__panel { right: calc(-32px - 0.4rem); }
  .nav-toggle { padding: 6px 2px 6px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .header-search__panel,
  .header-search__toggle { transition: none; }
}

/* ============================================================
   6. Split hero — PoE1 gauche / PoE2 droite
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - 76px);
  position: relative;
}

/* Sceau central — CTA orientation */
.hero-split__seal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 168px; height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(70% 70% at 50% 35%, rgba(26, 22, 18, 0.96), rgba(12, 11, 10, 0.98)),
    var(--bg);
  border: 1px solid var(--poe1);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 0 6px rgba(12, 11, 10, 0.85),
    0 0 0 7px var(--hairline-strong),
    0 24px 60px -20px rgba(0, 0, 0, 0.85),
    inset 0 0 30px rgba(200, 132, 63, 0.18);
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: seal-pulse 3.2s ease-in-out infinite;
}
.hero-split__seal:hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: var(--poe1-soft);
  color: var(--ink);
  box-shadow:
    0 0 0 6px rgba(12, 11, 10, 0.85),
    0 0 0 7px var(--poe1),
    0 28px 70px -20px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(200, 132, 63, 0.3);
}
.hero-split__seal-kicker {
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-split__seal-cta {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--poe1-soft);
  line-height: 1.1;
}
.hero-split__seal-arrow {
  display: block;
  font-size: 1.1rem;
  color: var(--poe1-soft);
  margin-top: 0.15rem;
  transition: transform 0.3s var(--ease);
}
.hero-split__seal:hover .hero-split__seal-arrow {
  transform: translateY(4px);
}
@keyframes seal-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(12, 11, 10, 0.85),
      0 0 0 7px var(--hairline-strong),
      0 24px 60px -20px rgba(0, 0, 0, 0.85),
      inset 0 0 30px rgba(200, 132, 63, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(12, 11, 10, 0.85),
      0 0 0 7px rgba(200, 132, 63, 0.45),
      0 24px 60px -20px rgba(0, 0, 0, 0.85),
      inset 0 0 40px rgba(200, 132, 63, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-split__seal { animation: none; }
}
@media (max-width: 760px) {
  .hero-split__seal {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin: -2.5rem auto 0;
    width: 148px; height: 148px;
    display: flex;
    z-index: 5;
  }
  .hero-split__seal:hover { transform: scale(1.04); }
}

.hero-half {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

/* Image de fond — slot a remplir : assets/img/poe1.jpg et poe2.jpg.
   Tant que l'image est absente, le degrade radial sert de fond. */
.hero-half::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
  transform: scale(1.04);
}
.hero-half::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease);
}
.hero-half:hover::before { transform: scale(1.1); }

.hero-half--poe1::before {
  background-color: #1d140b;
  background-image:
    var(--hero-img, none),
    radial-gradient(120% 90% at 20% 30%, var(--poe1-glow), transparent 60%),
    radial-gradient(80% 70% at 80% 90%, rgba(110,63,28,0.4), transparent 70%);
}
.hero-half--poe1::after {
  background: linear-gradient(115deg, rgba(12,11,10,0.30) 0%, rgba(12,11,10,0.78) 75%);
}

.hero-half--poe2::before {
  background-color: #0b1a1f;
  background-image:
    var(--hero-img, none),
    radial-gradient(120% 90% at 80% 30%, var(--poe2-glow), transparent 60%),
    radial-gradient(80% 70% at 20% 90%, rgba(40,82,92,0.45), transparent 70%);
}
.hero-half--poe2::after {
  background: linear-gradient(245deg, rgba(12,11,10,0.30) 0%, rgba(12,11,10,0.78) 75%);
}

.hero-half__content {
  position: relative;
  z-index: 2;
  max-width: 32ch;
  padding: 1.8rem 2rem 2rem;
  border-radius: var(--radius);
  background: rgba(10, 8, 6, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 64px -16px rgba(0, 0, 0, 0.6);
}
.hero-half--poe1 .hero-half__content {
  background: rgba(18, 9, 3, 0.54);
  border-color: rgba(200, 132, 63, 0.15);
}
.hero-half--poe2 .hero-half__content {
  background: rgba(5, 14, 20, 0.54);
  border-color: rgba(80, 180, 200, 0.15);
  margin-left: auto;
  text-align: right;
}
.hero-half--poe2 .hero-half__seal-row { justify-content: flex-end; }

.hero-half__index {
  font-family: "Cinzel", serif;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.85;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--hairline-strong);
}
.hero-half--poe1:hover .hero-half__index { -webkit-text-stroke-color: var(--poe1); }
.hero-half--poe2:hover .hero-half__index { -webkit-text-stroke-color: var(--poe2); }
.hero-half__index { transition: -webkit-text-stroke-color 0.4s var(--ease); }

.hero-half__title {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  margin: 0.3rem 0 0.7rem;
}
.hero-half--poe1 .hero-half__title { color: var(--poe1-soft); }
.hero-half--poe2 .hero-half__title { color: var(--poe2-soft); }

.hero-half__desc { color: var(--ink-dim); margin-bottom: 1.8rem; }

.hero-half__tags {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-half--poe2 .hero-half__tags { justify-content: flex-end; }
.hero-half__tags li {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink-dim);
}

@media (max-width: 760px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  /* PoE2 d'abord — c'est le jeu en cours */
  .hero-half--poe2 { order: 1; }
  .hero-half--poe1 { order: 2; }
  .hero-half { min-height: 78dvh; }
  .hero-half__content,
  .hero-half--poe2 .hero-half__content {
    margin: 0; text-align: left; max-width: 40ch;
  }
  .hero-half--poe2 .hero-half__tags { justify-content: flex-start; }
}

/* ============================================================
   7. Origin story — section neutre, un seul accent (cuivre)
   ============================================================ */
.origin {
  background: var(--bg-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.origin__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.origin__portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(90% 70% at 30% 20%, var(--poe1-glow), transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
}
.origin__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.origin__portrait-fallback {
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding: 2rem;
}
.origin__quote {
  font-family: "MedievalSharp", "Cinzel", serif;
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 1.4rem;
  white-space: pre-line;
}
.origin__quote em { color: var(--poe1-soft); font-style: normal; }
blockquote.origin__quote {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-dim);
  padding-left: 1.4em;
  border-left: 3px solid var(--poe1-soft);
  margin: 0 0 1.4rem 0;
  white-space: pre-line;
}
.origin__lead { color: var(--ink-dim); white-space: pre-line; }

@media (max-width: 760px) {
  .origin__grid { grid-template-columns: 1fr; }
  .origin__portrait { aspect-ratio: 1 / 1; max-height: 400px; }
}

/* ============================================================
   8. Cartes parcours / stats
   ============================================================ */
.path-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.path-card > :not(.path-card__watermark) {
  position: relative;
  z-index: 1;
}
.path-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto 0;
  height: 3px;
}
.path-card__watermark {
  position: absolute;
  right: clamp(-3.4rem, -5vw, -1.4rem);
  top: 54%;
  z-index: 0;
  width: min(92%, 31rem);
  aspect-ratio: 2.8 / 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0.16;
  filter: grayscale(0.9) contrast(1.08);
  transform: translateY(-50%) rotate(-4deg);
  transform-origin: center;
  user-select: none;
}
.path-card__watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}
.path-card__watermark--text {
  width: min(86%, 30rem);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-align: right;
  text-transform: uppercase;
  -webkit-text-stroke: 1px currentColor;
  -webkit-text-fill-color: transparent;
}
.path-card--poe1 .path-card__watermark { color: var(--poe1-soft); }
.path-card--poe2 .path-card__watermark {
  color: var(--poe2-soft);
  opacity: 0.16;
}
.path-card--poe1::before { background: linear-gradient(90deg, var(--poe1), transparent); }
.path-card--poe2::before { background: linear-gradient(90deg, var(--poe2), transparent); }
.path-card:hover { transform: translateY(-4px); }
.path-card--poe1:hover { border-color: var(--poe1); }
.path-card--poe2:hover { border-color: var(--poe2); }
.path-card h3 { font-size: 1.3rem; }
.path-card--poe1 h3 { color: var(--poe1-soft); }
.path-card--poe2 h3 { color: var(--poe2-soft); }
.path-card p { color: var(--ink-dim); font-size: 0.96rem; margin-bottom: 1.3rem; }
.path-card ul {
  list-style: none; margin: 0 0 1.6rem; padding: 0;
}
.path-card li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--hairline);
}
.path-card li:last-child { border-bottom: 0; }
.path-card {
  --socket: var(--amber);
}
.path-card--poe1 { --socket: var(--poe1); }
.path-card--poe2 { --socket: var(--poe2); }
.path-card li {
  padding-left: 1.9rem;
}
.path-card li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.78rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--socket);
  background: var(--bg);
  box-shadow:
    inset 0 0 6px rgba(0,0,0,0.7),
    0 0 0 1px rgba(12,11,10,0.95),
    0 0 10px color-mix(in srgb, var(--socket) 55%, transparent);
  transform: none;
}
.path-card li::after {
  content: "";
  position: absolute;
  left: 0.5rem; top: 1.18rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--socket);
  box-shadow: 0 0 6px var(--socket);
}
.path-card__cta { margin-top: auto; align-self: flex-start; }

@media (max-width: 720px) {
  .path-row { grid-template-columns: 1fr; }
  .path-card__watermark {
    width: min(86%, 24rem);
    opacity: 0.11;
    right: -3rem;
    top: 60%;
  }
}

/* ============================================================
   8.1 Fusion origin + parcours (PoE concept art background)
   ============================================================ */
.origin--with-paths {
  position: relative;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  isolation: isolate;
  overflow: hidden;
}
.origin--with-paths::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, color-mix(in srgb, var(--poe1) 14%, transparent), transparent 70%),
    radial-gradient(50% 50% at 90% 80%, color-mix(in srgb, var(--poe2) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.origin--with-paths > .wrap { position: relative; z-index: 1; }

.origin__grid--paths {
  grid-template-columns: 0.95fr 1.25fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.origin__intro { padding-top: 0.5rem; }
.origin__intro .origin__quote { margin-bottom: 1.2rem; }
.origin__intro .btn { margin-top: 0.5rem; }

.origin__paths { display: flex; flex-direction: column; gap: 1.4rem; }
.kicker--center { align-self: flex-start; margin: 0 0 0.6rem; }
.path-row--stacked {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.path-row--stacked .path-card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4.5rem 1.9rem 1.7rem;
}
.path-card > .path-card__badge {
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  z-index: 3;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: rgba(8,8,10,0.75);
  white-space: nowrap;
}
.path-card__badge--poe1 { color: var(--poe1-soft); border-color: color-mix(in srgb, var(--poe1) 45%, var(--hairline)); }
.path-card__badge--poe2 { color: var(--poe2-soft); border-color: color-mix(in srgb, var(--poe2) 45%, var(--hairline)); }
.path-card h3 { padding-right: 9rem; }
.path-card__pull {
  margin: 0.4rem 0 1.4rem;
  padding: 0.1rem 0 0.1rem 1em;
  border-left: 2px solid color-mix(in srgb, var(--socket) 70%, transparent);
  color: var(--ink);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .origin__grid--paths { grid-template-columns: 1fr; }
  .origin--with-paths { background-attachment: scroll; }
  .path-card h3 { padding-right: 0; }
  .path-card__badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.8rem;
  }
}

/* ============================================================
   8.5 Section stream Twitch
   ============================================================ */
.stream {
  background: var(--bg-2);
  border-top: 1px solid var(--hairline);
}
.stream__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.stream__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.stream__desc { color: var(--ink-dim); max-width: 42ch; margin-bottom: 1.8rem; }
.stream__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--spark);
  padding: 0.28rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 24px var(--spark-glow);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 24px var(--spark-glow); }
  50%      { box-shadow: 0 0 38px var(--spark-glow), 0 0 0 3px rgba(255,107,26,0.25); }
}
.stream__live-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.stream__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.65);
}
.stream__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.stream__embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
  background: radial-gradient(80% 70% at 50% 40%, rgba(145, 70, 255, 0.08), transparent 70%);
}
.stream__embed-placeholder svg { opacity: 0.35; }
.stream__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-dim);
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(145, 70, 255, 0.12), transparent 70%),
    var(--surface);
}
.stream__consent p {
  max-width: 38ch;
  margin: 0;
  font-size: 0.94rem;
}

@media (max-width: 820px) {
  .stream__grid {
    grid-template-columns: 1fr;
  }
  .stream__embed { order: -1; }
}

/* Bandeau communaute */
.community {
  text-align: center;
}
.community__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.community__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), transform 0.18s var(--ease), background 0.2s var(--ease);
}
.community__link:hover {
  transform: translateY(-2px);
  border-color: var(--poe1);
  color: var(--ink);
  background: rgba(200,132,63,0.06);
}

/* ============================================================
   9. Contenu generique (pages, articles, archives)
   ============================================================ */
.page-hero {
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(90% 120% at 80% -20%, var(--poe1-glow), transparent 55%),
    var(--bg-2);
}
.page-hero .wrap { padding-block: clamp(1.25rem, 2.5vw, 2rem); }
.page-hero + .section { padding-block-start: clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.page-hero p { color: var(--ink-dim); max-width: 60ch; }

.content {
  margin-inline: auto;
}
.content--wide {
  max-width: none;
}
.wp-block-buttons {
  margin-bottom: 1.5rem;
}
.wp-block-button__link {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(212, 160, 74, 0.4);
  border-radius: 6px !important;
  color: var(--amber-soft) !important;
  background: rgba(212, 160, 74, 0.08) !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.wp-block-button__link:hover {
  background: rgba(212, 160, 74, 0.16) !important;
  border-color: rgba(212, 160, 74, 0.65);
}
.content :is(h2, h3) { margin-top: 2em; scroll-margin-top: 6rem; }
.content > :is(h2, h3):first-child { margin-top: 0; }
.content h2 { font-size: 1.7rem; }
.content h3 { font-size: 1.3rem; }
.content img { border-radius: var(--radius-sm); margin: 1.6em 0; }
.content blockquote {
  margin: 1.8em 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px solid var(--poe1);
  color: var(--ink-dim);
  font-family: "Cinzel", serif;
  font-style: italic;
}
.content code {
  background: var(--surface-2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.content pre {
  background: var(--surface-2);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  border: 1px solid var(--hairline);
}
.content :is(ul, ol) { padding-left: 1.3em; }
.content li { margin-bottom: 0.4em; }

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.comments-title,
.comment-reply-title {
  font-size: 1.35rem;
}
.comment-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}
.comment-list .children {
  list-style: none;
  margin: 1rem 0 0 1.25rem;
  padding: 0;
}
.comment-body {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
}
.bypostauthor > .comment-body {
  border-color: rgba(212, 160, 74, 0.38);
}
.comment-meta,
.comment-notes,
.logged-in-as,
.form-allowed-tags {
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.comment-author {
  color: var(--ink);
  font-weight: 700;
}
.comment-author .avatar {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 0.6rem;
  border-radius: 50%;
  vertical-align: middle;
}
.comment-content {
  color: var(--ink-dim);
}
.comment-content a {
  word-break: break-word;
}
.comment-respond input:not([type="submit"]),
.comment-respond textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.comment-respond textarea {
  min-height: 150px;
  resize: vertical;
}
.comment-form .submit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 6px;
  color: #1b1308;
  background: var(--amber-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.article-meta time { font-variant-numeric: tabular-nums; }

/* Guide single — wiki d'exile */
.guide-hero {
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(80% 120% at 12% -20%, rgba(200, 132, 63, 0.24), transparent 58%),
    radial-gradient(70% 90% at 90% 10%, rgba(93, 154, 168, 0.16), transparent 64%),
    var(--bg-2);
}
.guide-hero__grid {
  padding-block: clamp(4.5rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem);
}
.guide-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  letter-spacing: 0;
}
.guide-rail__title {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--amber-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.guide-toc {
  position: sticky;
  top: 6.5rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(26, 23, 20, 0.72);
}
.guide-toc {
  padding: 1rem;
}
.guide-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-toc__item + .guide-toc__item { margin-top: 0.45rem; }
.guide-toc__item--h1 a { font-weight: 600; }
.guide-toc__item--h3 { padding-left: 0.75rem; }
.guide-toc a {
  display: block;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.35;
}
.guide-toc a:hover { color: var(--ink); }
.guide-toc__chapters {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}
.guide-toc__tags-section {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}
.guide-rail__empty {
  color: var(--ink-faint);
  font-size: 0.86rem;
}
.guide-content {
  max-width: none;
  min-width: 0;
}
.guide-layout > .content,
.section > .content {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 2.5rem;
  min-width: 0;
  margin-inline: 0;
}
.guide-featured-media,
.guide-content img {
  border: 1px solid rgba(212, 160, 74, 0.24);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: 0 24px 70px -34px rgba(212, 160, 74, 0.45);
}
.guide-featured-media {
  overflow: hidden;
  margin-bottom: 2rem;
}
.guide-featured-media img { margin: 0; border: 0; border-radius: 0; }

/* --- Images d'article + page : survol + zoom (contenu seul, hors image a la une) --- */
article.content img:not(.wp-post-image) {
  cursor: zoom-in;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
article.content img:not(.wp-post-image):hover {
  transform: scale(1.006);
  box-shadow: 0 20px 56px -30px rgba(212, 160, 74, 0.38);
}

/* Lightbox plein ecran au clic */
.welya-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(8, 7, 6, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  cursor: zoom-out;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.welya-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.welya-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transform: scale(0.96);
  transition: transform 0.28s var(--ease);
}
.welya-lightbox.is-open img {
  transform: scale(1);
}
.welya-lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(26, 23, 20, 0.7);
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.welya-lightbox__close:hover {
  background: var(--surface-2);
  transform: scale(1.08);
}
body.welya-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  article.content img:not(.wp-post-image),
  .welya-lightbox,
  .welya-lightbox img {
    transition: none;
  }
  article.content img:not(.wp-post-image):hover {
    transform: none;
  }
}

.guide-content :is(h2, h3) {
  scroll-margin-top: 7rem;
}
.guide-content h2 {
  padding-top: 0.6rem;
  border-top: 1px solid var(--hairline);
}
.guide-content blockquote,
.guide-content .wp-block-quote,
.guide-content .wp-block-pullquote {
  position: relative;
  padding: 1rem 1rem 1rem 1.2rem;
  border: 1px solid rgba(212, 160, 74, 0.26);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(212, 160, 74, 0.08);
  font-family: "Outfit", sans-serif;
  font-style: normal;
}
.guide-content .wp-block-group.is-style-astuce,
.guide-content .wp-block-group.is-style-piege,
.guide-content .wp-block-group.is-style-loot {
  margin-block: 1.6rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
}
.guide-content .wp-block-group.is-style-astuce { border-color: rgba(93, 154, 168, 0.34); }
.guide-content .wp-block-group.is-style-piege { border-color: rgba(255, 107, 26, 0.34); }
.guide-content .wp-block-group.is-style-loot { border-color: rgba(212, 160, 74, 0.34); }
.guide-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.guide-next__link {
  display: grid;
  gap: 0.45rem;
  min-height: 96px;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
}
.guide-next__link span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-next__link strong {
  color: var(--ink);
  line-height: 1.25;
}
.guide-next__link--primary {
  border-color: rgba(212, 160, 74, 0.34);
  background: rgba(212, 160, 74, 0.08);
}

@media (max-width: 1120px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .guide-next {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   9b. Navigation chapitres [welya_chapter_nav]
   ============================================================ */
.chapter-nav-band { padding-block: 1.75rem 1.25rem; }
.chapter-nav-band + .wrap { padding-block-start: clamp(1rem, 2vw, 1.5rem); }
.chapter-nav { margin: 0; }

.chapter-nav__label {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
}

/* Grille des actes */
.chapter-nav__acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(180px, 18%), 1fr));
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.chapter-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 150px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.chapter-card__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.5s var(--ease);
}
.chapter-card:hover .chapter-card__art { transform: scale(1.07); }

.chapter-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 11, 10, 0.92) 0%,
    rgba(12, 11, 10, 0.28) 55%,
    transparent 100%
  );
}

.chapter-card__label {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.chapter-card--poe1:hover {
  border-color: rgba(200, 132, 63, 0.5);
  box-shadow: 0 0 28px -8px var(--poe1-glow), 0 8px 32px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}
.chapter-card--poe2:hover {
  border-color: rgba(93, 154, 168, 0.5);
  box-shadow: 0 0 28px -8px var(--poe2-glow), 0 8px 32px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

/* Grille des interludes — petites cards */
.chapter-nav__interludes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(120px, 12%), 1fr));
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.chapter-card--sm {
  min-height: 90px;
}
.chapter-card--sm .chapter-card__label {
  font-size: 0.8rem;
  padding: 0.7rem 0.85rem;
}

.chapter-interlude {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.chapter-interlude--poe1:hover {
  color: var(--poe1-soft);
  border-color: rgba(200, 132, 63, 0.45);
  background: rgba(200, 132, 63, 0.08);
}
.chapter-interlude--poe2:hover {
  color: var(--poe2-soft);
  border-color: rgba(93, 154, 168, 0.45);
  background: rgba(93, 154, 168, 0.08);
}

@media (max-width: 900px) {
  .chapter-nav__acts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .chapter-nav__acts { grid-template-columns: repeat(2, 1fr); }
  .chapter-card { min-height: 120px; }
  .chapter-card__label { font-size: 0.85rem; padding: 0.8rem; }
}

/* ============================================================
   Liens chapitres — [welya_chapter_links]
   Style sommaire horizontal, numéroté
   ============================================================ */
.chapter-links {
  margin: 0;
}

.chapter-links__group {
  margin-bottom: 1.25rem;
}
.chapter-links__group:last-child { margin-bottom: 0; }

.chapter-links__label {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.6rem;
}

.chapter-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.chapter-links__item {
  margin: 0;
}

.chapter-links__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.chapter-links__link--interlude {
  font-size: 0.825rem;
}

.chapter-links__num {
  font-family: "Cinzel", serif;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}

/* Hover PoE2 */
.chapter-links--poe2 .chapter-links__link:hover {
  color: var(--poe2-soft);
  border-color: rgba(93, 154, 168, 0.45);
  background: rgba(93, 154, 168, 0.07);
}
.chapter-links--poe2 .chapter-links__link:hover .chapter-links__num {
  color: var(--poe2-soft);
}

/* Hover PoE1 */
.chapter-links--poe1 .chapter-links__link:hover {
  color: var(--poe1-soft);
  border-color: rgba(200, 132, 63, 0.45);
  background: rgba(200, 132, 63, 0.07);
}
.chapter-links--poe1 .chapter-links__link:hover .chapter-links__num {
  color: var(--poe1-soft);
}

/* Couleur du numéro au repos */
.chapter-links--poe2 .chapter-links__num { color: rgba(93, 154, 168, 0.55); }
.chapter-links--poe1 .chapter-links__num { color: rgba(200, 132, 63, 0.55); }

@media (max-width: 640px) {
  .chapter-links__list { gap: 0.35rem; }
  .chapter-links__link { font-size: 0.8rem; padding: 0.4rem 0.75rem 0.4rem 0.6rem; }
}

/* ============================================================
   Navigation mécaniques — [welya_mechanic_nav]
   Cartes sur une ligne. Au survol/focus, un voile remonte du bas
   et révèle deux choix : Quête (gauche) / Mécanique (droite).
   ============================================================ */
.mechanic-nav { margin: 0; }

/* Bande pleine largeur au-dessus de la section .wrap (comme les actes) */
.mechanic-nav-band { padding-block: 1.75rem 1.25rem; }
.mechanic-nav-band + .wrap { padding-block-start: clamp(1rem, 2vw, 1.5rem); }

.mechanic-nav__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.mechanic-card {
  position: relative;
  min-height: 132px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

/* PoE1 — lien unique : la carte entière est cliquable, pas de split */
a.mechanic-card--single {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.mechanic-card__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}
.mechanic-card:hover .mechanic-card__art,
.mechanic-card:focus-within .mechanic-card__art { transform: scale(1.07); }

/* Voile de repos — garde le titre lisible sur l'image */
.mechanic-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12, 11, 10, 0.85) 0%,
    rgba(12, 11, 10, 0.28) 55%,
    transparent 100%
  );
  pointer-events: none;
}

/* Titre au repos — icône + nom en bas à gauche */
.mechanic-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0.9rem 0.55rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.mechanic-card__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}
.mechanic-card__name { line-height: 1.1; }

/* Le split prend le relais au survol : le titre s'efface */
.mechanic-card:hover .mechanic-card__title,
.mechanic-card:focus-within .mechanic-card__title {
  opacity: 0;
  transform: translateY(6px);
}

/* Split — deux moitiés cliquables qui remontent du bas */
.mechanic-card__split {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  /* Fond continu : aucune démarcation visible entre les deux moitiés */
  background: rgba(12, 11, 10, 0.8);
  transform: translateY(101%);
  transition: transform 0.32s var(--ease);
}
.mechanic-card:hover .mechanic-card__split,
.mechanic-card:focus-within .mechanic-card__split { transform: translateY(0); }

.mechanic-card__half {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 0.5rem 0.9rem;
  text-decoration: none;
  background: transparent;
  color: var(--ink-dim);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.mechanic-card__half:hover .mechanic-card__half-label,
.mechanic-card__half:focus-visible .mechanic-card__half-label { color: var(--ink); }
.mechanic-card__half:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Dégradé directionnel : Quête éclaire depuis la gauche, Mécanique depuis la droite */
/* Le tint s'éteint avant le centre (transparent) → pas de couture au milieu */
.mechanic-card--poe2 .mechanic-card__half--quete:hover {
  background: linear-gradient(to right, rgba(93, 154, 168, 0.22) 0%, transparent 75%);
}
.mechanic-card--poe2 .mechanic-card__half--mecanique:hover {
  background: linear-gradient(to left, rgba(93, 154, 168, 0.22) 0%, transparent 75%);
}
.mechanic-card--poe1 .mechanic-card__half--quete:hover {
  background: linear-gradient(to right, rgba(200, 132, 63, 0.22) 0%, transparent 75%);
}
.mechanic-card--poe1 .mechanic-card__half--mecanique:hover {
  background: linear-gradient(to left, rgba(200, 132, 63, 0.22) 0%, transparent 75%);
}

/* Lueur de la carte au survol/focus */
.mechanic-card--poe2:hover,
.mechanic-card--poe2:focus-within {
  border-color: rgba(93, 154, 168, 0.5);
  box-shadow: 0 0 28px -8px var(--poe2-glow), 0 8px 32px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}
.mechanic-card--poe1:hover,
.mechanic-card--poe1:focus-within {
  border-color: rgba(200, 132, 63, 0.5);
  box-shadow: 0 0 28px -8px var(--poe1-glow), 0 8px 32px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

/* Tactile / sans survol : pas de survol → révélation au tap (classe .is-open via JS) */
@media (hover: none) {
  /* Neutralise le zoom d'art déclenché par un survol fantôme */
  .mechanic-card:hover .mechanic-card__art { transform: none; }
  .mechanic-card:hover .mechanic-card__split { transform: translateY(101%); }
  .mechanic-card:hover .mechanic-card__title { opacity: 1; transform: none; }

  /* Ouvert au tap : le split monte, le titre s'efface */
  .mechanic-card.is-open .mechanic-card__split { transform: translateY(0); }
  .mechanic-card.is-open .mechanic-card__art { transform: scale(1.07); }
  .mechanic-card.is-open .mechanic-card__title { opacity: 0; transform: translateY(6px); }
  .mechanic-card--poe2.is-open { border-color: rgba(93, 154, 168, 0.5); }
  .mechanic-card--poe1.is-open { border-color: rgba(200, 132, 63, 0.5); }
}

/* Tablette / petit écran : grille resserrée */
@media (max-width: 720px) {
  .mechanic-nav__row { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .mechanic-card { min-height: 120px; }
  .mechanic-card__title { font-size: 0.82rem; padding: 0.7rem 0.6rem 0.5rem; }
  .mechanic-card__half { font-size: 0.78rem; }
}

/* Mobile : une mécanique par ligne, image plus généreuse */
@media (max-width: 560px) {
  .mechanic-nav__row { grid-template-columns: 1fr; gap: 0.6rem; }
  .mechanic-card { min-height: 132px; }
  .mechanic-card__title { font-size: 0.92rem; padding: 0.85rem 0.95rem 0.6rem; }
  .mechanic-card__half { font-size: 0.9rem; }
}

/* ============================================================
   Ligne « Maîtres » — seconde rangée, cartes carrées, lien direct
   ============================================================ */
/* Intitulé de rangée (Mécaniques / Maîtres) */
.mechanic-nav__label {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
}
.mechanic-nav__label--masters { margin-top: 1.75rem; }

.mechanic-masters__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0;
}

.master-card {
  position: relative;
  display: block;
  width: 132px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  text-decoration: none;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.master-card__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}
.master-card:hover .master-card__art,
.master-card:focus-visible .master-card__art { transform: scale(1.07); }

.master-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(12, 11, 10, 0.9) 0%,
    rgba(12, 11, 10, 0.2) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.master-card__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.45rem 0.4rem 0.5rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-align: center;
}

.master-card--poe2:hover,
.master-card--poe2:focus-visible {
  border-color: rgba(93, 154, 168, 0.5);
  box-shadow: 0 0 28px -8px var(--poe2-glow), 0 8px 32px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}
.master-card--poe1:hover,
.master-card--poe1:focus-visible {
  border-color: rgba(200, 132, 63, 0.5);
  box-shadow: 0 0 28px -8px var(--poe1-glow), 0 8px 32px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

@media (max-width: 560px) {
  .mechanic-masters__row { gap: 0.5rem; justify-content: center; }
  .master-card { width: 104px; }
}

/* Liste d'articles */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

/* ============================================================
   Bouton feedback flottant
   ============================================================ */
.feedback-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  /* conteneur transparent : laisse passer les clics hors des enfants
     (sinon il masque #back-to-top empilé au-dessus en vue mobile) */
  pointer-events: none;
}
.feedback-fab__toggle {
  pointer-events: auto;
}

.feedback-fab__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.feedback-fab__toggle:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--amber);
}
.feedback-fab__toggle svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.feedback-fab__panel {
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.65);
  transform-origin: bottom right;
  transform: scale(0.92) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.feedback-fab__panel.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.feedback-fab__list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.feedback-fab__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-dim);
  font-size: 0.83rem;
  padding: 0.2rem 0.25rem;
  white-space: nowrap;
}
.feedback-fab__icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.feedback-fab__contact {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--poe1);
  color: #1b1308;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.feedback-fab__contact:hover {
  background: var(--poe1-soft);
  color: #1b1308;
}

@media (max-width: 640px) {
  .feedback-fab {
    bottom: 1rem;
    right: 1rem;
  }
  .feedback-fab__toggle span {
    display: none;
  }
  .feedback-fab__toggle {
    padding: 0.65rem;
  }
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--hairline-strong); }
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__body h2 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
.post-card__body h2 a { color: var(--ink); }
.post-card__body h2 a:hover { color: var(--poe1-soft); }
.post-card__excerpt { color: var(--ink-dim); font-size: 0.94rem; flex: 1; }
.post-card__more {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--poe1-soft);
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px; height: 42px;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  color: var(--ink-dim);
  font-weight: 600;
}
.pagination .page-numbers:hover { color: var(--ink); border-color: var(--hairline-strong); }
.pagination .page-numbers.current {
  background: var(--poe1);
  color: #1a1208;
  border-color: var(--poe1);
}

/* 404 */
.error-404 { text-align: center; }
.error-404__code {
  font-family: "Cinzel", serif;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--poe1);
  margin: 0;
}

/* ============================================================
   10. Footer
   ============================================================ */
.site-footer {
  background: var(--bg-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.site-footer__brand {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.site-footer__tag { color: var(--ink-dim); max-width: 42ch; }
.footer-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
}
.footer-nav a { color: var(--ink-dim); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--ink); }
.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--ink-faint);
  font-size: 0.83rem;
}
.site-footer__bottom a { color: var(--ink-faint); }
.site-footer__bottom a:hover { color: var(--ink-dim); }

@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Back-to-top button
   ============================================================ */
#back-to-top {
  position: fixed;
  right: calc((100vw - var(--maxw)) / 2 - 3rem);
  bottom: 1.5rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--poe1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s, color 0.2s;
}
#back-to-top svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
#back-to-top:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--poe1);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* pas assez de gutter : empiler au-dessus du feedback-fab */
@media (max-width: 1750px) {
  #back-to-top {
    right: 1.5rem;
    bottom: 5rem;
  }
}

/* ============================================================
   N. Contrôles de formulaire — selects, champs de saisie
   Aligné sur le style des filtres "Best Drops" (plugin poe2-drops) :
   surface translucide, hairline, encre claire, focus acier PoE2.
   ============================================================ */
input:is([type="text"], [type="search"], [type="email"], [type="url"],
         [type="tel"], [type="number"], [type="password"], [type="date"]),
textarea,
select {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  box-shadow: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

input::placeholder,
textarea::placeholder { color: var(--ink-faint); opacity: 1; }

input:is([type="text"], [type="search"], [type="email"], [type="url"],
         [type="tel"], [type="number"], [type="password"], [type="date"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(93, 154, 168, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

/* Le panneau natif des <select> : sombre au lieu du blanc OS par défaut */
select option,
select optgroup {
  background: var(--surface);
  color: var(--ink);
}

/* FAQ (plugin wp-faq) — front.css impose background:transparent + bordure
   currentColor avec une spécificité (0,1,0) et se charge après cette feuille.
   On out-spécifie via .wp-faq pour garantir le rendu sombre du thème. */
.wp-faq .wp-faq__search,
.wp-faq .wp-faq__filter {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  opacity: 1;
}
.wp-faq .wp-faq__search::placeholder { color: var(--ink-faint); opacity: 1; }
.wp-faq .wp-faq__search:focus,
.wp-faq .wp-faq__filter:focus {
  outline: none;
  border-color: rgba(93, 154, 168, 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.wp-faq .wp-faq__filter option {
  background: var(--surface);
  color: var(--ink);
}
