/* LA VIE E BELLE - Design System, Themes & Custom Animations */

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

:root {
  --bg-dark: #09090b;
  --bg-card: rgba(24, 24, 27, 0.7);
  --accent-color: #e2b857;
  --accent-glow: rgba(226, 184, 87, 0.25);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --border-glass: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(9, 9, 11, 0.85);
  --grid-pattern: rgba(255, 255, 255, 0.03);
}

/* ======================================================== */
/* THEME 2 : CLAIR ÉDITORIAL (STYLE WEBGRENADE.COM) */
/* ======================================================== */
html.light-mode {
  --bg-dark: #f8f7f4;
  --bg-card: rgba(255, 255, 255, 0.9);
  --accent-color: #e11d48; /* Coral / Red WebGrenade */
  --accent-glow: rgba(225, 29, 72, 0.2);
  --text-main: #09090b;
  --text-muted: #52525b;
  --border-glass: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(248, 247, 244, 0.9);
  --grid-pattern: rgba(0, 0, 0, 0.04);
}

html.light-mode body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image: 
    linear-gradient(to right, var(--grid-pattern) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-pattern) 1px, transparent 1px);
  background-size: 40px 40px;
}

html.light-mode .text-zinc-100,
html.light-mode .text-zinc-200,
html.light-mode .text-zinc-300 {
  color: #18181b !important;
}

html.light-mode .text-zinc-400,
html.light-mode .text-zinc-500 {
  color: #52525b !important;
}

html.light-mode .bg-zinc-950,
html.light-mode .bg-zinc-900 {
  background-color: #f4f3ef !important;
}

html.light-mode .bg-zinc-900\/80 {
  background-color: #ffffff !important;
  border-color: #e4e4e7 !important;
}

html.light-mode .text-gradient-gold {
  background: linear-gradient(135deg, #09090b 0%, #e11d48 70%, #9f1239 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light-mode .text-gradient-subtle {
  background: linear-gradient(180deg, #09090b 0%, #3f3f46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light-mode .text-amber-400 {
  color: #e11d48 !important;
}

html.light-mode .bg-amber-500\/10 {
  background-color: rgba(225, 29, 72, 0.1) !important;
}

html.light-mode .border-amber-500\/30,
html.light-mode .border-amber-500\/40 {
  border-color: rgba(225, 29, 72, 0.3) !important;
}

html.light-mode .btn-gold {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.3) !important;
}

html.light-mode .glass-panel {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

html.light-mode .glass-nav {
  background: var(--nav-bg) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Footer styling in Light Mode */
html.light-mode footer {
  background-color: #f0efe9 !important;
  border-top-color: #e4e4e7 !important;
}

html.light-mode footer h4,
html.light-mode footer .font-serif-luxury {
  color: #09090b !important;
}

html.light-mode footer p,
html.light-mode footer li,
html.light-mode footer span.text-zinc-400,
html.light-mode footer div.text-zinc-400 {
  color: #3f3f46 !important;
}

html.light-mode footer a {
  color: #52525b !important;
}

html.light-mode footer a:hover {
  color: #e11d48 !important;
}

/* Card Placeholders & Badges in Light Mode */
html.light-mode .h-64 {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%) !important;
}

html.light-mode .h-64 span.font-serif-luxury {
  color: #be123c !important;
}

html.light-mode span.uppercase.tracking-wider.px-2,
html.light-mode span.uppercase.tracking-wider.px-2\.5 {
  background-color: #ffe4e6 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important;
}

/* Chatbot IA Styling in Light Mode */
html.light-mode #chatbot-window {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

html.light-mode #chatbot-window .bg-zinc-900\/90 {
  background-color: #f8f7f4 !important;
  border-color: #e4e4e7 !important;
}

html.light-mode #chatbot-window h4,
html.light-mode #chatbot-window .font-serif-luxury {
  color: #18181b !important;
}

html.light-mode #chatbot-messages {
  background-color: #ffffff !important;
}

html.light-mode #chatbot-messages .bg-zinc-800\/80 {
  background-color: #f4f4f5 !important;
  color: #18181b !important;
  border-color: #e4e4e7 !important;
}

html.light-mode #chatbot-messages .bg-amber-500\/20 {
  background-color: #e11d48 !important;
  color: #ffffff !important;
  border-color: #be123c !important;
  font-weight: 500 !important;
}

html.light-mode #chatbot-form {
  background-color: #f8f7f4 !important;
  border-color: #e4e4e7 !important;
}

html.light-mode #chatbot-input {
  background-color: #ffffff !important;
  color: #18181b !important;
  border-color: #d4d4d8 !important;
}

html.light-mode #chatbot-input::placeholder {
  color: #a1a1aa !important;
}

html.light-mode #chatbot-form button[type="submit"] {
  background: #e11d48 !important;
  color: #ffffff !important;
}


/* ======================================================== */
/* COMMON BASE STYLES */
/* ======================================================== */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, .font-serif-luxury {
  font-family: 'Cormorant Garamond', serif;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(18, 18, 22, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

/* Gradient Texts & Accents */
.text-gradient-gold {
  background: linear-gradient(135deg, #fff 0%, #e2b857 50%, #cca03c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-subtle {
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scroll Canvas Container */
#hero-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Text Reveal Animation on Scroll */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay Utilities */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Custom Luxury Buttons */
.btn-gold {
  position: relative;
  background: linear-gradient(135deg, #e2b857 0%, #b88d30 100%);
  color: #09090b;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(226, 184, 87, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Interactive Cursor Accent */
#custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(226, 184, 87, 0.3);
  border: 1px solid var(--accent-color);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease;
  z-index: 9999;
}

/* ======================================================== */
/* OBJECT ANIMÉ DE GUIDAGE AU SCROLL (SCROLL GUIDE EMBLEM) */
/* ======================================================== */
#scroll-guide-orb {
  position: fixed;
  top: 50%;
  left: 5%;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 90;
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.3s ease;
}

.scroll-guide-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-color) 0%, rgba(226, 184, 87, 0) 70%);
  border: 1.5px solid var(--accent-color);
  display: flex;
  items-center: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--accent-color);
  animation: pulse-spin 6s linear infinite;
}

.scroll-guide-icon {
  width: 18px;
  height: 18px;
  color: var(--text-main);
}

@keyframes pulse-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
