/* ==========================================================================
   vLiteRP — Boutique V2 : page des grades VIP (vip.php)
   Complète assets/boutique_v2.css (coque : en-tête, onglets, verrou, panier).
   Classes « vp », toutes sous .shopV2--vip. Couleurs des grades : Gold en or,
   Diamond en bleu, Platinium en blanc. Mobile d'abord, aucun backdrop-filter,
   animations coupées avec « moins d'animations ».
   ========================================================================== */

.shopV2--vip{
  --vp-gold:#ffd166;--vp-gold-rgb:255,209,102;
  --vp-dia:#7dd4fc;--vp-dia-rgb:125,212,252;
  --vp-pla:#eef3fb;--vp-pla-rgb:238,243,251;
}
.shopV2--vip .vc-none{--vp-c:rgba(255,255,255,.62);--vp-rgb:255,255,255}
.shopV2--vip .vc-gold,.shopV2--vip .vpTier--gold,.shopV2--vip .vpPickBtn--gold{--vp-c:var(--vp-gold);--vp-rgb:var(--vp-gold-rgb)}
.shopV2--vip .vc-diamond,.shopV2--vip .vpTier--diamond,.shopV2--vip .vpPickBtn--diamond{--vp-c:var(--vp-dia);--vp-rgb:var(--vp-dia-rgb)}
.shopV2--vip .vc-platinium,.shopV2--vip .vpTier--platinium,.shopV2--vip .vpPickBtn--platinium{--vp-c:var(--vp-pla);--vp-rgb:var(--vp-pla-rgb)}
.shopV2--vip .vpSr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Verrou Discord ---------- */
.shopV2--vip .vpGate{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;padding:14px;border-radius:var(--sv-r);
  border:1px solid rgba(255,209,102,.45);background:linear-gradient(160deg,rgba(255,209,102,.11),rgba(9,13,28,.94) 62%);
  box-shadow:0 14px 36px rgba(0,0,0,.3)}
.shopV2--vip .vpGate.is-guest{border-style:dashed;border-color:rgba(255,209,102,.38)}
.shopV2--vip .vpGateIc{width:40px;height:40px;flex-shrink:0;border-radius:11px;display:grid;place-items:center;color:var(--vp-gold);
  border:1px solid rgba(255,209,102,.42);background:rgba(255,209,102,.12)}
