/* ============================================================================
   bffr.fr/raid - VITRINE publique du mode Raids (refonte du 2026-09-27)
   ----------------------------------------------------------------------------
   Page statique (web/public/raidnew/index.html). Remplace raidnew/style.css.
   Même système que le jeu (styles/raids/ds.css) : mêmes jetons ci-dessous (valeurs
   canoniques, que le moteur de thèmes scripts/raid_custom.js sait re-teinter),
   Archivo (texte et titres en 800), boutons et rayons du jeu (10 / 14 / 18 / 24).
   Performance : aucune bibliothèque d'animation, pas de grain ni de halo, pas de
   filtre sur les éléments répétés ; les apparitions au défilement sont des
   transitions CSS armées par vitrine.js (html.vt-motion) et coupées si le système
   demande moins d'animations. Téléphone d'abord : 390 px sans défilement horizontal.
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #070709; --bg2: #0e0e14; --card: #101019; --card2: #16161f;
  --line: #20202a; --line2: #2c2c39;
  --txt: #f2f2f6; --txt2: #cdd2e0; --mut: #9c9cab; --dim: #7e7e8b;
  --accent: #a78bff; --accent2: #c3b0ff;
  --accent-dim: rgba(167, 139, 255, .12); --accent-line: rgba(167, 139, 255, .38);
  --on-accent: #0b0b10; --ok: #3be08a;
  --discord: #5865F2;
  --scrim: rgba(4, 4, 7, .6);   /* voile sous le menu : reste sombre dans tous les thèmes (comme .rgd-modal de ds.css) */
  --r-s: 10px; --r-m: 14px; --r-l: 18px; --r-xl: 24px;
  --maxw: 1240px;
  --hl: inset 0 1px 0 rgba(255, 255, 255, .035);
  --shadow-pop: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Archivo', system-ui, sans-serif;
}
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--line2) transparent; }
html.vt-lock { overflow: hidden; }
body.vt {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--txt2);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Lueurs d'ambiance : couche fixe composée une seule fois. */
body.vt::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 88% -6%, rgba(167, 139, 255, .12), transparent 60%),
    radial-gradient(760px 420px at 2% 40%, rgba(61, 165, 255, .04), transparent 60%),
    var(--bg);
}
.vt img { max-width: 100%; display: block; }
.vt a { color: inherit; text-decoration: none; }
.vt button, .vt input { font: inherit; }
.vt :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.vt ::selection { background: rgba(167, 139, 255, .35); color: #fff; }
.vt h1, .vt h2, .vt h3 { color: var(--txt); margin: 0; line-height: 1.12; letter-spacing: -.015em; }
.vt strong, .vt b { color: var(--txt); font-weight: 700; }
.vt-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.vt-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent) !important; font-weight: 700; }
.vt-skip:focus { top: 12px; }

/* ── Apparitions au défilement (armées par vitrine.js seulement) ────────────── */
.vt-motion .vt-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.vt-motion .vt-rv.is-in { opacity: 1; transform: none; }
/* Filet sans script : si vitrine.js ne s'exécute pas (erreur réseau, bloqueur), rien ne doit rester invisible.
   Le script pose .is-in partout au plus tard 4 s après son démarrage ; passé 6 s, les blocs encore masqués
   apparaissent d'eux-mêmes. (Le cas « fichier introuvable » est aussi rattrapé par le onerror du <script>.) */
.vt-motion .vt-rv:not(.is-in) { animation: vt-rv-safe .6s var(--ease) 6s forwards; }
@keyframes vt-rv-safe { to { opacity: 1; transform: none; } }

