@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121826;
  --bg-card: #182234;
  --bg-card-hover: #1f2c42;
  --border-color: #27354f;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.2);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-rose: #f43f5e;
  --amazon-orange: #ff9900;
  --fnac-yellow: #e5a900;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--accent-cyan-glow);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ================================================================ */
/* LIENS GLOBAUX & REFACTORISATION COULEURS (Conformité & Contraste) */
/* ================================================================ */
a, a:link, a:visited {
  color: var(--accent-cyan);
  text-decoration: none !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #38bdf8;
  text-decoration: none !important;
}

a:active {
  color: #0284c7;
  text-decoration: none !important;
}

/* Sécurisation absolue des boutons pour qu'ils ne deviennent jamais violets une fois cliqués */
.btn,
.btn:link,
.btn:visited {
  text-decoration: none !important;
}

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  color: #ffffff !important;
}

.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  color: var(--text-main) !important;
}

.btn-vip,
.btn-vip:link,
.btn-vip:visited {
  color: #ffffff !important;
}

.btn-admin,
.btn-admin:link,
.btn-admin:visited {
  color: #0f172a !important;
}

/* Liens dans les Cartes et Listes */
.deal-card a,
.deal-card a:link,
.deal-card a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

.deal-card a:hover .product-title {
  color: var(--accent-cyan) !important;
}

.universe-card,
.universe-card:link,
.universe-card:visited {
  color: inherit !important;
  text-decoration: none !important;
}

.universe-card:hover .universe-card-title {
  color: var(--accent-cyan) !important;
}

.nav-link,
.nav-link:visited {
  color: var(--text-muted);
  text-decoration: none;
}

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

