/* ==========================================================================
   VENTES PRIVÉES DE LUXE — Système de Design Premium
   ==========================================================================
   Auteur : Darius Design Studio
   Description : Feuille de style principale pour le site de ventes privées
                 de luxe. Thème sombre, accents dorés, effets glassmorphism.
   ========================================================================== */


/* ==========================================================================
   0. IMPORTATION DES POLICES GOOGLE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');


/* ==========================================================================
   1. VARIABLES CSS PERSONNALISÉES (CUSTOM PROPERTIES)
   ========================================================================== */

:root {
  /* — Couleurs de fond — */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* — Or (Gold) — */
  --gold: #c9a961;
  --gold-light: #d4b876;
  --gold-dark: #b8943f;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  --gold-glow: 0 0 20px rgba(201, 169, 97, 0.25);

  /* — Texte — */
  --text-primary: #f5f0eb;
  --text-secondary: #a0998f;
  --text-muted: #6b6560;

  /* — États — */
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;

  /* — Bordures & Verre — */
  --border-gold: rgba(201, 169, 97, 0.15);
  --border-gold-hover: rgba(201, 169, 97, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(20px);

  /* — Typographie — */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* — Tailles de police — */
  --fs-h1: 3.5rem;
  --fs-h2: 2.5rem;
  --fs-h3: 1.75rem;
  --fs-h4: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* — Espacement — */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* — Rayons de bordure — */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* — Transitions — */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* — Ombres — */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 24px rgba(201, 169, 97, 0.15);

  /* — Dimensions — */
  --header-height: 72px;
  --container-max: 1400px;
}


/* ==========================================================================
   2. RESET & BASE MODERNE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Sélection de texte dorée */
::selection {
  background-color: rgba(201, 169, 97, 0.3);
  color: var(--gold-light);
}

::-moz-selection {
  background-color: rgba(201, 169, 97, 0.3);
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}


/* ==========================================================================
   3. TYPOGRAPHIE
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

small, .text-small {
  font-size: var(--fs-small);
}

.text-xs {
  font-size: var(--fs-xs);
}


/* ==========================================================================
   4. MISE EN PAGE (LAYOUT)
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

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

/* Utilitaires d'espacement pour les grilles */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Page principale — décalage pour le header fixe */
.main-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* Section générique */
.section {
  padding: var(--space-8) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}


/* ==========================================================================
   5. HEADER / BARRE DE NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-gold);
  transition: background var(--transition-smooth);
}

/* Effet au défilement — ajouter via JS */
.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* — Logo — */
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo span {
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  text-transform: none;
}

/* — Navigation principale — */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* — Bouton de connexion Google — */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: #ffffff;
  color: #333333;
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-google img,
.btn-google svg {
  width: 18px;
  height: 18px;
}

.btn-google:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: #333333;
}

/* — Profil utilisateur connecté — */
.user-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast);
}

.user-profile:hover {
  background: var(--glass-bg);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  object-fit: cover;
}

.user-name {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-primary);
}

/* Menu déroulant du profil */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.user-profile.open .user-dropdown,
.user-profile:focus-within .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.user-dropdown a:hover {
  background: var(--glass-bg);
  color: var(--gold);
}

.user-dropdown .divider {
  height: 1px;
  background: var(--border-gold);
  margin: var(--space-2) 0;
}

/* — Menu hamburger (mobile) — */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================================
   6. SECTION HÉRO
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  text-align: center;
  overflow: hidden;
  padding: var(--space-8) var(--space-5);
}

/* Fond animé avec dégradé sombre */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #141210 25%,
    #0f0d0a 50%,
    #0a0a0a 75%,
    #100e0c 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

/* Overlay subtil pour profondeur */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(201, 169, 97, 0.04) 0%,
    transparent 70%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--fs-h1));
  font-weight: 700;
  margin-bottom: var(--space-4);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-6);
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 16px 40px;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-gold);
  cursor: pointer;
}

.hero-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 40px rgba(201, 169, 97, 0.35);
  color: var(--bg-primary);
}

