/* ════════════════════════════════════════════════════════════════════
   Vintage Players — PIXEL ART JRPG NIGHT
   Inspirations : Final Fantasy VI, Chrono Trigger, Zelda LttP menus,
   Octopath Traveler night scenes, Sea of Stars
   Palette : nuit profonde, violets royaux, or magique, cyan saphir
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Pixelify+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Fond — ciel nuit JRPG, voûte d'un château la nuit */
  --bg-deep:      #0a0a1f;     /* nuit très profonde */
  --bg-night:     #121238;     /* nuit JRPG */
  --bg-card:      #1a1a4a;     /* panneau menu FF */
  --bg-card-2:    #232366;
  --bg-stone:     #3a3a7a;     /* "pierre" = bleu nuit clair */
  --bg-stone-d:   #1f1f4f;
  --bg-stone-l:   #5050a8;

  /* Accents pixel RPG fantasy */
  --gold:         #ffd84a;     /* or magique brillant */
  --gold-d:       #c89020;
  --gold-l:       #fff0a0;
  --emerald:      #4ad080;     /* magie soin */
  --emerald-d:    #1f7040;
  --emerald-l:    #80f0b0;
  --moss:         #4ad080;
  --tile:         #ff5577;     /* HP rouge */
  --tile-d:       #b02040;
  --magenta:      #c878f0;     /* magie sort */
  --azure:        #4ac8ff;     /* MP cyan / eau */
  --azure-d:      #1a5a90;
  --azure-l:      #80e0ff;
  --royal:        #6850e0;     /* violet royal */
  --royal-d:      #3a2890;
  --royal-l:      #a890ff;

  /* Texte — clair sur fond bleu nuit */
  --parch:        #e8e8ff;     /* texte blanc bleuté */
  --parch-2:      #c8c8e8;
  --parch-d:      #8888b0;
  --ink:          #e8e8ff;
  --ink-dim:      #b0b0d0;
  --ink-mute:     #7878a0;
  --ink-dark:     #0a0a1f;     /* texte sur fond clair (rare) */

  /* Bordures menu — bleu nuit + or */
  --stone-edge-d: #050518;
  --stone-edge-l: #6868c0;

  /* Type — vraies polices JRPG/pixel, fini les serifs médiévaux */
  /* IMPORTANT : Press Start 2P ne contient pas les accents français (é, è, à, ç…)
     → on utilise Pixelify Sans (qui les supporte) en primaire pour --f-pixel.
     Press Start 2P reste dispo pour les titres très grands en --f-arcade. */
  --f-pixel:   'Pixelify Sans', 'Press Start 2P', monospace;   /* UI / labels (avec accents OK) */
  --f-arcade:  'Press Start 2P', 'Pixelify Sans', monospace;   /* labels purement ASCII / décoratifs */
  --f-mono:    'VT323', monospace;                              /* dialog / meta */
  --f-display: 'Pixelify Sans', monospace;                      /* titres pixel JRPG */
  --f-body:    'Inter', sans-serif;                             /* corps lisible */

  /* Layout — hauteur du header fixed + marge de sécurité pour le contenu en hero */
  --vp-header-h:     78px;
  --vp-hero-top-safe: calc(var(--vp-header-h) + 30px); /* clearance min entre menu et titre */
}

/* Pas de lissage sur les polices pixel — on veut les pixels nets */
.vp-pixel,
.vp-eyebrow,
.vp-section-title,
.vp-card-cat,
.vp-shop-cat,
.vp-shop-badge,
.vp-shop-price,
.vp-yt-duration,
.vp-yt-glyph,
.vp-tier-name,
.vp-tier-badge,
.vp-tuto-num,
.vp-logo-text,
.vp-btn {
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  image-rendering: pixelated;
  -webkit-font-smoothing: antialiased;
}

img { image-rendering: pixelated; }

