/* ============================================================================
   QUIZ'EM ALL — v2.6.0 — ESPACE VIP : STYLES (Hub + Pendu Metal + Mosh Pit Snake)
   Aucun CDN, aucune dépendance : réutilise les variables natives du thème
   (--gold-1..5, --metal-gradient, --steel, --magma-*, --radius) déclarées
   dans styles.css. Préfixes qev-* / qedq-* pour ne rien écraser.
   ========================================================================== */

/* ---------- Racine du module (injectée dans #vipPanel) ---------- */
.qev-root { width: 100%; }
.qev-view.hidden { display: none; }

/* ---------- Hub VIP ---------- */
.qev-head { text-align: center; margin: 6px 0 18px; }
.qev-head--row { display: flex; align-items: center; gap: 14px; text-align: left; }
.qev-head--row .qev-title { margin: 0; }
.qev-kicker {
  margin: 0 0 4px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-4, #a08456);
}
.qev-title {
  margin: 0;
  font-family: inherit;
  color: var(--gold-2, #e7c87a);
  text-shadow: 0 0 18px rgba(212, 175, 55, .35);
}
.qev-pill {
  display: inline-block; margin-top: 10px; padding: 5px 14px;
  border: 1px solid var(--steel, #3a3a42); border-radius: 999px;
  background: var(--metal-gradient);
  font-size: 12.5px; color: #cfcbd8;
}
.qev-pill.is-vip {
  border-color: var(--gold-3, #d4af37);
  color: var(--gold-1, #fbefc0);
  box-shadow: 0 0 14px var(--vip-gold-glow, rgba(232, 196, 90, .42));
}

.qev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.qev-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 22px 20px; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  background: var(--brushed, none), var(--metal-gradient);
  border: 1px solid var(--steel, #3a3a42); border-radius: var(--radius, 12px);
  box-shadow: var(--inset-hi, inset 0 1px 0 rgba(255, 255, 255, .04));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.qev-card:hover, .qev-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold-4, #a08456);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25), 0 22px 44px rgba(0, 0, 0, .6), 0 0 40px rgba(212, 175, 55, .14);
}
.qev-card-icon { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 10px rgba(212, 175, 55, .5)); }
.qev-card-title { margin: 0; font-size: 20px; color: var(--gold-2, #e7c87a); }
.qev-card-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: #b9b4c4; }
.qev-card-cta { margin-top: auto; font-weight: 700; color: var(--gold-1, #fbefc0); }

.qev-quota {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; gap: 8px;
}
.qev-quota-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--steel, #3a3a42); border-radius: 10px;
  background: var(--metal-gradient);
  font-size: 13.5px;
}
.qev-quota-game { color: #d8d4e0; }
.qev-quota-left { color: #ffb46b; }
.qev-quota-left.is-vip { color: var(--gold-2, #e7c87a); }
.qev-quota-left.is-empty { color: #ff7a6b; }
.qev-note { margin: 14px 0 0; font-size: 12px; color: #8f8a9c; text-align: center; }

/* ---------- Boutons génériques ---------- */
.qev-back {
  padding: 7px 14px; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--gold-2, #e7c87a);
  background: var(--metal-gradient);
  border: 1px solid var(--gold-4, #a08456); border-radius: 8px;
}
.qev-back:hover { color: var(--gold-1, #fbefc0); border-color: var(--gold-3, #d4af37); }
.qev-cta {
  padding: 10px 18px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px;
  color: #1a1408;
  background: linear-gradient(180deg, var(--gold-1, #fbefc0) 0%, var(--gold-2, #e7c87a) 42%, var(--gold-4, #a08456) 58%, var(--gold-2, #e7c87a) 100%);
  border: 1px solid var(--gold-3, #d4af37); border-radius: 10px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, .3);
  transition: transform .14s ease, box-shadow .14s ease;
}
.qev-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(212, 175, 55, .45); }
.qev-cta:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.qev-cta--ghost {
  color: var(--gold-2, #e7c87a);
  background: var(--metal-gradient);
  border-color: var(--steel, #3a3a42);
  box-shadow: none;
}

/* ---------- Le Pendu Metal ---------- */
.qev-hm-topline {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px; font-size: 13px; color: var(--gold-2, #e7c87a);
}
.qev-hm-board {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  padding: 18px; border: 1px solid var(--steel, #3a3a42); border-radius: var(--radius, 12px);
  background: var(--brushed, none), var(--metal-gradient);
}
.qev-hm-stage { flex: 0 0 150px; }
.qev-hm-svg { width: 150px; height: 180px; stroke: var(--gold-3, #d4af37); stroke-width: 4; stroke-linecap: round; fill: none; }
.qev-hm-skull { stroke: none; font-size: 18px; }
.qev-hm-right { flex: 1 1 260px; display: grid; gap: 12px; justify-items: start; }
.qev-hm-hint { margin: 0; font-size: 14px; line-height: 1.5; color: #cfcbd8; font-style: italic; }
.qev-hm-word { display: flex; flex-wrap: wrap; gap: 6px; }
.qev-hm-slot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 34px; padding: 0 3px;
  border-bottom: 3px solid var(--gold-4, #a08456);
  font-weight: 800; font-size: 19px; letter-spacing: .04em;
  color: var(--gold-1, #fbefc0);
}
.qev-hm-slot.is-found { border-bottom-color: var(--gold-1, #fbefc0); text-shadow: 0 0 12px rgba(212, 175, 55, .6); }
.qev-hm-slot.is-missed { color: #ff7a6b; border-bottom-color: #ff7a6b; }
.qev-hm-space { width: 16px; }
.qev-hm-msg { margin: 0; min-height: 20px; font-weight: 700; color: var(--gold-2, #e7c87a); }
.qev-hm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.qev-hm-keyboard {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
  margin-top: 18px;
}
.qev-hm-key {
  width: 40px; height: 44px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px;
  color: var(--gold-2, #e7c87a);
  background: var(--metal-gradient);
  border: 1px solid var(--steel, #3a3a42); border-radius: 8px;
  transition: transform .1s ease, border-color .1s ease;
}
.qev-hm-key:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold-4, #a08456); }
.qev-hm-key:disabled { cursor: default; opacity: .8; }
.qev-hm-key.is-good { color: #12220f; background: linear-gradient(180deg, #b9f0a6, #6fae52); border-color: #6fae52; opacity: 1; }
.qev-hm-key.is-bad { color: #ffd9d4; background: linear-gradient(180deg, #7a2a24, #4a1713); border-color: #7a2a24; opacity: 1; }

/* ---------- Mosh Pit Snake ---------- */
.qev-snake-topline {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px; font-size: 13px; color: var(--gold-2, #e7c87a);
}
.qev-snake-legend { color: #b9b4c4; font-size: 12.5px; }
.qev-snake-board {
  display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap;
  padding: 18px; border: 1px solid var(--steel, #3a3a42); border-radius: var(--radius, 12px);
  background: var(--brushed, none), var(--metal-gradient);
}
.qev-snake-canvas-wrap {
  position: relative; flex: 0 0 auto;
  border: 1px solid var(--gold-4, #a08456); border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(212, 175, 55, .12);
}
#qevSnakeCanvas { display: block; touch-action: none; max-width: 100%; height: auto; }
.qev-snake-over {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(10, 10, 12, .86);
  text-align: center; padding: 16px;
}
.qev-snake-over.hidden { display: none; }
.qev-snake-over-msg { margin: 0; font-weight: 800; font-size: 18px; color: var(--gold-1, #fbefc0); }
.qev-snake-over-score { margin: 0; font-size: 14px; color: #cfcbd8; }
.qev-snake-side { flex: 1 1 220px; display: grid; gap: 16px; justify-items: start; align-content: start; }

.qev-dpad {
  display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 52px); gap: 8px;
}
.qev-dpad-btn {
  cursor: pointer; font-size: 18px;
  color: var(--gold-2, #e7c87a);
  background: var(--metal-gradient);
  border: 1px solid var(--steel, #3a3a42); border-radius: 10px;
}
.qev-dpad-btn:active { background: rgba(212, 175, 55, .18); border-color: var(--gold-3, #d4af37); }
.qev-dpad-btn[data-dir="up"] { grid-column: 2; grid-row: 1; }
.qev-dpad-btn[data-dir="left"] { grid-column: 1; grid-row: 2; }
.qev-dpad-btn[data-dir="down"] { grid-column: 2; grid-row: 2; }
.qev-dpad-btn[data-dir="right"] { grid-column: 3; grid-row: 2; }

#qevSnakeScore.flash { animation: qevScoreFlash .45s ease; }
@keyframes qevScoreFlash {
  0% { text-shadow: 0 0 18px rgba(212, 175, 55, .95); transform: scale(1.12); }
  100% { text-shadow: none; transform: scale(1); }
}

/* ---------- Toast de repli (si showToast indisponible) ---------- */
.qev-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  z-index: 10000; padding: 12px 22px;
  background: #1c1c20; color: var(--gold-1, #fbefc0);
  border: 1px solid var(--gold-3, #d4af37); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.qev-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .qev-hm-board, .qev-snake-board { padding: 14px; gap: 14px; }
  .qev-hm-stage { flex-basis: 110px; }
  .qev-hm-svg { width: 110px; height: 132px; }
  .qev-hm-key { width: 32px; height: 40px; font-size: 14px; }
  .qev-dpad { grid-template-columns: repeat(3, 52px); }
  .qev-head--row { flex-wrap: wrap; }
}

/* ---------- v2.6.1 — Badge « Membre VIP Or » (header) ---------- */
.qe-vip-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--gold-3, #d4af37); border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-1, #fbefc0) 0%, var(--gold-2, #e7c87a) 42%, var(--gold-4, #a08456) 58%, var(--gold-2, #e7c87a) 100%);
  color: #1a1408; font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
  box-shadow: 0 0 14px var(--vip-gold-glow, rgba(232, 196, 90, .42));
  white-space: nowrap;
}
.qe-vip-badge.hidden { display: none; }
@media (max-width: 640px) {
  .qe-vip-badge .qe-vip-badge-label { display: none; } /* compact : couronne seule */
  .qe-vip-badge { padding: 6px 10px; }
}


/* ============================================================================
   v2.6.3 — ONGLET « ESPACE VIP » : ROUGE RUBIS  (≠ Défi du jour, or plein)
   Les deux onglets partageaient .nav-tab--featured (même or pulsant). Le Défi du jour garde son or ;
   l'Espace VIP passe en rouge rubis métallisé + couronne dorée, avec un reflet qui balaie l'onglet.
   Teinte modifiable ici (3 variables). Additif : aucune classe ni aucun ID retiré.
   Liseré en inset box-shadow (pas de border) → aucun décalage de mise en page.
   ========================================================================== */
:root {
  --qev-ruby-1: #c2243d;
  --qev-ruby-2: #8f1428;
  --qev-ruby-3: #55091a;
}
#mainNav .nav-tab.nav-tab--vip {
  color: #fff3d6 !important;
  background: linear-gradient(135deg, var(--qev-ruby-1) 0%, var(--qev-ruby-2) 48%, var(--qev-ruby-3) 100%) !important;
  border-top-color: #ff8a9b !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 140, 160, .35), 0 0 16px rgba(194, 36, 61, .45);
  text-shadow: 0 1px 0 rgba(60, 0, 10, .6);
  animation: none;
}
#mainNav .nav-tab.nav-tab--vip::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 226, 230, .28) 50%, transparent 66%);
  transform: translateX(-130%);
  animation: qevVipTabShine 5.5s ease-in-out infinite;
  pointer-events: none;
}
#mainNav .nav-tab.nav-tab--vip:hover { color: #fff !important; filter: brightness(1.1); }
#mainNav .nav-tab.nav-tab--vip.active {
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 170, 185, .7), 0 0 22px rgba(230, 50, 80, .7);
}
#mainNav .nav-tab.nav-tab--vip.active::after {
  background: linear-gradient(90deg, transparent, var(--gold-1, #fbefc0), transparent);
  box-shadow: 0 0 14px 2px rgba(212, 175, 55, .65);
}
@keyframes qevVipTabShine {
  0%, 62%  { transform: translateX(-130%); }
  100%     { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  #mainNav .nav-tab.nav-tab--vip::before { animation: none; opacity: 0; }
}

/* ============================================================================
   v2.6.3 — PALIERS VIP : 🥉 Bronze (1 mois) · 🥈 Argent (1 an) · 👑 Or (à vie)
   Badge du header, pastille du hub arcade et boutons de formule. L'Or reste le style de base.
   ========================================================================== */
.qe-vip-badge[data-tier="bronze"] {
  border-color: #e3a878;
  background: linear-gradient(180deg, #f7d6b8 0%, #dfa56e 42%, #a8642f 58%, #d99a63 100%);
  box-shadow: 0 0 14px rgba(205, 127, 50, .5);
}
.qe-vip-badge[data-tier="silver"] {
  border-color: #e9edf2;
  background: linear-gradient(180deg, #ffffff 0%, #e1e5eb 42%, #98a0ab 58%, #d0d5dd 100%);
  box-shadow: 0 0 14px rgba(205, 214, 228, .45);
}
.qev-pill.is-vip[data-tier="bronze"] { border-color: #dfa56e; color: #f7d6b8; box-shadow: 0 0 14px rgba(205, 127, 50, .45); }
.qev-pill.is-vip[data-tier="silver"] { border-color: #d0d5dd; color: #f2f4f7; box-shadow: 0 0 14px rgba(205, 214, 228, .4); }

#vipModal .vip-btn.vip-btn--bronze {
  background: linear-gradient(135deg, #f8d9bd 0%, #e0a672 35%, #bf7a3c 62%, #96582a 100%);
  border-color: rgba(255, 220, 190, .7);
}
#vipModal .vip-btn.vip-btn--silver {
  background: linear-gradient(135deg, #ffffff 0%, #e4e8ee 35%, #b5bcc7 62%, #8c94a1 100%);
  border-color: rgba(255, 255, 255, .8);
}
#vipModal .vip-btn.vip-btn--bronze:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 16px 38px rgba(205, 127, 50, .5); }
#vipModal .vip-btn.vip-btn--silver:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 38px rgba(205, 214, 228, .4); }

/* ============================================================================
   v2.6.3 — JEUX SUR TÉLÉPHONE : TOUT TIENT DANS L'ÉCRAN, SANS DÉFILER NI DÉPLACER
   --qev-hdr / --qev-avail sont publiés par vip-arcade.js (hauteur de l'en-tête collant, place restante).
   ========================================================================== */
.qev-hm-w { display: inline-flex; flex-wrap: nowrap; gap: 6px; }
.qev-hm-word { row-gap: 8px; column-gap: 16px; }
.qev-lg-short { display: none; }
#vipPanel, .qev-root, .qev-view { scroll-margin-top: calc(var(--qev-hdr, 0px) + 6px); }

/* Plateau Snake : largeur pilotée par le CSS (jamais plus large que son conteneur), carré parfait */
.qev-snake-canvas-wrap { width: min(100%, 360px); }
#qevSnakeCanvas { width: 100%; height: auto; aspect-ratio: 1 / 1; }

@media (max-width: 640px) {
  #vipPanel.content-panel { padding: 10px; }
  .qev-head { margin: 0 0 8px; }
  .qev-head--row { flex-wrap: nowrap; gap: 10px; margin-bottom: 8px; }
  .qev-head--row .qev-title { font-size: 17px; min-width: 0; }
  .qev-back { min-height: 40px; padding: 8px 12px; white-space: nowrap; }

  /* ---- Snake : score + légende sur une ligne, plateau carré plein écran, commandes sous le plateau ---- */
  .qev-snake-topline { flex-wrap: nowrap; align-items: center; margin-bottom: 8px; font-size: 12.5px; }
  .qev-lg-full { display: none; }
  .qev-lg-short { display: inline; }
  .qev-snake-legend { font-size: 12px; white-space: nowrap; }
  .qev-snake-board { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; padding: 8px; }
  .qev-snake-canvas-wrap {
    align-self: center;
    width: min(100%, calc(var(--qev-avail, 100dvh) - 200px));
    min-width: 200px;
  }
  .qev-snake-side { width: 100%; flex: 0 0 auto; grid-template-columns: 1fr auto; align-items: center; gap: 12px; justify-items: stretch; }
  .qev-snake-side .qev-cta { width: 100%; min-height: 52px; font-size: 15px; }
  .qev-snake-side .qev-note { display: none; }
  .qev-dpad { grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 44px); gap: 5px; }

  /* ---- Pendu : potence + indice côte à côte, mot pleine largeur, clavier AZERTY 10/10/6 ---- */
  .qev-hm-topline { margin-bottom: 8px; font-size: 12.5px; }
  .qev-hm-board { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; align-items: center; padding: 10px; }
  .qev-hm-right { display: contents; }
  .qev-hm-stage { flex: none; grid-column: 1; grid-row: 1; }
  .qev-hm-svg { width: 92px; height: 110px; }
  .qev-hm-hint { grid-column: 2; grid-row: 1; font-size: 13px; line-height: 1.4; }
  .qev-hm-word { grid-column: 1 / -1; grid-row: 2; justify-content: center; column-gap: 12px; row-gap: 6px; }
  .qev-hm-w { gap: 3px; }
  .qev-hm-slot { min-width: 20px; height: 30px; font-size: 17px; padding: 0 2px; border-bottom-width: 3px; }
  .qev-hm-space { width: 10px; }
  .qev-hm-msg { grid-column: 1 / -1; grid-row: 3; min-height: 0; text-align: center; justify-self: center; font-size: 13.5px; }
  .qev-hm-msg:empty { display: none; }
  .qev-hm-actions { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .qev-hm-actions .qev-cta { padding: 10px 8px; font-size: 13px; min-height: 44px; }
  .qev-hm-keyboard { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; margin-top: 10px; }
  .qev-hm-key { width: auto; grid-column: span 2; height: 44px; padding: 0; font-size: 16px; }
  .qev-hm-key:nth-child(21) { grid-column: 5 / span 2; }  /* 3e rangée (6 touches) centrée */
}

/* Téléphone en paysage : plateau à gauche, commandes à droite */
@media (max-height: 520px) and (orientation: landscape) {
  #vipPanel.content-panel { padding: 8px; }
  .qev-snake-board { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 8px; }
  .qev-snake-canvas-wrap { align-self: center; width: min(55%, calc(var(--qev-avail, 100dvh) - 110px)); min-width: 150px; flex: 0 0 auto; }
  .qev-snake-side { width: auto; flex: 1 1 auto; grid-template-columns: 1fr; justify-items: center; }
  .qev-snake-side .qev-note { display: none; }
  .qev-hm-key { height: 38px; }
}

/* ============================================================================
   v2.6.4 — REFONTE DE L'ESPACE VIP (tableau de bord de statut)
   Couche additive : aucune règle des versions précédentes n'est modifiée.
   ============================================================================ */

/* ---------- En-tête héro ---------- */
.qev-head--hero {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(212, 175, 55, .16), rgba(16, 16, 22, .92) 62%);
  border: 1px solid rgba(212, 175, 55, .28);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .06);
  flex-wrap: wrap;
}
.qev-hero-crown {
  font-size: 30px; line-height: 1; flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, .65));
}
.qev-hero-txt { flex: 1 1 auto; min-width: 140px; }
.qev-head--hero .qev-kicker { margin: 0 0 2px; text-align: left; }
.qev-head--hero .qev-title { margin: 0; font-size: 26px; line-height: 1.15; }
.qev-head--hero .qev-pill { margin-left: auto; }

/* ---------- Carte de statut (palier + chiffres clés) ---------- */
.qev-tier-card {
  margin: 16px 0 22px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(160deg, rgba(28, 28, 36, .95), rgba(14, 14, 19, .98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
}
.qev-tier-card.is-vip {
  border-color: rgba(212, 175, 55, .42);
  background: linear-gradient(160deg, rgba(48, 39, 16, .92), rgba(16, 14, 10, .98));
  box-shadow: 0 14px 38px rgba(0, 0, 0, .42), 0 0 0 1px rgba(212, 175, 55, .16) inset;
}
.qev-tier-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 15px 16px 13px; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.qev-tier-crown { font-size: 24px; line-height: 1; filter: drop-shadow(0 0 10px rgba(212, 175, 55, .55)); }
.qev-tier-crown::after { content: ''; }
.qev-tier-txt { display: flex; flex-direction: column; gap: 3px; flex: 1 1 170px; min-width: 0; }
.qev-tier-name { font-size: 16px; font-weight: 800; color: var(--gold-1, #fbefc0); letter-spacing: .2px; }
.qev-tier-sub { font-size: 12.5px; line-height: 1.45; color: #a9a4b6; }
.qev-tier-card.is-vip .qev-tier-sub { color: #d8cba6; }
.qev-tier-cta {
  flex: 0 0 auto; min-height: 40px; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
  color: #16120a; background: linear-gradient(180deg, #f7e7a8, #d4af37);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
  transition: transform .16s ease, box-shadow .16s ease;
}
.qev-tier-cta:hover, .qev-tier-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 175, 55, .45); }
.qev-tier-cta.hidden { display: none; }
.qev-tier-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: rgba(255, 255, 255, .06);
}
.qev-tier-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px; background: rgba(10, 10, 14, .82);
}
.qev-tier-stat span { font-size: 19px; font-weight: 800; color: var(--gold-1, #fbefc0); font-variant-numeric: tabular-nums; }
.qev-tier-stat small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: #8f8a9c; text-align: center; }

/* ---------- Titres de section ---------- */
.qev-section-title {
  margin: 22px 0 12px; font-size: 15px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; color: #cfc7a8;
}

/* ---------- Cartes de jeu : verrou / essai ---------- */
.qev-card { position: relative; text-align: left; }
.qev-card-lock { position: absolute; top: 10px; right: 12px; font-size: 15px; opacity: .9; }
.qev-card-lock.hidden { display: none; }
.qev-card-sub { font-size: 11.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #8f8a9c; }
.qev-card.is-trial .qev-card-sub { color: #9fd08a; }
.qev-card.is-locked {
  opacity: .55; filter: grayscale(.85);
  border-color: rgba(255, 255, 255, .1) !important;
  background: linear-gradient(180deg, rgba(22, 22, 28, .9), rgba(12, 12, 16, .95)) !important;
}
.qev-card.is-locked .qev-card-cta { color: #ffb46b; }
.qev-card.is-locked:hover { filter: grayscale(.55); opacity: .72; }

/* ---------- Statistiques avancées ---------- */
.qev-adv {
  border-radius: 16px; padding: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(170deg, rgba(24, 24, 31, .92), rgba(12, 12, 17, .97));
}
.qev-adv.is-locked { border-style: dashed; }
.qev-adv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 10px; }
.qev-adv-kpi { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.qev-adv-kpi span { font-size: 18px; font-weight: 800; color: var(--gold-1, #fbefc0); font-variant-numeric: tabular-nums; }
.qev-adv-kpi small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: #8f8a9c; }
.qev-spark { display: flex; align-items: flex-end; gap: 5px; height: 62px; margin: 14px 0 4px; }
.qev-spark > span { flex: 1 1 0; min-width: 4px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #f7e7a8, #a08456); }
.qev-adv-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.qev-adv-table th { text-align: left; padding: 6px 4px; color: #8f8a9c; font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .5px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.qev-adv-table td { padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #d5d1de; }
.qev-adv-hint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: #b9b4c4; }
.qev-adv-empty { margin: 0; font-size: 13px; color: #8f8a9c; }
.qev-adv-teaser { display: grid; gap: 12px; }
.qev-adv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: #b9b4c4; }
.qev-adv-blur {
  margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; letter-spacing: 2px;
  color: #6b6678; background: rgba(255, 255, 255, .035);
  filter: blur(1.6px); user-select: none; overflow: hidden; white-space: nowrap;
}
.qev-adv-teaser .qev-cta { justify-self: start; }

/* ---------- Téléphones : lisibilité et cibles tactiles ---------- */
@media (max-width: 640px) {
  .qev-head--hero { padding: 14px; gap: 10px; border-radius: 15px; }
  .qev-hero-crown { font-size: 24px; }
  .qev-head--hero .qev-title { font-size: 21px; }
  .qev-head--hero .qev-pill { width: 100%; margin-left: 0; text-align: center; justify-content: center; }
  .qev-tier-card { margin: 13px 0 18px; border-radius: 15px; }
  .qev-tier-head { padding: 13px; gap: 10px; }
  .qev-tier-name { font-size: 15px; }
  .qev-tier-sub { font-size: 12px; }
  .qev-tier-cta { width: 100%; min-height: 44px; }
  .qev-tier-stat { padding: 10px 4px; }
  .qev-tier-stat span { font-size: 16px; }
  .qev-tier-stat small { font-size: 9.5px; }
  .qev-section-title { margin: 18px 0 10px; font-size: 13.5px; }
  .qev-adv { padding: 13px; border-radius: 14px; }
  .qev-adv-table { font-size: 12px; }
  .qev-adv-teaser .qev-cta { width: 100%; justify-self: stretch; }
}

/* Très petits écrans (≤ 360 px) : 2 colonnes de chiffres, jamais de débordement */
@media (max-width: 360px) {
  .qev-tier-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qev-head--hero .qev-title { font-size: 19px; }
  .qev-adv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Écran court (paysage téléphone) : on compacte ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .qev-head--hero { padding: 10px 12px; }
  .qev-head--hero .qev-title { font-size: 18px; }
  .qev-tier-card { margin: 10px 0 14px; }
  .qev-tier-head { padding: 10px 12px; }
  .qev-tier-stat { padding: 8px 4px; }
  .qev-spark { height: 44px; }
}