/* Particules décoratives flottantes */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.hero-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.hero-particle:nth-child(3) { top: 40%; left: 30%; animation-delay: 2s; }
.hero-particle:nth-child(4) { top: 80%; left: 60%; animation-delay: 3s; }
.hero-particle:nth-child(5) { top: 10%; left: 70%; animation-delay: 4s; }
.hero-particle:nth-child(6) { top: 50%; left: 90%; animation-delay: 1.5s; }
.hero-particle:nth-child(7) { top: 75%; left: 15%; animation-delay: 3.5s; }
.hero-particle:nth-child(8) { top: 30%; left: 50%; animation-delay: 2.5s; }

/* Lignes décoratives dorées */
.hero-line {
  position: absolute;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.hero-line:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; }
.hero-line:nth-child(2) { top: 55%; right: 8%; animation-delay: 2s; }
.hero-line:nth-child(3) { bottom: 20%; left: 12%; animation-delay: 4s; }


/* ==========================================================================
   7. CARTES DE MARQUES (.brand-card)
   ========================================================================== */

.brand-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  animation: fadeInUp 0.6s ease-out both;
}

/* Délais d'animation échelonnés */
.brand-card:nth-child(1) { animation-delay: 0.05s; }
.brand-card:nth-child(2) { animation-delay: 0.10s; }
.brand-card:nth-child(3) { animation-delay: 0.15s; }
.brand-card:nth-child(4) { animation-delay: 0.20s; }
.brand-card:nth-child(5) { animation-delay: 0.25s; }
.brand-card:nth-child(6) { animation-delay: 0.30s; }
.brand-card:nth-child(7) { animation-delay: 0.35s; }
.brand-card:nth-child(8) { animation-delay: 0.40s; }
.brand-card:nth-child(9) { animation-delay: 0.45s; }
.brand-card:nth-child(10) { animation-delay: 0.50s; }
.brand-card:nth-child(11) { animation-delay: 0.55s; }
.brand-card:nth-child(12) { animation-delay: 0.60s; }

.brand-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold-hover);
  box-shadow:
    var(--shadow-lg),
    0 0 30px rgba(201, 169, 97, 0.1);
  background: var(--bg-card-hover);
}

/* — Image de la carte — */
.brand-card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
}

.brand-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.brand-card:hover .brand-card-image img {
  transform: scale(1.05);
}

/* Badge de réduction — positionné en haut à droite */
.discount-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 6px 14px;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* Indicateur de statut (point coloré) */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.inactive {
  background: var(--text-muted);
}

/* — Contenu de la carte — */
.brand-card-body {
  padding: var(--space-4);
}

.brand-card-name {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.brand-card-description {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* — Badge du nombre de produits — */
.product-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

/* Produits disponibles — badge doré */
.product-count-badge.has-products {
  background: rgba(201, 169, 97, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 97, 0.25);
}

/* Aucun produit — badge grisé */
.product-count-badge.no-products {
  background: rgba(107, 101, 96, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(107, 101, 96, 0.15);
}

/* Pied de la carte — statut + lien */
.brand-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(201, 169, 97, 0.08);
}

.brand-card-link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.brand-card-link:hover {
  gap: 8px;
}


/* ==========================================================================
   8. BARRE DE FILTRES
   ========================================================================== */

.filters-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.filters-bar::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 22px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.filter-btn:hover {
  background: rgba(201, 169, 97, 0.08);
  border-color: var(--gold);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: 600;
}

.filter-count {
  font-size: var(--fs-xs);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}

.filter-btn.active .filter-count {
  background: rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   9. BOUTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  outline: none;
  text-decoration: none;
  line-height: 1;
}

/* Bouton principal — or */
.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.3);
  color: var(--bg-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Bouton secondaire — contour doré */
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: var(--gold-glow);
}

/* Bouton fantôme — très subtil */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--gold);
  background: var(--glass-bg);
}

/* Bouton de danger */
.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #ef4444;
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3);
}