/* ─── Background nuit JRPG ──────────────────────────────────────────── */
.vp-app {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
.vp-app::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    /* aurores et magies en arrière-plan */
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(104, 80, 224, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 90%, rgba(74, 200, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(200, 120, 240, 0.10), transparent 60%),
    var(--bg-deep);
  pointer-events: none;
}
.vp-app::after {
  /* "étoiles" pixel — petits points scintillants */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 62%, rgba(255,255,255,0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 28%, rgba(255,216,74,0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 78%, rgba(168,144,255,0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 22% 88%, rgba(255,255,255,0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 55% 12%, rgba(255,255,255,0.6) 0 1px, transparent 1.5px);
  background-size: 280px 280px, 360px 360px, 320px 320px, 400px 400px, 300px 300px, 340px 340px;
  pointer-events: none;
  opacity: 0.8;
  /* Clignotement saccadé pixel art — steps() jamais ease */
  animation: vp-twinkle 2.4s steps(2, end) infinite;
}
@keyframes vp-twinkle {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.45; }
}

/* Scanlines optionnelles */
.vp-app[data-scanlines="medium"] .scanlines-overlay,
.vp-app[data-scanlines="strong"] .scanlines-overlay { display: block; }
.scanlines-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.25) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply;
}
.vp-app[data-scanlines="strong"] .scanlines-overlay { opacity: 1; }
.vp-app[data-scanlines="medium"] .scanlines-overlay { opacity: 0.5; }

.vp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) { .vp-container { padding: 0 14px; } }

/* ════════════════════════════════════════════════════════════════════
   PIXEL FRAMES — bordures pierre/bois (la signature visuelle)
   ════════════════════════════════════════════════════════════════════ */

/* Cadre de pierre style Zelda menu — bord 4px clair / 4px sombre, coins biseautés */
.frame-stone,
.frame-wood,
.frame-parch {
  position: relative;
  border: 4px solid var(--stone-edge-d);
  background: var(--bg-card);
  box-shadow:
    inset 4px 4px 0 0 var(--bg-stone),
    inset -4px -4px 0 0 var(--bg-stone-d),
    inset 8px 8px 0 0 var(--bg-stone-l),
    inset -8px -8px 0 0 var(--stone-edge-d),
    8px 8px 0 0 rgba(0,0,0,0.4);
}
.frame-wood {
  box-shadow:
    inset 4px 4px 0 0 #8b5a2b,
    inset -4px -4px 0 0 #4a2810,
    inset 8px 8px 0 0 #c08a4a,
    inset -8px -8px 0 0 #2a1810,
    8px 8px 0 0 rgba(0,0,0,0.4);
  background: var(--bg-card-2);
}
.frame-parch {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow:
    inset 3px 3px 0 0 var(--bg-card-2),
    inset -3px -3px 0 0 var(--stone-edge-d),
    6px 6px 0 0 rgba(0,0,0,0.4);
  border-color: var(--gold);
}

/* Mousse qui tombe — pseudo-éléments en haut sur les frames-stone */
.moss-top {
  position: relative;
}
.moss-top::before {
  content: '';
  position: absolute;
  top: -4px; left: 12%;
  width: 80px; height: 12px;
  background:
    linear-gradient(90deg,
      transparent 0, transparent 4px,
      var(--moss) 4px, var(--moss) 12px,
      transparent 12px, transparent 20px,
      var(--emerald) 20px, var(--emerald) 32px,
      transparent 32px, transparent 40px,
      var(--moss) 40px, var(--moss) 56px,
      transparent 56px, transparent 60px,
      var(--emerald) 60px, var(--emerald) 76px,
      transparent 76px);
  z-index: 2;
}
.moss-top::after {
  content: '';
  position: absolute;
  top: -4px; right: 18%;
  width: 60px; height: 8px;
  background:
    linear-gradient(90deg,
      var(--emerald) 0, var(--emerald) 12px,
      transparent 12px, transparent 16px,
      var(--moss) 16px, var(--moss) 32px,
      transparent 32px, transparent 40px,
      var(--emerald) 40px, var(--emerald) 60px);
  z-index: 2;
}

