/* ============ CHARTE : dark fantasy — noir chaud / or / pourpre braise ============ */
:root {
  --bg: #0b0809;
  --bg-2: #130d10;
  --card: #1a1114;
  --gold: #d6aa4c;
  --gold-hi: #f0d68a;
  --crimson: #8b1a1a;
  --ember: #ff7a2a;
  --parch: #ece0c4;
  --muted: #b3a48a;
  --line: rgba(214, 170, 76, .22);
  --font-title: 'Cinzel', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--parch);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0 0 1.1rem; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }

.eyebrow {
  font-family: var(--font-title); font-size: .8rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}
h2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); letter-spacing: .04em; color: var(--gold-hi); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__intro { color: var(--muted); max-width: 58ch; margin-top: 1rem; font-style: italic; }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(11, 8, 9, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-title); font-weight: 800; letter-spacing: .12em;
  text-decoration: none; font-size: 1.25rem; color: var(--gold-hi);
}
.nav__brand span { color: var(--crimson); margin-left: .25em; filter: brightness(1.7); }
.nav__links { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); }
.nav__links a {
  text-decoration: none; font-family: var(--font-title); font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--parch); padding-block: .3rem;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--gold-hi); }

.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; transition: transform .3s, opacity .3s; }
.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); }

/* ============ HEADER PARALLAX (pinned + scrub, inspiré du site de référence) ============ */
.hero { position: relative; height: 200vh; background: var(--bg); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0b0809; isolation: isolate; }

/* fond panoramique */
.hbg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hbg img { position: absolute; top: 0; left: 0; height: 112%; width: auto; max-width: none; will-change: transform;
           filter: brightness(.78) saturate(1.08) contrast(1.05); }

/* calques d'ambiance */
.hl { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.hl img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hl-mist { z-index: 1; }
.hl-embers { z-index: 6; mix-blend-mode: screen; }
.hl-embers img { animation: twinkle 3.6s ease-in-out infinite; }
.hl-front { z-index: 8; transform-origin: 50% 100%; }

/* personnages */
.hchar { position: absolute; bottom: -2vh; z-index: 3; width: 0; height: 0; pointer-events: none; will-change: transform; transform-origin: 50% 100%; }
.hchar__in { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); }
.hchar img { display: block; height: var(--h); width: auto; max-width: none; }
.hchar .main { position: relative; filter: brightness(.9) contrast(1.06) saturate(.95) drop-shadow(0 0 26px rgba(255, 160, 80, .22)) drop-shadow(0 24px 38px rgba(0, 0, 0, .65)); }
/* échos colorés (traînée au scroll rapide) */
.hchar .echo { position: absolute; left: 0; bottom: 0; mix-blend-mode: screen; opacity: 0; will-change: transform, opacity; }
.echo-a { filter: brightness(1.25) sepia(1) saturate(6); }
.echo-b { filter: brightness(.95) sepia(1) saturate(7) hue-rotate(-52deg); }

.hc-druid { left: 19vw; z-index: 3; --h: min(70vh, 74vw); }
.hc-tief  { left: 81vw; z-index: 3; --h: min(66vh, 74vw); }
.hc-mage  { left: 50vw; z-index: 4; --h: min(56vh, 90vw); }

/* entrée animée au chargement */
.hchar__in { animation: charIn 1.5s cubic-bezier(.2, .7, .2, 1) both; }
.hc-druid .hchar__in { --fx: -26vw; --fy: 4vh; animation-delay: .25s; }
.hc-tief .hchar__in  { --fx: 26vw;  --fy: 4vh; animation-delay: .5s; }
.hc-mage .hchar__in  { --fx: 0;     --fy: 18vh; animation-delay: .75s; }
@keyframes charIn { from { opacity: 0; translate: var(--fx) var(--fy); } to { opacity: 1; translate: 0 0; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* voile + vignette */
.hshade { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(11, 8, 9, 0) 30%, rgba(11, 8, 9, .85) 100%), #0b0809; }
.stage::before { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, transparent 40%, rgba(11, 8, 9, .6) 100%),
              linear-gradient(to bottom, rgba(11, 8, 9, .65), transparent 24%); }
.stage::after { content: ''; position: absolute; inset: auto 0 0 0; height: 18%; z-index: 9; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg)); }

/* logo */
.hlogo { position: absolute; z-index: 20; left: 50%; top: 5vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  pointer-events: none; will-change: transform, opacity; transform-origin: 50% 0; }
.hlogo__h1 { margin: 0; line-height: 0; animation: logoIn 1.6s 1s cubic-bezier(.2, .7, .2, 1) both; }
.hlogo__h1 img { height: min(30vh, 60vw); width: auto;
  filter: drop-shadow(0 0 18px rgba(255, 190, 90, .35)) drop-shadow(0 8px 26px rgba(0, 0, 0, .8)); }