.breadcrumb a,
.breadcrumb a:visited {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

.footer-nav a,
.footer-nav a:visited {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

.footer-bottom a,
.footer-bottom a:visited {
  color: #94a3b8 !important;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-cyan) !important;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 24, 38, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.radar-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-bar {
  flex: 1 1 auto;
  min-width: 220px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  background: #1c283d;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.search-clear-btn:hover {
  background: rgba(244, 63, 94, 0.35);
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Boutons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0891b2, #0369a1);
  transform: translateY(-1px);
}

.btn-admin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1302;
  box-shadow: 0 4px 14px var(--accent-amber-glow);
  font-weight: 700;
}

.btn-admin:hover {
  background: linear-gradient(135deg, #fbbf24, #b45309);
  transform: translateY(-1px);
}

.btn-vip {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
  font-weight: 700;
}

.btn-vip:hover {
  background: linear-gradient(135deg, #facc15, #a16207);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-dim);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.25);
}

/* User Menu & Avatar */
.user-menu-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.user-badge-role {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-weight: 800;
}

.role-admin {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.role-user {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

/* Main Container */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
  width: 100%;
}

/* Hero Section Vitrine */
.hero-box {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.16) 0%, rgba(19, 28, 46, 0.95) 75%), linear-gradient(135deg, #0e1524 0%, #152033 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-box::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-header {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 960px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
}

.stat-pill strong {
  color: #ffffff;
  font-weight: 700;
}

/* Category & Controls Bar */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.category-chips-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.category-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.25rem 0.5rem 0.25rem;
  align-items: center;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition);
}

.chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.chip.active {
  background: var(--accent-cyan);
  color: #04121e;
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.chip-fav {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}

.chip-fav.active {
  background: var(--accent-rose);
  color: white;
  border-color: var(--accent-rose);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sort-label-mobile {
  display: none;
}

.sort-select-wrapper {
  position: relative;
  display: inline-block;
}

.sort-select {
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition);
}

.sort-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.sort-select option {
  background: #0f172a;
  color: var(--text-main);
}

.sort-select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 0.75rem;
}

/* Bandeau des Filtres Actifs */
.active-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.active-filters-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.active-filters-title {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.8rem;
}

.active-filters-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-tag button:hover {
  color: var(--accent-rose);
}

.btn-clear-all-filters {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-all-filters:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Deal Card */
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.deal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-image-box {
  position: relative;
  height: 220px;
  width: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(15, 22, 35, 0.96) 80%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-color);
}

.card-image-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.card-image {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.deal-card:hover .card-image {
  transform: scale(1.06);
}

.card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.badge-discount {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.4);
}

.badge-savings {
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Bouton Favori (Cœur sur la carte) */
.btn-fav-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-fav-toggle:hover {
  transform: scale(1.15);
  background: rgba(10, 14, 23, 0.95);
  border-color: var(--accent-rose);
}

.btn-fav-toggle.is-favorite {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent-rose);
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.card-category-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(6px);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8rem;
}

.ean-barcode {
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

/* Multi-merchant summary list */
.merchant-comparison-list {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.merchant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.merchant-name-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.merchant-price {
  font-weight: 700;
  color: var(--text-main);
}

.merchant-row.is-cheapest {
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.merchant-row.is-cheapest .merchant-name-badge {
  color: var(--accent-green);
  font-weight: 700;
}

.merchant-row.is-cheapest .merchant-price {
  color: var(--accent-green);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.current-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: -0.02em;
  line-height: 1;
}

.original-price {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

/* Badge Commission (VISIBLE SEULEMENT EN MODE ADMIN) */
.commission-admin-badge {
  font-size: 0.75rem;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn-deal-buy {
  width: 100%;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
}

.card-actions-subrow {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.card-actions-subrow .btn-secondary {
  flex: 1;
  justify-content: center;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
}

.btn-deal-alert {
  flex: 0 0 42px;
  padding: 0.45rem;
  justify-content: center;
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.25s ease-out;
  position: relative;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 30;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

/* Tabs & Sidebar dans l'Admin Dashboard & VIP Dashboard */
.admin-tabs {
  display: flex;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.5) rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.25rem 0.65rem 0.25rem;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  cursor: grab;
}

.admin-tabs:active {
  cursor: grabbing;
}

.admin-tabs::-webkit-scrollbar {
  height: 6px;
  display: block;
}

.admin-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
}

.admin-tabs::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.45);
  border-radius: 99px;
}

.admin-tabs::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

.admin-tabs-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.admin-tabs-arrow-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.admin-tabs-arrow-btn:hover {
  background: var(--accent-amber);
  color: #0b0f19;
  border-color: var(--accent-amber);
  transform: scale(1.08);
}

.admin-tab-btn {
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-tab-btn.active {
  color: #000;
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

#vipDashboardModal .admin-tab-btn.active {
  background: linear-gradient(135deg, #eab308, #06b6d4);
  color: #000;
  border-color: #eab308;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

/* Price History Timeline */
.price-history-box {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1.25rem;
}

.price-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  text-align: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--bg-card);
}

.timeline-dot.is-current {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.timeline-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-date {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Comparison & Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

.offers-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.offers-table th, .offers-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.offers-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offers-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.offers-table tr.best-offer-row {
  background: rgba(16, 185, 129, 0.08);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-group small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-card {
  flex: 1;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.radio-card:hover {
  border-color: var(--text-dim);
}

.radio-card.active {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: calc(100% - 4rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast-success {
  border-color: var(--accent-green);
}

.toast.toast-error {
  border-color: var(--accent-rose);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.affiliate-disclosure-box {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  line-height: 1.6;
  font-size: 0.8rem;
  color: #94a3b8;
}

.affiliate-disclosure-box strong {
  color: #e2e8f0;
  display: block;
  margin-bottom: 0.35rem;
}

/* ============================================================
   Utility responsive grid classes
   ============================================================ */
.grid-responsive-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Modal max-width variants (desktop) */
.auth-modal-content      { max-width: 440px; }
.alert-modal-content     { max-width: 480px; }
.changepw-modal-content  { max-width: 460px; }
.vip-modal-content       { max-width: 540px; }
.vip-dashboard-modal-content { max-width: 880px; }
.admin-modal-content     { max-width: 1140px; }

.grid-responsive-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.grid-responsive-pw {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

/* Modal product summary layout */
.modal-product-summary {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.modal-product-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #1e293b;
  flex-shrink: 0;
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */
/* Adaptation progressive de la navbar sur les écrans PC / tablettes */
@media (max-width: 1300px) {
  .brand-tagline {
    display: none;
  }
}

@media (max-width: 1200px) {
  #openFavoritesBtn .nav-btn-text,
  #openHistoryBtn .nav-btn-text,
  #navAdminAutomatorBtn .nav-btn-text {
    display: none;
  }
  .nav-container {
    gap: 0.85rem;
  }
  .nav-actions {
    gap: 0.45rem;
  }
  .btn {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .grid-responsive-3 {
    grid-template-columns: 1fr 1fr;
  }
  .nav-btn-text {
    display: none;
  }
  .user-menu-pill {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }
  .user-menu-pill .btn {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 768px) {
  /* --- Navbar --- */
  .navbar {
    padding: 0.65rem 0.85rem;
    width: 100%;
    max-width: 100%;
  }
  .nav-container {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  .logo-group {
    flex: 1;
    min-width: 0;
  }
  .search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 100%;
  }
  .nav-actions {
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
    justify-content: flex-end;
  }
  .nav-btn-text {
    display: none; /* hide text labels on mobile, keep icons */
  }
  .btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
  }

  /* --- Main content --- */
  .main-content {
    padding: 1rem 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .hero-box {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-title h2 {
    font-size: 1.25rem;
    word-break: break-word;
  }
  .hero-title p {
    font-size: 0.82rem;
    word-break: break-word;
  }
  .hero-stats-row {
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }
  .stat-pill {
    width: 100%;
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* --- Products grid --- */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* --- Controls bar & Filtres sur mobile --- */
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 1rem;
  }

  .category-chips-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 16px), transparent);
  }

  .category-chips {
    gap: 0.45rem;
    padding: 0.35rem 0.6rem 0.55rem 0.6rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    touch-action: pan-x;
  }

  .chip {
    flex: 0 0 auto !important;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sort-controls {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .sort-label-mobile {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 600;
  }

  .sort-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
  }

  .sort-select {
    width: 100%;
    height: 42px;
    padding: 0.55rem 2.2rem 0.55rem 0.85rem;
    font-size: 0.88rem;
  }

  .active-filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }

  .btn-clear-all-filters {
    width: 100%;
    text-align: center;
    padding: 0.4rem;
  }

  /* Recherche sur mobile : taille de police 16px pour éviter le zoom iOS automatique */
  .search-input {
    font-size: 16px !important;
  }

  /* --- Modals on Mobile: Full-width bottom drawer / sheet --- */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal-content,
  .auth-modal-content,
  .alert-modal-content,
  .changepw-modal-content,
  .vip-modal-content,
  .vip-dashboard-modal-content,
  .admin-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 94vh !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    margin: 0 !important;
  }
  .admin-modal-content,
  .vip-dashboard-modal-content {
    height: 94vh !important;
  }
  .modal-body {
    padding: 1rem 0.85rem 2.5rem 0.85rem !important;
  }
  .modal-header {
    padding: 0.85rem 1rem !important;
  }
  .modal-header h3 {
    font-size: 1.05rem !important;
  }

  /* --- Modal product summary --- */
  .modal-product-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .modal-product-img {
    width: 100px;
    height: 100px;
  }

  /* --- VIP Dashboard Modal header compact on mobile --- */
  #vipDashboardModal .modal-header {
    padding: 0.75rem 0.85rem !important;
  }
  #vipDashboardModal .modal-header > div:first-child {
    gap: 0.4rem !important;
    min-width: 0;
    overflow: hidden;
  }
  #vipDashboardModal .modal-header span:first-child {
    font-size: 1.3rem !important;
    flex-shrink: 0;
  }
  #vipDashboardModal .modal-header h3 {
    font-size: 0.95rem !important;
  }
  #vipDashPlanBadge {
    display: none !important;
  }

  /* --- VIP subscription tab: buttons full width on mobile --- */
  #vipPaneSub .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* --- Admin & VIP Tabs (Smooth Swipeable Horizontal Pill Bar) --- */
  .admin-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.4rem !important;
    padding-bottom: 0.6rem !important;
    border-bottom: 1px solid var(--border-color);
  }
  .admin-tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.78rem !important;
  }

  /* --- Responsive grids collapse to 1 column --- */
  .grid-responsive-2,
  .grid-responsive-3,
  .grid-responsive-pw {
    grid-template-columns: 1fr;
  }

  /* --- Responsive Helpers inside Modals & Dashboards --- */
  .form-row-responsive {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .form-row-responsive .form-group {
    width: 100% !important;
    flex: none !important;
  }
  .form-row-responsive .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .btn-group-responsive {
    flex-direction: column !important;
  }
  .btn-group-responsive .btn,
  .btn-group-responsive a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .vip-banner-action {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .vip-banner-action .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  #vipRadarListContainer {
    grid-template-columns: 1fr !important;
  }
  #vipDashWelcomeUser {
    display: none !important;
  }
  .automator-actions-grid {
    grid-template-columns: 1fr !important;
  }
  .grid-responsive-pw button {
    width: 100% !important;
    margin-top: 0.4rem;
  }

  /* --- Offers table: allow horizontal scroll --- */
  .offers-table {
    font-size: 0.78rem;
  }
  .offers-table th,
  .offers-table td {
    padding: 0.6rem 0.5rem;
  }

  /* --- Radio group --- */
  .radio-group {
    flex-direction: column;
  }

  /* --- VIP plan cards stack --- */
  #vipPlanStarter,
  #vipPlanPro {
    min-width: 0;
  }

  /* --- User menu pill wraps --- */
  .user-menu-pill {
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  /* --- Footer --- */
  .footer {
    padding: 1.25rem 0.85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .footer-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .footer-inner > div:last-child {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
  }

  /* --- Toast on mobile --- */
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .nav-actions {
    gap: 0.3rem;
  }
  .brand-tagline {
    display: none;
  }
  .admin-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   TOGGLE SWITCH — Notifications Email VIP
   ============================================================ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(100, 116, 139, 0.4);
  border-radius: 999px;
  transition: background 0.25s;
  pointer-events: none;
  z-index: 1;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-cyan);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* ============================================================
   THÈMES DU SITE & ÉVÉNEMENTS (Global Theme Engine)
   ============================================================ */

/* 1. HALLOWEEN (Événement d'octobre / automne) */
[data-theme="halloween"] {
  --bg-primary: #090514;
  --bg-secondary: #130a24;
  --bg-card: #1c1035;
  --bg-card-hover: #29174c;
  --border-color: #4c1d95;
  --text-main: #fdf4ff;
  --text-muted: #d8b4fe;
  --text-dim: #a855f7;
  --accent-cyan: #f97316;
  --accent-cyan-glow: rgba(249, 115, 22, 0.35);
  --accent-green: #eab308;
  --accent-amber: #f97316;
  --accent-rose: #ec4899;
  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.35);
}

/* 2. NOËL & FÊTES (Événement de décembre / hiver) */
[data-theme="christmas"] {
  --bg-primary: #06140e;
  --bg-secondary: #0c241b;
  --bg-card: #13362a;
  --bg-card-hover: #1c4d3c;
  --border-color: #245e49;
  --text-main: #f0fdf4;
  --text-muted: #a7f3d0;
  --text-dim: #6ee7b7;
  --accent-cyan: #ef4444;
  --accent-cyan-glow: rgba(239, 68, 68, 0.35);
  --accent-green: #10b981;
  --accent-amber: #fbbf24;
  --accent-rose: #dc2626;
  --shadow-glow: 0 0 25px rgba(239, 68, 68, 0.35);
}

/* 3. BLACK FRIDAY & CYBER SALES (Soldes extrêmes) */
[data-theme="black-friday"] {
  --bg-primary: #040404;
  --bg-secondary: #0d0d0d;
  --bg-card: #161616;
  --bg-card-hover: #222222;
  --border-color: #2e2e2e;
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --accent-cyan: #eab308;
  --accent-cyan-glow: rgba(234, 179, 8, 0.35);
  --accent-green: #84cc16;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
  --shadow-glow: 0 0 25px rgba(234, 179, 8, 0.4);
}

/* 4. OR PRESTIGE & MIDNIGHT GOLD (Ultra Luxe VIP) */
[data-theme="gold-luxury"] {
  --bg-primary: #080809;
  --bg-secondary: #111215;
  --bg-card: #181a20;
  --bg-card-hover: #22262e;
  --border-color: #3f3522;
  --text-main: #fefce8;
  --text-muted: #d4af37;
  --text-dim: #a18228;
  --accent-cyan: #d4af37;
  --accent-cyan-glow: rgba(212, 175, 55, 0.35);
  --accent-green: #e5c158;
  --accent-amber: #d4af37;
  --accent-rose: #f59e0b;
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.35);
}

/* 5. CYBERPUNK & SYNTHWAVE (Néon Futur) */
[data-theme="cyberpunk"] {
  --bg-primary: #0a0319;
  --bg-secondary: #14072f;
  --bg-card: #1f0b48;
  --bg-card-hover: #2f116d;
  --border-color: #7928ca;
  --text-main: #fdf4ff;
  --text-muted: #f0abfc;
  --text-dim: #c084fc;
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.4);
  --accent-green: #39ff14;
  --accent-amber: #ffe600;
  --accent-rose: #ff007f;
  --shadow-glow: 0 0 25px rgba(255, 0, 127, 0.35);
}

/* 6. OCÉAN PROFOND (Élégance Pure) */
[data-theme="ocean-blue"] {
  --bg-primary: #030f24;
  --bg-secondary: #071b3d;
  --bg-card: #0d2753;
  --bg-card-hover: #14366e;
  --border-color: #194b8c;
  --text-main: #f0f9ff;
  --text-muted: #93c5fd;
  --text-dim: #60a5fa;
  --accent-cyan: #00b4d8;
  --accent-cyan-glow: rgba(0, 180, 216, 0.35);
  --accent-green: #48cae4;
  --accent-amber: #38bdf8;
  --accent-rose: #f43f5e;
  --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.35);
}

/* 7. PERLE BLANCHE / MINIMALIST CHIC (Mode Clair) */
[data-theme="pearl-light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.25);
  --accent-green: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.2);
}

[data-theme="pearl-light"] .modal-content,
[data-theme="pearl-light"] .deal-card,
[data-theme="pearl-light"] .header,
[data-theme="pearl-light"] .footer {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="pearl-light"] .form-input,
[data-theme="pearl-light"] .search-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* UI du Theme Picker dans le Dashboard Admin */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-cyan);
}

