/* ============================================================
   GameFinds — Design system
   Thème gaming/tech : noir profond, bleu, violet, glassmorphism
   ============================================================ */

:root {
  --bg: #07070f;
  --bg2: #0c0c18;
  --surface: rgba(255, 255, 255, 0.03);
  --glass: rgba(17, 17, 32, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e5e9f0;
  --muted: #8b93a7;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Le contenu principal occupe l'espace restant : le footer reste collé en bas
   même quand la page est courte (sinon un grand vide apparaît sous le footer). */
#main { flex: 1 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { color: var(--muted); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #60a5fa; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.3rem; color: var(--muted); }

::selection { background: rgba(139, 92, 246, 0.4); }

/* ---- Fond décoratif (orbes) ---- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.16;
}
.bg-orbs span:nth-child(1) { width: 480px; height: 480px; background: #3b82f6; top: -140px; left: -120px; }
.bg-orbs span:nth-child(2) { width: 420px; height: 420px; background: #8b5cf6; top: 30%; right: -160px; }
.bg-orbs span:nth-child(3) { width: 380px; height: 380px; background: #6366f1; bottom: -120px; left: 30%; }

/* ---- Layout ---- */
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }
.section { padding: 4rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head .lead { max-width: 620px; }
.lead { font-size: 1.06rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Glassmorphism ---- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card { padding: 1.5rem; }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 1.6rem; height: 66px; }
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  color: var(--text); letter-spacing: -0.5px; white-space: nowrap;
}
.nav-logo-img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.nav-logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 0.2rem; flex: 1; }
.nav-links a {
  color: var(--muted); font-size: 0.93rem; font-weight: 500;
  padding: 0.45rem 0.8rem; border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: rgba(99, 102, 241, 0.14); }
.nav-links-auth { display: none; }
.nav-actions { display: flex; align-items: center; gap: 0.55rem; margin-left: auto; }
.nav-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-icon:hover { color: var(--text); background: var(--surface); }
.nav-badge {
  position: absolute; top: 2px; right: 0;
  background: var(--blue); color: #fff; font-size: 0.62rem; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-badge.violet { background: var(--violet); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.avatar.big { width: 42px; height: 42px; font-size: 1.05rem; }
.avatar.admin { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 0.3rem 0.7rem 0.3rem 0.3rem; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
}
.nav-user-btn:hover { border-color: rgba(255, 255, 255, 0.18); }

/* ---- Dropdown ---- */
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  background: #12121f; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.4rem; display: none; z-index: 50;
}
[data-dropdown].open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: block; width: 100%; text-align: left;
  padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--text);
  font-size: 0.9rem; background: none; border: none; cursor: pointer; font-family: inherit;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface); color: var(--text); }
.dropdown-menu .admin-link { color: var(--warning); }
.dropdown-menu form { border-top: 1px solid var(--border); margin-top: 0.3rem; padding-top: 0.3rem; }
.dropdown-menu form button { color: var(--danger); }

/* ---- Burger ---- */
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  font-family: inherit; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { color: #fff; box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.btn-danger { background: rgba(248, 113, 113, 0.12); color: var(--danger); border-color: rgba(248, 113, 113, 0.3); }
.btn-danger:hover { color: var(--danger); background: rgba(248, 113, 113, 0.2); }
.btn-success { background: rgba(52, 211, 153, 0.12); color: var(--success); border-color: rgba(52, 211, 153, 0.3); }
.btn-success:hover { color: var(--success); background: rgba(52, 211, 153, 0.2); }
.btn-sm { padding: 0.42rem 0.95rem; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 0.85rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg svg { width: 18px; height: 18px; }
.btn-icon { padding: 0.42rem; }
.btn-icon svg { margin: 0; }

/* ---- Badges & pills ---- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.22rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.badge-type { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #93c5fd; }
.badge-sale { background: rgba(248, 113, 113, 0.16); border-color: rgba(248, 113, 113, 0.35); color: var(--danger); }
.badge-success { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.3); color: var(--success); }
.badge-warning { background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.3); color: var(--warning); }
.badge-danger { background: rgba(248, 113, 113, 0.14); border-color: rgba(248, 113, 113, 0.3); color: var(--danger); }
.badge-muted { color: var(--muted); }
.badge-info { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #93c5fd; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--violet); color: #fff; font-size: 0.7rem; font-weight: 700;
}

/* ---- Hero ---- */
.hero { padding: 5.5rem 0 4.5rem; position: relative; }
.hero-inner { max-width: 760px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); color: #c4b5fd;
  margin-bottom: 1.3rem;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 2rem; max-width: 580px; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat span { color: var(--muted); font-size: 0.88rem; }

/* ---- Cartes produits ---- */
.product-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: rgba(139, 92, 246, 0.35); }
.product-card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); display: block; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }

