/* ════════════════════════════════════════════════════════════════════
   Vintage Players V2 — site.css (overrides + ajouts au design Claude)
   ════════════════════════════════════════════════════════════════════ */

/* Skip link a11y */
.vp-skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink-dark);
  padding: 8px 14px;
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.16em;
  z-index: 9999;
  text-decoration: none;
}
.vp-skiplink:focus { left: 8px; top: 8px; }

/* Liens actifs dans la nav */
.vp-nav-links a.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(245, 200, 66, 0.12);
}

/* Bouton burger mobile */
.vp-nav-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  background: transparent;
  border: 2px solid var(--gold);
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}
.vp-nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
}
@media (max-width: 880px) {
  .vp-nav-toggle { display: flex; }
  .vp-nav-links {
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    background: rgba(10, 10, 31, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--gold);
    padding: 18px 24px;
    gap: 0;
    display: none;
    z-index: 49;
  }
  .vp-nav-links.open { display: flex; }
  .vp-nav-cta { margin-left: auto; }
}

/* Padding pour main pour que le header fixed ne masque pas le hero */
main { display: block; }
/* AUCUN padding-top sur main — le menu flotte transparent par-dessus le contenu sur toutes les pages.
   Les éléments de tête (.vp-page-head, .vp-hero, .vp-article-page, etc.) gèrent leur propre offset interne. */
.vp-app main { padding-top: 0; }

/* Le hero avait une hauteur de 110vh, on doit s'assurer qu'il est visible sous le header fixed */
.vp-hero { padding-top: 0; }

/* Badge console à droite du tuto (remplace les étoiles de difficulté) */
.vp-tuto-console {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--ink-dark);
  border: 2px solid var(--gold);
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 2px 2px 0 #000;
  white-space: nowrap;
}

/* Vignette de cover des tutos sur la home — petite, tient dans la hauteur de la barre */
.vp-tuto-thumb {
  width: 50px;
  height: 50px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone-d);
  border: 2px solid var(--stone-edge-d);
  image-rendering: pixelated;
  align-self: center;
  flex-shrink: 0;
}
.vp-tuto-thumb.placeholder {
  background:
    repeating-linear-gradient(45deg, var(--bg-stone-d) 0 4px, transparent 4px 8px),
    var(--bg-stone-d);
}
/* Empêche le contenu texte d'imposer une min-width qui ferait wrapper le titre */
.vp-tuto-content { min-width: 0; }

/* Sur mobile : on garde la vignette mais grille adaptée */
@media (max-width: 720px) {
  .vp-tuto-row { grid-template-columns: 50px 40px 1fr !important; }
  .vp-tuto-thumb { width: 40px; height: 40px; }
  .vp-tuto-meta { display: none; }
}

/* ─── Quadrillage "atelier électronicien" (pages tutos) ──────────────
   Remplace le fond bleu + étoiles par un fond uni + quadrillage violet
   (rappelle la plaque de protection sur laquelle on soude/répare). */
.vp-app.vp-bg-grid::before {
  background: var(--bg-deep) !important;
}
.vp-app.vp-bg-grid::after {
  background-image:
    linear-gradient(rgba(104, 80, 224, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 80, 224, 0.10) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  animation: none !important;
  opacity: 1 !important;
}

/* ─── Articles liés en bas d'un article : 3 colonnes ──────────────── */
.vp-related-section {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 40px 36px 0;
  position: relative;
}
.vp-related-section::before {
  content: '';
  display: block;
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0, var(--gold) 8px,
    transparent 8px, transparent 16px);
  opacity: 0.5;
  margin-bottom: 32px;
}
.vp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.vp-related-grid .vp-card {
  grid-column: auto;
}
.vp-related-grid .vp-card .vp-card-img { aspect-ratio: 16/9; }
@media (max-width: 900px) {
  .vp-related-grid { grid-template-columns: 1fr; }
}

/* ─── Grille de la page /news : 2 colonnes propres ──────────────────── */
.vp-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.vp-news-grid .vp-card {
  grid-column: auto;
}
.vp-news-grid .vp-card .vp-card-img { aspect-ratio: 16/9; }
.vp-news-grid .vp-card .vp-card-title { font-size: 19px; }
@media (max-width: 720px) {
  .vp-news-grid { grid-template-columns: 1fr; }
}

