/* ==========================================================================
   Everglen : Legacy of Stone — site officiel
   Charte : fantasy classique ornée — cuir sombre, bronze, or, bordeaux.
   ========================================================================== */

:root {
  --cuir: #0c0a08;
  --cuir-2: #14100c;
  --panneau-haut: #211a12;
  --panneau-bas: #15100b;
  --bronze: #6b5230;
  --bronze-2: #5a4526;
  --or: #d9b86c;
  --or-vieux: #9c7c3c;
  --or-pale: #f0dca4;
  --bordeaux: #6e1d1a;
  --bordeaux-2: #3f100e;
  --parchemin: #ead9b0;
  --encre: #2a1d10;
  --texte: #d8ccb4;
  --texte-doux: #a8987c;
  --rune: #8fd0ff;
  --rune-fort: #5fb6ff;

  --titre: "Cinzel", "Trajan Pro", Georgia, serif;
  --corps: "Spectral", Georgia, "Times New Roman", serif;

  --largeur: 1180px;
  --ombre: 0 18px 40px rgba(0, 0, 0, .55);

  /* Coins en équerre cloutés (or) */
  --coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cdefs%3E%3CradialGradient id='c' cx='.35' cy='.35' r='.7'%3E%3Cstop offset='0' stop-color='%23fff3c4'/%3E%3Cstop offset='.45' stop-color='%23d9b86c'/%3E%3Cstop offset='1' stop-color='%235a4526'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M1.5 32.5V1.5h31' fill='none' stroke='%23d9b86c' stroke-width='2.2'/%3E%3Cpath d='M6.5 26V6.5H26' fill='none' stroke='%239c7c3c' stroke-width='1.2'/%3E%3Cpath d='M1.5 12.5h5M12.5 1.5v5' stroke='%23d9b86c' stroke-width='1.4'/%3E%3Ccircle cx='6.5' cy='6.5' r='3.6' fill='url(%23c)' stroke='%233a2a14' stroke-width='.8'/%3E%3C/svg%3E");
  /* Grain de cuir */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--cuir);
  background-image: var(--grain), radial-gradient(ellipse at 50% 0%, #1c150e 0%, var(--cuir) 60%);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--or); text-decoration-color: rgba(217, 184, 108, .4); text-underline-offset: 3px; }
a:hover { color: var(--or-pale); }
p { margin: 0 0 1em; }
strong { color: #efe2c4; font-weight: 600; }
::selection { background: var(--bordeaux); color: #fff; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--parchemin); color: var(--encre); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--or); letter-spacing: .02em; }
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  background: linear-gradient(180deg, #fff1c8 0%, var(--or) 45%, #a7843f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
}
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; color: var(--or-vieux); }

.surtitre {
  display: inline-block; font-family: var(--titre); font-size: .8rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--or-vieux); margin-bottom: .6rem;
}
.chapeau { font-size: 1.22rem; color: var(--texte); max-width: 760px; }
.centre { text-align: center; }
.centre .chapeau { margin-inline: auto; }
.citation { font-style: italic; color: var(--or-pale); }

/* Séparateur orné */
.orne {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 1.1rem auto 1.6rem; max-width: 420px; color: var(--or);
}
.orne::before, .orne::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--or) 70%, var(--or)); }
.orne::after { transform: scaleX(-1); }
.orne span { width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid var(--or); box-shadow: 0 0 0 3px var(--cuir), 0 0 0 4px var(--bronze); }
.orne.gauche { margin-left: 0; }

/* ---------- Composants de la charte ---------- */

/* Panneau à double liseré doré + coins cloutés */
.panneau {
  position: relative;
  background: linear-gradient(180deg, var(--panneau-haut), var(--panneau-bas));
  border: 1px solid var(--bronze);
  box-shadow:
    inset 0 0 0 4px var(--panneau-bas),
    inset 0 0 0 5px rgba(217, 184, 108, .5),
    inset 0 0 40px rgba(0, 0, 0, .45),
    var(--ombre);
  padding: clamp(22px, 3vw, 34px);
}
.panneau::before {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background:
    var(--coin) top left / 30px no-repeat;
}
.panneau::after {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background: var(--coin) top left / 30px no-repeat;
  transform: scale(-1, -1);
}
.panneau > .coins { position: absolute; inset: -3px; pointer-events: none; }
.panneau > .coins::before, .panneau > .coins::after {
  content: ""; position: absolute; width: 30px; height: 30px; background: var(--coin) center / 30px no-repeat;
}
.panneau > .coins::before { top: 0; right: 0; transform: scaleX(-1); }
.panneau > .coins::after { bottom: 0; left: 0; transform: scaleY(-1); }

/* Bannière bordeaux à pointes */
.banniere {
  --pointe: 16px;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .5em calc(var(--pointe) + 1.1em);
  font-family: var(--titre); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or-pale);
  background: linear-gradient(180deg, var(--bordeaux), var(--bordeaux-2));
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--pointe)) 50%, 100% 100%, 0 100%, var(--pointe) 50%);
  box-shadow: inset 0 2px 0 rgba(255, 220, 160, .18), inset 0 -2px 0 rgba(0, 0, 0, .4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  position: relative;
}
.banniere::before {
  content: ""; position: absolute; inset: 4px 0; pointer-events: none;
  border-block: 1px solid rgba(217, 184, 108, .55);
}