/* Images non recadrées : image entière (contain) sur fond sombre uni */
.has-img { background: var(--bg2); }
.has-img img { position: relative; object-fit: contain !important; }
/* La galerie produit s'adapte au ratio de l'image (hauteur plafonnée) */
.gallery-main.has-img { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; }
.gallery-main.has-img img { width: 100%; height: auto; max-height: 520px; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.12)); }
.product-card-media .badge { position: absolute; top: 10px; }
.product-card-media .badge-type { left: 10px; }
.product-card-media .badge-sale { right: 10px; }
.product-card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card-body h3 a { color: var(--text); }
.product-card-body h3 a:hover { color: #a5b4fc; }
.product-card-desc { font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.6rem; }

/* ---- Prix ---- */
.price { display: flex; align-items: baseline; gap: 0.5rem; }
.price-current { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.price-current.sale { color: var(--success); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.price-big .price-current { font-size: 1.9rem; }

/* ---- Formulaires ---- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.input, select.input, textarea.input {
  width: 100%; padding: 0.68rem 0.9rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
.input::placeholder { color: rgba(139, 147, 167, 0.6); }
textarea.input { resize: vertical; min-height: 110px; }
select.input option { background: #12121f; }
.checkbox-row { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--text); }
.checkbox-row input { accent-color: var(--violet); width: 16px; height: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- Alertes ---- */
.alert { padding: 0.85rem 1.1rem; border-radius: 10px; font-size: 0.92rem; margin-bottom: 1.2rem; border: 1px solid; }
.alert-error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); color: #fca5a5; }
.alert-success { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); color: #6ee7b7; }
.alert-info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: #93c5fd; }
.alert-warning { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); color: #fcd34d; }

.owned-box { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; margin-bottom: 1.2rem; border-radius: var(--radius); background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.25); }
.owned-box-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; color: var(--success); background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.3); }
.owned-box-ico svg { width: 18px; height: 18px; stroke-width: 2; }
.owned-box-body { flex: 1; min-width: 0; }
.owned-box-body strong { display: block; font-size: 0.95rem; color: #6ee7b7; }
.owned-box-body p { font-size: 0.87rem; margin: 0.2rem 0 0.7rem; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--glass); }
.table thead th { background: rgba(255, 255, 255, 0.025); }
.table th {
  text-align: left; padding: 0.8rem 1rem; font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--border);
  white-space: nowrap; font-weight: 600;
}
.table td { padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.table .actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cell-media { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.cell-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); flex-shrink: 0; background: rgba(255,255,255,0.03); }
.cell-thumb.avatar { border-radius: 50%; }
.cell-inline { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.15rem; }
.cell-inline svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-size: 0.9rem; font-weight: 600; transition: background 0.2s, color 0.2s;
}
.page-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.page-btn.current { background: var(--grad); color: #fff; border-color: transparent; }
.page-dots { align-self: center; color: var(--muted); padding: 0 4px; }

/* ---- Layouts à sidebar (compte / admin) ---- */
.dash-layout { display: grid; grid-template-columns: 264px 1fr; gap: 1.8rem; align-items: start; padding: 2.2rem 0 4rem; }

/* Sidebar */
.side-nav { padding: 0.65rem; position: sticky; top: 86px; border-radius: 18px; }
.side-nav-user {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0;
  padding: 0.85rem 0.9rem; margin-bottom: 0.4rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.16);
}
.side-nav-user > div { min-width: 0; }
.side-nav-user .avatar.big { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16); }
.side-nav-user strong { display: block; font-size: 0.95rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav-user .small { display: block; margin-top: 0.12rem; }
.side-nav nav { display: flex; flex-direction: column; gap: 0.12rem; padding: 0.25rem 0.1rem 0.1rem; }
.side-nav-section {
  display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--muted); opacity: 0.65;
  padding: 0.85rem 0.85rem 0.3rem;
}
.side-nav nav > .side-nav-section:first-child { padding-top: 0.35rem; }
.side-nav nav a {
  position: relative; display: flex; align-items: center; gap: 0.7rem; justify-content: flex-start;
  padding: 0.58rem 0.8rem; border-radius: 11px; color: var(--muted);
  font-size: 0.9rem; font-weight: 500; transition: background 0.18s, color 0.18s;
}
.side-nav nav a .nav-ico { flex-shrink: 0; width: 18px; height: 18px; opacity: 0.85; display: inline-flex; }
.side-nav nav a .nav-ico svg { width: 18px; height: 18px; stroke-width: 2; }
.side-nav nav a .pill { margin-left: auto; }
.side-nav nav a:hover { color: var(--text); background: var(--surface); }
.side-nav nav a:hover .nav-ico { opacity: 1; }
.side-nav nav a.active { color: #fff; background: rgba(99, 102, 241, 0.16); }
.side-nav nav a.active .nav-ico { opacity: 1; color: #a5b4fc; }
.side-nav nav a.active::before {
  content: ''; position: absolute; left: -0.05rem; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 3px; background: var(--grad);
}
.side-nav-back {
  display: flex; align-items: center; gap: 0.55rem; margin: 0.35rem 0.1rem 0.1rem;
  padding: 0.6rem 0.8rem; border-radius: 11px; font-size: 0.85rem; color: var(--muted);
  border: 1px solid var(--border); transition: background 0.18s, color 0.18s;
}
.side-nav-back:hover { color: var(--text); background: var(--surface); }
.side-nav-back svg { width: 16px; height: 16px; flex-shrink: 0; }
.dash-content { min-width: 0; }
.dash-content > h1 { margin-bottom: 1.5rem; font-size: 1.5rem; }

/* En-tête de page réutilisable (remplace les <h1 style="font-size:1.5rem"> répétés) */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head-main { min-width: 0; }
.page-head h1 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; margin: 0; }
.page-head .sub { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }
.page-head-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; flex-shrink: 0; align-items: center; }