.theme-card.active {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 0 2px var(--accent-green), 0 8px 24px var(--accent-green-glow);
}

.theme-palette-preview {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ================================================================ */
/* NOUVELLES PAGES & COMPOSANTS (Refonte v3.1 - 14 nov 2026)        */
/* ================================================================ */

/* Import Google Fonts - Inter */
/* NOTE: Google Fonts est chargé via <link> dans chaque HTML pour de meilleures perfs */

/* Navigation Links in Navbar */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
}

.nav-link-vip {
  color: #eab308;
}

.nav-link-vip:hover {
  background: rgba(234, 179, 8, 0.12);
  color: #fbbf24;
}

/* Footer Navigation */
.footer-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem 0.85rem !important;
  justify-content: center !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid var(--border-color) !important;
  margin-bottom: 1.5rem !important;
}

.footer-nav a,
.footer-nav a:link,
.footer-nav a:visited {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 99px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.footer-nav a:hover {
  color: #ffffff !important;
  background: rgba(6, 182, 212, 0.15) !important;
  border-color: #06b6d4 !important;
  transform: translateY(-2px) !important;
}

.footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  font-size: 0.82rem !important;
  color: var(--text-dim) !important;
}

.footer-bottom a,
.footer-bottom a:link,
.footer-bottom a:visited {
  color: #94a3b8 !important;
  text-decoration: none !important;
}

