/* EasySell Revendeurs — Dual Theme System (Editorial Light & Obsidian Gold Dark) */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --rv-bg: #FAF9F7;
  --rv-surface: #FFFFFF;
  --rv-surface-2: #F2F0EC;
  --rv-surface-3: #E6F2EC;
  --rv-surface-glass: rgba(250, 249, 247, 0.88);
  --rv-nav-glass: rgba(255, 255, 255, 0.94);
  --rv-ink: #111318;
  --rv-ink-2: #38403E;
  --rv-muted: #6C7470;
  --rv-border: rgba(17, 19, 24, 0.08);
  --rv-border-strong: rgba(17, 19, 24, 0.14);
  --rv-img-outline: rgba(0, 0, 0, 0.1);
  --rv-accent: #143326;
  --rv-accent-hover: #0D231A;
  --rv-accent-ink: #FFFFFF;
  --rv-gain: #0F766E;
  --rv-gain-soft: #E3EDE6;
  --rv-gold: #B47B1B;
  --rv-gold-soft: #FEF3C7;
  --rv-gold-grad: linear-gradient(135deg, #143326 0%, #1E4B38 100%);
  --rv-gold-grad-ink: #FFFFFF;
  --rv-hero-bg: linear-gradient(145deg, #FFFFFF 0%, #F1EFEA 55%, #E7F1EB 100%);
  --rv-hero-border: rgba(20, 51, 38, 0.12);
  --rv-shadow-card: 0 2px 6px rgba(17, 19, 24, 0.04), 0 10px 24px -8px rgba(17, 19, 24, 0.06);
  --rv-shadow-hover: 0 8px 20px -4px rgba(17, 19, 24, 0.08), 0 18px 36px -12px rgba(20, 51, 38, 0.14);
  --rv-shadow-elevated: 0 12px 30px -6px rgba(0, 0, 0, 0.12), 0 32px 64px -16px rgba(0, 0, 0, 0.16);
  --rv-wallet-bg: linear-gradient(145deg, #143326 0%, #0D231A 100%);
  --rv-wallet-ink: #FFFFFF;
  --rv-wallet-muted: #A9C7B5;
  --rv-toast-bg: #111318;
  --rv-toast-ink: #FFFFFF;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --rv-bg: #08080B;
  --rv-surface: #111116;
  --rv-surface-2: #181820;
  --rv-surface-3: #1E1A12;
  --rv-surface-glass: rgba(8, 8, 11, 0.88);
  --rv-nav-glass: rgba(13, 13, 18, 0.94);
  --rv-ink: #F8F6F0;
  --rv-ink-2: #D8D3C8;
  --rv-muted: #969084;
  --rv-border: rgba(235, 201, 110, 0.16);
  --rv-border-strong: rgba(235, 201, 110, 0.30);
  --rv-img-outline: rgba(255, 255, 255, 0.1);
  --rv-accent: #EBC96E;
  --rv-accent-hover: #F5DC93;
  --rv-accent-ink: #0B0A08;
  --rv-gain: #F2CE74;
  --rv-gain-soft: rgba(235, 201, 110, 0.14);
  --rv-gold: #EBC96E;
  --rv-gold-soft: rgba(235, 201, 110, 0.14);
  --rv-gold-grad: linear-gradient(135deg, #F6DF96 0%, #D4A438 100%);
  --rv-gold-grad-ink: #0B0A08;
  --rv-hero-bg: radial-gradient(ellipse 70% 80% at 78% 42%, rgba(139, 61, 255, 0.28), rgba(91, 33, 182, 0.10) 48%, transparent 74%), linear-gradient(145deg, #0F0F15 0%, #12111A 60%, #16131E 100%);
  --rv-hero-border: rgba(235, 201, 110, 0.22);
  --rv-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --rv-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 24px -6px rgba(235, 201, 110, 0.18);
  --rv-shadow-elevated: 0 20px 50px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(235, 201, 110, 0.18);
  --rv-wallet-bg: radial-gradient(ellipse 70% 90% at 88% 15%, rgba(235, 201, 110, 0.16), transparent 60%), linear-gradient(145deg, #13131A 0%, #0D0D12 100%);
  --rv-wallet-ink: #F8F6F0;
  --rv-wallet-muted: #B8AE97;
  --rv-toast-bg: #1B1A22;
  --rv-toast-ink: #F8F6F0;
}

/* Base Typography & Surface Rules */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--rv-bg);
  color: var(--rv-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-wrap: pretty;
}

.font-serif-brand {
  font-family: 'Playfair Display', Georgia, serif;
}

.rv-display-heading {
  font-family: 'Playfair Display', Georgia, serif;
  text-wrap: balance;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Header & Navigation */
.rv-header {
  background-color: var(--rv-surface-glass);
  border-bottom: 1px solid var(--rv-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rv-brand-title {
  color: var(--rv-ink);
}
html[data-theme="dark"] .rv-brand-title {
  color: var(--rv-gold);
}

.rv-muted { color: var(--rv-muted); }
.rv-ink { color: var(--rv-ink); }
.rv-ink-2 { color: var(--rv-ink-2); }
.rv-gain-text { color: var(--rv-gain); }

/* Surfaces & Concentric Radius */
.rv-surface {
  background-color: var(--rv-surface);
  border: 1px solid var(--rv-border);
  box-shadow: var(--rv-shadow-card);
}

.rv-surface-soft {
  background-color: var(--rv-surface-2);
  border: 1px solid var(--rv-border);
}

.rv-elevated-sheet {
  background-color: var(--rv-surface);
  color: var(--rv-ink);
  border: 1px solid var(--rv-border);
  box-shadow: var(--rv-shadow-elevated);
}

/* Hero Card */
.rv-hero-card {
  background: var(--rv-hero-bg);
  border: 1px solid var(--rv-hero-border);
  box-shadow: var(--rv-shadow-card);
  border-radius: 26px;
}

/* Wallet Card */
.rv-wallet-card {
  background: var(--rv-wallet-bg);
  color: var(--rv-wallet-ink);
  border: 1px solid var(--rv-hero-border);
  border-radius: 26px;
  box-shadow: var(--rv-shadow-card);
}
.rv-wallet-muted { color: var(--rv-wallet-muted); }

/* Buttons & Interactive Elements (never transition: all) */
.press-feedback {
  transition-property: transform, opacity, background-color, border-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.press-feedback:not(:disabled):active {
  transform: scale(0.96);
}

.rv-btn-primary {
  background: var(--rv-gold-grad);
  color: var(--rv-gold-grad-ink);
  font-weight: 800;
  transition-property: transform, opacity, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.rv-btn-primary:hover { opacity: 0.94; }
.rv-btn-primary:not(:disabled):active { transform: scale(0.96); }

.rv-btn-secondary {
  background-color: var(--rv-surface-2);
  color: var(--rv-ink);
  border: 1px solid var(--rv-border-strong);
  font-weight: 700;
  transition-property: transform, background-color, border-color;
  transition-duration: 160ms;
}
.rv-btn-secondary:hover { border-color: var(--rv-gold); }
.rv-btn-secondary:not(:disabled):active { transform: scale(0.96); }

.rv-icon-btn {
  min-width: 40px;
  min-height: 40px;
  background-color: var(--rv-surface);
  color: var(--rv-ink);
  border: 1px solid var(--rv-border);
  box-shadow: var(--rv-shadow-card);
}

/* Inputs */
.rv-input {
  background-color: var(--rv-surface);
  color: var(--rv-ink);
  border: 1px solid var(--rv-border);
  transition-property: border-color, box-shadow;
  transition-duration: 150ms;
}
.rv-input::placeholder { color: var(--rv-muted); }
.rv-input:focus {
  outline: none;
  border-color: var(--rv-gold);
  box-shadow: 0 0 0 3px var(--rv-gain-soft);
}

/* Filter Chips (Category, Sort, Order Status) */
.rv-chip {
  background-color: var(--rv-surface);
  color: var(--rv-ink-2);
  border: 1px solid var(--rv-border);
  font-weight: 600;
}
.rv-chip.is-active {
  background: var(--rv-gold-grad);
  color: var(--rv-gold-grad-ink);
  border-color: transparent;
  font-weight: 800;
}

/* Desktop Top Nav Tabs */
.rv-top-nav-btn {
  color: var(--rv-muted);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  transition-property: color, background-color;
  transition-duration: 150ms;
}
.rv-top-nav-btn:hover {
  color: var(--rv-ink);
  background-color: var(--rv-surface-2);
}
.rv-top-nav-btn.is-active {
  color: var(--rv-gold-grad-ink);
  background: var(--rv-gold-grad);
  font-weight: 800;
}

/* Bottom Mobile Nav */
.rv-bottom-nav {
  background-color: var(--rv-nav-glass);
  border-top: 1px solid var(--rv-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-tab {
  color: var(--rv-muted);
  min-height: 44px;
}
.nav-tab.is-active {
  color: var(--rv-accent);
  font-weight: 800;
}

/* Product Cards (Concentric Radius: outer 24px = inner 14px + padding 10px) */
.rv-product-card {
  position: relative;
  border-radius: 24px;
  padding: 10px;
  background-color: var(--rv-surface);
  border: 1px solid var(--rv-border);
  box-shadow: var(--rv-shadow-card);
  overflow: hidden;
  transition-property: transform, border-color, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
html[data-theme="dark"] .rv-product-card {
  background-image: radial-gradient(circle at 88% 96%, rgba(217, 119, 6, 0.18), transparent 56%);
}
.rv-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--rv-border-strong);
  box-shadow: var(--rv-shadow-hover);
}
.rv-product-card:active {
  transform: scale(0.98);
}

.rv-product-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--rv-surface-2);
  outline: 1px solid var(--rv-img-outline);
  outline-offset: -1px;
}

.rv-bag-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: 9999px;
  background: var(--rv-gold-grad);
  color: var(--rv-gold-grad-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.rv-badge-speed {
  background-color: var(--rv-gain-soft);
  color: var(--rv-gain);
  border: 1px solid var(--rv-border);
  backdrop-filter: blur(8px);
}
html[data-theme="dark"] .rv-badge-speed {
  background-color: rgba(17, 17, 22, 0.86);
  color: var(--rv-gold);
  border: 1px solid rgba(235, 201, 110, 0.32);
}

.rv-badge-promo {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  color: #FFFFFF;
}

.rv-badge-stock {
  background-color: rgba(255, 255, 255, 0.94);
  color: #111318;
  border: 1px solid rgba(17, 19, 24, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
html[data-theme="dark"] .rv-badge-stock {
  background-color: rgba(17, 17, 22, 0.88);
  color: #F8F6F0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Trust Ribbon Cards */
.rv-trust-pill {
  background-color: var(--rv-surface);
  border: 1px solid var(--rv-border);
  border-radius: 18px;
  box-shadow: var(--rv-shadow-card);
}

/* Toast */
.rv-toast {
  background-color: var(--rv-toast-bg);
  color: var(--rv-toast-ink);
  border: 1px solid var(--rv-border);
  box-shadow: var(--rv-shadow-elevated);
}

/* Staggered Entrance & Sheet Motion */
@keyframes sheetSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.sheet-enter {
  animation: sheetSlideUp 180ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes rvFadeRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.rv-stagger {
  animation: rvFadeRise 320ms cubic-bezier(0.2, 0, 0, 1) both;
}
.rv-stagger-1 { animation-delay: 40ms; }
.rv-stagger-2 { animation-delay: 100ms; }
.rv-stagger-3 { animation-delay: 160ms; }
.rv-stagger-4 { animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  .press-feedback, .rv-btn-primary, .rv-btn-secondary, .rv-product-card {
    transition-property: opacity;
  }
  .press-feedback:not(:disabled):active,
  .rv-btn-primary:not(:disabled):active,
  .rv-btn-secondary:not(:disabled):active,
  .rv-product-card:active { transform: none; }
  .sheet-enter, .rv-stagger { animation: none; }
}

/* ============================================================================
   DARK MODE HARMONIZATION FOR SECONDARY VIEWS, FORMS & ALL 9 MODALS
   ============================================================================ */
html[data-theme="dark"] .bg-white {
  background-color: var(--rv-surface) !important;
  color: var(--rv-ink);
}
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-\[\#F5F5F2\],
html[data-theme="dark"] .bg-\[\#EFEFE9\] {
  background-color: var(--rv-surface-2) !important;
  color: var(--rv-ink);
}
html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-50\/70,
html[data-theme="dark"] .bg-emerald-50\/80,
html[data-theme="dark"] .bg-\[\#E3EDE6\] {
  background-color: rgba(235, 201, 110, 0.10) !important;
}
html[data-theme="dark"] .bg-emerald-100 {
  background-color: rgba(235, 201, 110, 0.16) !important;
}
html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-100 {
  background-color: rgba(245, 158, 11, 0.14) !important;
}
html[data-theme="dark"] .bg-blue-50,
html[data-theme="dark"] .bg-indigo-50\/70,
html[data-theme="dark"] .bg-indigo-50 {
  background-color: rgba(99, 102, 241, 0.14) !important;
}
html[data-theme="dark"] .bg-rose-50,
html[data-theme="dark"] .bg-rose-100 {
  background-color: rgba(244, 63, 94, 0.14) !important;
}
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-\[\#111312\] {
  color: var(--rv-ink) !important;
}
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-\[\#3D4542\] {
  color: var(--rv-ink-2) !important;
}
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-400,
html[data-theme="dark"] .text-\[\#6B7270\] {
  color: var(--rv-muted) !important;
}
html[data-theme="dark"] .text-emerald-950,
html[data-theme="dark"] .text-emerald-900,
html[data-theme="dark"] .text-emerald-800,
html[data-theme="dark"] .text-emerald-700,
html[data-theme="dark"] .text-\[\#143326\] {
  color: var(--rv-gold) !important;
}
html[data-theme="dark"] .text-amber-950,
html[data-theme="dark"] .text-amber-900,
html[data-theme="dark"] .text-amber-800 {
  color: #FCD34D !important;
}
html[data-theme="dark"] .text-blue-900,
html[data-theme="dark"] .text-indigo-950,
html[data-theme="dark"] .text-indigo-800,
html[data-theme="dark"] .text-indigo-700,
html[data-theme="dark"] .text-indigo-600 {
  color: #C7D2FE !important;
}
html[data-theme="dark"] .text-rose-900,
html[data-theme="dark"] .text-rose-700 {
  color: #FDA4AF !important;
}
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-200\/80,
html[data-theme="dark"] .border-slate-300,
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-black\/\[0\.06\],
html[data-theme="dark"] .border-black\/\[0\.08\] {
  border-color: var(--rv-border) !important;
}
html[data-theme="dark"] .border-emerald-200,
html[data-theme="dark"] .border-emerald-300,
html[data-theme="dark"] .border-emerald-600 {
  border-color: rgba(235, 201, 110, 0.34) !important;
}
html[data-theme="dark"] .border-amber-200,
html[data-theme="dark"] .border-amber-300 {
  border-color: rgba(245, 158, 11, 0.35) !important;
}
html[data-theme="dark"] .border-blue-200,
html[data-theme="dark"] .border-indigo-200,
html[data-theme="dark"] .border-indigo-500 {
  border-color: rgba(129, 140, 248, 0.35) !important;
}
html[data-theme="dark"] .border-rose-200,
html[data-theme="dark"] .border-rose-300 {
  border-color: rgba(244, 63, 94, 0.35) !important;
}
html[data-theme="dark"] .bg-emerald-700,
html[data-theme="dark"] .bg-emerald-600,
html[data-theme="dark"] .bg-\[\#143326\] {
  background: var(--rv-gold-grad) !important;
  color: var(--rv-gold-grad-ink) !important;
}
html[data-theme="dark"] .bg-emerald-700 .text-emerald-100,
html[data-theme="dark"] .bg-emerald-700 .text-emerald-100\/90 {
  color: #382B0E !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color: var(--rv-ink);
}
html[data-theme="dark"] select option {
  background-color: #111116;
  color: #F8F6F0;
}

/* ============================================================================
   ONBOARDING ÉDITORIAL ÉPURÉ (CLAIR LUMINEUX & SOMBRE OBSIDIENNE)
   ============================================================================ */
.rv-onboard-overlay {
  background-color: var(--rv-bg);
  background-image: radial-gradient(ellipse 90% 45% at 50% 18%, rgba(20, 51, 38, 0.065), rgba(15, 118, 110, 0.03) 45%, transparent 72%);
  transition-property: opacity, transform;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
html[data-theme="dark"] .rv-onboard-overlay {
  background-image:
    radial-gradient(ellipse 80% 45% at 55% 18%, rgba(139, 61, 255, 0.20), transparent 64%),
    radial-gradient(circle at 25% 75%, rgba(235, 201, 110, 0.09), transparent 55%);
}
.rv-onboard-overlay.is-closing {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Stories-style Minimal Progress Bars */
.rv-story-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.rv-story-seg {
  height: 3px;
  border-radius: 9999px;
  background-color: rgba(20, 51, 38, 0.12);
  overflow: hidden;
  position: relative;
}
html[data-theme="dark"] .rv-story-seg {
  background-color: var(--rv-border-strong);
}
.rv-story-seg-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 9999px;
  background: var(--rv-gold-grad);
  transition-property: width;
  transition-duration: 260ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.rv-story-seg.is-done .rv-story-seg-fill,
.rv-story-seg.is-active .rv-story-seg-fill {
  width: 100%;
}

.rv-onboard-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.rv-onboard-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Slide 1 : Portrait produit flottant sur toile ouverte */
.rv-onb-showcase {
  position: relative;
  width: 236px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .rv-onb-showcase {
    width: 256px;
  }
}

.rv-onb-portrait {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--rv-surface-2);
  border: 1px solid var(--rv-border-strong);
  box-shadow: 0 24px 50px -18px rgba(17, 19, 24, 0.22);
}
html[data-theme="dark"] .rv-onb-portrait {
  box-shadow: 0 28px 60px -16px rgba(0, 0, 0, 0.75), 0 0 40px -12px rgba(235, 201, 110, 0.18);
}

.rv-onb-portrait-scrim {
  background: linear-gradient(to top, rgba(10, 12, 11, 0.84) 0%, rgba(10, 12, 11, 0.36) 52%, transparent 100%);
}

.rv-onb-glass-pill {
  background: rgba(255, 255, 255, 0.94);
  color: #111318;
  border: 1px solid rgba(17, 19, 24, 0.08);
  box-shadow: 0 12px 28px -8px rgba(17, 19, 24, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html[data-theme="dark"] .rv-onb-glass-pill {
  background: rgba(18, 18, 26, 0.90);
  color: #F8F6F0;
  border: 1px solid rgba(235, 201, 110, 0.28);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

/* Slide 2 & Slide 3 : Lignes éditoriales aérées sans boîtes imbriquées */
.rv-onb-row {
  border-bottom: 1px solid var(--rv-border);
}
.rv-onb-row:last-child {
  border-bottom: 0;
}

.rv-onb-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--rv-gain);
  letter-spacing: -0.02em;
}

.rv-onb-emblem {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background-color: var(--rv-surface);
  border: 1px solid var(--rv-border-strong);
  color: var(--rv-gain);
  box-shadow: 0 0 0 12px rgba(15, 118, 110, 0.07);
}
html[data-theme="dark"] .rv-onb-emblem {
  box-shadow: 0 0 0 12px rgba(235, 201, 110, 0.08);
}

.rv-onboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--rv-border-strong);
  transition-property: width, background-color;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.rv-onboard-dot.is-active {
  width: 26px;
  background: var(--rv-gold-grad);
}

@keyframes rvFloatSoft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}
.rv-float-pill {
  animation: rvFloatSoft 3.6s ease-in-out infinite;
}

/* ============================================================================
   LOOKBOOK CATALOG, IMMERSIVE FEED & LUXURY PRODUCT DETAIL SHEET
   ============================================================================ */
.rv-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: var(--rv-gain);
  box-shadow: 0 0 0 3px var(--rv-gain-soft);
}

.rv-view-toggle {
  background-color: var(--rv-surface);
  border: 1px solid var(--rv-border);
  box-shadow: var(--rv-shadow-card);
}
.rv-view-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  color: var(--rv-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition-property: color, background-color, transform;
  transition-duration: 160ms;
}
.rv-view-toggle-btn.is-active {
  background: var(--rv-gold-grad);
  color: var(--rv-gold-grad-ink);
}
.rv-view-toggle-btn:not(:disabled):active {
  transform: scale(0.92);
}

/* Lookbook Card (photo-first, sans boîte encombrante) */
.rv-lookbook-card {
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.rv-lookbook-card:active {
  transform: scale(0.98);
}
.rv-lookbook-media {
  position: relative;
  aspect-ratio: 4 / 4.7;
  border-radius: 22px;
  overflow: hidden;
  background-color: var(--rv-surface-2);
  outline: 1px solid var(--rv-img-outline);
  outline-offset: -1px;
  box-shadow: 0 10px 26px -14px rgba(17, 19, 24, 0.16);
  transition-property: transform, box-shadow;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
html[data-theme="dark"] .rv-lookbook-media {
  outline: 1px solid rgba(235, 201, 110, 0.18);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.72);
}
.rv-lookbook-card:hover .rv-lookbook-media img {
  transform: scale(1.04);
}

.rv-glass-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--rv-gain);
  border: 1px solid rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 16px -6px rgba(17, 19, 24, 0.16);
}
html[data-theme="dark"] .rv-glass-chip {
  background: rgba(14, 14, 20, 0.84);
  color: var(--rv-gold);
  border-color: rgba(235, 201, 110, 0.30);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.rv-glass-circle {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.90);
  color: #111318;
  border: 1px solid rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 16px -6px rgba(17, 19, 24, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition-property: transform, color, background-color;
  transition-duration: 160ms;
}
html[data-theme="dark"] .rv-glass-circle {
  background: rgba(14, 14, 20, 0.80);
  color: #F8F6F0;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}
.rv-glass-circle:active {
  transform: scale(0.90);
}

@keyframes rvHeartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.26); }
  100% { transform: scale(1); }
}
.rv-heart-btn.is-fav {
  color: #E11D48;
  animation: rvHeartPop 260ms cubic-bezier(0.2, 0, 0, 1);
}
html[data-theme="dark"] .rv-heart-btn.is-fav {
  color: #FB7185;
}
.rv-heart-btn.is-fav svg {
  fill: currentColor;
}

/* Mode Immersif / Poster Stories */
.rv-immersive-card {
  position: relative;
  aspect-ratio: 4 / 4.65;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--rv-surface-2);
  border: 1px solid var(--rv-border-strong);
  box-shadow: var(--rv-shadow-elevated);
  transition-property: transform;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.rv-immersive-card:active {
  transform: scale(0.985);
}
.rv-immersive-card:hover img {
  transform: scale(1.03);
}
.rv-immersive-scrim {
  background: linear-gradient(to top, rgba(8, 10, 9, 0.90) 0%, rgba(8, 10, 9, 0.44) 44%, transparent 74%);
}
.rv-poster-glass-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rv-img-scrim {
  background: linear-gradient(to top, rgba(8, 8, 12, 0.78) 0%, rgba(8, 8, 12, 0.25) 55%, transparent 100%);
}

.rv-gain-strip {
  background-color: var(--rv-surface-2);
  border: 1px solid var(--rv-border);
  border-radius: 14px;
}
html[data-theme="dark"] .rv-gain-strip {
  background-color: rgba(235, 201, 110, 0.08);
  border-color: rgba(235, 201, 110, 0.18);
}

.rv-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--rv-border-strong);
}
html[data-theme="dark"] .rv-sheet-handle {
  background-color: rgba(235, 201, 110, 0.36);
}

.rv-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.rv-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
}

.rv-equation-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.rv-sheet-sticky-footer {
  background-color: var(--rv-nav-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--rv-border);
}

@media (prefers-reduced-motion: reduce) {
  .rv-float-pill, .rv-heart-btn.is-fav { animation: none; }
}
