/* ============ BOUTIQUE ============ */

body { padding-top: 80px; }
.nav { background: rgba(7, 9, 15, .92); backdrop-filter: blur(14px);
       border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.cart-btn {
  background: rgba(251,191,36,.12) !important; color: var(--gold) !important;
  border: 1px solid rgba(251,191,36,.4);
}
.cart-btn:hover { background: rgba(251,191,36,.2) !important; }
#cart-count {
  display: inline-block; background: var(--gold); color: #422006;
  border-radius: 12px; padding: 0 7px; font-size: 11px; font-weight: 800; margin-left: 4px;
}

/* En-tête */
.shop-header {
  text-align: center; padding: 46px 20px 30px; position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(251,191,36,.10), transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(74,222,128,.07), transparent 60%);
}
.shop-header h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; margin-bottom: 10px; }
.shop-header p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.shop-header b { color: var(--accent); }

.pseudo-box {
  max-width: 340px; margin: 26px auto 0; text-align: left;
  background: var(--panel); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 16px 18px;
}
.pseudo-box label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pseudo-box input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600;
}
.pseudo-box input:focus { outline: none; border-color: var(--accent); }
.pseudo-box input.valid { border-color: var(--accent); }
.pseudo-box input.invalid { border-color: #f87171; }
.pseudo-hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.pseudo-hint.ok { color: var(--accent); }
.pseudo-hint.err { color: #f87171; }

/* Catégories */
.shop-wrap { max-width: 1080px; margin: 0 auto; padding: 10px 20px 40px; }
.cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.cat {
  background: var(--panel); border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); border-radius: 24px; padding: 9px 22px;
  font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
}
.cat:hover { color: var(--text); }
.cat.active { color: #052e16; background: var(--accent); border-color: var(--accent); }

/* Produits */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.prod {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 26px 22px 22px; text-align: center;
  transition: transform .18s, border-color .2s, box-shadow .25s;
}
.prod:hover {
  transform: translateY(-5px);
  border-color: var(--p-color, var(--accent));
  box-shadow: 0 14px 40px rgba(0,0,0,.4), 0 0 26px color-mix(in srgb, var(--p-color, var(--accent)) 18%, transparent);
}
.prod-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #422006; font-size: 10.5px; font-weight: 800;
  letter-spacing: .5px; border-radius: 12px; padding: 3px 14px; white-space: nowrap;
}
.prod-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.prod-name { font-size: 19px; font-weight: 800; }
.prod-price {
  font-size: 26px; font-weight: 900; margin: 6px 0 12px;
  color: var(--p-color, var(--accent));
}
.prod-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.prod-feats { list-style: none; text-align: left; margin-bottom: 18px; }
.prod-feats li {
  font-size: 12.5px; color: #cbd5e1; padding: 4px 0 4px 20px; position: relative;
}
.prod-feats li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--p-color, var(--accent)); font-weight: 800;
}
.btn-add {
  margin-top: auto; width: 100%; border: none; border-radius: 11px;
  background: var(--p-color, var(--accent)); color: #04140a;
  font-family: inherit; font-weight: 800; font-size: 14px; padding: 12px;
  cursor: pointer; transition: transform .12s, filter .15s;
}
.btn-add:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-add.added { background: #334155; color: var(--muted); }

/* Panier */
.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  display: flex; justify-content: flex-end;
}
.cart {
  width: min(400px, 100%); height: 100%;
  background: #0f1320; border-left: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column;
  animation: slideIn .25s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.cart-head h2 { font-size: 18px; }
.cart-head button {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer;
}
.cart-head button:hover { color: #fff; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 14px; }
.ci {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.ci-icon { font-size: 24px; }
.ci-info { flex: 1; }
.ci-name { font-weight: 700; font-size: 14px; }
.ci-price { font-size: 12.5px; color: var(--muted); }
.ci-qty { display: flex; align-items: center; gap: 8px; }
.ci-qty button {
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--text); font-family: inherit; line-height: 1;
}
.ci-qty button:hover { background: rgba(255,255,255,.16); }
.ci-qty span { font-size: 13px; min-width: 16px; text-align: center; }

.cart-foot { padding: 18px 24px 24px; border-top: 1px solid rgba(255,255,255,.08); }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; margin-bottom: 12px;
}
.cart-total b { font-size: 24px; color: var(--gold); }
.cart-player { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; min-height: 18px; }
.cart-player b { color: var(--accent); }
.btn-checkout {
  width: 100%; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #d97706); color: #422006;
  font-family: inherit; font-weight: 800; font-size: 15px; padding: 14px;
  transition: transform .12s, box-shadow .2s;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(251,191,36,.3); }
.btn-checkout:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.cart-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; opacity: .7; }