/* ---- Stat cards ---- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.stat-card {
  display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.2rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.stat-card .label { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card .value { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: 0.1rem; line-height: 1.15; }
.stat-card .value.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card > div { min-width: 0; }
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px; font-size: 1.25rem; color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.22);
}
.stat-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.stat-link { color: inherit; }
.stat-link:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, 0.45); box-shadow: var(--shadow-glow); }
.stat-attention { border-color: rgba(251, 191, 36, 0.4); }
.stat-attention .stat-icon { color: var(--warning); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.28); }
.stat-attention .value { color: var(--warning); }

/* ---- Dashboard admin ---- */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.adm-head h1 { font-size: 1.5rem; margin-bottom: 0.15rem; }
.adm-head .small::first-letter { text-transform: uppercase; }
.adm-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill-alert { background: rgba(248, 113, 113, 0.2); color: var(--danger); margin-left: 0.3rem; }
.adm-hero-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem; margin-bottom: 1rem; }
.adm-hero-side { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
.stat-hero {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.4rem 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12)), var(--glass);
  border: 1px solid rgba(139, 92, 246, 0.3); border-radius: var(--radius);
}
.stat-hero .stat-icon { width: 52px; height: 52px; font-size: 1.5rem; }
.stat-hero .label { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.stat-hero .value { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0.1rem 0 0.25rem; }
.stat-hero .small { display: block; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.adm-card-head h2 { font-size: 1.1rem; }
.adm-chart-card { margin: 1.6rem 0; }
.adm-chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 1.4rem; }
.adm-chart-col {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: 5px; height: 100%; min-width: 0;
}
.adm-chart-bar {
  width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--violet), var(--blue));
  transition: filter 0.2s;
}
.adm-chart-bar.empty { background: rgba(255, 255, 255, 0.06); }
.adm-chart-col:hover .adm-chart-bar { filter: brightness(1.25); }
.adm-chart-val { font-size: 0.68rem; font-weight: 600; color: #a5b4fc; white-space: nowrap; }
.adm-chart-label { font-size: 0.62rem; color: var(--muted); white-space: nowrap; }
.adm-tables { align-items: start; }
.adm-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px; margin-right: 0.35rem;
  background: rgba(99, 102, 241, 0.16); color: #a5b4fc;
  font-size: 0.72rem; font-weight: 700;
}
.adm-ellipsis { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-empty { padding: 1rem 0.2rem; }
.key-nowrap { white-space: nowrap; word-break: normal; }

/* ---- Utilitaires panel admin (remplacent les styles inline répétés) ---- */
.toolbar h1 { font-size: 1.5rem; }
.section-title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.15rem; margin-bottom: 0.8rem; }
.section-title svg { width: 18px; height: 18px; color: #a5b4fc; flex-shrink: 0; stroke-width: 2; }
.section-title.danger svg { color: var(--danger); }
.section-title-inline { display: inline-flex; vertical-align: middle; margin-bottom: 0; }
.badge svg { width: 13px; height: 13px; stroke-width: 2; }
/* Titre de page admin avec pastille d'icône (aligné sur le panel client) */
.page-head-title { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.page-head-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 11px; color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.22);
}
.page-head-ico svg { width: 20px; height: 20px; stroke-width: 2; }
.mt-03 { margin-top: 0.3rem; }
.mt-04 { margin-top: 0.4rem; }
.mt-06 { margin-top: 0.6rem; }
.mt-08 { margin-top: 0.8rem; }
.mt-1 { margin-top: 1rem; }
.mt-12 { margin-top: 1.2rem; }
.mt-15 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.card-danger { border-color: rgba(255, 80, 80, 0.3); }
.inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.inline-form-end { align-items: flex-end; }