/* Tailles */
.btn-sm {
  padding: 8px 18px;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 16px 40px;
  font-size: var(--fs-body);
}

/* Bouton pleine largeur */
.btn-block {
  width: 100%;
}

/* État désactivé */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* ==========================================================================
   10. MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-spring);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
  padding-right: var(--space-7);
}

.modal-body {
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-gold);
}


/* ==========================================================================
   11. BADGES & TAGS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.badge-gold {
  background: rgba(201, 169, 97, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 97, 0.25);
}

.badge-gold-solid {
  background: var(--gold-gradient);
  color: var(--bg-primary);
}

.badge-active {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.badge-inactive {
  background: rgba(107, 101, 96, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(107, 101, 96, 0.2);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.25);
}


/* ==========================================================================
   12. PIED DE PAGE (FOOTER)
   ========================================================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-gold);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-brand .logo {
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

/* — Newsletter — */
.footer-newsletter p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--fs-small);
  border: none;
  min-width: 0;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 12px 22px;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-form button:hover {
  filter: brightness(1.1);
}

/* — Réseaux sociaux — */
.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-smooth);
}

.social-link:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--gold-glow);
}

/* — Copyright — */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-gold);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-bottom .heart {
  color: var(--danger);
}


/* ==========================================================================
   13. STYLES ADMIN (.admin-*)
   ========================================================================== */

/* — Layout du tableau de bord — */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-gold);
  padding: var(--space-5);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
  transition: all var(--transition-fast);
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  background: var(--glass-bg);
  color: var(--gold);
}

.admin-main {
  padding: var(--space-6);
}

/* — Cartes de statistiques — */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: all var(--transition-fast);
}

.admin-stat-card:hover {
  border-color: var(--border-gold-hover);
}

.admin-stat-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.admin-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--gold);
}

.admin-stat-change {
  font-size: var(--fs-xs);
  margin-top: var(--space-1);
}

.admin-stat-change.positive { color: var(--success); }
.admin-stat-change.negative { color: var(--danger); }

/* — Champs de formulaire admin — */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid rgba(201, 169, 97, 0.12);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0998f' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* — Tableau de données admin — */
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.admin-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: rgba(201, 169, 97, 0.05);
  border-bottom: 1px solid var(--border-gold);
  white-space: nowrap;
}

.admin-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  vertical-align: middle;
}

.admin-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.admin-table tr:hover {
  background: rgba(201, 169, 97, 0.04);
}

.admin-table tr:last-child td {
  border-bottom: none;
}


/* ==========================================================================
   14. PAGE DE DÉTAIL MARQUE
   ========================================================================== */

.brand-detail-header {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.brand-detail-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-detail-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
}

.brand-detail-info {
  position: relative;
  z-index: 1;
  margin-top: -100px;
  padding: 0 var(--space-5);
}

.brand-detail-name {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.brand-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* — Cartes de ventes — */
.sale-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-smooth);
}

.sale-card:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sale-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  margin-bottom: var(--space-2);
}

