/* ============================================
   BOUTIQUE ARKANE - Design System
   Theme: Dark + Red Accents
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@400;500;600;700&display=swap');

/* === CSS Variables === */
:root {
  /* Backgrounds */
  --bg-body:        #0a0a0f;
  --bg-navbar:      #0e0e14;
  --bg-sidebar:     #0e0e14;
  --bg-main:        #111118;
  --bg-card:        #16161f;
  --bg-card-hover:  #1c1c28;
  --bg-input:       #12121a;
  --bg-faq:         #14141c;
  --bg-banner:      #0c0c12;

  /* Red Accents */
  --accent:         #dc2626;
  --accent-light:   #ef4444;
  --accent-dark:    #991b1b;
  --accent-glow:    rgba(220, 38, 38, 0.25);
  --accent-subtle:  rgba(220, 38, 38, 0.08);
  --accent-bg:      rgba(220, 38, 38, 0.12);

  /* Text */
  --text-primary:   #e8e6e3;
  --text-secondary: #9a9a9a;
  --text-muted:     #5a5a5a;
  --text-on-accent: #ffffff;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.06);
  --border-accent:  rgba(220, 38, 38, 0.3);

  /* Utility */
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      16px;
  --shadow:         0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-accent:  0 4px 24px rgba(220, 38, 38, 0.15);
  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --navbar-height:  64px;
  --sidebar-width:  240px;

  /* Fonts */
  --font-body:      'Inter', sans-serif;
  --font-heading:   'Cinzel', serif;
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(14, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-brand span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

.navbar-nav a:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.navbar-nav a.active {
  color: var(--accent-light);
  background: var(--accent-bg);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Boutique dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  box-shadow: var(--shadow);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.dropdown-menu a svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Navbar right */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-right .btn-discord {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #5865F2;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.navbar-right .btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.navbar-right .btn-discord svg {
  width: 18px;
  height: 18px;
}

.online-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.online-count .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   LAYOUT
   ============================================ */
.layout {
  display: grid;
  display: block;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  overflow-y: auto;
  z-index: 900;
  transition: transform var(--transition);
}

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 28px;
}

.sidebar-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 10px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.sidebar-nav a.active {
  color: var(--accent-light);
  background: var(--accent-bg);
  border-left-color: var(--accent);
}

.sidebar-nav a svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-nav a.active svg {
  opacity: 1;
  color: var(--accent-light);
}

/* Sidebar social links */
.sidebar-socials {
  display: flex;
  gap: 10px;
  padding: 0 12px;
}

.sidebar-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar-socials a:hover {
  background: var(--accent-bg);
  border-color: var(--border-accent);
  color: var(--accent-light);
}

.sidebar-socials a svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.content {
  padding: 32px 40px;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================
   BANNER / HERO
   ============================================ */
.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 280;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-accent);
  background: url('../assets/images/banniere.png') no-repeat center center;
  background-size: 100% 100%;
}

@media (max-width: 768px) {
  .banner {
    aspect-ratio: 1200 / 400; /* Slightly taller on mobile for readability */
    margin-bottom: 16px;
  }
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(180, 20, 20, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(220, 38, 38, 0.15) 0%, transparent 60%);
  z-index: 1;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 4px);
  z-index: 1;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.banner-content img {
  height: 140px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(220, 38, 38, 0.4)) drop-shadow(0 0 80px rgba(220, 38, 38, 0.15));
  animation: bannerFloat 4s ease-in-out infinite;
}

@keyframes bannerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.banner-content h1 {
  margin-top: 12px;
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.welcome h2 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.welcome h2 .accent {
  color: var(--accent-light);
}

.welcome p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.3rem;
}

.section-header .icon {
  color: var(--accent);
  font-size: 1.2rem;
}

.faq-item {
  background: var(--bg-faq);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-item.open {
  border-left: 3px solid var(--accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--accent-subtle);
}

.faq-question .chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question .chevron {
  transform: rotate(90deg);
  color: var(--accent-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.6rem;
}

.page-header .icon {
  font-size: 1.4rem;
}

/* ============================================
   PRODUCT GRID (Credits)
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

.product-card.popular {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-accent);
}

.product-image-container {
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.product-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
}

.product-image .placeholder-icon {
  font-size: 4rem;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.product-name-banner {
  background: #050508;
  color: var(--text-primary);
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-badge {
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.btn-purchase {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-purchase:hover {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-purchase svg {
  width: 16px;
  height: 16px;
}

.product-footer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   PREMIUM CARDS
   ============================================ */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.premium-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition);
}

.premium-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

.premium-features-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.premium-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.premium-features-list li svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: auto;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--accent-light);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   STEAM LOGIN
   ============================================ */

.btn-steam-login {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  border: 1px solid #4c6b8a;
  border-radius: var(--radius-sm);
  color: #c6d4df;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-steam-login:hover {
  background: linear-gradient(135deg, #2a475e, #3a6080);
  border-color: #66b0d4;
  color: #fff;
  box-shadow: 0 0 15px rgba(102, 176, 212, 0.2);
}

.steam-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 1rem;
}

.steam-logout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 6px 12px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  width: 100%;
}

.steam-logout-btn:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Avertissement Steam dans le panier */
.cart-steam-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 12px;
}

/* ============================================
   CART DRAWER
   ============================================ */

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: #0e0e14;
  border-left: 1px solid var(--border);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  pointer-events: none;
}