/* ── Boutons (mêmes proportions que .rgbtn du jeu) ─────────────────────────── */
.vt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--on-accent) !important;
  font: 700 .92rem/1 var(--font); letter-spacing: -.005em; white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(167, 139, 255, .55);
  transition: transform .12s var(--ease), filter .15s, background-color .15s, border-color .15s;
}
.vt-btn:hover { filter: brightness(1.08); }
.vt-btn:active { transform: translateY(1px); }
.vt-btn svg { flex: 0 0 auto; }
.vt-btn--lg { min-height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.vt-btn--sm { min-height: 40px; padding: 0 15px; font-size: .86rem; border-radius: 11px; }
.vt-btn--ghost { background: var(--card2); color: var(--txt) !important; border: 1px solid var(--line2); box-shadow: none; }
.vt-btn--ghost:hover { border-color: var(--accent-line); filter: none; }
.vt-btn--discord { background: var(--discord); color: #fff !important; box-shadow: 0 8px 22px -12px rgba(88, 101, 242, .7); }

/* ── En-tête ───────────────────────────────────────────────────────────────── */
.vt-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 7, 9, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.vt-top-in { display: flex; align-items: center; gap: 12px; max-width: 1400px; margin: 0 auto; min-height: 64px; padding: 10px clamp(16px, 2.4vw, 28px); }
.vt-brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; min-height: 40px; color: var(--txt) !important; font: 800 1.04rem var(--font-display); letter-spacing: -.01em; }
.vt-brand img { width: 34px; height: 34px; object-fit: contain; }
.vt-brand b { color: var(--accent); font-weight: 800; }
.vt-nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.vt-nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 11px; color: var(--mut); font-weight: 600; font-size: .9rem; transition: color .15s, background-color .15s; }
.vt-nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .045); }
.vt-top-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vt-me { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--txt) !important; font-weight: 600; font-size: .86rem; }
.vt-me[hidden] { display: none; }
.vt-me img { width: 30px; height: 30px; border-radius: 50%; }
.vt-me span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-me:hover { border-color: var(--line2); }
/* Bouton du menu du site : DANS l'en-tête (plus de bouton flottant par-dessus la page). */
.navtoggle {
  flex: 0 0 auto; width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--card); border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; padding: 0;
  transition: border-color .2s, background-color .2s;
}
.navtoggle:hover { border-color: var(--accent-line); }
.navtoggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--txt); }

/* ── Bandeau ───────────────────────────────────────────────────────────────── */
.vt-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(84vh, 760px); padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.vt-hero-art { position: absolute; inset: 0 0 0 auto; width: min(72%, 1180px); z-index: -2; }
.vt-hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 34%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
/* voile : lisibilité du texte + fondu vers le fond en bas */
.vt-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 9, .92) 0%, rgba(7, 7, 9, .6) 34%, rgba(7, 7, 9, 0) 62%),
    linear-gradient(180deg, rgba(7, 7, 9, 0) 70%, rgba(7, 7, 9, .9) 100%);
}
.vt-hero-in { position: relative; }
.vt-hero-in > * { max-width: 620px; }
.vt-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 13px; border-radius: 999px;
  background: rgba(7, 7, 9, .55); border: 1px solid var(--line2);
  font: 700 .72rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--txt2);
}
.vt-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(59, 224, 138, .18); }
.vt-hero h1 {
  font: 800 clamp(2.9rem, 1.4rem + 5.6vw, 6.1rem)/.9 var(--font-display); letter-spacing: -.035em; text-transform: uppercase;
  color: var(--txt); text-shadow: 0 2px 24px rgba(7, 7, 9, .6);
}
.vt-hero h1 span { display: block; color: var(--accent2); }
.vt-lead { margin: 24px 0 0; font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); line-height: 1.62; color: var(--txt2); text-shadow: 0 1px 12px rgba(7, 7, 9, .7); }
.vt-hl { color: var(--accent2) !important; }
.vt-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.vt-cta-note { margin: 10px 0 0; color: var(--mut); font-size: .84rem; }
.vt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.vt-tags li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(7, 7, 9, .55); border: 1px solid var(--line2); color: var(--txt2); font-size: .8rem; font-weight: 650;
}
.vt-tags li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.vt-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }
.vt-stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 132px; padding: 12px 16px; border-radius: var(--r-m);   /* flex-end = en haut en column-reverse : chiffres alignés même si un libellé passe sur 2 lignes */
  background: rgba(16, 16, 25, .78); border: 1px solid var(--line); box-shadow: var(--hl);
}
.vt-stat dt { color: var(--mut); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vt-stat dd { margin: 0; color: var(--txt); font: 800 1.8rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vt-stat dd.is-acc { color: var(--accent2); }

/* ── Bandeau défilant ──────────────────────────────────────────────────────── */
/* Seule animation continue du site, exception assumée et notée dans la charte (docs/RAIDS_WEB_DESIGN.md §2) :
   en pause hors de l'écran (vitrine.js) et au survol, immobile en mouvement réduit (bloc de fin de feuille). */
.vt-marquee { overflow: hidden; padding: 16px 0; border-bottom: 1px solid var(--line); background: var(--bg2); }
.vt-marquee-track { display: flex; align-items: center; gap: 24px; width: max-content; animation: vt-marquee 38s linear infinite; }
.vt-marquee.is-off .vt-marquee-track, .vt-marquee:hover .vt-marquee-track { animation-play-state: paused; }
.vt-marquee span { font: 800 clamp(.95rem, .8rem + .6vw, 1.25rem)/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; color: var(--txt); white-space: nowrap; }
.vt-marquee i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: 0 0 7px; }
@keyframes vt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Sections ──────────────────────────────────────────────────────────────── */
.vt-sec { padding-top: clamp(56px, 8vw, 96px); }
.vt-sec-head { max-width: 700px; margin-bottom: 28px; }
.vt-eyebrow { margin: 0 0 10px; font: 700 .72rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent2); }
.vt-sec-head h2, .vt-scene h2, .vt-stuff h2 { font: 800 clamp(1.7rem, 1.1rem + 2.4vw, 2.7rem)/1.04 var(--font-display); letter-spacing: -.028em; }
.vt-sec-head > p:last-child { margin: 14px 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--txt2); }