/* ════════════════════════════════════════════════════════════════════
   HEADER — barre de navigation top, façon UI de jeu
   ════════════════════════════════════════════════════════════════════ */
.vp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}
/* État scrollé — semi-transparent + flou + liseré or discret */
.vp-header.scrolled {
  background: rgba(10, 10, 31, 0.72);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 216, 74, 0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.vp-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}
.vp-logo-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.vp-logo-mark img {
  height: 50px;
  filter: drop-shadow(2px 2px 0 #000);
}
.vp-logo-text {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 #000, 3px 3px 0 var(--gold-d);
}
.vp-logo-text small {
  display: block;
  font-family: var(--f-pixel);
  font-size: 12px;
  color: var(--parch-2);
  margin-top: 6px;
  letter-spacing: 0.22em;
  text-shadow: 1px 1px 0 #000;
}
.vp-nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.vp-nav-links a {
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--parch);
  text-decoration: none;
  padding: 11px 14px;
  border: 2px solid transparent;
  text-shadow: 1px 1px 0 #000;
  text-transform: uppercase;
}
.vp-nav-links a:hover {
  background: rgba(245, 200, 66, 0.12);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 rgba(245, 200, 66, 0.3);
}

/* ════════════════════════════════════════════════════════════════════
   BUTTONS — style menu JRPG bleu nuit + bordure or
   ════════════════════════════════════════════════════════════════════ */
.vp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--f-pixel);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-night) 100%);
  border: 3px solid var(--gold);
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
  box-shadow:
    inset 2px 2px 0 0 var(--royal),
    inset -2px -2px 0 0 var(--stone-edge-d),
    4px 4px 0 0 #000;
  transition: none;
  image-rendering: pixelated;
}
.vp-btn:hover {
  transform: translate(2px, 2px);
  box-shadow:
    inset 2px 2px 0 0 var(--royal-l),
    inset -2px -2px 0 0 var(--stone-edge-d),
    2px 2px 0 0 #000;
  color: var(--gold-l);
  border-color: var(--gold-l);
}
.vp-btn:active {
  transform: translate(4px, 4px);
  box-shadow:
    inset 2px 2px 0 0 var(--stone-edge-d),
    inset -2px -2px 0 0 var(--royal),
    0 0 0 0 #000;
}
/* Primary — bouton "OK" doré (FF menu confirm) */
.vp-btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-d) 100%);
  color: var(--ink-dark);
  border-color: var(--gold-l);
  text-shadow: 1px 1px 0 var(--gold-l);
  box-shadow:
    inset 2px 2px 0 0 var(--gold-l),
    inset -2px -2px 0 0 var(--gold-d),
    4px 4px 0 0 #000;
}
.vp-btn-primary:hover {
  color: var(--ink-dark);
  border-color: #fff;
  box-shadow:
    inset 2px 2px 0 0 #fff5b8,
    inset -2px -2px 0 0 var(--gold-d),
    2px 2px 0 0 #000;
}
/* Ghost — bouton "annuler" / lien discret */
.vp-btn-ghost {
  background: transparent;
  border-color: var(--royal);
  color: var(--royal-l);
  box-shadow:
    inset 2px 2px 0 0 rgba(104,80,224,0.2),
    inset -2px -2px 0 0 rgba(0,0,0,0.4),
    4px 4px 0 0 #000;
}
.vp-btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.vp-btn-sm { padding: 9px 14px; font-size: 13px; }

/* ════════════════════════════════════════════════════════════════════
   HERO — gros header avec slot image + cartouche titre style écran-titre
   ════════════════════════════════════════════════════════════════════ */
.vp-hero {
  position: relative;
  width: 100%;
  background: var(--bg-night);
}

/* Slider plein largeur — RIEN d'autre. Juste les images. */
.vp-hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;  /* dvh = dynamic viewport height, gère mieux les barres mobiles */
  overflow: hidden;
  background: var(--bg-night);
}