.footer-bottom a:hover {
  color: var(--accent-cyan) !important;
  text-decoration: underline !important;
}

/* Breadcrumb Navigation (SEO) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* Page Header (pages intérieures) */
.page-header {
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header .page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
}

/* Skeleton Loading Animations */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-image {
  height: 200px;
  width: 100%;
}

.skeleton-line {
  height: 14px;
  margin: 0.5rem 1rem;
  border-radius: 999px;
}

.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-33 { width: 33%; }

/* Section editoriale (deals du jour, trending) */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title .section-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid adaptatif pour les pages intérieures */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.content-grid-full {
  grid-column: 1 / -1;
}

/* Card infos (VIP benefits, à-propos etc.) */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff !important;
  border: none;
  width: 100%;
  text-align: left;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--accent-cyan) !important;
}

.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan) !important;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-question[aria-expanded="true"] {
  color: var(--accent-cyan) !important;
  border-bottom: 1px solid var(--border-color);
}

.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose) !important;
}

.faq-answer {
  padding: 1.1rem 1.25rem 1.35rem;
  background: rgba(0, 0, 0, 0.2);
  color: #cbd5e1 !important;
  font-size: 0.88rem;
  line-height: 1.65;
  display: none;
}

.faq-answer.open,
.faq-item.open .faq-answer {
  display: block;
}