.cart-drawer.open ~ .cart-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.cart-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.cart-close-btn:hover {
  background: var(--accent-bg);
  border-color: var(--border-accent);
  color: var(--accent-light);
}

.cart-close-btn svg {
  width: 16px;
  height: 16px;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: border-color var(--transition);
}

.cart-item:hover {
  border-color: var(--border-accent);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-top: 4px;
}

.cart-item-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--accent);
  color: var(--accent-light);
}

.cart-item-remove svg {
  width: 14px;
  height: 14px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: #0a0a0f;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cart-total-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.btn-checkout:hover {
  background: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-checkout svg {
  width: 18px;
  height: 18px;
}

.btn-checkout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-clear-cart {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn-clear-cart:hover {
  border-color: var(--border-accent);
  color: var(--accent-light);
}

/* Badge sur le bouton panier */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Toast notification */
.arkane-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a2e1a;
  border: 1px solid #22c55e;
  color: #22c55e;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.arkane-toast svg {
  width: 16px;
  height: 16px;
}

.arkane-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
  }
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* === Tablet (≤1024px) === */
@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    display: none; /* Masqué sur tablette/mobile */
  }

  .content {
    padding: 24px 20px;
  }

  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Mobile (≤768px) === */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 0 12px;
  }

  /* Empêcher la navbar de déborder */
  .navbar-brand {
    flex: 1;
    min-width: 0;
  }

  .navbar-brand span {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-right {
    flex-shrink: 0;
    gap: 6px;
  }

  /* Discord → icône seule */
  .navbar-right .btn-discord {
    padding: 7px;
    gap: 0;
    width: 34px;
    height: 34px;
    justify-content: center;
  }

  .navbar-right .btn-discord span:not(svg) {
    display: none;
  }

  /* Masquer le texte "Discord" (nœud texte direct) */
  .navbar-right .btn-discord {
    font-size: 0;
  }

  .navbar-right .btn-discord svg {
    width: 18px;
    height: 18px;
  }

  /* Masquer le compteur en ligne */
  .online-count {
    display: none;
  }

  /* Sidebar mobile (menu hamburger) */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: 2000;
    padding: 80px 0 24px;
    transform: translateX(-100%);
    transition: transform var(--transition);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Layout */
  .content {
    padding: 16px 12px;
  }

  /* Banner */
  .banner,
  .banner-home {
    aspect-ratio: 16 / 7 !important;
    margin-bottom: 16px;
  }

  /* Grilles produits */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .premium-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Store layout */
  .store-sidebar {
    display: none;
  }

  .store-toolbar {
    margin-bottom: 8px;
  }

  /* Typography */
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }

  /* Page header */
  .page-header {
    margin-bottom: 20px;
  }

  /* Welcome section */
  .welcome {
    margin: 0 0 32px;
    padding: 0 8px;
  }

  /* FAQ */
  .faq-section {
    padding: 0 4px;
  }
}

/* === Petit mobile (≤480px) === */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Réduire la taille du texte Arkane mais ne PAS le cacher */
  .navbar-brand span {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .navbar-brand img {
    height: 32px;
  }

  .content {
    padding: 12px 10px;
  }

  .product-image {
    height: 130px;
  }

  .btn-purchase {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

/* === Desktop : masquer la sidebar overlay et le hamburger === */
@media (min-width: 1025px) {
  .sidebar,
  .sidebar-overlay,
  .hamburger {
    display: none !important;
  }

  .navbar-nav {
    display: flex;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   SOLVE-STYLE LAYOUT
   ============================================ */
.banner-home {
  aspect-ratio: 1200 / 220 !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-accent) !important;
}

.store-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.store-main {
  display: flex;
  flex-direction: column;
}

.store-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: -10px;
  position: relative;
  z-index: 10;
}

.currency-selector select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-bg);
  color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-cart:hover { background: var(--accent); color: #fff; }
.btn-cart svg { width: 18px; height: 18px; }

/* Widget sidebar (panier) */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.widget-header svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.user-profile-module { margin-bottom: 24px; }
.user-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.user-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.product-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 0;
}

.footer {
  margin-top: 60px;
  padding: 30px 0 20px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.welcome {
  margin-top: 40px;
}

/* ============================================
   BADGE VEDETTE
   ============================================ */
.card-featured {
  border-color: rgba(255, 215, 0, 0.4) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1) !important;
}

.card-featured:hover {
  border-color: rgba(255, 215, 0, 0.6) !important;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2) !important;
}

.badge-vedette {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ffd700, #f59e0b, #ffd700);
  background-size: 200% 200%;
  color: #1a1a2e;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: vedetteShine 3s ease-in-out infinite;
}

@keyframes vedetteShine {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* ============================================
   QUANTITY CONTROLS (panier sidebar)
   ============================================ */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all var(--transition);
  padding: 0;
  line-height: 1;
  font-family: var(--font-body);
}

.qty-btn:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent-light);
}

.qty-display {
  min-width: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   WIDGETS COMMUNAUTE (Top Clients / Paiements)
   ============================================ */
.widget-list {
  padding: 8px 12px;
}

.widget-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.widget-list-item:last-child {
  border-bottom: none;
}

.widget-rank {
  width: 22px;
  height: 22px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-light);
  flex-shrink: 0;
}

.widget-rank.gold { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.widget-rank.silver { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.widget-rank.bronze { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }

.widget-payment-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.widget-list-name {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-list-amount {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  flex-shrink: 0;
}

.widget-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