/* ---- FAQ / accordéons ---- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--glass); }
.accordion + .accordion { margin-top: 0.7rem; }
.accordion summary {
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; font-size: 0.97rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.3rem; color: var(--violet); transition: transform 0.2s; flex-shrink: 0; }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion .accordion-body { padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.93rem; }

/* ---- Fiche produit ---- */
.product-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: start; padding: 2.5rem 0; }
.gallery-main { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 88px; height: 54px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; border-color: var(--violet); }
.buy-box { position: sticky; top: 86px; }
.buy-box .price-big { margin: 0.8rem 0 1.2rem; }

/* ---- Onglets ---- */
.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn {
  background: none; border: none; padding: 0.7rem 1.1rem; color: var(--muted);
  font-family: inherit; font-size: 0.93rem; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--violet); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Contenu riche (blog, docs, descriptions) ---- */
.rich-content { color: var(--muted); font-size: 0.98rem; }
.rich-content h2, .rich-content h3 { color: var(--text); margin: 1.6rem 0 0.7rem; }
.rich-content p { margin-bottom: 0.9rem; }
.rich-content ul, .rich-content ol { margin: 0 0 0.9rem 1.2rem; }
.rich-content code { background: var(--surface); border: 1px solid var(--border); padding: 0.1rem 0.4rem; border-radius: 6px; font-size: 0.88em; color: #a5b4fc; }
.rich-content pre { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; overflow-x: auto; margin-bottom: 1rem; }
.rich-content pre code { background: none; border: none; padding: 0; }
.rich-content blockquote { border-left: 3px solid var(--violet); padding-left: 1rem; margin: 1rem 0; }
.rich-content img { border-radius: 10px; margin: 1rem 0; }
.rich-content a { text-decoration: underline; }

/* ---- Étapes / process ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.step { padding: 1.3rem 0 0; position: relative; border-top: 2px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--blue); margin-bottom: 0.6rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.88rem; }

/* ---- CTA final ---- */
.cta-final {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 2.4rem 2.4rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
  flex-wrap: wrap; text-align: left;
}
.cta-final h2 { margin-bottom: 0.5rem; }
.cta-final .lead { margin: 0; max-width: 460px; }
.cta-final-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; flex: 0 0 auto; }
@media (max-width: 720px) {
  .cta-final { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---- Footer ---- */
.footer { position: relative; border-top: 1px solid var(--border); background: rgba(10, 10, 20, 0.6); margin-top: 4rem; }
.footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--grad); opacity: 0.6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.footer-brand-col { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 0; }
.footer-logo-img { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.footer-brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-tagline { font-size: 0.9rem; margin: 0; max-width: 26ch; line-height: 1.6; }
.footer-contact { font-size: 0.86rem; margin: 0; line-height: 2; }
.footer-contact a { color: var(--muted); transition: color 0.15s ease; }
.footer-contact a:hover { color: var(--text); }
.footer-discord { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: 0.7rem; color: var(--muted); }
.footer-col h4 { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); opacity: 0.85; margin: 0 0 1rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 0.3rem 0; width: fit-content; transition: color 0.15s ease, transform 0.15s ease; }
.footer-col a:hover { color: var(--text); transform: translateX(2px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding: 1.4rem 0; font-size: 0.82rem; color: var(--muted); }
.footer-bottom p { margin: 0; font-size: inherit; color: inherit; }

/* ---- Page erreur ---- */
.error-page { padding: 6rem 0; }
.error-code {
  font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.error-page h1 { margin: 0.6rem 0 0.8rem; }
.error-actions { display: flex; gap: 0.9rem; justify-content: center; margin-top: 1.8rem; flex-wrap: wrap; }

/* ---- Auth ---- */
.auth-wrap { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 3rem 0; }
.auth-card { width: min(430px, 100%); padding: 2.2rem; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.auth-card > p { margin-bottom: 1.6rem; font-size: 0.92rem; }
.auth-alt { margin-top: 1.4rem; text-align: center; font-size: 0.9rem; }
.oauth-buttons { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.4rem; }
.auth-divider { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; color: var(--muted); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---- Panier / checkout ---- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.8rem; align-items: start; padding: 2.5rem 0 4rem; }
.cart-item { display: flex; gap: 1rem; padding: 1rem; align-items: center; }
.cart-item + .cart-item { margin-top: 0.8rem; }
.cart-item img, .cart-item .cart-thumb {
  width: 92px; height: 58px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
  background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 0.98rem; }
.cart-item-info h3 a { color: var(--text); }
.cart-qty { display: flex; align-items: center; gap: 0.4rem; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.93rem; padding: 0.35rem 0; color: var(--muted); }
.summary-line.total { font-size: 1.15rem; font-weight: 700; color: var(--text); border-top: 1px solid var(--border); margin-top: 0.6rem; padding-top: 0.8rem; }
.summary-line.discount { color: var(--success); }

/* ---- Notifications ---- */
.notif { display: flex; gap: 0.9rem; padding: 1rem 1.1rem; align-items: flex-start; }
.notif + .notif { margin-top: 0.7rem; }
.notif.unread { border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.06); }
.notif-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 11px; font-size: 1.15rem; color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
}
.notif-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.notif-body { flex: 1; min-width: 0; }
.notif-body strong { display: block; font-size: 0.95rem; }
.notif-body p { font-size: 0.87rem; margin: 0.15rem 0 0.3rem; }

/* ---- Tickets ---- */
.ticket-thread { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.4rem 0; }
.ticket-msg { padding: 1rem 1.2rem; max-width: 85%; }
.ticket-msg.from-user { align-self: flex-end; background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.25); }
.ticket-msg.from-admin { align-self: flex-start; background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.25); }
.ticket-msg .meta { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.3rem; }
.ticket-msg p { color: var(--text); font-size: 0.93rem; white-space: pre-wrap; }