/* ─── Slider hero : overlay avec catégorie / titre / sous-titre / bouton ──── */
.vp-slide-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 60px 0 90px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,31,0.85) 100%);
  pointer-events: none;
}
.vp-slide-content > .vp-container { pointer-events: auto; max-width: 1280px; }
.vp-slide-cat {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.2em;
  background: var(--ink-dark);
  color: var(--gold);
  border: 2px solid var(--gold);
  text-shadow: 1px 1px 0 #000;
  box-shadow: 3px 3px 0 #000;
  margin-bottom: 18px;
}
.vp-slide-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 3px 3px 0 #000, 5px 5px 0 var(--gold-d);
  margin: 0 0 14px;
  max-width: 24ch;
}
.vp-slide-subtitle {
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--ink-dim);
  line-height: 1.4;
  margin: 0 0 24px;
  max-width: 50ch;
  text-shadow: 1px 1px 0 #000;
}
.vp-slide-cta {
  display: inline-flex;
}
@media (max-width: 720px) {
  .vp-slide-content { padding: 40px 0 70px; }
  .vp-slide-title { font-size: clamp(24px, 6vw, 40px); }
  .vp-slide-subtitle { font-size: 18px; }
}

/* Forcer le header transparent par défaut (Hostinger ou autre browser peut ajouter un fond) */
.vp-header { background-color: transparent; }
.vp-header:not(.scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

/* Page header (titre de section sur les pages sans hero) */
.vp-page-head {
  padding: 110px 0 30px;
  border-bottom: 4px solid var(--gold-d);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(104, 80, 224, 0.15), transparent 60%),
    var(--bg-night);
  position: relative;
}
.vp-page-head .vp-eyebrow { margin-bottom: 14px; }
.vp-page-head h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 #000, 4px 4px 0 var(--gold-d);
}
.vp-page-head h1 .accent { color: var(--gold); }
.vp-page-head p {
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--ink-dim);
  margin-top: 18px;
  max-width: 70ch;
  line-height: 1.4;
}

/* Filtres / pills */
.vp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
}
.vp-filter {
  padding: 10px 16px;
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--parch);
  background: var(--bg-stone-d);
  border: 2px solid var(--stone-edge-d);
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 2px 2px 0 #000;
}
.vp-filter:hover, .vp-filter.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 216, 74, 0.12);
}

/* Barre de recherche articles */
.vp-search-bar {
  display: flex;
  gap: 8px;
  margin-top: 44px;
  max-width: 520px;
}
.vp-search-bar input[type=search] {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--parch);
  background: rgba(10, 10, 31, 0.5);
  border: 2px solid var(--stone-edge-d);
  border-radius: 0;
  outline: none;
}
.vp-search-bar input[type=search]:focus { border-color: var(--gold); }
.vp-search-bar button {
  padding: 10px 18px;
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--bg-deep);
  background: var(--gold);
  border: 2px solid var(--gold-d);
  cursor: pointer;
  text-transform: uppercase;
}
.vp-search-bar button:hover { background: var(--gold-l); }

/* Filtre actif (tag/recherche) */
.vp-active-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-dim);
}
.vp-tag-pill {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(255, 216, 74, 0.12);
  border: 2px solid var(--gold-d);
}
.vp-filter-clear {
  color: var(--parch);
  text-decoration: none;
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 2px solid var(--stone-edge-d);
}
.vp-filter-clear:hover { color: var(--gold); border-color: var(--gold); }

/* Pagination */
.vp-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 40px 0 20px;
  flex-wrap: wrap;
}
.vp-pagination a, .vp-pagination span {
  min-width: 38px;
  padding: 8px 12px;
  font-family: var(--f-pixel);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  color: var(--parch);
  background: var(--bg-stone-d);
  border: 2px solid var(--stone-edge-d);
  text-shadow: 1px 1px 0 #000;
  box-shadow: 2px 2px 0 #000;
}
.vp-pagination a:hover { border-color: var(--gold); color: var(--gold); }
.vp-pagination .current {
  background: var(--gold);
  color: var(--ink-dark);
  border-color: var(--gold-l);
}
.vp-pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ─── Article single ──────────────────────────────────────────────── */
.vp-article-page { padding: 0 0 60px; }
.vp-article-hero {
  margin-bottom: 36px;
  position: relative;
}
.vp-article-cover {
  aspect-ratio: 21/9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone-d);
  border: none;
  border-bottom: 4px solid var(--gold);
  image-rendering: pixelated;
  position: relative;
}
.vp-article-cover::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(10,10,31,0.85) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.12) 3px, transparent 4px);
}
.vp-article-titlewrap {
  max-width: 1200px;
  margin: -120px auto 0;
  padding: 32px 36px;
  background: var(--bg-card);
  border: 4px solid var(--gold);
  position: relative;
  box-shadow:
    inset 3px 3px 0 var(--bg-card-2),
    inset -3px -3px 0 var(--stone-edge-d),
    8px 8px 0 #000;
  z-index: 2;
}
.vp-article-titlewrap h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 2px 2px 0 #000, 3px 3px 0 var(--gold-d);
}
.vp-article-meta {
  font-family: var(--f-mono);
  font-size: 19px;
  color: var(--ink-dim);
  margin-top: 14px;
}
.vp-article-meta::before { content: '▸ '; color: var(--gold); }
.vp-article-meta strong { color: var(--gold); font-weight: 600; }
.vp-article-body {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 36px;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.vp-article-body p { margin: 0 0 1.2em; }
.vp-article-body h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 30px;
  margin: 1.6em 0 0.6em;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
}
.vp-article-body h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  margin: 1.4em 0 0.5em;
  color: var(--ink);
  text-shadow: 1px 1px 0 #000;
}
/* :not(.vp-btn) — un bouton placé dans un corps d'article reste un bouton,
   il ne doit pas hériter du soulignement doré des liens de texte. */