.vp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}
.vp-slide.active { opacity: 1; }
.vp-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  image-rendering: auto;
}
/* Voile noir uniforme + vignette pour lisibilité du contenu posé dessus */
.vp-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.30) 30%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Flèches discrètes sur les côtés */
.vp-slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 15;
  width: 56px; height: 56px;
  background: rgba(15, 10, 6, 0.55);
  border: 2px solid rgba(212, 168, 92, 0.7);
  color: var(--gold);
  font-family: var(--f-pixel);
  font-size: 14px;
  cursor: pointer;
  display: grid; place-items: center;
  text-shadow: 1px 1px 0 #000;
  transition: background 120ms, border-color 120ms;
}
.vp-slider-arrow:hover {
  background: var(--ink-dark);
  border-color: var(--gold);
}
.vp-slider-arrow.prev { left: 24px; }
.vp-slider-arrow.next { right: 24px; }

/* Dots en bas */
.vp-slider-controls {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex; gap: 10px;
  padding: 8px 14px;
  background: rgba(15, 10, 6, 0.55);
  border: 2px solid rgba(212, 168, 92, 0.7);
}
.vp-slider-dot {
  width: 12px; height: 12px;
  background: rgba(212, 168, 92, 0.35);
  border: 1px solid var(--ink-dark);
  cursor: pointer;
  padding: 0;
  transition: background 120ms;
}
.vp-slider-dot.active {
  background: var(--gold);
  box-shadow: inset 1px 1px 0 var(--gold-l);
}

@media (max-width: 720px) {
  .vp-slider-arrow { width: 40px; height: 40px; }
  .vp-slider-arrow.prev { left: 10px; }
  .vp-slider-arrow.next { right: 10px; }
}

/* ════════════════════════════════════════════════════════════════════
   SECTIONS — header + body
   ════════════════════════════════════════════════════════════════════ */
.vp-section {
  padding: 70px 0;
  position: relative;
}
.vp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.vp-eyebrow {
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 1px 1px 0 #000;
}
.vp-section-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 0.98;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 #000, 4px 4px 0 var(--gold-d);
}
.vp-section-title .accent { color: var(--gold); }
.vp-section-sub {
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--ink-dim);
  margin-top: 12px;
  max-width: 60ch;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════════════
   ARTICLES GRID — cards en parchemin/pierre
   ════════════════════════════════════════════════════════════════════ */
.vp-grid-articles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.vp-card {
  grid-column: span 3;
  background: var(--bg-card);
  border: 4px solid var(--stone-edge-d);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  box-shadow:
    inset 3px 3px 0 0 var(--bg-stone),
    inset -3px -3px 0 0 var(--bg-stone-d),
    6px 6px 0 0 #0a0604;
  transition: none;
}
.vp-card:hover {
  transform: translate(-2px, -2px);
  box-shadow:
    inset 3px 3px 0 0 var(--bg-stone),
    inset -3px -3px 0 0 var(--bg-stone-d),
    8px 8px 0 0 var(--gold-d);
}
.vp-card.feat { grid-column: span 8; }
.vp-card.std  { grid-column: span 4; }
.vp-card.tall { grid-column: span 4; }
.vp-card.row  { grid-column: span 4; }
/* Card "tall" — à droite du featured, même hauteur, image grande */
.vp-card.tall .vp-card-img { aspect-ratio: 16/10; flex: 0 0 auto; }
.vp-right-col {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vp-right-col .vp-card.tall {
  flex: 1 1 auto;
  grid-column: auto;
}
.vp-fanstats-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 0 0 auto;
}
.vp-fanstat {
  border: 3px solid #000;
  padding: 14px 10px;
  text-align: center;
  position: relative;
  text-decoration: none;
  color: #fff;
  box-shadow: 4px 4px 0 #000;
  transition: transform 80ms;
}
.vp-fanstat:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; }
/* Couleurs PLEINES par réseau, logo + chiffres + label tout en blanc */
.vp-fanstat[data-net="yt"] { background: #ff0033; }
.vp-fanstat[data-net="ig"] { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.vp-fanstat[data-net="x"]  { background: #1da1f2; }
.vp-fanstat[data-net="dc"] { background: #5865f2; }
.vp-fanstat .vp-fanstat-icon,
.vp-fanstat .vp-fanstat-num,
.vp-fanstat .vp-fanstat-lbl { color: #ffffff; }
.vp-fanstat-icon {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.vp-fanstat-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
.vp-fanstat-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.vp-fanstat-lbl {
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-top: 6px;
}
@media (max-width: 960px) {
  .vp-right-col { grid-column: span 12; }
}
@media (max-width: 960px) {
  .vp-card, .vp-card.feat, .vp-card.std, .vp-card.tall, .vp-card.row { grid-column: span 12; }
  .vp-card.tall .vp-card-img { aspect-ratio: 16/10; min-height: 0; }
}

.vp-card-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone-d);
  position: relative;
  border-bottom: 4px solid var(--stone-edge-d);
  image-rendering: pixelated;
  filter: saturate(1.15) contrast(1.05);
}
.vp-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(26, 18, 10, 0.5)),
    repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.12) 3px, transparent 4px);
}
.vp-card.feat .vp-card-img { aspect-ratio: 16/9; }