/* ---- Divers ---- */
.empty-state { padding: 3rem 1.5rem; text-align: center; }
.empty-state .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 1rem; border-radius: 18px; font-size: 2rem;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
}
.empty-state .icon svg { width: 30px; height: 30px; stroke-width: 1.8; color: #a5b4fc; }
.empty-state h2, .empty-state h3 { font-family: var(--font-display); margin-bottom: 0.4rem; }
.empty-state p { margin-bottom: 1.2rem; color: var(--muted); }
.toolbar { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.4rem; flex-wrap: wrap; }
.toolbar form { display: flex; gap: 0.6rem; flex: 1; min-width: 220px; }
.toolbar .spacer { flex: 1; }
.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.83rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.chip.active { background: rgba(99, 102, 241, 0.16); border-color: rgba(99, 102, 241, 0.4); color: var(--text); }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.key-code {
  font-family: 'Consolas', monospace; background: var(--bg2); border: 1px solid var(--border);
  padding: 0.3rem 0.7rem; border-radius: 8px; font-size: 0.88rem; color: #a5b4fc;
  letter-spacing: 0.5px; word-break: break-all;
}
.inline-form { display: inline; }
.code-block {
  overflow-x: auto; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border);
  padding: 1rem; border-radius: var(--radius); font-size: 0.8rem; line-height: 1.5;
  margin: 0; color: #cbd5e1;
}
.pre-line { white-space: pre-line; }
.mt-05 { margin-top: 0.5rem; }
.mb-08 { margin-bottom: 0.8rem; }
.ml-05 { margin-left: 0.5rem; }
.my-02 { margin: 0.2rem 0; }
.card-title { font-family: var(--font-display); font-size: 1.15rem; margin: 0; }
.callout { margin: 0.9rem 0; padding: 0.85rem 1.1rem; border-left: 3px solid var(--violet); border-radius: var(--radius); background: rgba(139, 92, 246, 0.06); }
.callout.blue { border-left-color: var(--blue); background: rgba(59, 130, 246, 0.06); }
.callout > strong { display: block; margin-bottom: 0.4rem; }
.callout p { margin: 0 0 0.6rem; }
.callout p:last-child { margin-bottom: 0; }
.inline-fields { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.input-narrow { max-width: 200px; }
.input-mono { font-family: monospace; }
.flex-1 { flex: 1; }
.card-narrow { max-width: 640px; }
/* Galerie d'images éditables (fiche produit admin) */
.img-thumb-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.8rem 0; }
.img-thumb-item { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; cursor: pointer; }
.img-thumb { width: 110px; height: 74px; object-fit: cover; border-radius: 8px; }

