/* Styles partagés - Bijouterie Imen */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  color: #F5F5F4;
  overflow-x: hidden;
  /* Noir chaud + halo doré comme le fond du logo */
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(207,160,51,0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(140,94,26,0.08), transparent 60%),
    #080605;
  background-attachment: fixed;
}
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1C1917; }
::-webkit-scrollbar-thumb { background: #CA8A04; border-radius: 3px; }

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

@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
/* Or métallique du logo : bronze -> or vif -> champagne */
.gold-shimmer {
  background: linear-gradient(110deg, #8C5E1A, #CFA033, #FCEFC9, #DCAC33, #8C5E1A);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

/* Bouton or métallique (reflet du logo) */
.gold-metal {
  background-image: linear-gradient(150deg, #FCEFC9 0%, #DCAC33 35%, #CFA033 55%, #8C5E1A 100%);
  color: #2A1B06 !important;
  border: 1px solid rgba(252,239,201,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(140,94,26,0.35);
  transition: filter .25s ease, box-shadow .25s ease, transform .25s ease;
}
.gold-metal:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 10px 30px rgba(207,160,51,0.45); }

@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); opacity:0.3; } 50% { transform: translateY(-20px) rotate(180deg); opacity:0.8; } }
.particle { position: absolute; width: 4px; height: 4px; background: #CA8A04; border-radius: 50%; animation: float 3s ease-in-out infinite; }

.card-3d { transition: transform 0.4s ease; transform-style: preserve-3d; perspective: 1000px; }
.card-3d:hover { transform: rotateY(5deg) rotateX(3deg) scale(1.02); }

.glow-gold { box-shadow: 0 0 30px rgba(202, 138, 4, 0.15), 0 0 60px rgba(202, 138, 4, 0.05); }
.glow-gold-hover:hover { box-shadow: 0 0 40px rgba(202, 138, 4, 0.3), 0 0 80px rgba(202, 138, 4, 0.1); }

/* Révélations 3D au défilement */
.slide-up { opacity: 0; transform: perspective(900px) translateY(45px) rotateX(10deg); transform-origin: center bottom; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-up.visible { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0deg); }
.slide-left { opacity: 0; transform: perspective(900px) translateX(-45px) rotateY(-12deg); transform-origin: left center; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-left.visible { opacity: 1; transform: perspective(900px) translateX(0) rotateY(0deg); }

.product-img { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.product-img:hover { transform: scale(1.08); }

.glass { background: rgba(28, 25, 23, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(202, 138, 4, 0.15); }

.hero-bg { position: relative; overflow: hidden; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(202,138,4,0.08) 0%, transparent 70%); z-index: 1; }

.nav-scrolled { background: rgba(10, 9, 8, 0.95) !important; backdrop-filter: blur(20px); border-bottom: 1px solid rgba(202, 138, 4, 0.2); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 100; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }

@media (max-width: 768px) { .mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; } }

@keyframes pulse-gold { 0%, 100% { box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.4); } 50% { box-shadow: 0 0 0 10px rgba(202, 138, 4, 0); } }
.pulse-gold { animation: pulse-gold 2s infinite; }

.form-input { background: rgba(28, 25, 23, 0.8); border: 1px solid rgba(202, 138, 4, 0.2); color: #F5F5F4; transition: border-color 0.3s, box-shadow 0.3s; }
.form-input:focus { outline: none; border-color: #CA8A04; box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.1); }
.form-input option { background: #1C1917; color: #F5F5F4; }

.whatsapp-float { position: fixed; bottom: 90px; right: 20px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }
@media (max-width: 768px) { .whatsapp-float { bottom: 80px; right: 16px; } }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 110; display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }

@keyframes rotate3d { 0% { transform: perspective(1000px) rotateY(0deg); } 100% { transform: perspective(1000px) rotateY(360deg); } }
.rotate-3d { animation: rotate3d 20s linear infinite; }

@keyframes scrollX { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-scroll { animation: scrollX 20s linear infinite; display: flex; width: max-content; }

/* ============ TRANSITION 3D ENTRE PAGES ============ */
#pagefx { position: fixed; inset: 0; z-index: 9999; display: none; perspective: 1400px; pointer-events: none; }
#pagefx.show { display: block; }
#pagefx .pagefx-card {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, #1A1410 0%, #080605 72%);
  display: flex; align-items: center; justify-content: center;
  transform-origin: top center; backface-visibility: hidden; will-change: transform, opacity;
}
#pagefx .pagefx-logo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(252,239,201,0.3);
  box-shadow: 0 0 60px rgba(207,160,51,0.45), 0 0 120px rgba(140,94,26,0.25);
  animation: pfx-pulse 1.1s ease-in-out infinite;
}
@keyframes pfx-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ENTRÉE : le panneau couvre puis se replie vers le haut (flip 3D) */
#pagefx.enter .pagefx-card { transform: rotateX(0deg); opacity: 1; }
#pagefx.enter.reveal .pagefx-card { transform: rotateX(-105deg); opacity: 0; transition: transform .65s cubic-bezier(.7,0,.25,1), opacity .65s ease; }

/* SORTIE : le panneau bascule en place pour couvrir (flip 3D) */
#pagefx.leaving .pagefx-card { transform: rotateX(105deg); opacity: 0; transition: transform .48s cubic-bezier(.7,0,.25,1), opacity .42s ease; }
#pagefx.leaving.cover .pagefx-card { transform: rotateX(0deg); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  #pagefx { display: none !important; }
}