/* Boutons en relief */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--titre); font-weight: 600; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #2a1a08; padding: .95em 1.7em; border: 1px solid #3a2a12; cursor: pointer;
  background: linear-gradient(180deg, #f3dc9c 0%, #d9b86c 38%, #a98441 70%, #7c5d2b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 225, .85), inset 0 -2px 0 rgba(60, 38, 10, .6), 0 0 0 3px #1a130b, 0 0 0 4px var(--bronze), 0 10px 20px rgba(0, 0, 0, .5);
  text-shadow: 0 1px 0 rgba(255, 240, 200, .6);
  transition: transform .15s, filter .2s;
}
.btn:hover { color: #1a0f03; filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(60, 38, 10, .7), 0 0 0 3px #1a130b, 0 0 0 4px var(--bronze); }
.btn.rouge {
  color: var(--or-pale); border-color: #250806; text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  background: linear-gradient(180deg, #8c2a25 0%, var(--bordeaux) 45%, var(--bordeaux-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 190, 160, .35), inset 0 -2px 0 rgba(0, 0, 0, .5), 0 0 0 3px #1a130b, 0 0 0 4px var(--bronze), 0 10px 20px rgba(0, 0, 0, .5);
}
.btn.rouge:hover { color: #fff3d2; }

/* Fiche parchemin */
.parchemin {
  position: relative; color: var(--encre);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255, 250, 230, .55), transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(150, 110, 50, .28), transparent 50%),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(120, 80, 30, .35) 100%),
    var(--parchemin);
  box-shadow: 0 0 0 1px #8a6a3a, 0 0 0 5px #1a130b, 0 0 0 6px var(--bronze), var(--ombre);
  padding: clamp(22px, 3vw, 34px);
}
.parchemin h3, .parchemin h4 { color: #5a1a14; -webkit-text-fill-color: currentColor; background: none; filter: none; }
.parchemin strong { color: #3a1a0c; }
.parchemin a { color: #6e1d1a; }

/* Cadre d'image (bronze + liseré or) */
.cadre {
  position: relative; margin: 0; background: #000;
  box-shadow: 0 0 0 1px #000, 0 0 0 4px var(--bronze-2), 0 0 0 5px rgba(217, 184, 108, .6), var(--ombre);
  overflow: hidden;
}
.cadre img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cadre figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 10px;
  background: linear-gradient(transparent, rgba(8, 6, 4, .9));
  font-family: var(--titre); font-size: .85rem; letter-spacing: .08em; color: var(--or-pale);
}
.cadre figcaption small { display: block; font-family: var(--corps); font-size: .85rem; letter-spacing: 0; color: var(--texte-doux); font-style: italic; }
a.cadre:hover img, button.cadre:hover img { transform: scale(1.045); }
button.cadre { padding: 0; border: 0; cursor: zoom-in; width: 100%; display: block; font: inherit; text-align: left; }

/* Apparitions */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 16px 0;
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(33, 26, 18, .97), rgba(21, 16, 11, .97));
  box-shadow: 0 1px 0 var(--bronze), 0 2px 0 rgba(217, 184, 108, .25), 0 10px 30px rgba(0, 0, 0, .6);
  padding: 8px 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.marque span { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; letter-spacing: .18em; color: var(--or); }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px; text-decoration: none; font-family: var(--titre); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--texte); position: relative;
}
.menu a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px; background: var(--or); transition: left .3s, right .3s; }
.menu a:hover, .menu a.active { color: var(--or-pale); }
.menu a:hover::after, .menu a.active::after { left: 12px; right: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--bronze); width: 46px; height: 42px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--or); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate; padding: 110px 16px 90px;
}
.hero-fond { position: absolute; inset: -4%; z-index: -3; }
.hero-fond img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; animation: kenburns 38s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(12, 10, 8, .45), rgba(12, 10, 8, .1) 70%, rgba(12, 10, 8, .55) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, .7) 0%, rgba(12, 10, 8, 0) 22%, rgba(12, 10, 8, .1) 60%, var(--cuir) 100%);
}
#braises { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-contenu { position: relative; max-width: 760px; }
.hero-cercle {
  position: absolute; left: 50%; top: 40%; width: min(720px, 120vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1;
  opacity: .22; filter: drop-shadow(0 0 12px var(--rune-fort)); animation: tourne 160s linear infinite; pointer-events: none;
}
@keyframes tourne { to { rotate: 360deg; } }
.hero-logo { width: min(460px, 82vw); margin: 0 auto -6px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .8)); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.devise {
  font-family: var(--titre); font-size: clamp(1.15rem, 2.6vw, 1.65rem); letter-spacing: .06em; color: var(--or-pale);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9); margin: 18px 0 20px;
}
.hero .banniere { margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.defiler {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0; color: var(--or); text-decoration: none;
  font-family: var(--titre); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.defiler::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--or), transparent); animation: goutte 2.2s ease-in-out infinite; }
@keyframes goutte { 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; } }

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(60px, 8vw, 100px) 0; }
.section-titre { margin-bottom: clamp(34px, 5vw, 56px); }
.bande { background: linear-gradient(180deg, transparent, rgba(33, 26, 18, .55) 12%, rgba(33, 26, 18, .55) 88%, transparent); }

/* Frise des blasons sous le hero */
.frise { padding: 10px 0 20px; position: relative; z-index: 2; }
.frise ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; gap: clamp(18px, 6vw, 80px); }
.frise a { display: block; text-align: center; text-decoration: none; }
.frise img { width: clamp(84px, 13vw, 132px); margin: 0 auto 6px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .7)); transition: transform .4s, filter .4s; }
.frise a:hover img { transform: translateY(-6px) scale(1.04); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .8)) drop-shadow(0 0 14px rgba(217, 184, 108, .35)); }
.frise span { font-family: var(--titre); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); }