/* Nouvelles améliorations thèmes */
[data-theme="halloween"] .navbar {
  background: rgba(9, 5, 20, 0.92);
  border-bottom-color: rgba(76, 29, 149, 0.6);
}
[data-theme="christmas"] .navbar {
  background: rgba(6, 20, 14, 0.92);
  border-bottom-color: rgba(36, 94, 73, 0.6);
}
[data-theme="black-friday"] .navbar {
  background: rgba(4, 4, 4, 0.98);
  border-bottom-color: rgba(46, 46, 46, 0.8);
}
[data-theme="gold-luxury"] .navbar {
  background: rgba(8, 8, 9, 0.95);
  border-bottom-color: rgba(63, 53, 34, 0.7);
}
[data-theme="cyberpunk"] .navbar {
  background: rgba(10, 3, 25, 0.95);
  border-bottom-color: rgba(121, 40, 202, 0.5);
}
[data-theme="ocean-blue"] .navbar {
  background: rgba(3, 15, 36, 0.95);
  border-bottom-color: rgba(25, 75, 140, 0.5);
}
[data-theme="pearl-light"] .navbar {
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: #cbd5e1;
}
[data-theme="pearl-light"] .nav-link {
  color: #475569;
}
[data-theme="pearl-light"] .nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 2 nouveaux thèmes */