/* ── Piliers ───────────────────────────────────────────────────────────────── */
.vt-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vt-pillar {
  --pc: 167, 139, 255;
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 22px; border-radius: var(--r-l);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--hl);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.vt-pillar::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 0 0 2px 2px; background: rgb(var(--pc)); opacity: .8; }
.vt-pillar:hover { border-color: rgba(var(--pc), .45); background: var(--card2); transform: translateY(-2px); }
.vt-pillar-top { display: flex; align-items: center; justify-content: space-between; }
.vt-pillar-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(var(--pc), .1); border: 1px solid rgba(var(--pc), .26); }
.vt-pillar-ic img { width: 38px; height: 38px; object-fit: contain; }
.vt-pillar-n { font: 800 1.1rem var(--font-display); color: rgba(var(--pc), .7); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vt-pillar h3 { font: 800 1.4rem/1.1 var(--font-display); letter-spacing: -.02em; }
.vt-pillar-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* toute la carte est cliquable */
.vt-pillar p { margin: 0; color: var(--txt2); font-size: .95rem; line-height: 1.55; }
.vt-pillar-pages { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.vt-pillar-pages a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--txt2); font-size: .8rem; font-weight: 650;
  transition: border-color .15s, color .15s;
}
.vt-pillar-pages a:hover { border-color: rgba(var(--pc), .6); color: var(--txt); }
.vt-pillar-go { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 4px; color: rgb(var(--pc)); font-weight: 750; font-size: .9rem; }
.vt-pillar-go svg { transition: transform .2s var(--ease); }
/* Thème CLAIR d'un joueur (html.rc-light, posé par scripts/raid_custom.js) : les teintes de pilier hors thème
   (turquoise, bleu) tombaient à 1,4-2:1 sur blanc. Le texte teinté se mélange vers la couleur du texte. */
html.rc-light .vt-pillar-n, html.rc-light .vt-pillar-go, html.rc-light .vt-card-ic { color: color-mix(in srgb, rgb(var(--pc)) 50%, var(--txt)); }
.vt-pillar:hover .vt-pillar-go svg { transform: translateX(3px); }

/* ── Panneaux illustrés (La Tour, l'Arène) ─────────────────────────────────── */
.vt-scenes { display: grid; gap: 16px; }
.vt-scene {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 440px; padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--hl);
}
.vt-scene-art {
  position: absolute; inset: 0 0 0 auto; z-index: -2; width: min(74%, 980px); height: 100%; object-fit: cover; object-position: 70% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.vt-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 16, 25, .96) 0%, rgba(16, 16, 25, .7) 38%, rgba(16, 16, 25, 0) 66%); pointer-events: none; }