.vp-article-body a:not(.vp-btn) {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-d);
  text-underline-offset: 3px;
}
.vp-article-body a:not(.vp-btn):hover { color: var(--gold-l); }
.vp-article-body img.vp-wp-placeholder {
  outline: 3px dashed var(--gold);
  outline-offset: -3px;
  opacity: 0.55;
  filter: grayscale(0.5);
}
.vp-article-body img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--stone-edge-d);
  margin: 1.4em 0;
}
.vp-article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 14px 22px;
  margin: 1.4em 0;
  background: rgba(10, 10, 31, 0.5);
  font-family: var(--f-mono);
  font-size: 21px;
  color: var(--ink-dim);
}
.vp-article-body code {
  font-family: var(--f-mono);
  background: var(--bg-stone-d);
  padding: 2px 6px;
  font-size: 18px;
  color: var(--azure-l);
  border: 1px solid var(--stone-edge-d);
}
.vp-article-body pre {
  background: var(--bg-deep);
  border: 3px solid var(--stone-edge-d);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--azure-l);
  margin: 1.4em 0;
}
.vp-article-body ul, .vp-article-body ol { padding-left: 24px; margin: 0 0 1.2em; }
.vp-article-body li { margin-bottom: 0.4em; }

/* Tableaux dans le corps de l'article */
.vp-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  background: rgba(10, 10, 31, 0.4);
  border: 3px solid var(--stone-edge-d);
  box-shadow: 4px 4px 0 #000;
}
.vp-article-body table th,
.vp-article-body table td {
  padding: 14px 18px;
  border: 1px solid var(--stone-edge-d);
  text-align: left;
  vertical-align: top;
  font-size: inherit;
  line-height: inherit;
}
.vp-article-body table th {
  background: var(--bg-stone-d);
  color: var(--gold);
  font-weight: 700;
  text-shadow: 1px 1px 0 #000;
}
.vp-article-body table tr:nth-child(even) td {
  background: rgba(255, 216, 74, 0.04);
}
.vp-article-body table tr:hover td {
  background: rgba(255, 216, 74, 0.08);
}

/* Vidéos YouTube dans le corps — miniature cliquable, lecteur injecté au clic
   par site.js. Sans JS, le lien ouvre simplement la vidéo sur YouTube. */
.vp-article-body .vp-yt-embed {
  margin: 1.8em 0;
  padding: 0;
  background: #000;
  border: 3px solid var(--stone-edge-d);
  box-shadow: 4px 4px 0 #000;
}
/* Un Short en pleine largeur ferait 2 000 px de haut : on le garde centré. */
.vp-article-body .vp-yt-embed.is-short {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.vp-article-body .vp-yt-embed > a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
}
.vp-article-body .vp-yt-embed.is-short > a { aspect-ratio: 9 / 16; }
.vp-article-body .vp-yt-embed img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
}
.vp-article-body .vp-yt-embed > a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 31, 0.32);
  transition: background 0.18s;
}
/* Badge lecture rouge. Le triangle est un SVG en background (et non le glyphe
   « ▶ ») : certaines polices le rendent en emoji couleur, d'où le rendu jauni. */