.vp-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 6px 10px;
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.16em;
  background: var(--ink-dark);
  color: var(--gold);
  border: 2px solid var(--gold);
  text-shadow: 1px 1px 0 #000;
  box-shadow: 2px 2px 0 #0a0604;
}
/* Couleurs disponibles pour les badges catégorie (associé à categories.label_class) */
.vp-card-cat.red     { color: #ff5a6a; border-color: #ff5a6a; }
.vp-card-cat.blue    { color: #4ac8ff; border-color: #4ac8ff; }
.vp-card-cat.royal   { color: #a890ff; border-color: #a890ff; }
.vp-card-cat.green   { color: var(--emerald-l); border-color: var(--emerald-l); }
.vp-card-cat.yellow  { color: var(--gold-l); border-color: var(--gold-l); }
.vp-card-cat.orange  { color: #ffa860; border-color: #ffa860; }
.vp-card-cat.pink    { color: #ff8ab8; border-color: #ff8ab8; }
.vp-card-cat.purple  { color: #c878f0; border-color: #c878f0; }
.vp-card-cat.cyan    { color: var(--azure-l); border-color: var(--azure-l); }
.vp-card-cat.white   { color: #ffffff; border-color: #ffffff; }
.vp-card-cat.lime    { color: #c8ff5a; border-color: #c8ff5a; }
.vp-card-cat.emerald { color: #4ad080; border-color: #4ad080; }
/* Rétrocompat — anciennes valeurs */
.vp-card-cat.tile    { color: #ff8a6a; border-color: #ff8a6a; }
.vp-card-cat.azure   { color: var(--azure-l); border-color: var(--azure-l); }
.vp-card-cat.magenta { color: #ff8ab8; border-color: #ff8ab8; }
.vp-card-cat.mag     { color: #ff8ab8; border-color: #ff8ab8; }
.vp-card-cat.yel     { color: var(--gold-l); border-color: var(--gold-l); }
.vp-card-cat.grn     { color: var(--emerald-l); border-color: var(--emerald-l); }

.vp-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.vp-card-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.vp-card-title a { color: var(--ink); text-decoration: none; }
.vp-card-title a:hover { color: var(--gold); }
.vp-card.feat .vp-card-title { font-size: 28px; font-weight: 900; }
.vp-card-meta {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--ink-mute);
  margin-top: auto;
}
.vp-card-meta::before { content: '▸ '; color: var(--gold); }

/* ════════════════════════════════════════════════════════════════════
   TUTORIALS — list rows, façon menu RPG
   ════════════════════════════════════════════════════════════════════ */
.vp-tuto-row {
  display: grid;
  grid-template-columns: 70px 50px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 3px solid var(--stone-edge-d);
  border-left: 6px solid var(--gold);
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 8px;
  box-shadow:
    inset 2px 2px 0 0 var(--bg-stone),
    inset -2px -2px 0 0 var(--bg-stone-d),
    4px 4px 0 0 #0a0604;
}
.vp-tuto-row:hover {
  border-left-color: var(--tile);
  transform: translateX(-2px);
  box-shadow:
    inset 2px 2px 0 0 var(--bg-stone),
    inset -2px -2px 0 0 var(--bg-stone-d),
    6px 6px 0 0 var(--tile-d);
}
.vp-tuto-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 36px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000, 3px 3px 0 var(--gold-d);
}
.vp-tuto-content h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
}
.vp-tuto-content p {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.vp-tuto-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: end;
  text-align: right;
}
.vp-tuto-time {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--emerald-l);
  text-shadow: 1px 1px 0 #000;
}

/* ════════════════════════════════════════════════════════════════════
   YOUTUBE
   ════════════════════════════════════════════════════════════════════ */
.vp-yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .vp-yt-grid { grid-template-columns: 1fr; } }

.vp-yt-card {
  display: block;
  background: var(--bg-card);
  border: 4px solid var(--stone-edge-d);
  text-decoration: none;
  color: var(--ink);
  box-shadow:
    inset 3px 3px 0 0 var(--bg-stone),
    inset -3px -3px 0 0 var(--bg-stone-d),
    6px 6px 0 0 #0a0604;
}
.vp-yt-card:hover {
  transform: translate(-2px, -2px);
  box-shadow:
    inset 3px 3px 0 0 var(--bg-stone),
    inset -3px -3px 0 0 var(--bg-stone-d),
    8px 8px 0 0 var(--tile-d);
}
.vp-yt-thumb {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone-d);
  position: relative;
  border-bottom: 4px solid var(--stone-edge-d);
  image-rendering: pixelated;
}
.vp-yt-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(26,18,10,0.5)),
    repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.12) 3px, transparent 4px);
}
.vp-yt-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.vp-yt-play::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  background: var(--gold);
  border: 4px solid var(--ink-dark);
  box-shadow:
    inset 3px 3px 0 var(--gold-l),
    inset -3px -3px 0 var(--gold-d),
    6px 6px 0 #000;
  image-rendering: pixelated;
  z-index: 1;
}
.vp-yt-glyph {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(calc(-50% + 3px), -50%);
  z-index: 3;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #0a0a1f;
  line-height: 1;
  display: block;
}
.vp-yt-card:hover .vp-yt-play::before {
  background: var(--gold-l);
  box-shadow:
    inset 3px 3px 0 #fff5b8,
    inset -3px -3px 0 var(--gold),
    6px 6px 0 #000;
}
.vp-yt-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  z-index: 3;
  padding: 4px 8px;
  font-family: var(--f-pixel);
  font-size: 13px;
  background: var(--ink-dark);
  color: var(--gold);
  border: 2px solid var(--gold);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.1em;
}
.vp-yt-meta {
  padding: 14px 18px 18px;
}
.vp-yt-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}
.vp-yt-stats {
  font-family: var(--f-mono);
  font-size: 17px;
  color: var(--ink-mute);
  display: flex; gap: 8px; align-items: center;
}