.hlogo__tag { margin: .5rem 0 0; font-style: italic; font-size: clamp(1.05rem, 2.4vw, 1.6rem); letter-spacing: .1em; color: var(--gold-hi);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .95); animation: logoIn 1.6s 1.4s ease-out both; }
@keyframes logoIn { from { opacity: 0; scale: .82; filter: blur(8px); } to { opacity: 1; scale: 1; filter: blur(0); } }

.scroll-hint {
  position: absolute; z-index: 21; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--font-title); font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  text-decoration: none; color: var(--gold);
}
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ À PROPOS ============ */
.about { background: linear-gradient(var(--bg), var(--bg-2)); padding: 0 0 clamp(3.5rem, 8vw, 6rem); }
.about__banner { position: relative; height: clamp(320px, 62vh, 620px); overflow: hidden; }
.about__banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; filter: saturate(1.1) contrast(1.05) brightness(.9); }
.about__banner::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11, 8, 9, 0) 22%, rgba(11, 8, 9, .3) 55%, rgba(11, 8, 9, .85) 85%, var(--bg) 100%); }
.about__banner-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(1.5rem, 6vw, 3.5rem); text-align: center; padding: 0 1rem; }
.about__banner-txt .eyebrow { text-shadow: 0 2px 12px rgba(0, 0, 0, .95); }
.about__banner-txt h2 { margin: .3rem 0 0; text-shadow: 0 3px 24px rgba(0, 0, 0, .95); }
.about__body { margin-top: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.lead { font-size: clamp(1.3rem, 2.3vw, 1.7rem); color: var(--gold-hi); font-style: italic; line-height: 1.45; max-width: 52rem; margin: 0 auto; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); margin: 2.2rem auto 0; max-width: 60rem; text-align: left; }
.about__cols p { color: var(--muted); margin: 0; }
.about__cols strong { color: var(--parch); font-weight: 600; }
.about__cols em { color: var(--parch); }
.about__cta { margin-top: 2.2rem; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem 1.2rem; position: relative; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__num { font-family: var(--font-title); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--gold); }
.fact__txt { font-size: 1rem; color: var(--muted); line-height: 1.4; }

/* ---- SURVOL 1 sur 3 : cartes de faits qui se soulèvent avec lueur braise ---- */
.fact { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.fact:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 14px 34px -12px rgba(255, 122, 42, .45); }

/* bouton */
.btn {
  display: inline-block; margin-top: .8rem; padding: .95rem 2.2rem;
  border: 1px solid var(--gold); border-radius: var(--radius); color: var(--gold-hi); background: rgba(139, 26, 26, .35);
  text-decoration: none; font-family: var(--font-title); letter-spacing: .2em; text-transform: uppercase; font-size: .82rem;
}
/* ---- SURVOL 2 sur 3 : bouton qui s'embrase ---- */
.btn { transition: background .35s, color .35s, box-shadow .35s; }
.btn:hover, .btn:focus-visible { background: var(--crimson); color: #fff; box-shadow: 0 0 26px rgba(214, 60, 40, .6), inset 0 0 12px rgba(255, 180, 90, .25); }

/* ============ VIDÉO ============ */
.video { background: var(--bg-2); }
.video__frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gold); outline: 1px solid var(--line); outline-offset: 6px;
  box-shadow: 0 30px 80px -30px rgba(255, 122, 42, .3);
  aspect-ratio: 16 / 9; background: #000;
}
.video__frame video, .video__frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 70%, rgba(11, 8, 9, .8)); pointer-events: none; }
.video__caption {
  position: absolute; z-index: 2; left: 1.4rem; bottom: 1rem; margin: 0;
  font-family: var(--font-title); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi);
}

/* ============ GALERIES (flexbox) ============ */
.gallery { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.race { flex: 1 1 calc(25% - 1rem); max-width: 280px; margin: 0; padding: 1.6rem 1.2rem 1.4rem; text-align: center; position: relative;
  background: linear-gradient(#15100f, #070506); border: 1px solid var(--line); border-radius: 22px; }
.race::before, .race::after { content: ''; position: absolute; width: 24px; height: 24px; border: 1px solid var(--gold); opacity: .55; pointer-events: none; }
.race::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.race::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.race img { width: 62%; max-width: 140px; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 auto 1rem; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .8)); }
.race figcaption { display: flex; flex-direction: column; gap: .4rem; }
.race figcaption strong { font-family: var(--font-title); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--parch); font-size: 1.15rem; }
.race figcaption span { font-size: 1rem; color: var(--muted); font-style: italic; line-height: 1.4; }