.vp-article-body .vp-yt-embed > a::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 62px;
  background-color: #e01b1b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38px 38px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  transition: background-color 0.18s, transform 0.18s;
}
.vp-article-body .vp-yt-embed > a:hover::after { background: rgba(10, 10, 31, 0.12); }
.vp-article-body .vp-yt-embed > a:hover::before,
.vp-article-body .vp-yt-embed > a:focus-visible::before {
  background-color: #ff3232;
  transform: translate(-50%, -50%) scale(1.07);
}
.vp-article-body .vp-yt-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.vp-article-body .vp-yt-embed.is-short iframe { aspect-ratio: 9 / 16; }
.vp-article-body .vp-yt-embed figcaption {
  padding: 10px 14px;
  background: var(--bg-stone-d);
  border-top: 3px solid var(--stone-edge-d);
  font-family: var(--f-mono);
  font-size: 17px;
  color: var(--ink-dim);
  text-align: center;
}
@media (max-width: 640px) {
  .vp-article-body .vp-yt-embed > a::before {
    width: 66px;
    height: 46px;
    background-size: 28px 28px;
  }
}

/* Page contact — rangée de boutons mail / Discord. */
.vp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 36px;
}
.vp-btn.vp-btn-discord {
  background: #5865f2;
  color: #fff;
  border-color: #98a2ff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
  box-shadow: 4px 4px 0 0 #000;
}
.vp-btn.vp-btn-discord:hover {
  background: #6f7bff;
  border-color: #c3c9ff;
  color: #fff;
  box-shadow: 2px 2px 0 0 #000;
}

/* Infobulle des avantages premium (convention « Libellé | précision »). */
.vp-tier-info {
  display: inline-block;
  margin-left: 4px;
  color: var(--azure-l);
  cursor: help;
  font-style: normal;
  line-height: 1;
}
.vp-tier-info:hover,
.vp-tier-info:focus-visible { color: var(--gold); }

/* Boutons marchands (fiche produit).
   Convention maison : bordure de 3 px dans une teinte plus CLAIRE que le fond,
   et ombre portée dure. Pas de liseré doré à l'intérieur — les insets de
   .vp-btn-primary sont donc explicitement neutralisés. */
.vp-btn.vp-btn-vinted,
.vp-btn.vp-btn-lbc,
.vp-btn.vp-btn-amazon {
  justify-content: center;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
  box-shadow: 4px 4px 0 0 #000;
}
.vp-btn.vp-btn-vinted:hover,
.vp-btn.vp-btn-lbc:hover,
.vp-btn.vp-btn-amazon:hover {
  box-shadow: 2px 2px 0 0 #000;
}

.vp-btn.vp-btn-vinted {
  background: #007782;
  color: #fff;
  border-color: #00b9c9;
}
.vp-btn.vp-btn-vinted:hover { background: #008f9c; border-color: #3ddfee; color: #fff; }

.vp-btn.vp-btn-lbc {
  background: #ff6e14;
  color: #fff;
  border-color: #ffa066;
}
.vp-btn.vp-btn-lbc:hover { background: #ff8433; border-color: #ffc09b; color: #fff; }

.vp-btn.vp-btn-amazon {
  background: #f5c842;
  color: #0a0a1f;
  border-color: #ffe38f;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35);
}
.vp-btn.vp-btn-amazon:hover { background: #ffd75e; border-color: #fff2c4; color: #0a0a1f; }

.vp-tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.vp-tag {
  padding: 6px 12px;
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--parch);
  background: var(--bg-stone-d);
  border: 2px solid var(--stone-edge-d);
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}
.vp-tag:hover { color: var(--gold); border-color: var(--gold); }

/* Barre partage article */
.vp-article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 36px;
}
.vp-share-label {
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-right: 6px;
}
.vp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--parch);
  background: var(--bg-stone-d);
  border: 2px solid var(--stone-edge-d);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-shadow: 1px 1px 0 #000;
}
.vp-share-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.vp-share-btn.copied {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold-d);
}

/* Lien admin "Modifier" dans la meta article */
.vp-article-edit {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dashed var(--gold-d);
}
.vp-article-edit:hover { color: var(--gold-l); }

