/* ==========================================================================
   LÉLA SECRET — Feuilles de Styles Haute Cosmétique (Design System Lumineux & Unisexe)
   ========================================================================== */

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

:root {
  --color-white: #FFFFFF;
  --color-ivory: #FAF9F6;
  --color-cream: #F5F0EB;
  --color-nude: #EFE8E1;
  --color-nude-dark: #D8CCC0;
  --color-champagne: #C5A880;
  --color-champagne-light: #DFC7A5;
  --color-champagne-dark: #9F7E53;
  --color-noir: #141414;
  --color-charcoal: #262320;
  --color-taupe: #3F3A34;
  --color-taupe-light: #4A443E;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Typographie & Fondations Lumineuses */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-noir);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg, canvas {
  max-width: 100%;
}

.font-serif {
  font-family: var(--font-serif);
  font-weight: 500; /* Poids suffisant pour éviter les polices hairline */
}

.font-sans {
  font-family: var(--font-sans);
}

/* Couleurs Utilitaires */
.bg-ivory { background-color: var(--color-ivory); }
.bg-cream { background-color: var(--color-cream); }
.bg-nude { background-color: var(--color-nude); }
.bg-champagne { background-color: var(--color-champagne); }
.bg-noir { background-color: var(--color-noir); }

.text-champagne { color: var(--color-champagne); }
.text-champagne-dark { color: var(--color-champagne-dark); }
.text-taupe { color: var(--color-taupe); }
.text-noir { color: var(--color-noir); }

.border-nude { border-color: var(--color-nude); }
.border-champagne { border-color: var(--color-champagne); }

/* Glassmorphism Lumineux & Minimal */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Ombres Luxueuses Douces */
.shadow-luxury {
  box-shadow: 0 10px 30px -10px rgba(20, 20, 20, 0.05), 0 4px 10px -4px rgba(20, 20, 20, 0.02);
}

.shadow-luxury-hover:hover {
  box-shadow: 0 20px 40px -12px rgba(20, 20, 20, 0.09), 0 8px 16px -6px rgba(20, 20, 20, 0.04);
}

/* ==========================================================================
   ANIMATIONS KEN BURNS & CAMPAGNE CINÉMATOGRAPHIQUE
   ========================================================================== */

/* Ken Burns Hero */
@keyframes kenBurnsHero {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  50% {
    transform: scale(1.09) translate(-1.2%, -0.8%);
  }
  100% {
    transform: scale(1.05) translate(1%, 0.6%);
  }
}

.hero-ken-burns {
  animation: kenBurnsHero 26s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  will-change: transform;
  transform-origin: center center;
}

/* Campagne Cinématographique LÉLA SECRET — Trio Science, Femme & Homme (Crossfade & Ken Burns) */
.editorial-trio-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: transform, opacity;
  animation-duration: 27s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.editorial-trio-1 {
  animation-name: kenBurnsTrio1;
  transform-origin: center center;
}

.editorial-trio-2 {
  animation-name: kenBurnsTrio2;
  transform-origin: 50% 30%;
}

.editorial-trio-3 {
  animation-name: kenBurnsTrio3;
  transform-origin: 50% 30%;
}

/* Image 1 : Science Lab & Cellules (Départ image entière cadrée, zoom lent progressif vers le centre) */
@keyframes kenBurnsTrio1 {
  0% {
    opacity: 1;
    transform: scale(1.0) translate3d(0, 0, 0);
  }
  26% {
    opacity: 1;
    transform: scale(1.07) translate3d(0, -0.4%, 0);
  }
  33% {
    opacity: 0;
    transform: scale(1.09) translate3d(0, -0.6%, 0);
  }
  93% {
    opacity: 0;
    transform: scale(1.0) translate3d(0, 0, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1.0) translate3d(0, 0, 0);
  }
}