/* Toast */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--accent); color: #052e16; font-weight: 700; font-size: 14px;
  padding: 12px 26px; border-radius: 30px; z-index: 400;
  transition: transform .3s ease; pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { background: #f87171; color: #450a0a; }

.hidden { display: none !important; }

/* ============ BOUTIQUE — ameliorations ============ */
.shop-eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(251,191,36,.3); border-radius: 20px;
  padding: 5px 16px; background: rgba(251,191,36,.08);
}
.shop-header h1 { letter-spacing: -.5px; }

/* Bandeau d'avantages */
.perks {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin: 30px auto 0; max-width: 760px;
}
.perk {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 16px 22px; min-width: 190px;
  transition: transform .15s, border-color .2s;
}
.perk:hover { transform: translateY(-3px); border-color: rgba(74,222,128,.3); }
.perk span { font-size: 24px; }
.perk b { font-size: 14px; }
.perk small { font-size: 11.5px; color: var(--muted); }

/* Produits : rendu plus premium */
.prod {
  background: linear-gradient(170deg, rgba(30,36,52,.85), rgba(14,17,26,.9));
  animation: cardIn .45s ease-out both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.prod::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--p-color, var(--accent));
  opacity: .8; border-radius: 16px 16px 0 0;
}
.prod-price { letter-spacing: -1px; }
.prod-price small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* Categories */
.cats { margin-bottom: 32px; }
.cat { backdrop-filter: blur(8px); }

/* FAQ */
.faq { max-width: 760px; margin: 20px auto 60px; padding: 0 20px; }
.faq h2 {
  font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 22px;
  border: none; padding: 0;
}
.faq details {
  background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(74,222,128,.3); }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 14.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: #fff; }
.faq p { padding: 0 20px 18px; color: #cbd5e1; font-size: 13.5px; line-height: 1.65; }

/* ============ CODE PROMO ============ */
.promo-row { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-row input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); font-family: inherit; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: 1px;
}
.promo-row input:focus { outline: none; border-color: var(--accent); }
.promo-row button {
  border: 1px solid rgba(74,222,128,.5); background: rgba(74,222,128,.1);
  color: var(--accent); border-radius: 10px; padding: 0 16px;
  font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background .15s;
}
.promo-row button:hover { background: rgba(74,222,128,.2); }
.promo-row button:disabled { opacity: .5; cursor: default; }
#promo-msg { font-size: 12px; min-height: 16px; margin-bottom: 8px; }
#promo-msg.ok { color: var(--accent); }
#promo-msg.err { color: #f87171; }

.cart-total.sub { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cart-total.sub.discount { color: var(--accent); font-weight: 600; }

/* ============ DERNIERS ACHATS + TOP CONTRIBUTEURS ============ */
.social-proof {
  max-width: 1000px; margin: 10px auto 40px; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.sp-col h2 {
  font-size: 18px; font-weight: 800; margin-bottom: 14px; border: none; padding: 0;
}
.sp-empty { color: var(--muted); font-size: 13.5px; padding: 20px 0; }

.top-list, .recent-list { display: flex; flex-direction: column; gap: 8px; }

.top-row, .recent-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 12px 14px;
}
.top-row img, .recent-row img { border-radius: 8px; background: #222; }
.rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  font-weight: 900; font-size: 13px; background: rgba(255,255,255,.08); color: var(--muted);
}
.rank-1 { background: linear-gradient(135deg,#fde68a,#f59e0b); color: #422006; }
.rank-2 { background: linear-gradient(135deg,#e5e7eb,#9ca3af); color: #1f2937; }
.rank-3 { background: linear-gradient(135deg,#fcd9b6,#d97706); color: #422006; }
.tp-name { flex: 1; font-weight: 700; font-size: 14px; }
.tp-total { color: var(--gold); font-weight: 800; font-size: 14px; }

.rc-info { flex: 1; min-width: 0; }
.rc-info b { display: block; font-size: 13.5px; }
.rc-info span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.rc-when { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

@media (max-width: 720px) { .social-proof { grid-template-columns: 1fr; } }