/* ─── Tuto single ─────────────────────────────────────────────────── */
.vp-tuto-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin: 22px 0 30px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 3px solid var(--stone-edge-d);
  border-left: 6px solid var(--gold);
}
.vp-tuto-meta-bar > div {
  display: flex; flex-direction: column;
  font-family: var(--f-pixel);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vp-tuto-meta-bar > div strong {
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 19px;
  font-weight: normal;
  margin-top: 4px;
  letter-spacing: 0;
  text-transform: none;
}

/* ════════════════════════════════════════════════════════════════════
   YouTube — version Netflix / Prime Video
   ════════════════════════════════════════════════════════════════════ */

/* HERO featured — version slider (reprend l'archi de .vp-hero-slider du home) */
.vp-yt-hero-section {
  position: relative;
  border-bottom: 4px solid var(--gold);
}
.vp-yt-hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  /* min-height = zone de clearance header (≈108px) + worst-case du contenu (~660px).
     660px couvre un titre 4 lignes (~280px) + desc 4 lignes (~120px) + meta + 2 CTA
     + marges internes. Garantit que le titre ne passe jamais sous le menu. */
  min-height: calc(var(--vp-hero-top-safe) + 660px);
  overflow: hidden;
  background-color: var(--bg-night);
}
.vp-yt-hero-slider .vp-slide-bg {
  background-color: var(--bg-night);
  image-rendering: auto;
}
.vp-yt-hero-slider .vp-slide-bg::after {
  background:
    linear-gradient(180deg, rgba(10,10,31,0.45) 0%, rgba(10,10,31,0.25) 30%, rgba(10,10,31,0.95) 100%),
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(10,10,31,0.7) 0%, transparent 70%);
}
.vp-yt-slide-content {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  /* padding-top = header (78px) + 30px de marge garantie sous le menu.
     padding-bottom réduit à 70px pour libérer plus d'espace au contenu. */
  padding: var(--vp-hero-top-safe) 0 70px;
  pointer-events: none;
}
.vp-yt-slide-content > .vp-container {
  position: relative;
  z-index: 6;
  max-width: 900px;
  pointer-events: auto;
}
.vp-yt-slide-content .vp-eyebrow {
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 18px;
}
.vp-yt-hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 3px 3px 0 #000, 5px 5px 0 var(--gold-d);
  margin-bottom: 18px;
}
.vp-yt-hero-desc {
  font-family: var(--f-mono);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-dim);
  max-width: 60ch;
  margin-bottom: 22px;
}
.vp-yt-hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--f-pixel);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--gold-l);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 28px;
}
.vp-yt-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Bouton "S'abonner" — version rouge officielle YouTube (#ff0033) */
.vp-btn.vp-btn-yt-red {
  background: #ff0033;
  color: #fff;
  border-color: #000;
  box-shadow:
    inset 2px 2px 0 0 rgba(255, 255, 255, 0.25),
    inset -2px -2px 0 0 rgba(0, 0, 0, 0.35),
    4px 4px 0 0 #000;
}
.vp-btn.vp-btn-yt-red:hover {
  background: #cc0028;
  color: #fff;
  border-color: #000;
}

/* Search bar (page YouTube) — centrée */
.vp-yt-search-wrap {
  padding: 30px 24px 0;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vp-yt-counter {
  flex: 0 0 auto;
}
.vp-yt-search-wrap .vp-search-bar {
  flex: 1 1 0;
  max-width: 1000px;
  min-width: 0;
}

/* Compteur "X vidéos" à gauche de la barre de recherche — horizontal, même hauteur */
.vp-yt-counter {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  background: var(--bg-deep);
  border: 3px solid var(--gold);
  box-shadow: inset 2px 2px 0 var(--stone-edge-d);
  white-space: nowrap;
  font-style: normal;
  flex-shrink: 0;
}
.vp-yt-counter strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  line-height: 1;
}
.vp-yt-counter em {
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--parch);
  text-transform: uppercase;
  font-style: normal;
}
@media (max-width: 720px) {
  .vp-yt-counter { width: 100%; justify-content: center; }
}

/* Rails container */
.vp-yt-rows { padding: 30px 0 80px; max-width: 1400px; margin: 0 auto; }
.vp-yt-row { margin-bottom: 50px; position: relative; }
.vp-yt-row-head {
  margin: 0 0 18px;
  /* 72px (wrap padding pour boutons) + 12px (rail padding pour hover) = 84px
     → aligne le titre de section avec le bord gauche de la 1ʳᵉ card */
  padding: 0 84px;
}
.vp-yt-row-head .vp-eyebrow {
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
  margin-bottom: 8px;
}
.vp-yt-row-head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--ink);
  text-shadow: 2px 2px 0 #000;
  margin: 0;
}
.vp-yt-row-head h2 .accent { color: var(--gold); }

/* Wrapper avec boutons de scroll (boutons positionnés DANS la zone de padding du wrap,
   donc visuellement HORS des cards) */
.vp-yt-rail-wrap { position: relative; padding: 0 72px; }
.vp-yt-rail-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 90px;
  background: rgba(10, 10, 31, 0.85);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 32px;
  font-family: var(--f-display);
  cursor: pointer;
  display: grid; place-items: center;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 4px 4px 0 #000;
  transition: opacity 200ms, transform 100ms;
}
.vp-yt-rail-btn:hover { background: var(--gold); color: var(--ink-dark); }
.vp-yt-rail-btn.prev { left: 12px; }
.vp-yt-rail-btn.next { right: 12px; }
.vp-yt-rail-btn.hidden { opacity: 0; pointer-events: none; }