.shopV2--vip .vpGateIc svg{width:20px;height:20px}
.shopV2--vip .vpGateTxt{min-width:0;display:flex;flex-direction:column;gap:4px}
.shopV2--vip .vpGateTxt b{font-family:var(--font-head);font-size:1.08rem;line-height:1.25;letter-spacing:.03em;color:#fff}
.shopV2--vip .vpGateTxt p{font-size:.86rem;line-height:1.55;color:var(--muted)}
.shopV2--vip .vpGateBtn{grid-column:1/-1;width:100%;background:var(--vp-gold);border-color:var(--vp-gold);color:#1d1404;box-shadow:0 0 22px rgba(255,209,102,.18)}
.shopV2--vip .vpGateBtn:hover{box-shadow:0 8px 28px rgba(255,209,102,.34)}

/* ---------- Cartes des grades ---------- */
.shopV2--vip .vpTiersSec{display:flex;flex-direction:column;gap:12px;min-width:0}
.shopV2--vip .vpSecTop{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
.shopV2--vip .vpSecTop h2{font-size:clamp(1.4rem,5vw,1.9rem);letter-spacing:.03em;text-transform:uppercase}
.shopV2--vip .vpOk{display:inline-flex;align-items:center;gap:6px;padding:.35rem .7rem;border-radius:999px;border:1px solid rgba(1,230,118,.4);
  background:rgba(1,230,118,.08);font-size:.78rem;line-height:1.2;color:#fff}
.shopV2--vip .vpOk svg{width:14px;height:14px;color:var(--neon)}
.shopV2--vip .vpTiers{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}

.shopV2--vip .vpTier{
  position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px 16px 14px;border-radius:16px;
  border:1px solid rgba(var(--vp-rgb),.3);
  background:radial-gradient(130% 70% at 50% 0%,rgba(var(--vp-rgb),.13),transparent 62%),linear-gradient(172deg,rgba(15,19,40,.97),rgba(7,10,22,.97));
  box-shadow:0 18px 44px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.06);
  transition:border-color .25s var(--ease),box-shadow .25s var(--ease),transform .25s var(--ease);
  animation:svIn .45s var(--ease) backwards;animation-delay:var(--d,0ms);
}
.shopV2--vip .vpTier:before{content:"";position:absolute;top:0;left:18px;right:18px;height:2px;border-radius:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--vp-c),transparent);opacity:.65}
.shopV2--vip .vpTier.has-flag{padding-top:38px}
.shopV2--vip .vpTier.is-emph{border-color:rgba(var(--vp-rgb),.55);box-shadow:0 20px 50px rgba(0,0,0,.45),0 0 36px rgba(var(--vp-rgb),.14),inset 0 1px 0 rgba(255,255,255,.07)}
.shopV2--vip .vpTier.is-mine{border-color:var(--vp-c);box-shadow:0 0 0 1px rgba(var(--vp-rgb),.45),0 20px 50px rgba(0,0,0,.45),0 0 42px rgba(var(--vp-rgb),.2)}
.shopV2--vip .vpFlag{position:absolute;top:-1px;right:16px;display:inline-flex;align-items:center;gap:5px;max-width:calc(100% - 32px);padding:.32rem .7rem;
  border:1px solid rgba(var(--vp-rgb),.42);border-top:0;border-radius:0 0 9px 9px;background:rgba(var(--vp-rgb),.15);color:var(--vp-c);
  font-family:var(--font-head);font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.shopV2--vip .vpFlag svg{width:13px;height:13px;flex-shrink:0}
.shopV2--vip .vpFlag.is-mine{background:var(--vp-c);border-color:var(--vp-c);color:#0a0d18}

.shopV2--vip .vpTierHead{display:flex;align-items:center;gap:12px;min-width:0}
.shopV2--vip .vpTierIc{width:52px;height:52px;flex-shrink:0;border-radius:14px;display:grid;place-items:center;color:var(--vp-c);
  border:1px solid rgba(var(--vp-rgb),.4);background:rgba(var(--vp-rgb),.1);box-shadow:0 0 24px rgba(var(--vp-rgb),.16)}
.shopV2--vip .vpTierIc svg{width:28px;height:28px}
.shopV2--vip .vpTierId{min-width:0;display:flex;flex-direction:column;gap:5px}
.shopV2--vip .vpTierName{margin:0;font-size:1.9rem;line-height:1;letter-spacing:.05em;text-transform:uppercase;color:var(--vp-c);
  text-shadow:0 0 22px rgba(var(--vp-rgb),.3);overflow-wrap:anywhere}
.shopV2--vip .vpStars{display:inline-flex;gap:3px;font-size:.82rem;line-height:1}
.shopV2--vip .vpStars i{font-style:normal;color:rgba(255,255,255,.16)}
.shopV2--vip .vpStars i.on{color:var(--vp-c)}
.shopV2--vip .vpTierSub{margin:-2px 0 0;font-size:.84rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}

.shopV2--vip .vpPrice{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;padding:12px 0;border-top:1px solid var(--sv-line);border-bottom:1px solid var(--sv-line)}
.shopV2--vip .vpPrice b{font-family:var(--font-head);font-size:2.3rem;font-weight:700;line-height:1;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
.shopV2--vip .vpPrice small{font-size:.86rem;color:var(--muted)}
.shopV2--vip .vpPrice.is-soon b{font-size:1.6rem;color:rgba(255,255,255,.72)}

.shopV2--vip .vpHi{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.shopV2--vip .vpHi li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0;font-size:.86rem;line-height:1.35}
.shopV2--vip .vpHiL{min-width:0;color:rgba(255,255,255,.8);overflow-wrap:anywhere}
.shopV2--vip .vpHiV{flex-shrink:0;max-width:52%;text-align:right;font-family:var(--font-head);font-size:1.02rem;font-weight:700;color:var(--vp-c);
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.shopV2--vip .vpHiV.is-yes{display:inline-flex;align-items:center;gap:4px;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}
.shopV2--vip .vpHiV svg{width:14px;height:14px;flex-shrink:0}

.shopV2--vip .vpTierAct{margin-top:auto;display:flex;flex-direction:column;gap:4px;padding-top:4px}
/* bouton d'ajout aux couleurs du grade (le lien « Connexion Discord requise » garde son style de la coque) */
.shopV2--vip .vpTier .svAdd .btn{background:var(--vp-c);border-color:var(--vp-c);color:#0a0d18;box-shadow:0 0 22px rgba(var(--vp-rgb),.18)}
.shopV2--vip .vpTier .svAdd .btn:hover{box-shadow:0 8px 28px rgba(var(--vp-rgb),.34)}
.shopV2--vip .vpTier .svAdd.inCart .btn{background:rgba(var(--vp-rgb),.16);border-color:rgba(var(--vp-rgb),.7);color:#fff;box-shadow:0 0 18px rgba(var(--vp-rgb),.14)}
.shopV2--vip .vpTier .svAdd .btn[disabled]{box-shadow:none}
.shopV2--vip .vpMore{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;font-size:.8rem;color:var(--muted);
  text-decoration:underline;text-decoration-color:rgba(255,255,255,.22);text-underline-offset:3px}
.shopV2--vip .vpMore svg{width:14px;height:14px;transition:transform .2s var(--ease)}
.shopV2--vip .vpMore:hover{color:#fff}
.shopV2--vip .vpMore:hover svg{transform:translateX(3px)}
.shopV2--vip .vpUntil{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:-4px 0 0;font-size:.8rem;line-height:1.4;color:var(--muted)}
.shopV2--vip .vpUntil b{color:#fff}
.shopV2--vip .vpMineNone{margin:0;text-align:center;font-size:.84rem;color:var(--muted)}

.shopV2--vip .vpEmpty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:28px 16px;color:var(--muted);font-size:.9rem;line-height:1.55}
.shopV2--vip .vpEmpty b{color:#fff}
.shopV2--vip .vpEmptyIc{width:54px;height:54px;margin-bottom:6px;border-radius:50%;display:grid;place-items:center;color:var(--vp-gold);
  border:1px dashed rgba(255,209,102,.4);background:rgba(255,209,102,.07)}
.shopV2--vip .vpEmptyIc svg{width:26px;height:26px}

/* ---------- Bon à savoir ---------- */
.shopV2--vip .vpRenew{min-width:0;padding:16px;border-radius:var(--sv-r);border:1px solid var(--sv-gold-line);
  background:linear-gradient(165deg,rgba(255,209,102,.06),var(--sv-bg) 55%)}
.shopV2--vip .vpRenewT{margin:0 0 12px;font-size:1.15rem;letter-spacing:.08em;text-transform:uppercase}
.shopV2--vip .vpRenewList{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.shopV2--vip .vpRenewList li{display:flex;align-items:flex-start;gap:12px;min-width:0}
.shopV2--vip .vpRenewIc{width:36px;height:36px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;color:var(--vp-gold);
  border:1px solid rgba(255,209,102,.3);background:rgba(255,209,102,.09)}
.shopV2--vip .vpRenewIc svg{width:18px;height:18px}
.shopV2--vip .vpRenewList li>div{min-width:0;display:flex;flex-direction:column;gap:2px;padding-top:1px}
.shopV2--vip .vpRenewList b{font-size:.92rem;font-weight:600;color:#fff}
.shopV2--vip .vpRenewList li>div>span{font-size:.84rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.shopV2--vip .vpRenewList a{color:var(--vp-gold);text-decoration:underline;text-underline-offset:3px}

/* ---------- Comparatif ---------- */
.shopV2--vip .vpCmp{scroll-margin-top:calc(var(--nav-h) + 12px)}
.shopV2--vip .vpPick{display:none}
html.svJs .shopV2--vip .vpPick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:12px;padding:4px;border-radius:12px;
  border:1px solid var(--sv-line);background:rgba(0,0,0,.26)}
.shopV2--vip .vpPickBtn{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:46px;padding:.4rem;border-radius:9px;cursor:pointer;
  border:1px solid transparent;background:none;color:var(--text-muted);font-family:var(--font-head);font-size:.84rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  transition:color .2s var(--ease),background .2s var(--ease),border-color .2s var(--ease)}
.shopV2--vip .vpPickBtn svg{width:16px;height:16px;flex-shrink:0;color:var(--vp-c)}
.shopV2--vip .vpPickBtn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shopV2--vip .vpPickBtn:hover{color:#fff}
.shopV2--vip .vpPickBtn[aria-pressed="true"]{color:#fff;border-color:rgba(var(--vp-rgb),.6);background:rgba(var(--vp-rgb),.13)}
/* petit téléphone : icône au-dessus du nom, le mot entier tient dans le tiers de largeur */
@media (max-width:420px){.shopV2--vip .vpPickBtn{flex-direction:column;gap:3px;min-height:52px;padding:.4rem .2rem;font-size:.74rem;letter-spacing:.04em}}

.shopV2--vip .vpTable{width:100%;border-collapse:separate;border-spacing:0}
.shopV2--vip .vpRowL{display:block;font-size:.92rem;font-weight:600;line-height:1.35;color:#fff;overflow-wrap:anywhere}
.shopV2--vip .vpRowN{display:block;margin-top:2px;font-size:.76rem;font-weight:400;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
/* cellules rendues par vip_grid_cell() (app/shop.php) */
.shopV2--vip .vcYes,.shopV2--vip .vcNo{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:.86rem;font-weight:700;line-height:1}
.shopV2--vip .vcYes{color:var(--vp-c);background:rgba(var(--vp-rgb),.14);border:1px solid rgba(var(--vp-rgb),.4)}
.shopV2--vip .vcNo{color:rgba(255,255,255,.3);background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.shopV2--vip .vcVal{font-family:var(--font-head);font-size:1.05rem;font-weight:700;line-height:1.2;color:#fff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.shopV2--vip td.vc-none .vcVal{font-weight:600;color:rgba(255,255,255,.7)}
.shopV2--vip td.best .vcVal{color:var(--vp-c);text-shadow:0 0 14px rgba(var(--vp-rgb),.35)}

/* Téléphone : chaque avantage devient une carte ; avec JavaScript, « Sans VIP » face au grade choisi,
   sans JavaScript, les quatre colonnes en deux par deux. Jamais de défilement horizontal. */
@media (max-width:760px){
  .shopV2--vip .vpTable,.shopV2--vip .vpTable tbody,.shopV2--vip .vpTable tr,.shopV2--vip .vpTable th,.shopV2--vip .vpTable td{display:block}
  .shopV2--vip .vpTable thead{display:none}
  .shopV2--vip .vpTable tbody{display:flex;flex-direction:column;gap:8px}
  .shopV2--vip .vpTable tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px;border-radius:12px;
    border:1px solid var(--sv-line);background:rgba(255,255,255,.025)}
  .shopV2--vip .vpTable tbody th{grid-column:1/-1;padding:0 0 4px;text-align:left}
  .shopV2--vip .vpTable td{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;min-width:0;padding:9px 10px;border-radius:9px;
    border:1px solid rgba(255,255,255,.05);background:rgba(0,0,0,.22)}
  .shopV2--vip .vpTable td:before{content:attr(data-label);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    font-family:var(--font-head);font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--vp-c)}
  .shopV2--vip .vpTable td.mine{border-color:rgba(var(--vp-rgb),.5)}
  html.svJs .shopV2--vip .vpTable td[data-k]{display:none}
  html.svJs .shopV2--vip .vpTable td[data-k="none"],
  html.svJs .shopV2--vip .vpCmp[data-pick="gold"] .vpTable td[data-k="gold"],
  html.svJs .shopV2--vip .vpCmp[data-pick="diamond"] .vpTable td[data-k="diamond"],
  html.svJs .shopV2--vip .vpCmp[data-pick="platinium"] .vpTable td[data-k="platinium"]{display:flex}
  html.svJs .shopV2--vip .vpTable td[data-k]:not([data-k="none"]){border-color:rgba(var(--vp-rgb),.38);background:rgba(var(--vp-rgb),.07)}
}

/* ==========================================================================
   Écrans plus larges
   ========================================================================== */
@media (min-width:761px){
  .shopV2--vip .vpGate{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;padding:16px 18px}
  .shopV2--vip .vpGateBtn{grid-column:auto;width:auto;white-space:nowrap}
  .shopV2--vip .vpTiers{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
  .shopV2--vip .vpTier{padding:22px 16px 14px}
  .shopV2--vip .vpTiers:has(.has-flag) .vpTier{padding-top:38px}
  .shopV2--vip .vpTier:hover{transform:translateY(-3px);border-color:rgba(var(--vp-rgb),.6)}
  /* cartes d'environ 250 px : nom, icône et bouton resserrés pour que « Platinium » tienne sur une ligne */
  .shopV2--vip .vpTierIc{width:44px;height:44px;border-radius:12px}
  .shopV2--vip .vpTierIc svg{width:24px;height:24px}
  .shopV2--vip .vpTierName{font-size:1.45rem;letter-spacing:.03em}
  .shopV2--vip .vpTier .svBuy{padding-left:.6rem;padding-right:.6rem;letter-spacing:.07em}
  .shopV2--vip .vpPrice b{font-size:2.1rem}
  .shopV2--vip .vpRenew{padding:20px 24px}
  .shopV2--vip .vpRenewList{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}

  /* le tableau montre les quatre colonnes : pas de choix de grade */
  html.svJs .shopV2--vip .vpPick{display:none}
  .shopV2--vip .vpTable{table-layout:fixed}
  .shopV2--vip .vpTable th,.shopV2--vip .vpTable td{padding:12px 8px;border-bottom:1px solid var(--sv-line);text-align:center;vertical-align:middle;
    transition:background .2s var(--ease)}
  .shopV2--vip .vpTable thead th{padding-top:12px;padding-bottom:14px;vertical-align:bottom;border-bottom-color:rgba(255,255,255,.12)}
  .shopV2--vip .vpTable .vpCorner{width:30%;text-align:left;font-family:var(--font-head);font-size:.68rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--text-dim)}
  .shopV2--vip .vpTable tbody th{text-align:left;padding-left:4px}
  .shopV2--vip .vpTable tbody tr:last-child>*{border-bottom:0}
  .shopV2--vip .vpColIc{display:grid;place-items:center;width:36px;height:36px;margin:0 auto 6px;border-radius:10px;color:var(--vp-c);
    border:1px solid rgba(var(--vp-rgb),.32);background:rgba(var(--vp-rgb),.1)}
  .shopV2--vip .vpColIc svg{width:20px;height:20px}
  .shopV2--vip .vpColName{display:block;font-family:var(--font-head);font-size:.92rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--vp-c);overflow-wrap:anywhere}
  .shopV2--vip .vpColPrice{display:block;margin-top:3px;font-size:.74rem;font-weight:400;line-height:1.3;color:var(--muted)}
  .shopV2--vip .vpColPrice b{font-family:var(--font-head);font-size:.95rem;color:#fff;white-space:nowrap}
  .shopV2--vip .vpColMine{display:inline-block;margin-top:6px;padding:.15rem .5rem;border-radius:999px;font-family:var(--font-head);font-size:.62rem;font-weight:700;
    letter-spacing:.12em;text-transform:uppercase;background:var(--vp-c);color:#0a0d18}
  .shopV2--vip .vpTable th.emph{box-shadow:inset 0 2px 0 rgba(var(--vp-rgb),.7)}
  .shopV2--vip .vpTable .mine{background:rgba(var(--vp-rgb),.07)}
  .shopV2--vip .vpTable th.mine{box-shadow:inset 0 2px 0 var(--vp-c)}
  .shopV2--vip .vpTable .colHot{background:rgba(var(--vp-rgb),.06)}
  .shopV2--vip .vpTable .mine.colHot{background:rgba(var(--vp-rgb),.1)}
  .shopV2--vip .vpTable tbody tr:hover th .vpRowL{color:var(--neon)}
}

@media (prefers-reduced-motion:reduce){
  .shopV2--vip .vpTier,.shopV2--vip .vpTier:hover{animation:none;transform:none;transition:none}
  .shopV2--vip .vpMore svg,.shopV2--vip .vpMore:hover svg{transition:none;transform:none}
}