.vt-scene-tx { position: relative; max-width: 520px; }
.vt-scene-k { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 .72rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent2); }
.vt-scene-num { display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 7px; border-radius: 8px; background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--accent2); font: 800 .78rem var(--font-display); letter-spacing: 0; }
.vt-scene p:not(.vt-scene-k) { margin: 14px 0 0; font-size: 1rem; line-height: 1.62; color: var(--txt2); text-shadow: 0 1px 12px rgba(7, 7, 9, .7); }
.vt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 24px; padding: 0; list-style: none; }
.vt-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(7, 7, 9, .55); border: 1px solid var(--line2); color: var(--txt2); font-size: .8rem; font-weight: 650; }
.vt-scene-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Le stuff ──────────────────────────────────────────────────────────────── */
.vt-stuff { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.vt-stuff-tx > p:not(.vt-scene-k) { margin: 14px 0 0; font-size: 1rem; line-height: 1.62; color: var(--txt2); }
/* chaîne de progression : 5 étapes numérotées reliées par un filet */
.vt-chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 470px; margin: 24px 0 26px; padding: 0; list-style: none; counter-reset: vtc; }
.vt-chain li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; color: var(--txt); font-weight: 700; font-size: .82rem; text-align: center; }
.vt-chain li::before { counter-increment: vtc; content: counter(vtc); position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--card); border: 1px solid var(--accent-line); color: var(--accent2); font-size: .8rem; font-weight: 800; }
.vt-chain li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; border-radius: 2px; background: var(--line2); }
.vt-gear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vt-gear figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 14px;
  border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--hl);
  transition: border-color .2s, transform .2s var(--ease);
}
.vt-gear figure:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.vt-gear img { width: 72px; height: 72px; object-fit: contain; }
.vt-gear figcaption { color: var(--mut); font-size: .8rem; font-weight: 650; }

/* ── Toutes les pages ──────────────────────────────────────────────────────── */
.vt-toolbar {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 22px; padding: 12px; border-radius: var(--r-l);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--hl);
}
.vt-search { position: relative; flex: 1 1 320px; display: flex; align-items: center; min-width: 0; }
.vt-search svg { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--mut); pointer-events: none; }
.vt-search input {
  width: 100%; min-height: 44px; padding: 0 44px 0 40px; border-radius: 12px; outline: none;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--txt); font-size: .94rem;
  transition: border-color .15s, box-shadow .15s;
}
.vt-search input::placeholder { color: var(--dim); }
.vt-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167, 139, 255, .18); }
.vt-search kbd { position: absolute; right: 10px; display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line2); color: var(--mut); font: 700 .74rem var(--font); }
.vt-search input:focus + kbd, .vt-search input:not(:placeholder-shown) + kbd { display: none; }
.vt-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-filter {
  --pc: 167, 139, 255;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--mut); font-weight: 650; font-size: .86rem;
  transition: border-color .15s, color .15s, background-color .15s;
}
.vt-filter:hover { color: var(--txt); border-color: rgba(var(--pc), .5); }
.vt-filter .count, .vt-group-h .count { padding: 1px 7px; border-radius: 999px; background: var(--card2); color: var(--mut); font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.vt-filter.is-on { background: rgba(var(--pc), .14); border-color: rgba(var(--pc), .55); color: var(--txt); }
.vt-filter.is-on .count { background: rgba(var(--pc), .22); color: var(--txt); }
.vt-groups { display: flex; flex-direction: column; gap: 26px; }
.vt-group[hidden] { display: none; }
.vt-group-h { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font: 750 1rem var(--font); letter-spacing: -.01em; }
.vt-group-h img { width: 22px; height: 22px; object-fit: contain; }
.vt-group-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.vt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vt-card {
  position: relative; display: flex; align-items: flex-start; gap: 13px; min-width: 0; padding: 13px 14px;
  border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); box-shadow: var(--hl);
  transition: border-color .15s, background-color .15s;
}
.vt-card[hidden] { display: none; }
.vt-card:hover { border-color: rgba(var(--pc), .5); background: var(--card2); }
.vt-card-ic { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: rgba(var(--pc), .09); border: 1px solid rgba(var(--pc), .22); color: rgb(var(--pc)); }
.vt-card-ic img { width: 34px; height: 34px; object-fit: contain; }
.vt-card-ic svg { width: 22px; height: 22px; }
.vt-card-emo { font-size: 26px; line-height: 1; }   /* page sans icône illustrée (Chambre AFK) : même émoji que le menu du jeu */
.vt-card-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.vt-card-tx b { font-size: .98rem; font-weight: 750; letter-spacing: -.01em; }
.vt-card-tx small { color: var(--mut); font-size: .83rem; line-height: 1.4; }
.vt-card-tx em { align-self: flex-start; margin-top: 5px; padding: 2px 8px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line2); color: var(--txt2); font-size: .72rem; font-style: normal; font-weight: 650; }
.vt-empty { margin-top: 8px; padding: 36px 22px; border-radius: var(--r-l); background: var(--card); border: 1px dashed var(--line2); text-align: center; }
.vt-empty[hidden] { display: none; }
.vt-empty strong { display: block; font: 800 1.15rem var(--font-display); }
.vt-empty p { margin: 8px 0 16px; color: var(--mut); }

