/* ============================================================================
   Realfus — site vitrine, construit comme les sites de hack'n'slash (Path of Exile 2 étudié le 05/12) :
   barre de compte en haut, menu déroulant encadré, titres en capitales gravées or pâle, texte « de livre »,
   boutons et cadres en images peintes découpées en tranches (border-image), sections pleine largeur.
   Polices : Cinzel (titres), Vollkorn (texte). Kit d'interface : img/ui/ (bannière rouge, plaque sombre, cadre,
   linteau, filet, frise, logo). Les images de l'essai précédent (style BD encré) restent dans img/ui/*-bd.webp.
   ============================================================================ */
@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Vollkorn'; src: url('../fonts/vollkorn.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vollkorn'; src: url('../fonts/vollkorn-italique.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --suie: #080605;
  --nuit: #0d0a08;
  --charbon: #15110e;
  --sang: #5d0d10;
  --rouge: #a3191b;
  --braise: #e2562a;
  --or: #e6d3a0;
  --or-sombre: #8f7340;
  --os: #d9d0bf;
  --cendre: #a79e90;
  --trait: rgba(201, 172, 104, .28);
  --titre: 'Cinzel', 'Times New Roman', serif;
  --texte: 'Vollkorn', Georgia, 'Times New Roman', serif;
  --marge: clamp(18px, 5vw, 72px);
  --large: 1240px;
  --dore: linear-gradient(180deg, #a98845 0%, #e9d6a2 58%, #fff6dc 100%);
  --chaleur: .5;               /* 0..1, piloté par la jauge des Tourments */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--suie); color: var(--os); font: 400 clamp(17px, 1vw + 12px, 20px)/1.6 var(--texte); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--rouge); color: #fff; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.saut { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--or); color: #000; padding: 8px 14px; }
.saut:focus { left: 8px; }
.cadre { width: min(100% - 2 * var(--marge), var(--large)); margin-inline: auto; position: relative; }

/* ------------------------------------------------------------------ titres */
/* nom de section, posé dans le linteau sculpté */
.sur-titre { width: min(100%, 620px); aspect-ratio: 1344 / 274; margin: 0 auto clamp(14px, 2vw, 26px); position: relative; background: url('../img/ui/linteau.webp') center / contain no-repeat; font: 700 clamp(13px, 1.5vw + 8px, 22px)/1 var(--titre); letter-spacing: .2em; text-transform: uppercase; }
/* Le nom est placé par rapport au LINTEAU lui-même (67,5 % de sa hauteur : milieu de la bande sombre, sous le menton
   du crâne). Avant : un padding en % — or un % de padding se calcule sur la largeur du PARENT, pas du linteau : sur
   un grand écran le nom descendait jusqu'au filet doré du bas (capture du propriétaire, 05/12). */