/* Image 2 : Cérémonie Femme en robe blanche */
@keyframes kenBurnsTrio2 {
  0%, 26% {
    opacity: 0;
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  33% {
    opacity: 1;
    transform: scale(1.04) translate3d(-0.4%, -0.3%, 0);
  }
  59% {
    opacity: 1;
    transform: scale(1.08) translate3d(-0.8%, -0.6%, 0);
  }
  66% {
    opacity: 0;
    transform: scale(1.10) translate3d(-1%, -0.8%, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.02) translate3d(0, 0, 0);
  }
}

/* Image 3 : Cérémonie Homme en chemise blanche */
@keyframes kenBurnsTrio3 {
  0%, 59% {
    opacity: 0;
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  66% {
    opacity: 1;
    transform: scale(1.04) translate3d(0.4%, -0.3%, 0);
  }
  93% {
    opacity: 1;
    transform: scale(1.08) translate3d(0.8%, -0.7%, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.10) translate3d(1%, -0.9%, 0);
  }
}

.editorial-ken-burns {
  animation: kenBurnsEditorial 30s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: 50% 40%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


/* ==========================================================================
   BOUTONS DE PRESTIGE & ÉLÉMENTS INTERACTIFS
   ========================================================================== */
.btn-luxury-primary {
  background-color: var(--color-noir);
  color: #FFFFFF;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.95rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-luxury-primary:hover {
  background-color: var(--color-champagne-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-luxury-outline {
  border: 1.5px solid var(--color-noir);
  color: var(--color-noir);
  background-color: transparent;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.95rem 2rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-luxury-outline:hover {
  background-color: var(--color-noir);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-luxury-gold {
  background-color: var(--color-champagne);
  color: #FFFFFF;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.95rem 2rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-luxury-gold:hover {
  background-color: var(--color-champagne-dark);
  color: #FFFFFF;
}

/* Curseur Avant / Après interactif */
.ba-container {
  position: relative;
  user-select: none;
  overflow: hidden;
  border-radius: 12px;
  touch-action: pan-y;
}

.ba-image-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-image-after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #FFFFFF;
}

.ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Animations de transition */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar minimale */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--color-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-nude-dark);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-champagne);
}

/* Utilitaires Scrollbar et Débordement */
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* ==========================================================================
   OPTIMISATIONS RESPONSIVE MOBILES & TABLETTES (320px – 430px)
   ========================================================================== */

/* 1. Sécurisation Anti-Scroll Horizontal Strict */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

/* 2. Neutralisation du zoom automatique iOS Safari sur les champs de formulaire */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* 3. Défilement tactile fluide (inertial scrolling) sur les tiroirs et modales */
#mobile-menu-panel,
#cart-panel,
#search-modal-content,
.overflow-y-auto {
  -webkit-overflow-scrolling: touch;
}

/* 4. Confort tactile & Clics sans halo bleu */
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

/* 5. Cibles tactiles confortables sur mobile (≥ 44px) */
@media (max-width: 639px) {
  #btn-open-mobile-menu,
  #btn-close-mobile-menu,
  #btn-open-search,
  #btn-open-cart,
  #btn-close-cart,
  .cart-qty-btn,
  .cat-filter-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Padding et respiration fluides sur très petits écrans (< 360px) */
  @media (max-width: 359px) {
    .p-6 { padding: 1rem !important; }
    .px-6 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
    .py-6 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .space-y-6 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: 1rem !important; }
  }
}

/* ==========================================================================
   PAGES INTERNES & ROUTINE — Dégagement Supérieur Franc sous le Header Fixe
   ========================================================================== */
.routine-page-container,
.inner-page-container {
  padding-top: 140px;
  background-color: transparent;
}

@media (min-width: 640px) {
  .routine-page-container,
  .inner-page-container {
    padding-top: 180px;
  }
}

@media (min-width: 1024px) {
  .routine-page-container,
  .inner-page-container {
    padding-top: 210px;
  }
}

/* ==========================================================================
   CART DRAWER — Panneau 100% Opaque (Blanc Chaud / Ivoire & Champagne)
   ========================================================================== */
#cart-drawer-container {
  z-index: 9999;
}

#cart-backdrop {
  background-color: rgba(15, 12, 10, 0.65) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#cart-panel {
  background-color: #FAF8F5 !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.22) !important;
}

/* ==========================================================================
   HEADER — Logo Typographique Fluide & Agrandit pour Smartphone
   ========================================================================== */
.navbar-brand-lela {
  font-size: clamp(28px, 8.2vw, 42px);
  letter-spacing: 0.24em;
  line-height: 1;
}

@media (min-width: 768px) {
  .navbar-brand-lela {
    font-size: 48px;
  }
}

.navbar-brand-secret {
  font-size: clamp(11.5px, 3.2vw, 15px);
  letter-spacing: 0.32em;
}

@media (min-width: 768px) {
  .navbar-brand-secret {
    font-size: 13px;
    letter-spacing: 0.36em;
  }
}

.navbar-brand-line {
  height: 1px;
  width: clamp(14px, 4vw, 24px);
  background-color: rgba(20, 20, 20, 0.75);
  display: block;
}

@media (min-width: 768px) {
  .navbar-brand-line {
    width: 48px;
  }
}

