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

:root {
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-dark: #0369a1;
  --accent-yellow: #facc15;
  --accent-yellow-dark: #eab308;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

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

.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.frame-shadow {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.frame-wood {
  position: relative;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 0px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: block;
  overflow: hidden;
  max-width: 100%;
}

.slot-container {
  position: absolute;
  overflow: hidden;
  border-radius: 0px !important;
  user-select: none;
  touch-action: none;
  cursor: grab;
  transition: box-shadow 0.15s ease;
}
.slot-container:active {
  cursor: grabbing;
}
.slot-container img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  user-select: none;
}
.slot-container.active-slot {
  box-shadow: 0 0 0 3px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.6);
  z-index: 10;
}
.slot-container.swap-target {
  box-shadow: 0 0 0 4px #facc15, 0 0 20px rgba(250, 204, 21, 0.9);
  z-index: 20;
}

/* Indicateur visuel haute visibilité de la case active (Dashboard & Modal) */
.active-slot-indicator {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  border: 3.5px solid #38bdf8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 14px rgba(56, 189, 248, 0.7);
  border-radius: 0;
}

/* Indicateur visuel de la case source d'échange (Mode Permuter / Swap) */
.swap-source-indicator {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  border: 3.5px solid #facc15;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 16px rgba(250, 204, 21, 0.85);
  border-radius: 0;
  animation: swapPulse 1.2s infinite ease-in-out;
}

@keyframes swapPulse {
  0% { transform: scale(0.92); opacity: 0.7; filter: brightness(1.2); }
  50% { transform: scale(1.04); opacity: 1; filter: brightness(1.1); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

.swap-success-animation {
  animation: swapPulse 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.swap-hover-overlay {
  pointer-events: none;
  transition: opacity 0.18s ease-in-out;
}

.room-wall-bg {
  background-image: url('../assets/living_room_bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 0 35px rgba(15, 23, 42, 0.15) !important;
  border-color: #94a3b8 !important;
  position: relative !important;
  aspect-ratio: 1024 / 682 !important;
  min-height: auto !important;
}

.wall-scale-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 20;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 640px) {
  .wall-scale-badge {
    top: auto;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    padding: 5px 12px;
  }
}

.badge-gold {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #713f12;
  font-weight: 700;
}

.badge-sky {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 600;
}

/* Call To Action Buttons */
.btn-cta {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.45) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cta:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.55) !important;
}
.btn-cta:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 25px -5px rgba(250, 204, 21, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
  transform: translateY(-2px);
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-entrance {
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Success Checkmark Entrance Animation */
@keyframes iconEntrancePop {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.18) rotate(6deg);
    opacity: 1;
  }
  80% {
    transform: scale(0.94) rotate(-2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes checkmarkDraw {
  0% {
    stroke-dashoffset: 40;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.check-icon-entrance {
  animation: iconEntrancePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.checkmark-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkmarkDraw 0.5s 0.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Luxury Gallery Art & Exhibition Card Styles */
.gallery-art-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.gallery-art-card:hover {
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  border-color: rgba(203, 213, 225, 1);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

.museum-frame {
  box-shadow: 
    0 8px 18px -4px rgba(0, 0, 0, 0.12),
    0 3px 6px -2px rgba(0, 0, 0, 0.08);
}

.gold-shimmer {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.badge-gold-luxe {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border: 1px solid #fde68a;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.08);
}

.badge-dark-luxe {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Elegant Ergonomic Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.custom-scrollbar::-webkit-scrollbar-thumb:active {
  background: #64748b;
}
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

#customizer-drawer {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  #customizer-drawer {
    overflow-y: scroll !important;
  }
}

/* Studio 2-Column Desktop: Equal Height & Completely Independent Scrolling */
@media (min-width: 960px) {
  #customizer-drawer {
    position: static !important;
    transform: none !important;
    -webkit-transform: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    scrollbar-gutter: stable;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.375rem !important;
    padding-bottom: 2.5rem !important;
  }

  #dashboard-right-preview {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    scrollbar-gutter: stable;
    padding-bottom: 2.5rem !important;
  }
}

/* ============================================================ */
/* MOVABLE FLOATING SLOT ACTION TOOLBAR                        */
/* ============================================================ */
#floating-slot-menu,
#modal-floating-slot-menu {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#floating-menu-drag-handle,
#modal-menu-drag-handle {
  cursor: grab !important;
  cursor: -webkit-grab !important;
  touch-action: none !important;
}

#floating-menu-drag-handle:active,
#floating-menu-drag-handle.is-dragging,
#modal-menu-drag-handle:active,
#modal-menu-drag-handle.is-dragging {
  cursor: grabbing !important;
  cursor: -webkit-grabbing !important;
}

#floating-slot-menu.is-dragging,
#modal-floating-slot-menu.is-dragging {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(250, 204, 21, 0.5) !important;
  opacity: 0.98;
}

/* ============================================================ */
/* SMOOTH ACCORDION TRANSITIONS (Hardware Accelerated Grid)    */
/* ============================================================ */
.accordion-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-collapse.is-open {
  grid-template-rows: 1fr;
}

.accordion-collapse-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 260ms ease, transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-collapse.is-open .accordion-collapse-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================ */
/* LUXURY CONCEPTION HERO BANNER                               */
/* ============================================================ */
.hero-banner-bg {
  background-image: url('../assets/hero-bg-mobile.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .hero-banner-bg {
    background-image: url('../assets/hero-bg-desktop.webp');
    background-size: cover;
    background-position: right center;
  }
}

.font-dancing {
  font-family: 'Dancing Script', cursive;
}