/* ════════════════════════════════════════════════════════════════════
   SHOP
   ════════════════════════════════════════════════════════════════════ */
.vp-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .vp-shop-grid { grid-template-columns: repeat(2, 1fr); } }

.vp-shop-card {
  display: block;
  background: var(--bg-card);
  border: 4px solid var(--stone-edge-d);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    inset 3px 3px 0 0 var(--bg-stone),
    inset -3px -3px 0 0 var(--bg-stone-d),
    6px 6px 0 0 #0a0604;
}
.vp-shop-card:hover {
  transform: translate(-2px, -2px);
  box-shadow:
    inset 3px 3px 0 0 var(--bg-stone),
    inset -3px -3px 0 0 var(--bg-stone-d),
    8px 8px 0 0 var(--gold-d);
}
.vp-shop-thumb {
  aspect-ratio: 1/1;
  background:
    repeating-linear-gradient(45deg, var(--bg-stone-d) 0 4px, transparent 4px 8px),
    radial-gradient(circle at 50% 50%, var(--bg-stone) 0%, var(--bg-stone-d) 100%);
  display: grid; place-items: center;
  font-family: var(--f-pixel);
  font-size: 14px;
  color: var(--gold);
  text-align: center;
  padding: 0 12px;
  border-bottom: 4px solid var(--stone-edge-d);
  position: relative;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 0.12em;
}
.vp-shop-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 8px;
  font-family: var(--f-pixel);
  font-size: 12px;
  background: var(--tile);
  color: #fff;
  border: 2px solid var(--ink-dark);
  text-shadow: 1px 1px 0 var(--tile-d);
  letter-spacing: 0.12em;
  box-shadow: 2px 2px 0 #0a0604;
}
.vp-shop-meta { padding: 14px 16px 18px; }
.vp-shop-cat {
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
}
.vp-shop-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-top: 10px;
  color: var(--ink);
}
.vp-shop-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.vp-shop-price {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
}
.vp-shop-cart {
  width: 36px; height: 36px;
  background: var(--ink-dark);
  border: 2px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 2px 2px 0 #0a0604;
}
.vp-shop-cart:hover {
  background: var(--gold);
  color: var(--ink-dark);
}