/* NEON GAMING */
[data-theme="neon-gaming"] {
  --bg-primary: #020306;
  --bg-secondary: #05080f;
  --bg-card: #0a0f1e;
  --bg-card-hover: #111929;
  --border-color: #1a3a1a;
  --text-main: #e8ffe8;
  --text-muted: #86efac;
  --text-dim: #4ade80;
  --accent-cyan: #39ff14;
  --accent-cyan-glow: rgba(57, 255, 20, 0.35);
  --accent-green: #00ff88;
  --accent-amber: #ffe600;
  --accent-rose: #ff006a;
  --shadow-glow: 0 0 25px rgba(57, 255, 20, 0.3);
}
[data-theme="neon-gaming"] .navbar {
  background: rgba(2, 3, 6, 0.97);
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

/* SUNSET WARM */
[data-theme="sunset-warm"] {
  --bg-primary: #120700;
  --bg-secondary: #1e0d02;
  --bg-card: #2c1505;
  --bg-card-hover: #3d1c07;
  --border-color: #5c2d0a;
  --text-main: #fff7ed;
  --text-muted: #fed7aa;
  --text-dim: #fb923c;
  --accent-cyan: #f97316;
  --accent-cyan-glow: rgba(249, 115, 22, 0.35);
  --accent-green: #fbbf24;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.35);
}
[data-theme="sunset-warm"] .navbar {
  background: rgba(18, 7, 0, 0.95);
  border-bottom: 1px solid rgba(92, 45, 10, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    gap: 0.5rem 1rem;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 0.75rem;
  }
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
}

/* ================================================================ */
/* PERFECTIONNEMENT HAUTE LISIBILITÉ MODE CLAIR (PEARL LIGHT)       */
/* ================================================================ */
[data-theme="pearl-light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --accent-green: #059669;
  --accent-green-glow: rgba(5, 150, 105, 0.2);
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
}

[data-theme="pearl-light"] .brand-text h1 {
  background: linear-gradient(to right, #0f172a, #0284c7) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="pearl-light"] .hero-box {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="pearl-light"] .hero-title h2 {
  background: linear-gradient(to right, #0f172a, #334155) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="pearl-light"] .deal-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="pearl-light"] .deal-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="pearl-light"] .card-image-box {
  background: radial-gradient(circle, #f8fafc 0%, #edf2f7 100%) !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="pearl-light"] .card-category-tag {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="pearl-light"] .btn-fav-toggle {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="pearl-light"] .merchant-comparison-list {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="pearl-light"] .current-price {
  color: #0284c7 !important;
}

[data-theme="pearl-light"] .original-price {
  color: #94a3b8 !important;
}

[data-theme="pearl-light"] .chip {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme="pearl-light"] .chip:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #0284c7 !important;
}

[data-theme="pearl-light"] .chip.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

[data-theme="pearl-light"] .btn-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="pearl-light"] .btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

[data-theme="pearl-light"] .modal-content {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="pearl-light"] .modal-header {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="pearl-light"] .info-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="pearl-light"] .footer {
  background: #f1f5f9 !important;
  border-top-color: #e2e8f0 !important;
}

[data-theme="pearl-light"] .affiliate-disclosure-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

/* ================================================================ */
/* COMPOSANTS PRODUIT & RESPONSIVE MOBILE COMPLET (14 nov 2026)     */
/* ================================================================ */

/* Layout Fiche Produit (Desktop & Tablettes) */
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 2.25rem;
  align-items: start;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 100%;
}

.product-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  text-align: center;
}

.product-gallery-imgbox {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(15, 22, 35, 0.95) 85%);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-gallery-img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.product-gallery-img:hover {
  transform: scale(1.05);
}