/* Le jeu : piliers */
.jeu-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); align-items: center; }
.jeu-image { aspect-ratio: 16 / 10; }
.piliers { list-style: none; padding: 0; margin: clamp(40px, 6vw, 70px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pilier { text-align: center; padding: 26px 14px 22px; }
.pilier svg { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--or); }
.pilier h3 { font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35em; }
.pilier p { font-size: .98rem; color: var(--texte-doux); margin: 0; line-height: 1.55; }

/* Histoire : chronique */
.histoire { overflow: hidden; }
.histoire-cercle { position: absolute; right: -220px; top: 50%; width: 640px; translate: 0 -50%; opacity: .12; filter: drop-shadow(0 0 10px var(--rune-fort)); animation: tourne 220s linear infinite reverse; pointer-events: none; }
.chronique { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.chronique::before { content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 2px; background: linear-gradient(90deg, transparent, var(--or-vieux), var(--or), var(--or-vieux), transparent); }
.chronique li { position: relative; text-align: center; }
.chronique .sceau {
  width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: var(--or-pale);
  background: radial-gradient(circle at 35% 30%, #9a3a31, var(--bordeaux) 55%, var(--bordeaux-2));
  border-radius: 50%; box-shadow: 0 0 0 3px #1a130b, 0 0 0 4px var(--or), 0 8px 18px rgba(0, 0, 0, .6);
}
.chronique .ere { font-family: var(--titre); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or-vieux); display: block; margin-bottom: .3em; }
.chronique h3 { font-size: 1.15rem; }
.chronique p { font-size: 1rem; color: var(--texte-doux); }
.monde-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.monde-duo .panneau h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.monde-duo .panneau h3 small { font-family: var(--corps); font-style: italic; font-size: 1rem; color: var(--texte-doux); letter-spacing: 0; }

/* Les Anciens & la Gangrène */
.anciens-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 60px); align-items: start; }
.pierre-runique { position: relative; display: grid; place-items: center; padding: 20px 0; }
.pierre-runique .halo { position: absolute; width: 85%; aspect-ratio: 1; opacity: .35; filter: drop-shadow(0 0 16px var(--rune-fort)); animation: tourne 120s linear infinite; }
.pierre-runique .cadre { width: min(360px, 80%); aspect-ratio: 896 / 1200; }
.listes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin: 1.2rem 0; }
.listes ul, .puces { margin: 0; padding: 0; list-style: none; }
.puces li { position: relative; padding-left: 22px; margin-bottom: .35em; }
.puces li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--or); box-shadow: 0 0 0 2px rgba(217, 184, 108, .2); }
.rune-texte { color: var(--rune); text-shadow: 0 0 12px rgba(95, 182, 255, .65); }