.sale-dates {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

/* — Compte à rebours — */
.countdown {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.countdown-item {
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  min-width: 70px;
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.countdown-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* — Bouton lien affilié (CTA proéminent) — */
.btn-affiliate {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 18px 42px;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-size: var(--fs-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.btn-affiliate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-affiliate:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 40px rgba(201, 169, 97, 0.4);
  color: var(--bg-primary);
}

.btn-affiliate:hover::before {
  left: 100%;
}


/* ==========================================================================
   15. ANIMATIONS (@keyframes)
   ========================================================================== */

/* Apparition en fondu depuis le bas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apparition en fondu simple */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Effet de scintillement doré (chargement) */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    rgba(201, 169, 97, 0.08) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Pulsation subtile (indicateurs en direct) */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* Flottement doux (éléments décoratifs) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

/* Déplacement de dégradé (héro) */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glissement depuis la droite (toasts) */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Glissement vers la droite (sortie toast) */
@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Rotation de chargement */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animation de page — fondu entrant */
.page-transition {
  animation: fadeIn 0.5s ease-out;
}

/* Indicateur de chargement (spinner) */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-gold);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}


/* ==========================================================================
   16. NOTIFICATIONS TOAST
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;
  animation: slideInRight 0.4s var(--transition-smooth);
}

.toast.dismissing {
  animation: slideOutRight 0.3s ease-in forwards;
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.toast-message {
  flex: 1;
  font-size: var(--fs-small);
  color: var(--text-primary);
}

.toast-close {
  flex-shrink: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Variantes de toast */
.toast-success {
  border-left: 3px solid var(--success);
}
.toast-success .toast-icon { color: var(--success); }

.toast-error {
  border-left: 3px solid var(--danger);
}
.toast-error .toast-icon { color: var(--danger); }

.toast-info {
  border-left: 3px solid var(--gold);
}
.toast-info .toast-icon { color: var(--gold); }

.toast-warning {
  border-left: 3px solid var(--warning);
}
.toast-warning .toast-icon { color: var(--warning); }


/* ==========================================================================
   17. BARRE DE DÉFILEMENT PERSONNALISÉE
   ========================================================================== */

/* Navigateurs Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #111111;
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: var(--radius-pill);
  border: 2px solid #111111;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) #111111;
}


/* ==========================================================================
   18. CLASSES UTILITAIRES
   ========================================================================== */

/* — Texte — */
.text-gold   { color: var(--gold) !important; }
.text-white  { color: var(--text-primary) !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }

.text-center { text-align: center !important; }
.text-left   { text-align: left !important; }
.text-right  { text-align: right !important; }

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* — Arrière-plan — */
.bg-glass {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.bg-primary   { background: var(--bg-primary) !important; }
.bg-secondary { background: var(--bg-secondary) !important; }

/* — Flexbox — */
.flex          { display: flex !important; }
.flex-inline   { display: inline-flex !important; }
.flex-col      { flex-direction: column !important; }
.flex-wrap     { flex-wrap: wrap !important; }
.flex-center   { display: flex !important; align-items: center !important; justify-content: center !important; }
.flex-between  { display: flex !important; align-items: center !important; justify-content: space-between !important; }
.flex-start    { display: flex !important; align-items: flex-start !important; }
.flex-end      { display: flex !important; justify-content: flex-end !important; }
.items-center  { align-items: center !important; }
.flex-1        { flex: 1 !important; }

/* — Marges (margin) — */
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }

.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }

.ml-1 { margin-left: var(--space-1) !important; }
.ml-2 { margin-left: var(--space-2) !important; }
.ml-3 { margin-left: var(--space-3) !important; }

.mr-1 { margin-right: var(--space-1) !important; }
.mr-2 { margin-right: var(--space-2) !important; }
.mr-3 { margin-right: var(--space-3) !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* — Paddings — */
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-5 { padding: var(--space-5) !important; }

.px-3 { padding-left: var(--space-3) !important; padding-right: var(--space-3) !important; }
.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.py-3 { padding-top: var(--space-3) !important; padding-bottom: var(--space-3) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }

/* — Visibilité — */
.hidden  { display: none !important; }
.visible { display: block !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* — Divers — */
.rounded     { border-radius: var(--radius-md) !important; }
.rounded-lg  { border-radius: var(--radius-lg) !important; }
.rounded-pill { border-radius: var(--radius-pill) !important; }

.border-gold { border: 1px solid var(--border-gold) !important; }

.shadow       { box-shadow: var(--shadow-md) !important; }
.shadow-gold  { box-shadow: var(--shadow-gold) !important; }

.overflow-hidden { overflow: hidden !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }

.cursor-pointer { cursor: pointer !important; }
.pointer-events-none { pointer-events: none !important; }


/* ==========================================================================
   19. RESPONSIVE — POINTS DE RUPTURE
   ========================================================================== */

/* --------- Tablette (max 768px) --------- */
@media (max-width: 768px) {
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --header-height: 64px;
  }

  /* Navigation mobile */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: calc(var(--header-height) + var(--space-5)) var(--space-5) var(--space-5);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-gold);
    transition: right var(--transition-smooth);
    z-index: 999;
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav-link {
    font-size: var(--fs-body);
    padding: var(--space-3) 0;
    width: 100%;
    border-bottom: 1px solid rgba(201, 169, 97, 0.08);
  }

  .hamburger {
    display: flex;
  }

  /* Grilles — colonne unique */
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Footer — colonne unique */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* Section */
  .section {
    padding: var(--space-6) 0;
  }

  .container {
    padding: 0 var(--space-3);
  }

  /* Héro */
  .hero {
    padding: var(--space-6) var(--space-3);
    min-height: calc(100vh - var(--header-height));
  }

  .hero-cta {
    padding: 14px 32px;
    font-size: var(--fs-small);
  }

  /* Compte à rebours */
  .countdown {
    flex-wrap: wrap;
    justify-content: center;
  }

  .countdown-item {
    min-width: 60px;
    padding: var(--space-2) var(--space-3);
  }

  .countdown-value {
    font-size: var(--fs-h4);
  }

  /* Admin — layout mobile */
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: -100%;
    width: 260px;
    z-index: 900;
    transition: left var(--transition-smooth);
  }

  .admin-sidebar.open {
    left: 0;
  }

  /* Détail marque */
  .brand-detail-header {
    height: 250px;
  }

  .brand-detail-name {
    font-size: var(--fs-h2);
  }

  /* Modal */
  .modal {
    width: 95%;
    padding: var(--space-4);
    max-height: 90vh;
  }

  /* Toast — pleine largeur */
  .toast-container {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/* --------- Mobile (max 640px) --------- */
@media (max-width: 640px) {
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.25rem;
    --fs-h4: 1.1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  /* Filtres — scroll horizontal */
  .filters-bar {
    padding: var(--space-3) 0;
    gap: var(--space-2);
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: var(--fs-xs);
  }

  /* Cartes marque — ajustement */
  .brand-card-body {
    padding: var(--space-3);
  }

  .brand-card-footer {
    padding: var(--space-2) var(--space-3);
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .newsletter-form input {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    text-align: center;
  }

  .newsletter-form button {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 14px;
  }

  /* Boutons */
  .btn-lg {
    padding: 14px 28px;
    font-size: var(--fs-small);
  }

  .btn-affiliate {
    padding: 14px 28px;
    font-size: var(--fs-small);
    width: 100%;
    justify-content: center;
  }

  /* Masquer les éléments décoratifs sur petit écran */
  .hero-particles,
  .hero-line {
    display: none;
  }
}

/* --------- Grand écran (min 1024px) --------- */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  /* Affichage des éléments de bureau uniquement */
  .desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }
}

/* --------- Très grand écran (min 1440px) --------- */
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--space-7);
  }
}