/* ── Appel final ───────────────────────────────────────────────────────────── */
.vt-final { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.vt-final-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 400px; padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-xl); border: 1px solid var(--line2); background: var(--card); text-align: center;
}
.vt-final-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.vt-final-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(64% 86% at 50% 50%, rgba(7, 7, 9, .8), rgba(7, 7, 9, .38)); }
.vt-final-tx { max-width: 620px; }
.vt-final h2 { font: 800 clamp(2.2rem, 1.3rem + 4vw, 4.2rem)/.95 var(--font-display); letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(7, 7, 9, .6); }
.vt-final h2 span { color: var(--accent2); }
.vt-final p { margin: 18px auto 0; max-width: 520px; font-size: 1.04rem; line-height: 1.6; color: var(--txt2); text-shadow: 0 1px 12px rgba(7, 7, 9, .8); }
.vt-final .vt-cta { justify-content: center; }

/* ── Pied de page ──────────────────────────────────────────────────────────── */
.vt-foot { border-top: 1px solid var(--line); padding: 34px 0 110px; }
.vt-foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.vt-foot-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.vt-foot-brand img { width: 32px; height: 32px; border-radius: 9px; }
.vt-foot-brand b { font: 800 .98rem var(--font-display); }
.vt-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.vt-foot-links a, .vt-foot-legal a { color: var(--mut); font-size: .84rem; font-weight: 600; transition: color .15s; }
.vt-foot-links a:hover, .vt-foot-legal a:hover { color: var(--txt); }
.vt-foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
/* --mut (et non --dim) : texte de 13 px lisible dans tous les thèmes (--dim tombait à 3:1 en thème clair). */
.vt-foot-legal span { color: var(--mut); font-size: .8125rem; }
.vt-foot-copy { max-width: 780px; margin: 14px 0 0; color: var(--mut); font-size: .8125rem; line-height: 1.6; }

/* ── Bouton flottant Discord ───────────────────────────────────────────────── */
.vt-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--discord); color: #fff !important; font-weight: 750; font-size: .9rem;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .8);
  transition: transform .2s var(--ease);
}
.vt-fab:hover { transform: translateY(-2px); }