/* ════════════════════════════════════════════════════════════════════
   PREMIUM
   ════════════════════════════════════════════════════════════════════ */
.vp-premium {
  padding: 90px 0;
  position: relative;
  border-top: 4px solid var(--gold-d);
  border-bottom: 4px solid var(--gold-d);
  background:
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(245, 200, 66, 0.06), transparent 70%),
    var(--bg-night);
}
.vp-premium-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) { .vp-premium-inner { grid-template-columns: 1fr; } }

.vp-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .vp-tier-grid { grid-template-columns: 1fr; } }

.vp-tier {
  background: var(--bg-card);
  border: 4px solid var(--stone-edge-d);
  padding: 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 3px 3px 0 0 var(--bg-stone),
    inset -3px -3px 0 0 var(--bg-stone-d),
    6px 6px 0 0 #0a0604;
}
.vp-tier.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  transform: translateY(-10px);
  padding-bottom: 14px; /* compense le translateY(-10px) pour aligner le bas du bouton avec les autres tiers */
  box-shadow:
    inset 3px 3px 0 0 var(--bg-stone-l),
    inset -3px -3px 0 0 var(--bg-stone-d),
    6px 6px 0 0 var(--gold-d),
    10px 10px 0 0 #0a0604;
}
.vp-tier-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  font-family: var(--f-pixel);
  font-size: 13px;
  background: var(--gold);
  color: var(--ink-dark);
  border: 2px solid var(--ink-dark);
  letter-spacing: 0.18em;
  box-shadow: 2px 2px 0 var(--ink-dark);
}
.vp-tier-name {
  font-family: var(--f-pixel);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 1px 1px 0 #000;
}
.vp-tier-price {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  text-shadow: 2px 2px 0 #000;
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
.vp-tier-amount {
  font-variant-numeric: tabular-nums;
}
.vp-tier-currency {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-left: 4px;
}
.vp-tier-price small {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 6px;
  letter-spacing: 0;
}
.vp-tier-price small {
  font-size: 14px;
  color: var(--ink-mute);
  margin-left: 6px;
  font-weight: normal;
}
.vp-tier ul {
  list-style: none;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.vp-tier li {
  font-size: 14px;
  color: var(--ink-dim);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
  font-family: var(--f-body);
}
.vp-tier li::before {
  content: '★';
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-size: 12px;
}
.vp-tier .vp-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* texte d'intro premium */
.vp-pixel { font-family: var(--f-pixel); }
.vp-crt { font-family: var(--f-mono); }

/* ════════════════════════════════════════════════════════════════════
   NEWSLETTER
   ════════════════════════════════════════════════════════════════════ */
.vp-newsletter {
  background: var(--bg-card);
  color: var(--ink);
  border: 4px solid var(--gold);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
  box-shadow:
    inset 3px 3px 0 0 var(--bg-card-2),
    inset -3px -3px 0 0 var(--stone-edge-d),
    8px 8px 0 0 var(--royal-d),
    11px 11px 0 0 #000;
  position: relative;
}
@media (max-width: 800px) {
  .vp-newsletter { grid-template-columns: 1fr; padding: 26px; }
}
.vp-newsletter h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 2px 2px 0 #000;
}
.vp-newsletter p {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.vp-newsletter form {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.vp-newsletter input {
  flex: 1;
  min-width: 180px;
  padding: 13px 14px;
  background: var(--bg-deep);
  border: 3px solid var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 18px;
  outline: none;
  box-shadow: inset 2px 2px 0 var(--stone-edge-d);
}
.vp-newsletter input:focus {
  border-color: var(--azure-l);
  box-shadow: inset 2px 2px 0 var(--stone-edge-d), 0 0 0 2px var(--azure);
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */
.vp-footer {
  background: linear-gradient(180deg, #0a0a1f 0%, #050518 100%);
  border-top: 4px solid var(--gold);
  padding: 60px 0 30px;
  position: relative;
  margin-top: 30px;
}
.vp-footer::before {
  content: '';
  position: absolute;
  top: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold-d);
}
.vp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .vp-footer-grid { grid-template-columns: 1fr 1fr; } }

.vp-footer-brand img {
  height: 70px;
  filter: drop-shadow(2px 2px 0 #000);
  margin-bottom: 16px;
}
.vp-footer-brand p {
  color: var(--ink-mute);
  max-width: 36ch;
  font-family: var(--f-mono);
  font-size: 19px;
  line-height: 1.4;
}
.vp-footer-col h4 {
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 1px 1px 0 #000;
  text-transform: uppercase;
}
.vp-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vp-footer-col a {
  color: var(--ink-dim);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 18px;
}
.vp-footer-col a:hover {
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
}
.vp-footer-bottom {
  border-top: 2px dashed rgba(245, 200, 66, 0.2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-pixel);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  flex-wrap: wrap;
  gap: 12px;
  text-transform: uppercase;
}
.vp-footer-bottom a {
  color: var(--royal-l);
  text-decoration: none;
}
.vp-footer-bottom a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.vp-footer-bottom .blink {
  display: inline-block;
  width: 8px; height: 12px;
  background: var(--gold);
  vertical-align: middle;
  margin-left: 6px;
  animation: vpblink 1s steps(2) infinite;
  box-shadow: 0 0 6px var(--gold);
}
@keyframes vpblink { 50% { opacity: 0; } }
.vp-footer-bottom .blink.blink-cyan {
  background: #5ce1ff;
  box-shadow: 0 0 8px #5ce1ff;
}

.vp-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.vp-social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--bg-stone-d);
  border: 2px solid var(--gold-d);
  color: var(--parch);
  text-decoration: none;
  box-shadow: 2px 2px 0 #0a0604;
}
.vp-social:hover {
  background: var(--gold);
  color: var(--ink-dark);
  border-color: var(--ink-dark);
}

/* ════════════════════════════════════════════════════════════════════
   Tweaks Panel reset + utilities
   ════════════════════════════════════════════════════════════════════ */
.glow-cyan { color: var(--azure-l); }
.neon { color: var(--gold); }
.outline { color: var(--ink); }
.accent { color: var(--gold); }

/* divider décoratif */
.vp-divider {
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--gold) 0, var(--gold) 8px,
      transparent 8px, transparent 16px);
  margin: 20px 0;
  opacity: 0.5;
}