/* --------- Préférence de mouvement réduit — accessibilité — */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --------- Mode sombre forcé (au cas où le navigateur force un thème clair) — */
@media (prefers-color-scheme: light) {
  /* On maintient notre thème sombre luxueux */
  :root {
    color-scheme: dark;
  }
}


/* ==========================================================================
   20. ÉTATS SPÉCIAUX & AMÉLIORATIONS
   ========================================================================== */

/* Skeleton de chargement pour les cartes */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 169, 97, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-image {
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
  background: var(--bg-secondary);
  margin-bottom: var(--space-2);
}

.skeleton-text.short {
  width: 60%;
}

/* Ligne de séparation dorée */
.divider-gold {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
  margin: var(--space-5) 0;
}

/* Focus visible pour l'accessibilité */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* État vide — aucun résultat */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.empty-state-description {
  max-width: 400px;
  margin: 0 auto var(--space-4);
  font-size: var(--fs-small);
}

/* Overlay de chargement */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--bg-primary);
}

.loading-overlay .logo {
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 100;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   21. COMPOSANTS ADDITIONNELS
   ========================================================================== */

/* ── Google Sign-In Button ── */
.btn-google-signin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-google-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-google-signin .google-icon {
  flex-shrink: 0;
}

/* ── User Profile (Navbar) ── */
.user-profile {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.user-name {
  font-size: var(--fs-small);
  color: var(--text-primary);
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-signout:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border-color: var(--danger);
}

.btn-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-admin:hover {
  background: rgba(201, 169, 97, 0.15);
  border-color: var(--gold);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(201, 169, 97, 0.05) 0%, transparent 50%),
              var(--bg-primary);
  animation: gradientShift 15s ease-in-out infinite;
  background-size: 200% 200%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-5);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 20px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius-pill);
  color: var(--success);
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: var(--space-5);
  animation: fadeInUp 0.6s ease-out;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.1;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-discount {
  font-size: 1.5em;
  font-weight: 700;
  font-family: var(--font-heading);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-gold);
}