.product-gallery-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.product-gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-info-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.product-header-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-category-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-page-title {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  word-break: break-word;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Box Meilleure Offre Hero */
.best-offer-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.08)), var(--bg-card);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.best-offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.best-offer-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.best-offer-merchant {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.best-offer-price-block {
  text-align: right;
}

.best-offer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-buy-main {
  flex: 1 1 240px;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.btn-alert-main {
  padding: 0.85rem 1.25rem;
}

.best-offer-reassurance {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

/* Cartes Éditoriale & Comparatif */
.product-editorial-card,
.offers-comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
}

.product-editorial-title,
.offers-comparison-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.offers-count-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.product-description-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.product-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.product-perk-item {
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.product-perk-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.perk-green {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--text-muted);
}
.perk-green strong { color: var(--accent-green); }

.perk-cyan {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--text-muted);
}
.perk-cyan strong { color: var(--accent-cyan); }

/* Tableau des Offres */
.offers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}

.offers-table th {
  padding: 0.65rem 0.8rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-dim);
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.offers-table td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

/* Barre de Navigation Mobile Inférieure (Bottom App Bar) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 84px !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: rgba(14, 21, 36, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 0.25rem !important;
    padding-bottom: max(env(safe-area-inset-bottom, 0), 6px) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6) !important;
  }

  .mobile-nav-item,
  .mobile-nav-item:link,
  .mobile-nav-item:visited {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    text-decoration: none !important;
    color: #94a3b8 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.35rem 0.5rem !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.2s ease !important;
    flex: 1 !important;
    max-width: 75px !important;
    text-align: center !important;
    line-height: 1 !important;
    background: transparent !important;
  }

  .mobile-nav-item .mobile-nav-label,
  .mobile-nav-item:link .mobile-nav-label,
  .mobile-nav-item:visited .mobile-nav-label {
    color: inherit !important;
    text-decoration: none !important;
    font-size: 0.72rem !important;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active,
  .mobile-nav-item.active:link,
  .mobile-nav-item.active:visited {
    color: #06b6d4 !important;
  }

  .mobile-nav-item.active .mobile-nav-label {
    color: #06b6d4 !important;
    font-weight: 700 !important;
  }

  .mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.15) !important;
  }

  .mobile-nav-icon {
    font-size: 1.35rem !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
  }

  /* Responsive Fiche Produit sur Mobile */
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .product-gallery-card {
    position: static;
    top: auto;
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .product-gallery-imgbox {
    height: 270px;
    margin-bottom: 0.75rem;
  }

  .best-offer-box {
    padding: 1.15rem;
  }

  .best-offer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .best-offer-price-block {
    text-align: left;
  }

  .best-offer-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .best-offer-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
  }

  .product-editorial-card,
  .offers-comparison-card {
    padding: 1.15rem;
  }

  .product-perks-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive Toolbar & Filter Chips */
  .deals-toolbar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.5rem 0 1rem 0 !important;
  }

  .deals-toolbar .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .deals-toolbar .sort-select-wrapper {
    flex: 1;
  }

  .deals-toolbar .sort-select {
    width: 100%;
  }

  /* Breadcrumb wrapping on mobile */
  .breadcrumb {
    font-size: 0.75rem;
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .card-image-box {
    height: 185px;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .product-gallery-imgbox {
    height: 220px;
  }

  .card-image-box {
    height: 165px;
    padding: 0.5rem;
  }

  .product-page-title {
    font-size: 1.3rem;
  }

  .best-offer-price-block .current-price {
    font-size: 1.9rem;
  }

  .offers-table {
    font-size: 0.8rem;
  }

  .offers-table td, .offers-table th {
    padding: 0.6rem 0.5rem;
  }
}

/* Thème Clair : Support Mobile Bottom Nav */
[data-theme="pearl-light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border-top-color: #cbd5e1 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="pearl-light"] .mobile-nav-item {
  color: #64748b !important;
}

[data-theme="pearl-light"] .mobile-nav-item:hover,
[data-theme="pearl-light"] .mobile-nav-item.active {
  color: #0284c7 !important;
}

[data-theme="pearl-light"] .product-gallery-card,
[data-theme="pearl-light"] .product-editorial-card,
[data-theme="pearl-light"] .offers-comparison-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="pearl-light"] .product-gallery-imgbox {
  background: radial-gradient(circle, #f8fafc 0%, #edf2f7 100%) !important;
}

/* ================================================================ */
/* STYLES VITRINE ACCUEIL & CATALOGUE AVANCÉ (14 nov 2026)          */
/* ================================================================ */

/* Section Accueil */
.home-section {
  margin-bottom: 3.5rem;
}

.home-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.home-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}