/* ---- Animations reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .adm-hero-row { grid-template-columns: 1fr; }
  .adm-tables { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .dash-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .side-nav { position: static; }
  .side-nav nav { flex-direction: row; flex-wrap: wrap; }
  .side-nav nav a { font-size: 0.85rem; padding: 0.5rem 0.7rem; }
  .side-nav nav a.active::before { display: none; }
  .side-nav-section { width: 100%; padding: 0.7rem 0.5rem 0.15rem; }
  .side-nav-back { margin-top: 0.4rem; }

  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; background: rgba(10, 10, 20, 0.97);
    border-bottom: 1px solid var(--border); padding: 0.8rem 1.2rem 1.2rem;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.8rem; }
  .nav-burger { display: flex; }
  .nav-user-name { display: none; }

  .nav-actions > a.btn,
  .nav-actions > .btn { display: none; }
  .nav-links-auth { display: none; }
  .nav-links.open .nav-links-auth { display: flex; gap: 0.6rem; margin-top: 0.6rem; padding: 0.6rem 0.8rem 0; border-top: 1px solid var(--border); }
  .nav-links-auth .btn { flex: 1; text-align: center; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .adm-chart { gap: 4px; height: 150px; }
  .adm-chart-val { display: none; }
  .adm-chart-col:nth-child(odd) .adm-chart-label { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 2.8rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cart-item { flex-wrap: wrap; }
  .btn-lg { padding: 0.75rem 1.4rem; font-size: 0.95rem; }
}

/* ============================================================
   Page vitrine — héro boutique plein cadre + carrousels produits
   ============================================================ */

/* ---- Héro boutique (image du jeu en fond, contenu superposé) ---- */
.store-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.hs-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hs-slide {
  position: relative; flex: 0 0 100%; min-width: 100%;
  display: flex; align-items: center;
  min-height: clamp(420px, 54vh, 540px);
  padding: 2.75rem 0 7.5rem;
  overflow: hidden;
}
/* Fond = même visuel mais flouté et assombri : aucun bord d'image visible */
.hs-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(30px) brightness(0.45) saturate(1.15);
  transform: scale(1.1);
}
.hs-bg.no-img {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(139, 92, 246, 0.2), transparent),
    radial-gradient(ellipse 70% 55% at 20% 80%, rgba(59, 130, 246, 0.16), transparent),
    var(--bg2);
  filter: none; transform: none; inset: 0;
}
.hs-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 15, 0.85) 0%, rgba(7, 7, 15, 0.5) 45%, rgba(7, 7, 15, 0.25) 100%),
    linear-gradient(0deg, rgba(7, 7, 15, 0.85) 0%, rgba(7, 7, 15, 0.2) 28%, transparent 55%);
}
.hs-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.hs-content {
  flex: 1 1 auto; max-width: 560px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}
.hs-slide.active .hs-content { opacity: 1; transform: none; }
/* Visuel du jeu contenu dans une carte : le logo rentre en entier */
.hs-media {
  flex: 0 1 460px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(14px) scale(0.97);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}