.hero-cta {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Decorative hero elements */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-deco-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-deco-2 {
  width: 300px;
  height: 300px;
  bottom: 15%;
  left: -80px;
  animation: float 10s ease-in-out infinite 2s;
}

.hero-deco-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 60%;
  animation: float 7s ease-in-out infinite 4s;
}

/* ── Filters Section ── */
.filters-section {
  padding: var(--space-4) 0;
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(201, 169, 97, 0.08);
}

.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.filter-categories {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.filter-categories::-webkit-scrollbar {
  display: none;
}

.filters-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-family: var(--font-body);
  outline: none;
  width: 180px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.sort-select {
  padding: 8px 36px 8px 16px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-family: var(--font-body);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0998f' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  outline: none;
  transition: all var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--gold);
}

/* ── Brands Section ── */
.brands-section {
  padding: var(--space-7) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

/* ── Brand Card Additional Styles ── */
.brand-card {
  cursor: pointer;
}

.brand-card.inactive {
  opacity: 0.6;
}

.brand-card.inactive:hover {
  opacity: 0.8;
}

.brand-card-content {
  padding: var(--space-4);
}

.brand-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.brand-card-name {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-primary);
}

.brand-card-category {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.brand-card-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.brand-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(201, 169, 97, 0.08);
}

.brand-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.brand-card:hover .brand-card-overlay {
  opacity: 1;
}

.overlay-text {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--gold);
  font-weight: 600;
}

.brand-initials {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ── Brand Card Image Container ── */
.brand-card-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: var(--space-4);
  background: var(--bg-secondary);
}

/* ── Brand Logo Image (grille) ── */
.brand-logo-img {
  width: auto !important;
  height: auto !important;
  max-width: 80% !important;
  max-height: 70% !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: all var(--transition-smooth);
}

.brand-card:hover .brand-logo-img {
  opacity: 1;
  transform: scale(1.08);
}

/* ── Brand Logo Image (page détail) ── */
.brand-detail-logo-img {
  width: auto !important;
  height: auto !important;
  max-width: 85% !important;
  max-height: 75% !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all var(--transition-smooth);
}

.ending-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 12px;
  background: rgba(248, 113, 113, 0.9);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.badge-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-gold);
}

.animate-in {
  animation: fadeInUp 0.5s ease-out both;
}

/* ── No Results ── */
.no-results {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.no-results-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.no-results h3 {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.no-results p {
  color: var(--text-muted);
}

/* ── About / Steps Section ── */
.about-section {
  padding: var(--space-8) 0;
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  transition: all var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-hover);
  box-shadow: var(--shadow-gold);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(201, 169, 97, 0.1);
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  line-height: 1;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Newsletter Section ── */
.newsletter-section {
  padding: var(--space-7) 0;
}

.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.newsletter-content {
  flex: 1;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.newsletter-desc {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.newsletter-form {
  flex: 1;
}

.newsletter-input-group {
  display: flex;
  gap: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  font-size: var(--fs-small);
  font-family: var(--font-body);
  outline: none;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-btn {
  border-radius: 0 !important;
  white-space: nowrap;
}

/* ── Footer Additional ── */
.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.7;
  margin-top: var(--space-3);
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

/* ── Brand Detail Page ── */
.brand-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-7);
  min-height: 400px;
}

.brand-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-5);
}

.back-link:hover {
  color: var(--gold);
}

.brand-hero-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.brand-logo-large {
  width: 140px;
  height: 140px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-xl);
}