.home-section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.home-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hero Search Bar */
.hero-search-container {
  max-width: 680px;
  margin: 1.75rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.hero-search-container:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  padding: 0.4rem 0.5rem;
  min-width: 0;
}

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

.hero-search-btn {
  border-radius: 99px !important;
  padding: 0.7rem 1.4rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-search-container {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .hero-search-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Grille des Univers / Catégories en Vedette */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.universe-card,
.universe-card:link,
.universe-card:visited,
.universe-card:active {
  display: flex !important;
  align-items: center !important;
  gap: 1.15rem !important;
  padding: 1.25rem !important;
  background: linear-gradient(135deg, rgba(24, 34, 52, 0.85) 0%, rgba(18, 24, 38, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: all 0.25s ease !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.universe-card:hover {
  transform: translateY(-3px) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25) !important;
}

.universe-card *,
.universe-card *:link,
.universe-card *:visited {
  text-decoration: none !important;
}

.universe-card-icon {
  font-size: 2rem !important;
  flex-shrink: 0 !important;
  width: 54px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.04)) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
}

.universe-card-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.universe-card-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.25rem !important;
  text-decoration: none !important;
}

.universe-card:hover .universe-card-title {
  color: var(--accent-cyan) !important;
}

.universe-card-desc {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  line-height: 1.4 !important;
  margin-bottom: 0.45rem !important;
  text-decoration: none !important;
}

.universe-card-badge {
  display: inline-block !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: var(--accent-cyan) !important;
  background: rgba(6, 182, 212, 0.1) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
  padding: 0.15rem 0.55rem !important;
  border-radius: 99px !important;
  text-decoration: none !important;
}

.universe-card-arrow {
  color: #64748b !important;
  font-size: 1.4rem !important;
  font-weight: 300 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
  text-decoration: none !important;
}

.universe-card:hover .universe-card-arrow {
  transform: translateX(4px) !important;
  color: var(--accent-cyan) !important;
}

/* Grille Transparence & Confiance */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.trust-card {
  background: linear-gradient(135deg, rgba(24, 34, 52, 0.8) 0%, rgba(18, 24, 38, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.75rem 1.25rem !important;
  text-align: center !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.trust-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
}

.trust-card-icon {
  font-size: 1.8rem !important;
  margin-bottom: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
}

.trust-card-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.5rem !important;
}

.trust-card-desc {
  font-size: 0.86rem !important;
  color: #94a3b8 !important;
  line-height: 1.6 !important;
}

/* Grille Témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(24, 34, 52, 0.8) 0%, rgba(18, 24, 38, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.testimonial-stars {
  color: #f59e0b !important;
  font-size: 1rem !important;
  letter-spacing: 2px !important;
  margin-bottom: 0.5rem !important;
}

.testimonial-text {
  font-size: 0.88rem !important;
  color: #cbd5e1 !important;
  line-height: 1.6 !important;
  font-style: italic !important;
  margin-bottom: 1rem !important;
}

.testimonial-author {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Barre de Filtres Avancés pour /deals */
.deals-filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.deals-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  flex: 1;
}

.filter-select-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-select-group label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.filter-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  outline: none;
  cursor: pointer;
  min-width: 130px;
  transition: border-color 0.2s ease;
}

.filter-select:focus,
.filter-select:hover {
  border-color: var(--accent-cyan);
}

.deals-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.deals-status-count {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.deals-status-count strong {
  color: var(--accent-cyan);
  font-size: 1.05rem;
}

/* Thème clair - adaptation des nouveaux blocs */
[data-theme="pearl-light"] .hero-search-container {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="pearl-light"] .hero-search-input {
  color: #0f172a !important;
}

[data-theme="pearl-light"] .universe-card,
[data-theme="pearl-light"] .trust-card,
[data-theme="pearl-light"] .testimonial-card,
[data-theme="pearl-light"] .deals-filter-panel {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="pearl-light"] .universe-card-icon {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="pearl-light"] .filter-select {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="pearl-light"] .hero-box {
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.08) 0%, rgba(255, 255, 255, 0.95) 70%) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="pearl-light"] .hero-box h2 {
  color: #0f172a !important;
}

[data-theme="pearl-light"] .best-offer-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="pearl-light"] .offers-table th {
  border-bottom-color: #e2e8f0 !important;
  color: #64748b !important;
}

[data-theme="pearl-light"] .offers-table td {
  border-bottom-color: #f1f5f9 !important;
  color: #0f172a !important;
}