.sur-titre > span { position: absolute; left: 50%; top: 67.5%; transform: translate(-50%, -50%); white-space: nowrap; padding: .34em 0; /* (marge égale haut et bas : le dégradé couvre l'accent des capitales — É, È — sans déplacer le centre) */ background: var(--dore); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 1px #000); }
.titre { font: 600 clamp(30px, 4.6vw, 66px)/1.08 var(--titre); letter-spacing: .01em; text-wrap: balance; text-align: center; max-width: 22ch; margin-inline: auto; background: var(--dore); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .9)); }
.titre em { background: linear-gradient(180deg, #7d1215 0%, #c8281f 60%, #ee5a35 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapo { margin: 20px auto 0; max-width: 60ch; text-align: center; color: var(--cendre); font-size: 1.06em; text-wrap: pretty; }
h3 { font: 600 clamp(20px, 1.2vw + 13px, 27px)/1.2 var(--titre); letter-spacing: .03em; color: var(--or); }

/* ------------------------------------------------------------------ boutons (images peintes en 3 tranches) */
.btn { --h: 58px; --bord: calc(var(--h) * .74); display: inline-flex; align-items: center; justify-content: center; height: var(--h); min-width: calc(var(--h) * 3.1); padding: 0 2px; font: 700 calc(var(--h) * .3)/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; color: #f3e6c4; text-shadow: 0 2px 2px #000, 0 0 12px rgba(0, 0, 0, .6); white-space: nowrap; border-style: solid; border-color: transparent; border-width: 0 var(--bord); transition: transform .25s cubic-bezier(.2, .8, .2, 1), filter .25s; }
.btn-grand { --h: 76px; }
.btn-petit { --h: 46px; }
.btn-plaque { border-image: url('../img/ui/btn-rouge.webp') 0 250 fill / 0 var(--bord) / 0 stretch; }
.btn-sobre { --bord: calc(var(--h) * .62); min-width: calc(var(--h) * 2.9); color: var(--or); border-image: url('../img/ui/btn-sombre.webp') 0 180 fill / 0 var(--bord) / 0 stretch; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.28) drop-shadow(0 0 14px rgba(200, 40, 30, .55)); }
.btn-sobre:hover { filter: brightness(1.3) drop-shadow(0 0 12px rgba(230, 211, 160, .35)); }
.btn:active { transform: translateY(1px); filter: brightness(.9); }

/* cadre de panneau (9 tranches) */
.pilier, .carte, .role, .egide, .jauge, .camp, .ecran, .installer, .menu-panneau { border: 22px solid transparent; border-image: url('../img/ui/cadre.webp') 80 fill / 22px / 0 stretch; }

/* ------------------------------------------------------------------ barre du haut */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 70px; padding: env(safe-area-inset-top) var(--marge) 0; display: flex; align-items: center; gap: 18px; background: linear-gradient(180deg, rgba(8, 6, 5, .5), rgba(8, 6, 5, .86)), url('../img/ui/frise.webp') left center / auto 150% repeat-x #0b0806; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--trait), 0 8px 24px rgba(0, 0, 0, .7); }
.nav-logo { flex: none; }
.nav-logo img { height: 40px; max-width: none; width: auto; filter: drop-shadow(0 2px 4px #000); }
.nav-liens { display: flex; gap: clamp(12px, 2vw, 30px); margin-left: clamp(8px, 2vw, 34px); font: 600 15px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; }
.nav-liens > a:not(.btn) { padding: 12px 0; position: relative; color: #a8946a; transition: color .2s; }
.nav-liens > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: linear-gradient(90deg, transparent, var(--or), transparent); opacity: 0; transition: opacity .25s; }
.nav-liens > a:not(.btn):hover, .nav-liens > a.ici { color: #fff3cf; text-shadow: 0 0 14px rgba(230, 211, 160, .5); }
.nav-liens > a:not(.btn):hover::after, .nav-liens > a.ici::after { opacity: 1; }
.menu-seul { display: none; }
.nav-droite { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-compte { font: 400 17px/1 var(--texte); color: #a8946a; padding: 6px 0; transition: color .2s; white-space: nowrap; }
.nav-compte + .nav-compte { padding-left: 16px; border-left: 1px solid var(--or-sombre); }
.nav-compte:hover { color: #fff3cf; }
.statut { display: inline-flex; align-items: center; gap: 8px; font: 400 15px/1 var(--texte); font-style: italic; color: var(--cendre); white-space: nowrap; }
.statut i { width: 8px; height: 8px; border-radius: 50%; background: #5fd36a; box-shadow: 0 0 0 0 rgba(95, 211, 106, .7); animation: pouls 2.2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(95, 211, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 106, 0); } }
.burger { display: none; flex: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.burger i { position: absolute; left: 9px; right: 9px; height: 3px; background: linear-gradient(180deg, #f1dfa8, #8f7340); box-shadow: 0 1px 0 #000; transition: transform .3s, opacity .2s, top .3s; }
.burger i:nth-child(1) { top: 12px; } .burger i:nth-child(2) { top: 20px; } .burger i:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ accueil */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; }
.hero-fond { position: absolute; inset: 0; z-index: -1; }
.hero-fond picture, .hero-carte, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-carte { animation: derive 60s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes derive { from { transform: scale(1.12) translate3d(-2.5%, -1%, 0); } to { transform: scale(1.22) translate3d(2.5%, 1.5%, 0); } }
.hero-video { opacity: 0; transition: opacity 1.2s; }
.hero-video.pret { opacity: 1; }
.hero-voile { position: absolute; inset: 0; background:
  radial-gradient(70% 60% at 50% 46%, rgba(8, 6, 5, .1) 0%, rgba(8, 6, 5, .62) 70%, rgba(8, 6, 5, .94) 100%),
  linear-gradient(180deg, rgba(8, 6, 5, .85) 0%, rgba(8, 6, 5, .2) 26%, rgba(40, 6, 4, .35) 60%, var(--suie) 100%); }
.hero-voile::after { content: ''; position: absolute; inset: 0; background: rgba(120, 16, 10, .3); mix-blend-mode: multiply; }
.braises { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-pause { position: absolute; right: var(--marge); top: 88px; z-index: 3; width: 42px; height: 42px; border: 1px solid var(--or-sombre); background: rgba(8, 6, 5, .7); display: grid; place-items: center; transition: border-color .2s; }
.hero-pause:hover { border-color: var(--or); }
.hero-pause::before { content: ''; width: 12px; height: 14px; border-inline: 4px solid var(--or); }
.hero-pause.arret::before { width: 0; height: 0; border: 0; border-left: 13px solid var(--or); border-block: 8px solid transparent; margin-left: 3px; }
.hero-contenu { position: relative; width: min(100% - 2 * var(--marge), var(--large)); margin: 0 auto; padding: 100px 0 clamp(18px, 3.5vh, 40px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .sur-titre { display: none; }
.hero-logo { width: min(clamp(300px, 58vw, 900px), 150vh); filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .8)); }
.hero-logo img { width: 100%; animation: pose 1.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pose { from { opacity: 0; transform: scale(1.08); filter: brightness(2.2) blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.accroche { font: 600 clamp(20px, 2.8vw, 40px)/1.15 var(--titre); letter-spacing: .03em; margin-top: clamp(2px, .6vw, 10px); background: var(--dore); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px #000); text-wrap: balance; }
.hero-texte { margin-top: 12px; max-width: 56ch; color: rgba(217, 208, 191, .9); text-wrap: pretty; text-shadow: 0 1px 3px #000; }
.hero-ecrans { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin-top: clamp(14px, 2.4vh, 26px); }
.hero-ecrans .btn { --h: 48px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: clamp(8px, 1.6vh, 16px); }
.hero-voir { margin-top: 10px; font: 400 17px/1 var(--texte); font-style: italic; color: #a8946a; border-bottom: 1px solid var(--or-sombre); padding-bottom: 3px; transition: color .2s; }
.hero-voir:hover { color: #fff3cf; }
.chiffres { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); width: min(100% - 2 * var(--marge), var(--large)); margin: 0 auto; border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom); }
.chiffres li { padding: clamp(12px, 2vh, 22px) 6px; text-align: center; border-left: 1px solid var(--trait); }
.chiffres li:first-child { border-left: 0; }
.chiffres b { display: block; font: 700 clamp(24px, 2.8vw, 42px)/1 var(--titre); background: var(--dore); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums tabular-nums; }
.chiffres span { display: block; margin-top: 6px; font: 400 clamp(13px, .6vw + 9px, 16px)/1.2 var(--texte); font-style: italic; color: var(--cendre); }

/* ------------------------------------------------------------------ blocs */
.bloc { position: relative; padding: clamp(84px, 11vw, 160px) 0 clamp(70px, 10vw, 150px); background-color: var(--suie); }
.bloc:nth-of-type(even) { background-color: var(--nuit); }
.bloc + .bloc::before, .final::before { content: ''; position: absolute; z-index: 2; top: 0; left: 50%; width: min(86%, 760px); aspect-ratio: 1324 / 136; transform: translate(-50%, -50%); background: url('../img/ui/ornement.webp') center / contain no-repeat; }
.apparait { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.apparait.vu { opacity: 1; transform: none; }

/* le jeu */
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 34px); margin-top: clamp(34px, 4.6vw, 64px); }
.pilier { text-align: center; padding: 8px 10px 12px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s, opacity .9s; }
.pilier:hover { transform: translateY(-5px); filter: brightness(1.15); }
.pilier .num { display: block; font: 700 30px/1 var(--titre); background: linear-gradient(180deg, #7d1215, #e2562a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pilier h3 { margin: 12px 0 10px; }
.pilier p { color: var(--cendre); font-size: .95em; }

/* vidéos du jeu */
.clips { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(30px, 4.2vw, 58px); }
.clip { position: relative; flex: 1 1 280px; background: #000; overflow: hidden; border: 1px solid #000; outline: 1px solid var(--or-sombre); outline-offset: -5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .7); transition: outline-color .3s, transform .4s cubic-bezier(.2, .8, .2, 1), opacity .9s; }
.clip:hover { outline-color: var(--or); transform: translateY(-4px); }
.clip-grand { flex-basis: 100%; }
.clip-demi { flex-basis: 40%; }
.clip-media { aspect-ratio: 16 / 9; position: relative; background: #0d0907; }
.clip-grand .clip-media { aspect-ratio: 21 / 9; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip figcaption { position: absolute; inset: auto 0 0 0; padding: 46px 20px 16px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, transparent, rgba(5, 3, 2, .95)); pointer-events: none; }
.clip figcaption b { font: 700 clamp(17px, 1vw + 11px, 24px)/1.1 var(--titre); letter-spacing: .06em; text-transform: uppercase; color: var(--or); }
.clip figcaption span { font-size: .9em; font-style: italic; color: rgba(217, 208, 191, .85); }
.clip.vide { display: none; }
.clip-monde { margin-top: clamp(28px, 4vw, 56px); margin-bottom: clamp(60px, 9vw, 130px); }

/* équipe */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 34px); margin-top: clamp(40px, 5vw, 76px); }
.role { --c: var(--or); position: relative; display: grid; grid-template-columns: 36% 1fr; align-items: end; gap: 8px; min-height: 240px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s, opacity .9s; }
.role:hover { transform: translateY(-5px); filter: brightness(1.12); }
.role > img { align-self: end; width: 100%; max-height: 260px; object-fit: contain; object-position: bottom; margin: -40px 0 -4px -6px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .8)); }
.role > div { padding: 14px 4px 14px 0; align-self: center; }
.role-garde { --c: #9fbfe0; } .role-soutien { --c: #a8d48a; } .role-assaut { --c: #e8674a; }
.role-type { font: 400 15px/1 var(--texte); font-style: italic; color: var(--c); }
.role h3 { margin: 6px 0 8px; color: var(--c); font-size: clamp(24px, 1.6vw + 14px, 34px); }
.role p { color: var(--cendre); font-size: .93em; }
.egide { margin-top: clamp(20px, 2.6vw, 38px); padding: 10px clamp(8px, 2vw, 26px); display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr; gap: 10px 36px; align-items: center; }
.egide p { color: var(--cendre); }

/* classes */
.classes { overflow-x: clip; }
.choix-classe { display: flex; justify-content: safe center; gap: clamp(6px, 1vw, 14px); margin-top: clamp(26px, 3.6vw, 48px); overflow-x: auto; padding: 10px 6px 16px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.choix-classe::-webkit-scrollbar { display: none; }
.choix-classe button { flex: 0 0 auto; width: clamp(54px, 6vw, 80px); aspect-ratio: 1; border: 0; padding: 0; background: none; border-radius: 50%; position: relative; scroll-snap-align: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s; filter: grayscale(.85) brightness(.6); }
.choix-classe button img { width: 100%; height: 100%; border-radius: 50%; }
.choix-classe button:hover { filter: none; transform: translateY(-3px); }
.choix-classe button.actif { filter: none; transform: scale(1.14); }
.choix-classe button.actif::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--or); box-shadow: 0 0 18px rgba(230, 211, 160, .5), inset 0 0 0 1px #000; }
.scene-classe { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 70px); margin-top: clamp(8px, 2vw, 26px); min-height: clamp(380px, 46vw, 640px); }
.classe-nom-fond { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font: 900 clamp(90px, 23vw, 360px)/.8 var(--titre); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(201, 172, 104, .12); white-space: nowrap; pointer-events: none; user-select: none; }
.classe-art { position: relative; height: clamp(340px, 44vw, 620px); display: flex; align-items: flex-end; justify-content: center; }
.classe-art::before { content: ''; position: absolute; inset: 10% 6% 0; background: radial-gradient(50% 50% at 50% 62%, rgba(163, 25, 27, .6), rgba(93, 13, 16, .2) 55%, transparent 72%); filter: blur(8px); }
.classe-art img { position: relative; max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .8)); transition: opacity .35s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.classe-art img.change { opacity: 0; transform: translate3d(-22px, 0, 0) scale(.97); }
.classe-fiche { position: relative; }
.classe-role { font: 400 clamp(20px, 1.6vw + 10px, 30px)/1 var(--titre); letter-spacing: .06em; color: #a8946a; }
.classe-nom { font: 700 clamp(52px, 7.4vw, 116px)/.95 var(--titre); margin-top: 4px; text-transform: uppercase; background: var(--dore); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 3px #000); }
.classe-texte { margin-top: 18px; padding: 16px 0; max-width: 46ch; color: rgba(217, 208, 191, .9); border-block: 1px solid var(--trait); }
.classe-voies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.classe-voies li { font: 400 15px/1 var(--texte); font-style: italic; padding: 8px 14px; border: 1px solid var(--or-sombre); color: var(--or); background: rgba(21, 17, 14, .8); }
.classe-genre, .onglets { display: inline-flex; margin-top: 24px; border: 1px solid var(--or-sombre); background: rgba(21, 17, 14, .9); flex-wrap: wrap; box-shadow: inset 0 0 0 1px #000; }
.classe-genre button, .onglets button { border: 0; background: none; padding: 12px 18px; font: 600 13px/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: #a8946a; transition: background .25s, color .25s; }
.classe-genre button.actif, .onglets button.actif { background: linear-gradient(180deg, #7d1215, #a3191b); color: #fff3cf; text-shadow: 0 1px 2px #000; }
.classe-genre button[disabled] { opacity: .3; cursor: default; }
.monde .onglets, .tourments .onglets { display: flex; width: fit-content; margin-inline: auto; }

/* tourments */
.bloc.tourments { background: #080403; overflow-x: clip; }
.tourments-fond, .camps-fond, .final-fond { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tourments-fond img, .camps-fond img, .final-fond img { width: 100%; height: 100%; object-fit: cover; }
.tourments-fond img { opacity: calc(.16 + var(--chaleur) * .18); filter: sepia(.5) hue-rotate(-28deg) saturate(calc(1.2 + var(--chaleur) * 1.6)) contrast(1.15); transform: scale(1.06); }
.tourments-fond::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 100%, rgba(226, 60, 20, calc(var(--chaleur) * .4)), transparent 70%), linear-gradient(180deg, #080403 0%, rgba(8, 4, 3, .35) 30%, rgba(8, 4, 3, .5) 70%, #080403 100%); }
.jauge { margin-top: clamp(30px, 4.2vw, 56px); padding: clamp(6px, 1.6vw, 22px); filter: drop-shadow(0 0 calc(var(--chaleur) * 40px) rgba(226, 60, 20, calc(var(--chaleur) * .6))); }
.jauge-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jauge-nom { font: 700 clamp(30px, 5vw, 66px)/1 var(--titre); background: linear-gradient(180deg, #f1dfa8 0%, color-mix(in srgb, #e2562a calc(var(--chaleur) * 100%), #e9d6a2) 55%, color-mix(in srgb, #8f1217 calc(var(--chaleur) * 100%), #a98845) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 2px #000); }
.jauge-avis { color: var(--cendre); font-style: italic; max-width: 44ch; text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: none; margin: 12px 0 0; cursor: grab; --p: 50%; }
input[type=range]:active { cursor: grabbing; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border: 1px solid #000; background: linear-gradient(90deg, #e9d6a2 0%, #e2562a 45%, #a3191b 100%) 0 / var(--p) 100% no-repeat, #201611; box-shadow: 0 0 0 1px var(--or-sombre), inset 0 1px 3px rgba(0, 0, 0, .8); }
input[type=range]::-moz-range-track { height: 10px; background: #201611; box-shadow: 0 0 0 1px var(--or-sombre); }
input[type=range]::-moz-range-progress { height: 10px; background: linear-gradient(90deg, #e9d6a2, #e2562a, #a3191b); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; transform: rotate(45deg); border: 1px solid #000; background: linear-gradient(135deg, #ee5a35, #7d1215); box-shadow: 0 0 0 2px var(--or), 0 0 18px rgba(226, 86, 42, .9); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; transform: rotate(45deg); border: 1px solid #000; border-radius: 0; background: linear-gradient(135deg, #ee5a35, #7d1215); box-shadow: 0 0 0 2px var(--or), 0 0 18px rgba(226, 86, 42, .9); }
.jauge-reperes { display: flex; justify-content: space-between; font: 600 12px/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: #a8946a; margin-top: 4px; }
.jauge-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; }
.jauge-stats div { padding: 14px 8px; text-align: center; border-top: 1px solid var(--trait); }
.jauge-stats dt { font: 400 15px/1.2 var(--texte); font-style: italic; color: var(--cendre); }
.jauge-stats dd { margin-top: 8px; font: 700 clamp(22px, 2.6vw, 38px)/1 var(--titre); color: #fff3cf; font-variant-numeric: lining-nums tabular-nums; }
.duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 34px); margin-top: clamp(22px, 3vw, 40px); }
.carte { padding: 8px 10px 10px; }
.carte p { margin-top: 10px; color: var(--cendre); font-size: .95em; }

/* camps */
.bloc.camps { overflow-x: clip; }
.camps-fond img { opacity: .2; filter: saturate(1.2) contrast(1.1); object-position: 50% 30%; }
.camps-fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--nuit) 0%, rgba(8, 6, 5, .55) 35%, rgba(8, 6, 5, .84) 75%, var(--nuit) 100%); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 34px); margin-top: clamp(28px, 3.6vw, 50px); }
.camp { --c: var(--or); position: relative; padding: 6px 6px 12px; text-align: center; transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .9s; }
.camp:hover { transform: translateY(-7px); }
.camp-ange { --c: #b9d8f5; } .camp-demon { --c: #e8503a; } .camp-merc { --c: #d8c592; }
.camp-ailes { height: clamp(170px, 20vw, 280px); display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--c) 45%, transparent)); }
.camp-ailes img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2, 1.2, .3, 1); }
.camp:hover .camp-ailes img { transform: scale(1.07); }
.camp-embleme { width: 54px; height: 54px; margin: 12px auto 10px; outline: 1px solid var(--or-sombre); outline-offset: 3px; }
.camp h3 { color: var(--c); text-transform: uppercase; letter-spacing: .1em; }
.camp p { color: var(--cendre); margin-top: 6px; font-size: .95em; font-style: italic; }

/* monde */
.bloc.monde { padding-bottom: 0; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.panorama { position: relative; margin-top: clamp(24px, 3.2vw, 42px); height: clamp(300px, 58vh, 720px); overflow: hidden; cursor: grab; touch-action: pan-y; border-block: 1px solid #000; box-shadow: 0 -1px 0 var(--or-sombre), 0 1px 0 var(--or-sombre); user-select: none; }
.panorama:active { cursor: grabbing; }
.panorama img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; will-change: transform; transition: opacity .5s; }
.panorama img.change { opacity: 0; }
.panorama::before, .panorama::after { content: ''; position: absolute; top: 0; bottom: 0; width: 10%; z-index: 2; pointer-events: none; }
.panorama::before { left: 0; background: linear-gradient(90deg, var(--suie), transparent); }
.panorama::after { right: 0; background: linear-gradient(270deg, var(--suie), transparent); }
.pano-aide { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; font: 600 12px/1 var(--titre); letter-spacing: .2em; text-transform: uppercase; padding: 10px 16px; background: rgba(8, 6, 5, .8); border: 1px solid var(--or-sombre); color: var(--or); pointer-events: none; transition: opacity .5s; white-space: nowrap; }
.panorama.touche .pano-aide { opacity: 0; }
.monde > .cadre:last-child:has(.vide) { height: clamp(60px, 9vw, 130px); }

/* plateformes */
.ici-vous { display: block; width: fit-content; margin: 22px auto 0; padding: 10px 18px; font: 600 clamp(14px, .8vw + 10px, 18px)/1.3 var(--titre); letter-spacing: .06em; color: #fff3cf; background: linear-gradient(180deg, #7d1215, #5d0d10); border: 1px solid #000; box-shadow: 0 0 0 1px var(--or-sombre); text-align: center; }
.ecrans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 34px); margin-top: clamp(60px, 6vw, 86px); }
.ecran { position: relative; padding: 0 8px 10px; text-align: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s, opacity .9s; }
.ecran:hover { transform: translateY(-5px); filter: brightness(1.12); }
.ecran > img { width: clamp(100px, 10vw, 140px); height: auto; margin: -62px auto 4px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .8)); }
.ecran p { margin-top: 10px; color: var(--cendre); font-size: .95em; }
.ecran ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.ecran li { font: 600 11px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; color: var(--or); border: 1px solid var(--or-sombre); background: rgba(8, 6, 5, .6); }
.ecran.vous { filter: drop-shadow(0 0 16px rgba(230, 211, 160, .35)); }
.ecran.vous::after { content: 'Vous êtes ici'; position: absolute; top: -34px; right: -8px; font: 600 11px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; background: linear-gradient(180deg, #f1dfa8, #a98845); color: #1a1004; border: 1px solid #000; }
.installer { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 44px); align-items: center; margin-top: clamp(26px, 3.6vw, 50px); padding: clamp(6px, 1.6vw, 20px); }
.installer-ico { width: clamp(100px, 12vw, 170px); height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .8)); }
.installer-texte > p { margin-top: 8px; color: var(--cendre); max-width: 60ch; }
.onglets-installer { margin-top: 18px; }
.etapes { margin: 18px 0 0; display: grid; gap: 10px; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; color: rgba(217, 208, 191, .92); }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 34px; height: 34px; font: 700 17px/1 var(--titre); color: var(--or); border: 1px solid var(--or-sombre); background: rgba(8, 6, 5, .7); transform: rotate(45deg); }
.etapes b { color: #fff3cf; font-weight: 700; }
.sans-compte { margin: clamp(24px, 3vw, 40px) auto 0; text-align: center; color: var(--cendre); max-width: 70ch; font-style: italic; }
.sans-compte b { color: var(--or); font-style: normal; }

/* règles */
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 44px); margin-top: clamp(34px, 4.5vw, 64px); }
.promesse { padding-top: 24px; border-top: 1px solid var(--trait); text-align: center; }
.gros { display: block; font: 700 clamp(40px, 5.4vw, 80px)/1 var(--titre); background: var(--dore); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 2px #000); font-variant-numeric: lining-nums; }
.promesse h3 { margin: 14px 0 8px; }
.promesse p { color: var(--cendre); font-size: .97em; }

/* sur l'enclume */
.forge-illu { background: #000; border: 1px solid #000; outline: 1px solid var(--or-sombre); outline-offset: -5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .7); }
.forge-illu img { width: 100%; }
.forge .sur-titre, .forge .titre { margin-inline: 0; text-align: left; }
.forge .sur-titre { margin-left: -4%; }
.liste-forge { margin-top: 26px; }
.liste-forge li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
.liste-forge b { font: 600 1.1em/1.2 var(--titre); letter-spacing: .04em; color: var(--or); }
.liste-forge span { grid-column: 1; color: var(--cendre); font-size: .95em; }
.liste-forge i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 400 15px/1 var(--texte); font-style: italic; color: var(--braise); border: 1px solid rgba(226, 86, 42, .5); padding: 7px 12px; white-space: nowrap; }

/* final */
.final { position: relative; padding: clamp(110px, 18vw, 240px) 0; text-align: center; overflow: hidden; background: #000; }
.final-fond img { opacity: .5; object-position: 50% 25%; filter: sepia(.35) hue-rotate(-30deg) saturate(1.5) contrast(1.1); }
.final-fond::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 55%, rgba(140, 16, 10, .38), rgba(8, 6, 5, .84) 70%, var(--suie) 100%); }
.titre-final { font: 700 clamp(44px, 9.6vw, 150px)/.95 var(--titre); text-transform: uppercase; letter-spacing: .02em; background: linear-gradient(180deg, #a98845 0%, #f1dfa8 45%, #e2562a 82%, #8f1217 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 4px #000); }
.final .chapo { color: rgba(217, 208, 191, .9); font-style: italic; }
.final .hero-actions { margin-top: 26px; }

/* pied */
.pied { padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid #000; box-shadow: 0 -1px 0 var(--trait); background: #050403; color: var(--cendre); font-size: .9em; }
.pied .cadre { display: grid; gap: 14px; justify-items: center; text-align: center; }
.pied-logo { width: 240px; }
.pied p { max-width: 70ch; }
.pied-fin { opacity: .7; font-style: italic; }

/* ------------------------------------------------------------------ tablette et téléphone : menu déroulant encadré */
@media (max-width: 1100px) {
  .nav { height: 62px; gap: 6px; padding-inline: 10px; }
  .burger { display: block; }
  .nav-logo, .nav-jouer, .statut b { display: none; }
  .nav-droite { margin-left: 0; gap: 0; flex: 1; justify-content: flex-start; }
  .nav-droite .statut { order: 3; margin-left: auto; padding-right: 8px; }
  .nav-compte { padding: 10px 12px; font-size: clamp(15px, 4.2vw, 19px); }
  .nav-compte:first-of-type { border-left: 1px solid var(--or-sombre); }
  .nav-liens { position: absolute; top: 100%; left: 8px; width: min(calc(100vw - 16px), 420px); margin: 0; display: flex; flex-direction: column; gap: 0; padding: 4px 10px 10px; border: 22px solid transparent; border-image: url('../img/ui/cadre.webp') 80 fill / 22px / 0 stretch; font-size: clamp(19px, 5vw, 23px); letter-spacing: .06em; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .9)); max-height: calc(100svh - 80px); overflow: hidden auto; }
  .nav.ouvert .nav-liens { opacity: 1; visibility: visible; transform: none; }
  .menu-seul { display: block; }
  .nav-liens > a:not(.btn) { padding: 13px 8px; color: #b9a67c; }
  .nav-liens > a:not(.btn)::after { left: 8px; right: 30%; bottom: 4px; background: linear-gradient(90deg, var(--or), transparent); }
  .nav-liens > a.ici { background: linear-gradient(90deg, rgba(201, 172, 104, .14), transparent 80%); }
  .nav-liens > a.menu-second { font: 400 .92em/1 var(--texte); text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--or-sombre); }
  .menu-filet { height: 1px; margin: 10px 6px; background: var(--trait); }
  .nav-liens > .btn { display: flex; --h: 60px; min-width: 0; align-self: stretch; margin: 6px 0 2px; font-size: clamp(14px, 4.2vw, 17px); }
  .duo, .piliers, .roles { grid-template-columns: 1fr; }
  .role { min-height: 0; grid-template-columns: 30% 1fr; }
  .role > img { max-height: 210px; margin-top: -30px; }
  .jauge-stats { grid-template-columns: repeat(3, 1fr); }
  .deux-colonnes, .egide { grid-template-columns: 1fr; }
  .scene-classe { grid-template-columns: 1fr 1fr; }
  .clip-demi { flex-basis: 100%; }
  .ecrans { grid-template-columns: 1fr; gap: 74px; }
  .forge .sur-titre, .forge .titre { margin-inline: auto; text-align: center; }
}
@media (max-width: 720px) {
  .hero-contenu { padding-top: 84px; }
  .hero-logo { width: min(96%, 460px); }
  .hero-ecrans .btn { --h: 42px; min-width: 0; }
  .hero-actions .btn-grand { --h: 62px; min-width: 0; max-width: 100%; }
  .chiffres { grid-template-columns: repeat(3, 1fr); }
  .chiffres li:nth-child(4) { border-left: 0; }
  .chiffres li:nth-child(n+4) { border-top: 1px solid var(--trait); }
  .pilier, .carte, .role, .egide, .jauge, .camp, .ecran, .installer { border-width: 18px; border-image-width: 18px; }
  .clip-grand .clip-media { aspect-ratio: 16 / 9; }
  .scene-classe { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .classe-art { height: clamp(280px, 78vw, 420px); order: -1; }
  .classe-texte { margin-inline: auto; }
  .classe-voies { justify-content: center; }
  .classe-nom-fond { top: 22%; }
  .trio, .trois { grid-template-columns: 1fr; }
  .camp-ailes { height: 190px; }
  .jauge-stats { grid-template-columns: repeat(2, 1fr); }
  .jauge-stats div:last-child { grid-column: 1 / -1; }
  .jauge-avis { text-align: left; }
  .liste-forge li { grid-template-columns: 1fr; }
  .liste-forge i { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 6px; }
  .onglets button { padding: 11px 12px; font-size: 12px; }
  .installer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .etapes { text-align: left; }
}
/* paysage bas (téléphone couché) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-contenu { padding-top: 70px; }
  .hero-logo { width: clamp(220px, 95vh, 400px); }
  .hero-texte, .hero-voir { display: none; }
  .hero-ecrans .btn { --h: 38px; }
  .btn-grand { --h: 58px; }
  .chiffres li { padding: 8px 4px; }
}
/* Animations du système coupées : on garde les vidéos (avec leur bouton pause) et les fondus, on retire les grands
   mouvements (dérive du panorama d'accueil, glissements à l'apparition, entrée du logo). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-carte, .hero-logo img, .statut i { animation: none; }
  .hero-carte { transform: scale(1.12); }
  .apparait { transform: none; }
}

/* ------------------------------------------------------------------ curseurs « gantelet forgé » (ordinateur)
   Les mêmes fichiers que dans le jeu : css/curseurs.css donne les variables --c-*. */
@media (hover: hover) and (pointer: fine) {
  html { cursor: var(--c-normal); }
  a, button, [role="tab"], label, summary, .choix-classe button { cursor: var(--c-clic); }
  .panorama, .panorama:active, input[type=range], input[type=range]:active { cursor: var(--c-saisir); }
  button[disabled], .classe-genre button[disabled] { cursor: var(--c-interdit); }
}

/* accueil centré */
.hero { justify-content: flex-start; }
.hero-contenu { flex: 1 1 auto; justify-content: center; padding-top: 96px; }