.brand-hero-info {
  flex: 1;
}

.brand-hero-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.brand-hero-name {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.brand-hero-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.brand-hero-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.brand-hero-stats {
  display: flex;
  gap: var(--space-6);
}

.brand-stat {
  text-align: center;
}

.brand-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.brand-stat-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

/* ── Sales Section ── */
.sales-section {
  padding: var(--space-7) 0;
}

.sales-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sale-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  animation: fadeInUp 0.5s ease-out both;
}

.sale-card:hover {
  border-color: var(--border-gold-hover);
  box-shadow: var(--shadow-md);
}

.sale-card-header {
  padding: var(--space-5);
  padding-bottom: var(--space-3);
}

.sale-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.sale-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-primary);
}

.sale-card-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.5;
}

.sale-card-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  padding: 0 var(--space-5);
}

.sale-detail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.sale-detail svg {
  color: var(--gold);
  flex-shrink: 0;
}

.sale-progress {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sale-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.sale-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 1s ease-out;
}

.sale-progress-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.sale-cta {
  display: flex;
  margin: 0 var(--space-5) var(--space-5);
  width: calc(100% - var(--space-5) * 2);
  justify-content: center;
}

/* ── No Sales ── */
.no-sales {
  padding: var(--space-8) var(--space-4);
}

.no-sales-content {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.no-sales-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-4);
}

.no-sales-content h3 {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.no-sales-content p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-2);
}

/* ── Admin Panel Additions ── */
.admin-panel {
  padding-top: calc(var(--header-height) + var(--space-6));
  min-height: 100vh;
}

.admin-denied {
  padding-top: calc(var(--header-height) + var(--space-8));
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.admin-denied-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 400px;
}

.admin-denied-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--space-4);
}

.admin-denied h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.admin-denied p {
  color: var(--text-secondary);
}

.admin-header {
  margin-bottom: var(--space-6);
}

.admin-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.admin-title svg {
  color: var(--gold);
}

.admin-subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: all var(--transition-fast);
}

.admin-stat-card:hover {
  border-color: var(--border-gold-hover);
  box-shadow: var(--shadow-gold);
}

.admin-stat-icon {
  font-size: 2rem;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-info .admin-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.admin-stat-info .admin-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

.admin-section {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.admin-section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-gold);
}

.admin-section-title svg {
  color: var(--gold);
}

.admin-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-4);
}

.admin-form .form-group.full-width {
  grid-column: span 2;
}

.admin-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-gold);
}

.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
}

.admin-actions {
  display: flex;
  gap: var(--space-2);
}

.admin-empty {
  text-align: center;
  padding: var(--space-6);
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.admin-empty span {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-3);
}

.row-expired {
  opacity: 0.5;
}

.row-warning td {
  background: rgba(251, 191, 36, 0.03) !important;
}

/* ── Modal (additional for admin) ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  transform: scale(0.9);
  transition: transform var(--transition-spring);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.modal-text {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-5);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

/* ── Nav Links Mobile ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.nav-links.mobile-open {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  flex-direction: column;
  align-items: flex-start;
  padding: calc(var(--header-height) + var(--space-5)) var(--space-5) var(--space-5);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-gold);
  z-index: 998;
  overflow-y: auto;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 999;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Additional Responsive for new elements ── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-auth {
    margin-right: var(--space-3);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .brands-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand-hero-stats {
    justify-content: center;
  }

  .brand-hero-tags {
    justify-content: center;
  }

  .newsletter-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-5);
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-right {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  .admin-form .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form .form-group.full-width {
    grid-column: span 1;
  }

  .user-name {
    display: none;
  }

  .sale-card-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brands-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FIN DU SYSTÈME DE DESIGN — VENTES PRIVÉES DE LUXE
   ========================================================================== */