/* ── Menu du site (tiroir) : mêmes classes que les autres pages de bffr.fr ─── */
.navmenu { position: fixed; inset: 0; z-index: 150; visibility: hidden; }   /* au-dessus du bouton palette (140) */
.navmenu.open { visibility: visible; }
.navmenu__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s; cursor: pointer; }
.navmenu.open .navmenu__scrim { opacity: 1; }
.navmenu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(430px, 88vw);
  display: flex; flex-direction: column; padding: 24px 28px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--card); border-left: 1px solid var(--line2); box-shadow: var(--shadow-pop);
  transform: translateX(100%); transition: transform .38s var(--ease);
}
.navmenu.open .navmenu__panel { transform: none; }
.navmenu__grab { display: none; }
.navmenu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.navmenu__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent2); }
.navmenu__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--card2); border: 1px solid var(--line2); color: var(--txt); cursor: pointer; }
.navmenu__close:hover { border-color: var(--accent-line); }
.navmenu__list { display: flex; flex-direction: column; margin: 0; padding: 0; flex: 1 0 auto; }
.navmenu__group { display: flex; flex-direction: column; }
.navmenu__cat { display: flex; align-items: center; gap: 9px; margin: 18px 2px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.navmenu__cat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--cat, 167, 139, 255)); flex-shrink: 0; }
.navmenu__group:first-child .navmenu__cat { margin-top: 2px; }
.navmenu__item { position: relative; display: flex; align-items: center; gap: 13px; padding: 9px 12px; margin: 0 -12px; border-radius: 12px; transition: background-color .15s; }
.navmenu__ic { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(var(--cat), .1); border: 1px solid rgba(var(--cat), .22); color: rgb(var(--cat)); }
.navmenu__ic svg { width: 19px; height: 19px; }
.navmenu__txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.navmenu__lbl { font-weight: 700; font-size: .98rem; color: var(--txt); letter-spacing: -.01em; line-height: 1.15; }
.navmenu__sub { font-size: .76rem; color: var(--mut); line-height: 1.25; }
.navmenu__arr { color: var(--mut); opacity: 0; transition: opacity .15s; }
.navmenu__item:hover { background: var(--card2); }
.navmenu__item:hover .navmenu__arr { opacity: 1; }
.navmenu__item--active { background: var(--accent-dim); }
.navmenu__item--active .navmenu__lbl { color: var(--accent2); }
.navmenu__foot { margin-top: 22px; flex-shrink: 0; }
.navmenu__disc { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 13px; background: var(--discord); color: #fff !important; font-weight: 750; font-size: .92rem; }
.navmenu__disc:hover { filter: brightness(1.06); }
.navmenu__socials { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 14px; }
.navmenu__socials a { color: var(--mut); font-size: .78rem; font-weight: 600; }
.navmenu__socials a:hover { color: var(--txt); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .vt-nav a[href="#pages"] { display: none; }
}
@media (max-width: 960px) {
  .vt-nav { display: none; }
  .vt-top { position: relative; -webkit-backdrop-filter: none; backdrop-filter: none; background: #09090c; }
  .vt-me span { display: none; }
  .vt-me { padding: 0 4px; }
  .vt-stuff { grid-template-columns: 1fr; }
  .vt-scene { min-height: 400px; }
}
/* Téléphone : l'illustration passe en haut du bandeau, le texte dessous ; tout dans le flux. */
@media (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  .vt-top-in { min-height: 58px; padding: 8px 14px; gap: 8px; }
  .vt-brand { font-size: .98rem; }
  .vt-brand img { width: 30px; height: 30px; }
  .vt-hero { display: block; min-height: 0; padding: 0 0 36px; }
  .vt-hero-art { position: relative; inset: auto; width: 100%; height: 300px; margin-bottom: -96px; }
  .vt-hero-art img {
    object-position: 68% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .vt-hero::after { background: linear-gradient(180deg, rgba(7, 7, 9, 0) 0, rgba(7, 7, 9, .2) 160px, rgba(7, 7, 9, .75) 250px, rgba(7, 7, 9, 0) 420px); }
  .vt-hero-in > * { max-width: none; }
  .vt-kicker { margin-bottom: 14px; font-size: .75rem; padding: 6px 11px; letter-spacing: .12em; }
  .vt-hero h1 { font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .vt-lead { margin-top: 16px; font-size: 1rem; }
  .vt-cta { margin-top: 22px; }
  .vt-hero .vt-cta .vt-btn { flex: 1 1 100%; }
  .vt-tags { margin-top: 20px; gap: 6px; }
  .vt-tags li { font-size: .76rem; padding: 5px 10px; }
  .vt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
  .vt-stat { min-width: 0; padding: 10px 10px; }
  .vt-stat dt { font-size: .75rem; letter-spacing: .03em; line-height: 1.25; }
  /* Planchers de lecture au téléphone (charte §4.5) : micro-étiquettes >= 12 px. */
  .vt-eyebrow, .vt-scene-k, .vt-filter .count, .vt-group-h .count, .vt-card-tx em { font-size: .75rem; }
  .vt-stat dd { font-size: 1.4rem; }
  .vt-marquee { padding: 12px 0; }
  .vt-pillars { grid-template-columns: 1fr; gap: 12px; }
  .vt-pillar { padding: 18px; }
  .vt-pillar h3 { font-size: 1.25rem; }
  .vt-pillar-ic { width: 48px; height: 48px; border-radius: 14px; }
  .vt-pillar-ic img { width: 32px; height: 32px; }
  .vt-pillar-pages a { min-height: 40px; padding: 0 13px; }
  /* Panneaux illustrés : image en haut, texte dessous */
  .vt-scene { display: block; min-height: 0; padding: 0; border-radius: 20px; }
  .vt-scene-art { position: relative; inset: auto; width: 100%; height: 210px; object-position: 70% 40%;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .vt-scene::after { content: none; }
  .vt-scene-tx { max-width: none; padding: 0 18px 20px; margin-top: -40px; }
  .vt-scene-cta .vt-btn, .vt-scene-tx > .vt-btn { flex: 1 1 auto; }
  .vt-chips { margin: 16px 0 20px; }
  .vt-gear { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .vt-gear figure { padding: 12px 6px 10px; gap: 6px; border-radius: 14px; }
  .vt-gear img { width: 56px; height: 56px; }
  .vt-toolbar { padding: 10px; gap: 10px; }
  .vt-search { flex-basis: 100%; }
  .vt-search input { font-size: 16px; }   /* Safari iOS zoome sous 16 px */
  .vt-search kbd { display: none; }
  /* fondu sur le bord où des filtres dépassent : à droite par défaut (même sans script), à gauche
     une fois la rangée défilée (is-scrolled), plus à droite au bout (is-end) ; classes de vitrine.js */
  .vt-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -10px; padding: 0 10px 2px; scrollbar-width: none; width: calc(100% + 20px);
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .vt-filters.is-scrolled { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 86%, transparent); }
  .vt-filters.is-end { -webkit-mask-image: none; mask-image: none; }
  .vt-filters.is-scrolled.is-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
  .vt-filters::-webkit-scrollbar { display: none; }
  .vt-filter { flex: 0 0 auto; }
  .vt-cards { grid-template-columns: 1fr; gap: 8px; }
  .vt-card { padding: 11px 12px; gap: 12px; }
  .vt-card-ic { flex-basis: 42px; width: 42px; height: 42px; }
  .vt-card-ic img { width: 30px; height: 30px; }
  .vt-card-emo { font-size: 23px; }
  .vt-final-card { min-height: 0; padding: 36px 18px; border-radius: 20px; }
  .vt-final .vt-cta .vt-btn { flex: 1 1 100%; }
  .vt-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 48px; min-height: 48px; padding: 0; justify-content: center; }
  .vt-fab-txt { display: none; }
  /* pied de page : liens en cibles tactiles de 40 px */
  .vt-foot-links, .vt-foot-legal { gap: 0 18px; }
  .vt-foot-links a, .vt-foot-legal a { display: inline-flex; align-items: center; min-height: 40px; }
  .vt-foot-legal { padding-top: 8px; }
  /* Menu du site : feuille qui monte du bas, au pouce */
  .navmenu__panel { top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: auto; max-height: 86vh; max-height: 86dvh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 12px 20px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); }
  .navmenu__grab { display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--line2); margin: 0 auto 12px; cursor: pointer; }
  .navmenu__head { margin-bottom: 10px; }
}
@media (max-width: 380px) {
  .vt-top-end .vt-btn--sm { padding: 0 12px; }
  .vt-stat dd { font-size: 1.22rem; }
}

/* Moins d'animations demandé par le système : rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vt-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 10px; padding: 0 16px; }
  .vt-marquee-track > :nth-child(n + 15) { display: none; }
  /* Immobile, le bandeau passe sur plusieurs lignes : chaque mot-clé porte son losange (un losange seul
     ne tombe plus en début ou en fin de ligne). */
  .vt-marquee-track > i { display: none; }
  .vt-marquee-track { column-gap: 22px; }
  .vt-marquee span { display: inline-flex; align-items: center; gap: 10px; }
  .vt-marquee span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: 0 0 7px; }
  .vt-btn, .vt-pillar, .vt-card, .vt-gear figure, .navmenu__panel, .navmenu__scrim { transition: none; }
}

/* Icône vectorielle d'une carte (Chambre AFK : pas d'icône illustrée) : couleur du texte, taille des images. */
.vt-card-ic .vt-card-svg { width: 26px; height: 26px; color: rgb(var(--pc, 167, 139, 255)); }
html.rc-light .vt-card-ic .vt-card-svg { color: inherit; }