.vp-yt-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Padding latéral 12px = marge de respiration pour le transform:scale au hover
     (sans cette marge, la 1ʳᵉ card scale(1.04) déborde et se fait clipper à gauche) */
  padding: 12px 12px 30px;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
  /* Cache la scrollbar — on scroll via boutons ‹ › ou drag */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vp-yt-rail::-webkit-scrollbar { display: none; height: 0; }

/* Cards : grandes, hover qui zoome avec overlay info.
   Ombre EN VERTICAL SEUL pour éviter que l'ombre d'une card hors-écran déborde
   à droite et crée un trait noir devant la card suivante pendant le scroll. */
.vp-yt-rail .vp-yt-card {
  flex: 0 0 auto;
  width: 360px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 4px solid var(--stone-edge-d);
  box-shadow: 0 6px 0 #000;
  text-decoration: none;
  color: var(--ink);
  transition: transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}
.vp-yt-rail .vp-yt-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 10px 0 var(--gold-d), 0 12px 0 #000;
  z-index: 4;
  border-color: var(--gold);
}
.vp-yt-rail .vp-yt-thumb {
  width: 100%;
  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-rail .vp-yt-card:hover .vp-yt-thumb { border-bottom-color: var(--gold); }

/* Titre et stats SOUS la thumb — universel (grid home + rails YouTube). */
.vp-yt-card .vp-yt-meta {
  padding: 14px 16px 16px;
}
.vp-yt-card .vp-yt-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  /* Truncate à 3 lignes — réserve l'espace pour aligner les cards même
     si le titre est court (min-height = 3 × line-height). */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 3);
}
.vp-yt-card .vp-yt-stats {
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--ink-mute);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
/* Bouton lecture intégré dans la meta (rouge YouTube) */
.vp-yt-card .vp-yt-stats-play {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  background: #ff0033;
  color: #fff;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000, inset 2px 2px 0 rgba(255,255,255,0.25), inset -2px -2px 0 rgba(0,0,0,0.35);
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 900;
  padding-left: 3px; /* centre optique du glyphe ▶ */
  margin-right: 4px;
  transition: background 120ms, transform 120ms;
}
.vp-yt-card:hover .vp-yt-stats-play {
  background: #cc0028;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000, inset 2px 2px 0 rgba(255,255,255,0.3), inset -2px -2px 0 rgba(0,0,0,0.4);
}
.vp-yt-card .vp-yt-stat-views {
  font-weight: 700;
  color: var(--gold);
  font-size: 22px;
}
.vp-yt-card .vp-yt-stat-sep   { opacity: 0.4; font-size: 22px; }
.vp-yt-card .vp-yt-stat-likes { color: var(--ink); font-size: 20px; }

/* Icône ⓘ poussée à droite des stats — ouvre le lightbox de description */
.vp-yt-card .vp-yt-info-btn {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  font-family: "Segoe UI Symbol", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--royal);
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  user-select: none;
  transition: background 120ms, color 120ms, transform 100ms;
}
.vp-yt-card .vp-yt-info-btn:hover,
.vp-yt-card .vp-yt-info-btn:focus-visible {
  background: var(--royal);
  color: #fff;
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 #000;
  outline: none;
}

/* ═══ Lightbox info vidéo (description plein écran) ═══ */
.vp-yt-lightbox[hidden] { display: none !important; }
.vp-yt-lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: vp-yt-lb-in 180ms ease-out;
}
@keyframes vp-yt-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.vp-yt-lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 16, 0.88);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.vp-yt-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  background: var(--bg-card);
  border: 4px solid var(--gold);
  box-shadow: 10px 10px 0 #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vp-yt-lightbox-close {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 38px; height: 38px;
  background: var(--bg-stone-d);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 2px 2px 0 #000;
}
.vp-yt-lightbox-close:hover { background: var(--gold); color: var(--ink-dark); }