.hs-slide.active .hs-media { opacity: 1; transform: none; }
.hs-media img {
  width: 100%; max-height: 330px; object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.hs-media-emoji {
  font-size: clamp(5rem, 10vw, 8rem);
  filter: drop-shadow(0 12px 40px rgba(99, 102, 241, 0.4));
}
.hs-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #a5b4fc; background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hs-title {
  font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.05;
  letter-spacing: -1px; margin-bottom: 0.9rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.hs-desc {
  color: #c9d0e0; font-size: 1.05rem; max-width: 520px; margin-bottom: 1.4rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-price { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.6rem; }
.hs-price .price-current { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.hs-price .price-current.sale { color: var(--success); }
.hs-price .price-old { color: var(--muted); text-decoration: line-through; font-size: 1.15rem; }

.hs-arrow {
  position: absolute; top: calc(50% - 3rem); transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(12, 12, 24, 0.72);
  color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hs-arrow:hover { background: rgba(99, 102, 241, 0.3); border-color: var(--violet); }
.hs-prev { left: 1.1rem; }
.hs-next { right: 1.1rem; }

/* ---- Vignettes de navigation (style boutique de jeux) ---- */
.hs-thumbs {
  position: absolute; z-index: 4; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: min(1180px, 100% - 2.5rem);
  display: flex; gap: 0.7rem;
  overflow-x: auto; scrollbar-width: none;
}
.hs-thumbs::-webkit-scrollbar { display: none; }
.hs-thumb {
  display: flex; align-items: center; gap: 0.65rem;
  flex: 1 1 0; min-width: 150px; max-width: 250px;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem; border-radius: 12px;
  background: rgba(12, 12, 24, 0.6); border: 1px solid var(--border);
  color: var(--muted); font-family: inherit; text-align: left; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0.75;
  transition: opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.hs-thumb img {
  width: 58px; height: 36px; object-fit: cover; border-radius: 7px; flex-shrink: 0;
}
.hs-thumb-emoji {
  width: 58px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
  border-radius: 7px;
}
.hs-thumb-title {
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-thumb:hover { opacity: 1; color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.hs-thumb.active {
  opacity: 1; color: var(--text);
  border-color: var(--violet); background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.28);
}

.hs-statsbar { border-bottom: 1px solid var(--border); padding: 1.6rem 0; background: var(--surface); }
.hs-statsbar .hero-stats { margin-top: 0; justify-content: space-between; }

/* ---- Carrousels produits ---- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.carousel-nav { display: flex; align-items: center; gap: 0.55rem; }
.carousel-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-btn:hover { background: rgba(99, 102, 241, 0.25); border-color: var(--violet); }
.carousel-track {
  display: flex; gap: 1.4rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 1rem; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 calc((100% - 2.8rem) / 3); min-width: 280px;
  scroll-snap-align: start; display: flex;
}
.carousel-item .product-card { width: 100%; }

/* Dégager le texte des flèches quand le container touche les bords */
@media (max-width: 1320px) {
  .hs-inner { padding: 0 3.2rem; }
}

@media (max-width: 1000px) {
  .hs-slide { min-height: clamp(400px, 54vh, 500px); }
  .hs-media { flex: 0 1 320px; }
  .hs-media img { max-height: 230px; }
  .hs-arrow { width: 40px; height: 40px; font-size: 1.35rem; }
  .carousel-item { flex-basis: calc((100% - 1.4rem) / 2); }
}

@media (max-width: 620px) {
  .hs-slide { min-height: 440px; padding: 2.5rem 0 5.5rem; }
  /* Sur mobile le texte prime : le fond flouté suffit comme visuel */
  .hs-media { display: none; }
  /* Flèches masquées : plus besoin du dégagement latéral */
  .hs-inner { padding: 0; }
  .hs-title { font-size: 1.8rem; }
  .hs-desc { font-size: 0.95rem; -webkit-line-clamp: 2; }
  .hs-price .price-current { font-size: 1.6rem; }
  /* Le swipe tactile remplace les flèches */
  .hs-arrow { display: none; }
  /* Les vignettes deviennent de simples points */
  .hs-thumbs { justify-content: center; bottom: 1.2rem; width: auto; }
  .hs-thumb {
    flex: 0 0 auto; min-width: 0; max-width: none;
    width: 11px; height: 11px; padding: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.22); border: none; box-shadow: none;
  }
  .hs-thumb img, .hs-thumb-emoji, .hs-thumb-title { display: none; }
  .hs-thumb.active { width: 28px; border-radius: 6px; background: var(--grad); }
  .carousel-item { flex-basis: 85%; min-width: 0; }
  .hs-statsbar .hero-stats { justify-content: center; gap: 1.5rem; }
}

/* ---- Print (facture) — géré dans invoice.ejs de façon autonome ---- */