.gangrene { margin-top: clamp(60px, 8vw, 100px); }
.familles { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.familles li { text-align: center; padding: 18px 12px; border: 1px solid var(--bronze-2); background: linear-gradient(180deg, rgba(33, 26, 18, .8), rgba(21, 16, 11, .8)); position: relative; }
.familles li::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 22px rgba(95, 182, 255, .08); pointer-events: none; }
.familles strong { display: block; font-family: var(--titre); color: var(--or); font-weight: 600; letter-spacing: .06em; margin-bottom: 4px; }
.familles span { font-size: .93rem; color: var(--texte-doux); line-height: 1.45; display: block; }
.note { font-size: .9rem; font-style: italic; color: var(--texte-doux); }
.bestiaire { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.bestiaire .cadre { aspect-ratio: 16 / 8; }
.creatures { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.creatures li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; border-left: 3px solid var(--bordeaux); background: linear-gradient(90deg, rgba(110, 29, 26, .22), transparent); }
.niveau {
  font-family: var(--titre); font-weight: 700; font-size: .8rem; color: var(--or-pale); text-align: center; line-height: 1.1;
  width: 50px; padding: 8px 0; background: linear-gradient(180deg, var(--bordeaux), var(--bordeaux-2)); box-shadow: 0 0 0 1px var(--or-vieux);
}
.niveau b { display: block; font-size: 1.25rem; }
.creatures h3 { font-size: 1.1rem; margin-bottom: .2em; }
.creatures p { margin: 0; font-size: 1rem; color: var(--texte-doux); }

/* ---------- Peuples ---------- */
.onglets { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.onglet {
  display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 10px 22px 10px 12px;
  font-family: var(--titre); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte);
  background: linear-gradient(180deg, var(--panneau-haut), var(--panneau-bas)); border: 1px solid var(--bronze);
  box-shadow: inset 0 0 0 3px var(--panneau-bas), inset 0 0 0 4px rgba(217, 184, 108, .25);
  transition: color .2s, background .3s;
}
.onglet img { width: 46px; height: 46px; object-fit: contain; filter: grayscale(.6) brightness(.8); transition: filter .3s; }
.onglet:hover { color: var(--or-pale); }
.onglet:hover img { filter: none; }
.onglet[aria-selected="true"] {
  color: var(--or-pale); background: linear-gradient(180deg, var(--bordeaux), var(--bordeaux-2));
  box-shadow: inset 0 0 0 3px var(--bordeaux-2), inset 0 0 0 4px rgba(217, 184, 108, .7), 0 8px 20px rgba(0, 0, 0, .5);
}
.onglet[aria-selected="true"] img { filter: drop-shadow(0 0 8px rgba(217, 184, 108, .5)); }

.peuple { animation: apparait .6s ease; }
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.peuple-banniere { position: relative; aspect-ratio: 21 / 8; margin-bottom: 0; }
.peuple-banniere > img { object-position: center 35%; }
.peuple-banniere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 8, .92) 0%, rgba(12, 10, 8, .55) 42%, transparent 70%); }
.peuple-tete { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); padding: clamp(16px, 4vw, 48px); }
.peuple-tete img { width: clamp(110px, 17vw, 210px); height: auto; object-fit: contain; flex: none; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .8)); }
.peuple-tete h3 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 .1em; text-shadow: 0 3px 12px rgba(0, 0, 0, .9); }
.peuple-tete .citation { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 0; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.peuple-corps { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; margin-top: 26px; }
.peuple-corps .parchemin dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; }
.peuple-corps dt { font-family: var(--titre); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #6e1d1a; padding-top: .3em; }
.peuple-corps dd { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.nuancier { display: flex; gap: 6px; flex-wrap: wrap; }
.nuancier i { width: 26px; height: 26px; display: block; box-shadow: 0 0 0 1px rgba(42, 29, 16, .6), inset 0 0 0 1px rgba(255, 255, 255, .15); }
.colonies { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.colonies li { font-size: .9rem; padding: 2px 10px; border: 1px solid rgba(110, 29, 26, .45); background: rgba(255, 250, 235, .35); }
.peuple-visuels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.peuple-visuels .cadre { aspect-ratio: 1; }
.peuple-visuels .cadre.large { grid-column: span 2; aspect-ratio: 16 / 7; }
.peuple-visuels .concept img { background: #d8d6d2; }
.precision { margin-top: 26px; text-align: center; color: var(--texte-doux); font-style: italic; }

/* ---------- Classes & création ---------- */
.classe { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 50px); align-items: center; }
.classe-arme { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; }
.classe-arme img { width: 88%; transform: rotate(-18deg); filter: drop-shadow(10px 16px 14px rgba(42, 29, 16, .45)); }
.classe-arme.parchemin { padding: 0; }
.competences { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.competences li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--bronze-2); }
.competences b { font-family: var(--titre); font-size: .7rem; color: #2a1a08; width: 28px; height: 28px; display: grid; place-items: center; flex: none; background: linear-gradient(180deg, #f3dc9c, #a98441); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.competences span { font-family: var(--titre); font-size: .95rem; color: var(--or-pale); }
.a-venir { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: .4rem; }
.a-venir span { font-family: var(--titre); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); padding: 6px 14px; border: 1px dashed var(--bronze); }

.creation { margin-top: clamp(60px, 8vw, 100px); }
.etapes { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: etape; }
.etapes li {
  counter-increment: etape; text-align: center; padding: 14px 8px; font-family: var(--titre); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--or-pale);
  background: linear-gradient(180deg, var(--panneau-haut), var(--panneau-bas)); border: 1px solid var(--bronze); margin-left: -1px; position: relative;
}
.etapes li::before { content: counter(etape); display: block; font-size: 1.35rem; color: var(--or); }
.etapes li:last-child { background: linear-gradient(180deg, var(--bordeaux), var(--bordeaux-2)); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo .cadre { aspect-ratio: 16 / 9; }

/* ---------- Vardheim ---------- */
.carte-bloc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.carte { aspect-ratio: 4 / 3; }
.carte img { object-fit: contain; background: #e5d3a6; }
.lieux { width: 100%; border-collapse: collapse; font-size: .98rem; }
.lieux th { font-family: var(--titre); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #6e1d1a; text-align: left; padding: 0 8px 8px; border-bottom: 2px solid rgba(110, 29, 26, .5); }
.lieux td { padding: 7px 8px; border-bottom: 1px solid rgba(90, 60, 30, .22); vertical-align: top; line-height: 1.4; }
.lieux td:first-child { font-weight: 600; white-space: nowrap; }
.lieux td:nth-child(2) { white-space: nowrap; font-family: var(--titre); font-size: .85rem; color: #6e1d1a; }
.lieux tr.majeur td:first-child { color: #6e1d1a; }
.lieux thead { display: none; }
.lieux tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.lieux td:nth-child(3) { grid-column: span 2; padding-top: 0; color: #4a3520; }
.lieux td:first-child, .lieux td:nth-child(2) { border-bottom: 0; padding-bottom: 2px; }
.lieux td:first-child { white-space: normal; font-family: var(--titre); font-size: .95rem; letter-spacing: .03em; }
.lieux td:nth-child(2) { align-self: center; padding: 2px 10px; background: rgba(110, 29, 26, .1); border: 1px solid rgba(110, 29, 26, .35); font-size: .75rem; }
.lieux-defile { max-height: 560px; overflow: auto; scrollbar-width: thin; scrollbar-color: #8a6a3a transparent; padding-right: 6px; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.trois .panneau h3 { font-size: 1.15rem; }
.pierres { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pierres li { font-size: .92rem; padding: 3px 10px; color: var(--rune); border: 1px solid rgba(95, 182, 255, .35); background: rgba(95, 182, 255, .06); text-shadow: 0 0 10px rgba(95, 182, 255, .4); }

/* ---------- Galerie ---------- */
.galerie-filtres { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filtre {
  font-family: var(--titre); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; color: var(--texte);
  padding: 8px 18px; background: transparent; border: 1px solid var(--bronze); transition: all .2s;
}
.filtre:hover { color: var(--or-pale); border-color: var(--or-vieux); }
.filtre[aria-pressed="true"] { color: var(--or-pale); background: linear-gradient(180deg, var(--bordeaux), var(--bordeaux-2)); border-color: var(--or-vieux); }
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.galerie > * { grid-column: span 4; aspect-ratio: 16 / 9; }
.galerie > .large { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.galerie > .pleine { grid-column: 1 / -1; aspect-ratio: 1600 / 655; }
.galerie > [hidden] { display: none; }
.galerie-note { text-align: center; margin-top: 22px; }

/* ---------- Atelier (concepts) ---------- */
.atelier-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.atelier-grille .cadre { aspect-ratio: 1; }
.atelier-grille .cadre img { background: #d8d6d2; }
.atelier-grille .cadre.haut { grid-row: span 2; aspect-ratio: auto; }
.planches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.planches .cadre { aspect-ratio: 3 / 2; }
.planches .cadre img { object-fit: cover; object-position: top; }

/* ---------- Studio ---------- */
.studio { text-align: center; }
.studio .panneau { max-width: 820px; margin: 0 auto; }
.studio-logo { width: 190px; margin: -110px auto 8px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .8)); }

/* ---------- Pied de page ---------- */
.pied { padding: 50px 0 34px; border-top: 1px solid var(--bronze-2); background: linear-gradient(180deg, rgba(33, 26, 18, .6), var(--cuir)); text-align: center; }
.pied-blasons { display: flex; justify-content: center; gap: 22px; margin-bottom: 16px; }
.pied-blasons img { width: 54px; opacity: .85; }
.pied p { font-size: .92rem; color: var(--texte-doux); margin: .3em 0; }
.pied .devise-pied { font-family: var(--titre); color: var(--or); letter-spacing: .1em; font-size: 1rem; }

/* ---------- Visionneuse ---------- */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.visionneuse::backdrop { background: rgba(6, 5, 4, .92); backdrop-filter: blur(3px); }
.visionneuse figure { margin: 0; position: relative; }
.visionneuse img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; box-shadow: 0 0 0 4px var(--bronze-2), 0 0 0 5px rgba(217, 184, 108, .6), 0 30px 60px rgba(0, 0, 0, .8); background: #111; }
.visionneuse figcaption { text-align: center; margin-top: 14px; font-family: var(--titre); letter-spacing: .08em; color: var(--or-pale); }
.visionneuse figcaption small { display: block; font-family: var(--corps); letter-spacing: 0; font-style: italic; color: var(--texte-doux); }
.vis-btn {
  position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1;
  color: var(--or-pale); background: linear-gradient(180deg, var(--bordeaux), var(--bordeaux-2)); border: 1px solid var(--or-vieux); box-shadow: 0 6px 16px rgba(0, 0, 0, .6);
}
.vis-btn.prec { left: 18px; }
.vis-btn.suiv { right: 18px; }
.vis-fermer { position: fixed; top: 16px; right: 18px; translate: none; width: 44px; height: 44px; font-size: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .piliers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .familles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atelier-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carte-bloc { grid-template-columns: minmax(0, 1fr); }
  .lieux-defile { max-height: none; }
}
@media (max-width: 900px) {
  .menu {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 10px 16px 20px;
    background: linear-gradient(180deg, var(--panneau-haut), var(--panneau-bas)); border-bottom: 1px solid var(--bronze);
    transform: translateY(-120%); transition: transform .35s; box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
  }
  .menu.open { transform: none; }
  .menu a { padding: 13px 6px; border-bottom: 1px solid rgba(107, 82, 48, .35); font-size: .9rem; }
  .menu a::after { display: none; }
  .nav-toggle { display: block; }
  .nav { background: linear-gradient(180deg, rgba(33, 26, 18, .97), rgba(21, 16, 11, .97)); padding: 8px 0; box-shadow: 0 1px 0 var(--bronze); }
  .jeu-grille, .anciens-grille, .bestiaire, .peuple-corps, .classe { grid-template-columns: minmax(0, 1fr); }
  .chronique { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .chronique::before { display: none; }
  .monde-duo, .trois { grid-template-columns: minmax(0, 1fr); }
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galerie > * { grid-column: span 6; }
  .galerie > .large { grid-column: span 12; grid-row: auto; aspect-ratio: 16 / 9; }
  .planches { grid-template-columns: minmax(0, 1fr); }
  .classe-arme { aspect-ratio: 4 / 3; max-width: 460px; width: 100%; margin: 0 auto; }
  .classe-arme img { width: 60%; }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .piliers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piliers li:last-child { grid-column: span 2; }
  .familles { grid-template-columns: minmax(0, 1fr); }
  .familles li { text-align: left; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .chronique { grid-template-columns: minmax(0, 1fr); }
  .listes, .competences, .duo { grid-template-columns: minmax(0, 1fr); }
  .peuple-banniere { aspect-ratio: 4 / 3; }
  .peuple-banniere img { object-position: 65% center; }
  .peuple-banniere::after { background: linear-gradient(180deg, rgba(12, 10, 8, .3), rgba(12, 10, 8, .9) 80%); }
  .peuple-tete { flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; }
  .peuple-tete img { width: 96px; }
  .peuple-corps .parchemin dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .peuple-corps dd { margin-bottom: 10px; }
  .onglet { padding: 8px 14px 8px 8px; font-size: .8rem; gap: 8px; }
  .onglet img { width: 34px; height: 34px; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie > * { grid-column: span 12; }
  .atelier-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lieux td:first-child { white-space: normal; }
  .lieux { font-size: .92rem; }
  .vis-btn.prec { left: 6px; } .vis-btn.suiv { right: 6px; }
  .vis-btn { width: 42px; height: 42px; top: auto; bottom: 14px; translate: none; }
  .vis-fermer { top: 10px; bottom: auto; }
  .banniere { font-size: .7rem; letter-spacing: .12em; --pointe: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ==========================================================================
   V4 — mise en scène
   ========================================================================== */

/* Barre de progression de lecture */
.progression { position: absolute; inset: auto 0 0 0; height: 2px; pointer-events: none; }
.progression span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--bordeaux), var(--or), var(--or-pale)); box-shadow: 0 0 8px rgba(217, 184, 108, .6); }

/* Entrée du hero */
@keyframes surgir { from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes eclore { from { opacity: 0; scale: .7; } to { opacity: .22; scale: 1; } }
.hero-logo { animation: surgir 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero .devise { animation: surgir 1.2s .55s cubic-bezier(.2, .7, .2, 1) both; }
.hero .banniere { animation: surgir 1.1s .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .actions { animation: surgir 1.1s 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-cercle { animation: eclore 2.4s .2s ease-out both, tourne 160s linear infinite; }
.hero-contenu::before {
  content: ""; position: absolute; left: 50%; top: 36%; width: 620px; height: 620px; max-width: 110vw; translate: -50% -50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(95, 182, 255, .16), rgba(95, 182, 255, 0) 62%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Brume */
.brume { position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; pointer-events: none; overflow: hidden; }
.brume span {
  position: absolute; bottom: -10%; left: 0; width: 200%; height: 100%;
  background:
    radial-gradient(ellipse 18% 38% at 10% 70%, rgba(214, 205, 190, .14), transparent 70%),
    radial-gradient(ellipse 22% 30% at 32% 80%, rgba(214, 205, 190, .12), transparent 70%),
    radial-gradient(ellipse 16% 34% at 55% 72%, rgba(214, 205, 190, .13), transparent 70%),
    radial-gradient(ellipse 24% 32% at 78% 82%, rgba(214, 205, 190, .11), transparent 70%),
    radial-gradient(ellipse 18% 38% at 96% 70%, rgba(214, 205, 190, .14), transparent 70%);
  animation: derive 70s linear infinite;
}
.brume span:nth-child(2) { bottom: -22%; opacity: .8; animation-duration: 110s; animation-direction: reverse; }
.brume span:nth-child(3) { bottom: 6%; opacity: .5; animation-duration: 150s; }
@keyframes derive { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Bandeaux en parallaxe */
.vue {
  position: relative; min-height: clamp(340px, 48vw, 560px); overflow: hidden; isolation: isolate;
  display: grid; place-items: center; text-align: center; padding: 60px 16px;
  border-block: 1px solid var(--bronze-2);
  box-shadow: inset 0 1px 0 rgba(217, 184, 108, .25), inset 0 -1px 0 rgba(217, 184, 108, .25);
}
.vue > img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; z-index: -2; will-change: transform; }
.vue::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(12, 10, 8, .3), rgba(12, 10, 8, .66)),
    linear-gradient(180deg, var(--cuir) 0%, transparent 18%, transparent 82%, var(--cuir) 100%);
}
.vue-texte { position: relative; max-width: 880px; }
.vue-citation {
  font-family: var(--titre); font-weight: 600; font-size: clamp(1.7rem, 4.6vw, 3.4rem); line-height: 1.2; margin: .2em 0 .35em;
  color: var(--or-pale); text-shadow: 0 3px 18px rgba(0, 0, 0, .95), 0 0 30px rgba(0, 0, 0, .6);
}
.vue-suite { font-size: clamp(1.05rem, 2vw, 1.3rem); font-style: italic; color: #e9dcc0; text-shadow: 0 2px 10px rgba(0, 0, 0, .95); margin: 0; }
.vue .surtitre { color: var(--or); text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.vue-cercle { position: absolute; left: 50%; top: 50%; width: min(520px, 90vw); translate: -50% -50%; z-index: -1; opacity: .3; filter: drop-shadow(0 0 12px var(--rune-fort)); animation: tourne 140s linear infinite; pointer-events: none; }
.vue-devise .vue-citation { font-size: clamp(1.9rem, 5.2vw, 3.8rem); }

/* Chiffres clés */
.chiffres-bloc { position: relative; padding: clamp(40px, 6vw, 70px) 0; }
.chiffres { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chiffres li { text-align: center; padding: 8px 12px; position: relative; }
.chiffres li + li::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: linear-gradient(transparent, var(--or-vieux), transparent); }
.chiffres b {
  display: block; font-family: var(--titre); font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1;
  background: linear-gradient(180deg, #fff1c8, var(--or) 50%, #9c7c3c); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); font-variant-numeric: tabular-nums;
}
.chiffres span { display: block; font-family: var(--titre); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-doux); line-height: 1.4; margin-top: 4px; }

/* Séparateurs ornés */
.separateur { position: relative; height: 40px; max-width: 680px; margin: 0 auto; display: grid; place-items: center; }
.separateur::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--or-vieux) 30%, var(--or) 46%, transparent 46%, transparent 54%, var(--or) 54%, var(--or-vieux) 70%, transparent); }
.separateur span {
  width: 40px; height: 40px; position: relative;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23d9b86c' stroke-width='1.4'%3E%3Ccircle cx='20' cy='14.5' r='7'/%3E%3Ccircle cx='14.6' cy='23.5' r='7'/%3E%3Ccircle cx='25.4' cy='23.5' r='7'/%3E%3Ccircle cx='20' cy='20' r='17.5' stroke='%239c7c3c' stroke-dasharray='2 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Lettrines sur les fiches des peuples */
.peuple-corps .parchemin > p:first-child::first-letter {
  float: left; font-family: var(--titre); font-weight: 700; font-size: 3.5em; line-height: .82; margin: .08em .14em 0 0; padding: .14em .14em .1em;
  color: var(--or-pale); background: linear-gradient(180deg, var(--p1, var(--bordeaux)), var(--p2, var(--bordeaux-2)));
  box-shadow: 0 0 0 2px var(--parchemin), 0 0 0 3px var(--or-vieux); text-shadow: 0 2px 0 rgba(0, 0, 0, .5);
}

/* Couleurs propres à chaque peuple */
[data-peuple="rhenars"] { --p1: #7a1f1c; --p2: #3e0f0d; --p-aura: rgba(122, 31, 28, .35); --p-lisere: #9c7c3c; }
[data-peuple="kanuthes"] { --p1: #1f2f52; --p2: #0f1830; --p-aura: rgba(31, 47, 82, .45); --p-lisere: #b08e3e; }
[data-peuple="kervanes"] { --p1: #2b2a29; --p2: #111110; --p-aura: rgba(154, 157, 161, .22); --p-lisere: #9a9da1; }
.onglet[aria-selected="true"] {
  background: linear-gradient(180deg, var(--p1), var(--p2));
  box-shadow: inset 0 0 0 3px var(--p2), inset 0 0 0 4px var(--p-lisere), 0 8px 20px rgba(0, 0, 0, .5);
}
.peuple .peuple-banniere::after { background: linear-gradient(90deg, rgba(12, 10, 8, .94) 0%, rgba(12, 10, 8, .5) 42%, transparent 70%), linear-gradient(0deg, color-mix(in srgb, var(--p1) 45%, transparent), transparent 60%); }
.peuple .peuple-banniere { box-shadow: 0 0 0 1px #000, 0 0 0 4px var(--bronze-2), 0 0 0 5px var(--p-lisere), var(--ombre); }
.peuple .colonies li { border-color: color-mix(in srgb, var(--p1) 55%, transparent); }
.peuple .peuple-corps dt { color: var(--p1); }
[data-peuple="kervanes"] .peuple-corps dt { color: #3a3f48; }
#peuples::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; transition: background .8s;
  background: radial-gradient(ellipse 60% 45% at 50% 55%, var(--aura, transparent), transparent 70%);
}
#peuples { isolation: isolate; }
#peuples[data-actif="rhenars"] { --aura: rgba(122, 31, 28, .28); }
#peuples[data-actif="kanuthes"] { --aura: rgba(31, 47, 82, .4); }
#peuples[data-actif="kervanes"] { --aura: rgba(154, 157, 161, .16); }
.peuple-tete img { animation: blason 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes blason { from { opacity: 0; transform: translateY(14px) scale(.9) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* Survol des images : liseré lumineux et loupe */
button.cadre::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
  background: rgba(12, 10, 8, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0dca4' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 0 0 1px var(--or-vieux);
}
button.cadre:hover::after, button.cadre:focus-visible::after { opacity: 1; transform: none; }
button.cadre:hover, a.cadre:hover { box-shadow: 0 0 0 1px #000, 0 0 0 4px var(--bronze), 0 0 0 5px var(--or), 0 0 28px rgba(217, 184, 108, .25), var(--ombre); }
.cadre { transition: box-shadow .35s; }

/* Studio */
.studio { overflow: hidden; }
.studio::before { content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; translate: -50% -42%; background: url("images/identite/cercle-runique.webp") center / contain no-repeat; opacity: .08; pointer-events: none; animation: tourne 240s linear infinite; }

/* Pied de page */
.pied { text-align: left; padding: 60px 0 0; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 44px; }
.pied-marque img { width: 150px; margin-bottom: 10px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.pied .devise-pied { font-size: 1.05rem; line-height: 1.5; }
.pied h3 { font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or-vieux); margin-bottom: 1em; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied-liens li { margin-bottom: .45em; }
.pied-liens a, .pied-peuples a { color: var(--texte); text-decoration: none; transition: color .2s; }
.pied-liens a:hover, .pied-peuples a:hover { color: var(--or-pale); }
.pied-peuples li { margin-bottom: 10px; }
.pied-peuples a { display: flex; align-items: center; gap: 12px; font-family: var(--titre); letter-spacing: .1em; }
.pied-peuples img { width: 44px; height: 44px; object-fit: contain; }
.pied-bas { border-top: 1px solid rgba(107, 82, 48, .45); padding: 18px 0 22px; }
.pied-bas .wrap { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; }
.pied-bas p { margin: 0; font-size: .88rem; }

/* Bouton « remonter » */
.remonter {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: var(--or-pale); background: linear-gradient(180deg, var(--bordeaux), var(--bordeaux-2)); box-shadow: 0 0 0 1px var(--or-vieux), 0 8px 18px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.remonter svg { width: 22px; height: 22px; }
.remonter.visible { opacity: 1; transform: none; pointer-events: auto; }
.remonter:hover { color: #fff3d2; }

/* Visionneuse : zoom */
.vis-cadre { overflow: hidden; max-width: 94vw; max-height: 80vh; margin: 0 auto; box-shadow: 0 0 0 4px var(--bronze-2), 0 0 0 5px rgba(217, 184, 108, .6), 0 30px 60px rgba(0, 0, 0, .8); background: #111; touch-action: none; }
.visionneuse .vis-cadre img { box-shadow: none; max-height: 80vh; transform-origin: 0 0; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.vis-cadre.zoome img { cursor: grab; }
.vis-cadre.glisse img { cursor: grabbing; }
.vis-aide { display: block; font-family: var(--corps); font-size: .8rem; letter-spacing: 0; color: var(--texte-doux); opacity: .7; margin-top: 4px; }
.vis-zoom { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 6px; }
.vis-zoom button { width: 40px; height: 40px; cursor: pointer; font-size: 1.2rem; color: var(--or-pale); background: linear-gradient(180deg, var(--panneau-haut), var(--panneau-bas)); border: 1px solid var(--or-vieux); }
.vis-zoom button:hover { background: linear-gradient(180deg, var(--bordeaux), var(--bordeaux-2)); }

@media (max-width: 900px) {
  .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
  .chiffres li:nth-child(4)::before { display: none; }
  .pied-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied-marque { grid-column: span 2; display: flex; align-items: center; gap: 18px; }
  .pied-marque img { width: 100px; margin: 0; }
}
@media (max-width: 600px) {
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres li:nth-child(odd)::before { display: none; }
  .chiffres li:nth-child(4)::before { display: block; }
  .vue { min-height: 380px; }
  .pied-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pied-marque { grid-column: auto; }
  .vis-aide { display: none; }
  .remonter { right: 12px; bottom: 12px; width: 44px; height: 44px; }
  .hero-contenu::before { width: 420px; height: 420px; }
  .peuple .peuple-banniere::after { background: linear-gradient(180deg, rgba(12, 10, 8, .25), rgba(12, 10, 8, .92) 80%), linear-gradient(0deg, color-mix(in srgb, var(--p1) 45%, transparent), transparent 60%); }
}

/* ==========================================================================
   Classes : quatre classes, deux voies
   ========================================================================== */
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
[data-classe="guerrier"] { --k1: #8c2a25; --k2: #3f100e; --k-aura: rgba(140, 42, 37, .3); }
[data-classe="mage"] { --k1: #26407a; --k2: #0f1830; --k-aura: rgba(79, 169, 240, .22); }
[data-classe="barde"] { --k1: #5e2a5a; --k2: #24102a; --k-aura: rgba(150, 70, 140, .25); }
[data-classe="rodeur"] { --k1: #35583f; --k2: #132016; --k-aura: rgba(70, 120, 80, .28); }
#classes { isolation: isolate; }
#classes::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: background .8s;
  background: radial-gradient(ellipse 55% 40% at 50% 46%, var(--aura-c, transparent), transparent 70%);
}
#classes[data-actif="guerrier"] { --aura-c: rgba(140, 42, 37, .26); }
#classes[data-actif="mage"] { --aura-c: rgba(79, 169, 240, .16); }
#classes[data-actif="barde"] { --aura-c: rgba(150, 70, 140, .2); }
#classes[data-actif="rodeur"] { --aura-c: rgba(70, 120, 80, .24); }

.classes-choix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 880px; margin: 0 auto 40px; }
.classe-onglet {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 12px; cursor: pointer;
  background: none; border: 0; color: var(--texte); font: inherit; position: relative;
}
.classe-onglet img { width: min(132px, 100%); height: auto; aspect-ratio: 1; filter: grayscale(.65) brightness(.65) drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); transition: filter .4s, transform .4s; }
.classe-onglet span { font-family: var(--titre); font-weight: 600; font-size: 1.02rem; letter-spacing: .16em; text-transform: uppercase; transition: color .3s; }
.classe-onglet small { font-family: var(--titre); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--texte-doux); }
.classe-onglet:hover img { filter: grayscale(.2) brightness(.9) drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); transform: translateY(-3px); }
.classe-onglet[aria-selected="true"] img { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .75)) drop-shadow(0 0 18px rgba(217, 184, 108, .35)); transform: translateY(-4px) scale(1.04); }
.classe-onglet[aria-selected="true"] span { color: var(--or-pale); }
.classe-onglet[aria-selected="true"]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--or), transparent); }
.classe-onglet:first-child small { color: #9fd99a; }

.classe-fiche { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(26px, 4vw, 56px); align-items: center; animation: apparait .6s ease; }
.classe-fiche[hidden] { display: none; }
.classe-visuel { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.classe-halo { position: absolute; width: 100%; opacity: .25; filter: drop-shadow(0 0 14px var(--rune-fort)); animation: tourne 140s linear infinite; pointer-events: none; }
.classe-visuel::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, var(--k-aura), transparent 70%); }
.classe-embleme { position: relative; width: 78%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .75)); animation: blason 1s cubic-bezier(.2, .7, .2, 1) both; }
.classe-portrait { display: none; }
.classe-visuel.a-portrait { aspect-ratio: 3 / 4; }
.classe-visuel.a-portrait .classe-halo { display: none; }
.classe-visuel.a-portrait .classe-portrait {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  box-shadow: 0 0 0 1px #000, 0 0 0 4px var(--bronze-2), 0 0 0 5px rgba(217, 184, 108, .6), var(--ombre);
}
.classe-visuel.a-portrait .classe-embleme { position: absolute; width: 34%; left: -6%; bottom: -6%; z-index: 1; }

.classe-texte h3 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: .2em 0 .15em; }
.classe-texte > p { font-size: 1.12rem; }
.classe-texte .citation { font-size: 1.2rem; margin-bottom: .6em; }
.statut {
  display: inline-block; font-family: var(--titre); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 12px; color: var(--texte-doux); border: 1px dashed var(--bronze);
}
.statut.jouable { color: #c9efc4; border: 1px solid rgba(120, 190, 110, .55); background: rgba(60, 110, 50, .2); }
.voies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.2rem 0 1.4rem; }
.voie {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--k1) 38%, var(--panneau-haut)), var(--panneau-bas));
  border: 1px solid var(--bronze); box-shadow: inset 0 0 0 3px var(--panneau-bas), inset 0 0 0 4px rgba(217, 184, 108, .28);
}
.voie-icone { width: 40px; height: 40px; color: var(--or); padding: 7px; border-radius: 50%; background: radial-gradient(circle, var(--k1), var(--k2)); box-shadow: 0 0 0 1px var(--or-vieux), 0 4px 10px rgba(0, 0, 0, .5); }
.voie .role { display: inline-block; font-family: var(--titre); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--or-pale); padding: 2px 8px; background: rgba(0, 0, 0, .35); border: 1px solid var(--or-vieux); }
.voie h4 { font-size: 1.1rem; letter-spacing: .06em; text-transform: none; color: var(--or-pale); margin: .35em 0 .2em; }
.voie p { margin: 0; font-size: .98rem; color: var(--texte); line-height: 1.5; }
.sous-titre { margin-top: .4rem; }
.armes { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.arme {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; cursor: zoom-in; font: inherit; color: var(--encre);
  background: radial-gradient(ellipse at 20% 20%, rgba(255, 250, 230, .5), transparent 60%), var(--parchemin);
  border: 0; box-shadow: 0 0 0 1px #8a6a3a, 0 0 0 4px #1a130b, 0 0 0 5px var(--bronze); transition: transform .2s;
}
.arme:hover { transform: translateY(-2px); }
.arme img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(2px 4px 4px rgba(42, 29, 16, .4)); }
.arme img.arme-capture { object-fit: cover; filter: none; }
.arme span { font-family: var(--titre); font-weight: 600; font-size: .85rem; letter-spacing: .06em; color: #5a1a14; }

@media (max-width: 900px) {
  .classe-fiche { grid-template-columns: minmax(0, 1fr); }
  .classe-visuel { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .classes-choix { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .classe-onglet span { font-size: .72rem; letter-spacing: .08em; }
  .classe-onglet small { font-size: .56rem; letter-spacing: .08em; }
  .voies { grid-template-columns: minmax(0, 1fr); }
  .classe-visuel { max-width: 300px; }
}

.apercu *, .apercu *::before, .apercu *::after { animation: none !important; transition: none !important; }
.apercu .reveal { opacity: 1; transform: none; }
.apercu .hero { min-height: 900px; }
.apercu .nav { position: absolute; }