.vp-yt-lightbox-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone-d);
  border-bottom: 4px solid var(--stone-edge-d);
  flex: 0 0 auto;
}
.vp-yt-lightbox-body {
  padding: 22px 24px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.vp-yt-lightbox-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  text-shadow: 2px 2px 0 #000;
  margin: 0 0 10px;
}
.vp-yt-lightbox-meta {
  font-family: var(--f-pixel);
  font-size: 16px;
  letter-spacing: 0.10em;
  color: var(--gold-l);
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
  margin-bottom: 18px;
}
.vp-yt-lightbox-desc {
  font-family: var(--f-mono);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-dim);
  white-space: pre-wrap;       /* préserve les sauts de ligne de la description YT */
  word-break: break-word;
  margin-bottom: 20px;
}
.vp-yt-lightbox-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .vp-yt-lightbox { padding: 12px; }
  .vp-yt-lightbox-title { font-size: 20px; }
  .vp-yt-lightbox-body  { padding: 16px; }
}

/* Si peu de cards, on centre le rail (pas collé à gauche) */
.vp-yt-rail { justify-content: flex-start; }
@media (min-width: 1280px) {
  .vp-yt-rail:not(:has(.vp-yt-card:nth-child(4))) { justify-content: center; }
}

@media (max-width: 720px) {
  .vp-yt-rail .vp-yt-card { width: 280px; }
  .vp-yt-rail-btn { display: none; }
  .vp-yt-row-head h2 { font-size: 24px; }
  /* Sur mobile, pas de boutons → on récupère le padding pour aérer */
  .vp-yt-row-head    { padding: 0 16px; }
  .vp-yt-rail-wrap   { padding: 0 16px; }
  .vp-yt-card .vp-yt-stat-views { font-size: 17px; }
  .vp-yt-card .vp-yt-stats { font-size: 16px; }
}

/* Search bar (page YouTube — scopée pour ne pas casser celle de /news) */
.vp-yt-search-wrap .vp-search-bar {
  display: flex;
  gap: 10px;
  margin: 0;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}
.vp-yt-search-wrap .vp-search-bar input {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 18px;
  background: var(--bg-deep);
  border: 3px solid var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 22px;
  outline: none;
  box-shadow: inset 2px 2px 0 var(--stone-edge-d);
}
.vp-yt-search-wrap .vp-search-bar input:focus {
  border-color: var(--azure-l);
  box-shadow: inset 2px 2px 0 var(--stone-edge-d), 0 0 0 2px var(--azure);
}

/* Dropdown catégorie à côté de la recherche */
.vp-yt-cat-select {
  flex: 0 1 280px;
  padding: 16px 18px;
  padding-right: 40px;
  background: var(--bg-deep);
  border: 3px solid var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 20px;
  outline: none;
  box-shadow: inset 2px 2px 0 var(--stone-edge-d);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
.vp-yt-cat-select:focus {
  border-color: var(--azure-l);
  box-shadow: inset 2px 2px 0 var(--stone-edge-d), 0 0 0 2px var(--azure);
}
.vp-yt-cat-select option {
  color: var(--ink);
  background: var(--bg-deep);
  font-family: var(--f-mono);
  font-size: 18px;
  padding: 8px 10px;
}

/* Section YouTube de la home — bloc actions à droite du titre (badge + boutons).
   align-items: stretch → tous les enfants prennent la même hauteur (= hauteur des boutons) */
.vp-yt-head-actions {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}
/* Badge rouge YouTube rectangulaire — mêmes specs visuelles que vp-fanstat[data-net="yt"]
   (rouge officiel YouTube #ff0033, border 3px noir, shadow 4px) */
.vp-yt-fans-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #ff0033;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 0 #000;
  white-space: nowrap;
  line-height: 1;
}
.vp-yt-fans-logo {
  width: 28px;
  height: auto;
  display: block;
  flex: 0 0 auto;
  color: #fff;
}
.vp-yt-fans-count {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #fff;
}
.vp-yt-fans-label {
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.95;
}

/* Bouton "Voir plus" en bas des rails */
.vp-yt-show-more-wrap {
  text-align: center;
  margin: 30px auto 10px;
  padding: 0 32px;
}
.vp-yt-show-more {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bg-stone-d);
  color: var(--gold);
  border: 3px solid var(--gold);
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: background 120ms, color 120ms, transform 100ms, box-shadow 100ms;
}
.vp-yt-show-more:hover,
.vp-yt-show-more:focus-visible {
  background: var(--gold);
  color: var(--ink-dark);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  outline: none;
}

/* ─── Shop single ─────────────────────────────────────────────────── */
.vp-shop-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  margin: 30px 0;
}
@media (max-width: 800px) { .vp-shop-detail { grid-template-columns: 1fr; } }
.vp-shop-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vp-shop-gallery-main {
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone-d);
  border: 4px solid var(--stone-edge-d);
  image-rendering: pixelated;
}
.vp-shop-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.vp-shop-gallery-thumbs button {
  flex: 0 0 80px;
  height: 80px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone-d);
  border: 3px solid var(--stone-edge-d);
  cursor: pointer;
  padding: 0;
}
.vp-shop-gallery-thumbs button.active { border-color: var(--gold); }