/* ---- SURVOL 3 sur 3 : l'icône zoome et s'illumine, la bordure devient or ---- */
.race, .race img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .5s, border-color .4s, box-shadow .4s, opacity .45s; }
.race:hover { border-color: var(--gold); box-shadow: 0 18px 44px -18px rgba(255, 122, 42, .5); }
.race:hover img { transform: scale(1.12); filter: drop-shadow(0 0 16px rgba(255, 190, 90, .6)) brightness(1.15); }

/* ============ FOOTER ============ */
.footer { background: #070506; border-top: 1px solid var(--gold); padding: clamp(3rem, 6vw, 5rem) 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer h3 { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer li { margin-bottom: .5rem; }
.footer a { text-decoration: none; color: var(--muted); font-size: 1.05rem; }
.footer li a:hover { color: var(--gold-hi); }
.footer__brand p { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; max-width: 30ch; font-style: italic; }
.footer__bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; }
.footer__bottom p { margin: 0; font-size: .9rem; color: #85775f; }

/* ============ APPARITION AU SCROLL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.fact.reveal.visible { transition: opacity .8s ease, transform .35s ease, border-color .35s, box-shadow .35s; }
.race.reveal.visible { transition: opacity .8s ease, transform .6s ease, border-color .4s, box-shadow .4s; }

/* ============ RESPONSIVE ============ */

/* ---- GUIDE DES CLASSES ---- */
.guide { background: var(--bg-2); }
.guide__layout { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: 1.2rem; align-items: start; }
.cpanel { position: sticky; top: 5.5rem; padding: 2rem 1.6rem; text-align: left;
  background: linear-gradient(#15100f, #0b0809); border: 1px solid var(--gold); border-radius: 22px; outline: 1px solid var(--line); outline-offset: -7px; }
.cpanel img { width: 62%; max-width: 190px; height: auto; aspect-ratio: 270 / 260; object-fit: contain; margin: 0 auto 1rem; display: block; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .7)); }
.cpanel h3 { font-family: var(--font-title); font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; color: var(--parch); margin: 0 0 .8rem; letter-spacing: .04em; }
.cpanel p { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 0 0 1.2rem; }
.cpanel__label { font-family: var(--font-title); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: .5rem !important; }
.cpanel ul { list-style: none; margin: 0; padding: 0; }
.cpanel li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--parch); font-size: 1.05rem; }
.cpanel li::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); flex: none; }
.cpanel .new { margin-left: auto; font-family: var(--font-title); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: #4fd18b; }
.cgrid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.cgrid li { flex: 1 1 calc(33.333% - 1rem); }
.cls { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.4rem 1rem 1.2rem; cursor: pointer; font: inherit; text-align: center;
  color: var(--parch); background: linear-gradient(#15100f, #070506); border: 1px solid var(--line); border-radius: 22px; }
.cls { position: relative; }
.cls::before, .cls::after { content: ''; position: absolute; width: 26px; height: 26px; border: 1px solid var(--gold); opacity: .55; pointer-events: none; }
.cls::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.cls::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.cls img { width: 62%; max-width: 150px; height: auto; aspect-ratio: 270 / 260; object-fit: contain; margin-bottom: .6rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .7)); }
.cls[aria-pressed="true"] img { filter: drop-shadow(0 0 14px rgba(255, 190, 90, .55)) brightness(1.12); }
.cls[aria-pressed="true"]::before, .cls[aria-pressed="true"]::after { opacity: 1; }
.cls__name { font-family: var(--font-title); font-size: clamp(1.05rem, 2vw, 1.35rem); text-transform: uppercase; letter-spacing: .06em; }
.cls__more { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.cls[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 30px -14px rgba(255, 122, 42, .5); }
.cls:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
@media (max-width: 900px) {
  .guide__layout { grid-template-columns: 1fr; }
  .cpanel { position: static; }
  .cgrid li { flex: 1 1 calc(50% - 1rem); }
}
@media (max-width: 420px) { .cls { padding: 1rem .5rem; } }

@media (max-width: 900px) {
  .about__cols { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1.12rem; }
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; background: rgba(11, 8, 9, .97);
    flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1rem; }
  /* mobile (portrait) : personnages plus petits et resserrés */
  .hc-druid { left: 15vw; --h: min(52vh, 92vw); }
  .hc-tief  { left: 86vw; --h: min(48vh, 92vw); }
  .hc-mage  { left: 50vw; --h: min(48vh, 110vw); }
  .hlogo { top: 9vh; }
  .hlogo__h1 img { height: min(27vh, 62vw); }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .race { max-width: none; flex: 1 1 calc(50% - .5rem); padding: 1.2rem .8rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* sur écran tactile (pas de survol) les légendes restent visibles */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i { animation: none; }
  .hchar__in, .hlogo__h1, .hlogo__tag, .hl-embers img { animation: none !important; }
  .race, .race img, .fact, .btn { transition: none; }
}