.vp-shop-detail-info h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 36px;
  color: var(--ink);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 8px;
  line-height: 1.1;
}
.vp-shop-detail-info .vp-shop-cat {
  font-size: 13px;
  margin-bottom: 12px;
  display: block;
}
.vp-shop-detail-info .vp-shop-price {
  font-size: 42px;
  margin: 18px 0;
  display: block;
}
.vp-shop-detail-info .vp-shop-desc {
  font-family: var(--f-mono);
  font-size: 19px;
  color: var(--ink-dim);
  line-height: 1.4;
  margin-bottom: 24px;
}
.vp-shop-buy-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}
.vp-shop-buy-row a {
  justify-content: center;
}
.vp-shop-platforms-icon {
  font-family: var(--f-pixel);
  font-size: 14px;
  letter-spacing: 0.16em;
}

/* ─── Login forms ─────────────────────────────────────────────────── */
.vp-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 24px 60px;
}
.vp-auth-card {
  width: 100%;
  max-width: 460px;
  padding: 36px 36px 32px;
  background: var(--bg-card);
  border: 4px solid var(--gold);
  box-shadow:
    inset 3px 3px 0 var(--bg-card-2),
    inset -3px -3px 0 var(--stone-edge-d),
    8px 8px 0 var(--royal-d),
    11px 11px 0 #000;
}
.vp-auth-card h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 30px;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 6px;
}
.vp-auth-card p.lead {
  font-family: var(--f-mono);
  font-size: 19px;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.vp-form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.vp-form-row label {
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
  text-transform: uppercase;
}
.vp-form-row input,
.vp-form-row select,
.vp-form-row textarea {
  padding: 11px 14px;
  background: var(--bg-deep);
  border: 3px solid var(--stone-edge-d);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 18px;
  outline: none;
  box-shadow: inset 2px 2px 0 var(--stone-edge-d);
}
.vp-form-row input:focus,
.vp-form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: inset 2px 2px 0 var(--stone-edge-d), 0 0 0 2px rgba(255, 216, 74, 0.4);
}
.vp-form-msg {
  padding: 12px 14px;
  border: 2px solid;
  font-family: var(--f-mono);
  font-size: 17px;
  margin-bottom: 16px;
  white-space: pre-line; /* permet les sauts de ligne (\n) dans les messages serveur */
}
.vp-form-msg.error   { color: #ffb0b0; border-color: var(--tile); background: rgba(255, 85, 119, 0.1); }
.vp-form-msg.success { color: var(--emerald-l); border-color: var(--emerald); background: rgba(74, 208, 128, 0.1); }
.vp-form-msg.info    { color: var(--azure-l); border-color: var(--azure); background: rgba(74, 200, 255, 0.1); }

.vp-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.vp-form-actions .vp-btn { flex: 1; justify-content: center; }
.vp-form-actions a { font-family: var(--f-mono); font-size: 16px; color: var(--ink-dim); text-decoration: none; }
.vp-form-actions a:hover { color: var(--gold); }

/* ─── Premium auth callout ────────────────────────────────────────── */
.vp-premium-cta-mini {
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  background: rgba(10, 10, 31, 0.5);
  border: 2px dashed var(--gold-d);
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--ink-dim);
}
.vp-premium-cta-mini a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Empty states ────────────────────────────────────────────────── */
.vp-empty {
  padding: 60px 24px;
  text-align: center;
  border: 3px dashed var(--gold-d);
  background: rgba(10, 10, 31, 0.3);
  font-family: var(--f-mono);
  font-size: 19px;
  color: var(--ink-dim);
}
.vp-empty strong {
  display: block;
  font-family: var(--f-pixel);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ─── Écran "404" style console retro ────────────────────────────── */
.vp-404-screen {
  max-width: 460px;
  margin: 40px auto;
  padding: 36px 24px;
  background: var(--bg-deep);
  border: 4px solid var(--gold);
  box-shadow:
    inset 0 0 0 2px var(--stone-edge-d),
    0 0 20px rgba(255, 216, 74, 0.3),
    6px 6px 0 #000;
  text-align: center;
  color: var(--gold);
  font-family: var(--f-pixel);
}
.vp-404-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 64px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 20px;
}
.vp-404-msg {
  font-size: 14px;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}
.vp-404-press {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--parch);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vp-404-press .blink {
  display: inline-block;
  width: 8px;
  height: 12px;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: vpblink 1s steps(2) infinite;
}
