/* =============================================
   PaméSiéné — Portail Général de la Marque
   Design System — Brand-aligned Styles
   Palette: Multicolor gradient (Orange→Rose→Violet→Bleu→Vert)
   Fond: Blanc pur & Crème rosé
   Typographie: Douce, féminine, moderne
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Nunito:wght@300;400;500;600;700;800&family=Dancing+Script:wght@400;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand gradients */
  --grad-full: linear-gradient(90deg,
      #F7941D 0%,
      #F4566A 22%,
      #E8317E 38%,
      #C63DAF 58%,
      #7B61CF 74%,
      #4DA8C8 88%,
      #6DC98A 100%);
  --grad-warm: linear-gradient(135deg, #F7941D 0%, #F4566A 50%, #E8317E 100%);
  --grad-cool: linear-gradient(135deg, #7B61CF 0%, #4DA8C8 60%, #6DC98A 100%);
  --grad-rose: linear-gradient(135deg, #F4566A 0%, #C63DAF 100%);
  --grad-peach: linear-gradient(135deg, #F7941D 0%, #F4566A 100%);
  --grad-olive: linear-gradient(135deg, #556B2F 0%, #8FBC8F 100%);

  /* Key brand colors */
  --color-brand-orange: #F7941D;
  --color-brand-rose: #F4566A;
  --color-brand-pink: #E8317E;
  --color-brand-magenta: #C63DAF;
  --color-brand-violet: #7B61CF;
  --color-brand-blue: #4DA8C8;
  --color-brand-green: #6DC98A;

  /* Backgrounds & Neutrals */
  --color-white: #FFFFFF;
  --color-bg: #FFF8F9;
  --color-bg-soft: #FEF0F4;
  --color-bg-card: #FFFAFA;
  --color-text-dark: #1A1022;
  --color-text-body: #4A3F5C;
  --color-text-muted: #9A8FAA;
  --color-border: rgba(196, 61, 175, 0.12);
  --color-border-soft: rgba(247, 148, 29, 0.10);

  /* Typography */
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Nunito', sans-serif;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 24px rgba(196, 61, 175, 0.10);
  --shadow-card: 0 8px 40px rgba(124, 97, 207, 0.12);
  --shadow-hero: 0 20px 80px rgba(244, 86, 106, 0.18);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.8s ease;
}

/* Dynamic theme background shifting based on card hover */
body.hover-lashes {
  background-color: #FFF2F4; /* Soft pink-warm background */
}

body.hover-bag {
  background-color: #F3F8F5; /* Soft olive-cool background */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--grad-rose);
  border-radius: 99px;
}

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo-img {
  width: 220px;
  animation: logo-breathe 2s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

.preloader-dots {
  display: flex;
  gap: 8px;
}

.preloader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.preloader-dots span:nth-child(1) { background: var(--color-brand-orange); animation-delay: 0s; }
.preloader-dots span:nth-child(2) { background: var(--color-brand-rose); animation-delay: 0.18s; }
.preloader-dots span:nth-child(3) { background: var(--color-brand-violet); animation-delay: 0.36s; }
.preloader-dots span:nth-child(4) { background: var(--color-brand-blue); animation-delay: 0.54s; }
.preloader-dots span:nth-child(5) { background: var(--color-brand-green); animation-delay: 0.72s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 20px rgba(196, 61, 175, 0.08);
  padding: 12px 40px;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

#navbar.scrolled .nav-logo-img {
  height: 40px;
}

.nav-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--grad-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: none;
}

@media(min-width: 768px) {
  .nav-tagline {
    display: block;
  }
}

.nav-social-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon-link {
  color: var(--color-text-body);
  font-size: 1.2rem;
  transition: var(--transition);
}

.nav-icon-link:hover {
  color: var(--color-brand-pink);
  transform: scale(1.1);
}

/* =============================================
   HERO / INTRO SECTION
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 130px;
  padding-bottom: 40px;
  overflow: hidden;
  flex-grow: 1;
}

.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,
      #FFF5F8 0%,
      #FDEFF7 25%,
      #F0EAFF 55%,
      #ECF7FF 80%,
      #EDFFF4 100%);
  z-index: -2;
  transition: opacity 0.8s ease;
}

/* Dynamic background blending on card hover */
.hero-gradient-bg-lashes {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #FFF0F4 0%, #FFE5EC 40%, #FFD6E0 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-gradient-bg-bag {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #F3F8F5 0%, #E8F2EC 40%, #DCECE2 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

body.hover-lashes .hero-gradient-bg-lashes {
  opacity: 1;
}

body.hover-bag .hero-gradient-bg-bag {
  opacity: 1;
}

/* Decorative Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orb-float 10s ease-in-out infinite;
  z-index: -2;
  transition: background 0.8s ease, transform 0.8s ease;
}

.hero-orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #F7941D44, #F4566A33);
  top: -100px;
  left: -120px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #C63DAF33, #7B61CF22);
  bottom: -50px;
  right: -100px;
  animation-delay: -3.5s;
}

.hero-orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #4DA8C822, #6DC98A22);
  top: 30%;
  left: 35%;
  animation-delay: -6s;
}

body.hover-lashes .hero-orb-1 {
  background: radial-gradient(circle, #F4566A66, #E8317E44);
  transform: translate(30px, 20px) scale(1.1);
}

body.hover-lashes .hero-orb-2 {
  background: radial-gradient(circle, #C63DAF44, #F7941D44);
}

body.hover-bag .hero-orb-1 {
  background: radial-gradient(circle, #4DA8C844, #6DC98A66);
  transform: translate(-30px, -20px) scale(1.1);
}

body.hover-bag .hero-orb-2 {
  background: radial-gradient(circle, #556B2F44, #7B61CF33);
}

@keyframes orb-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.06);
  }
  66% {
    transform: translate(-15px, 25px) scale(0.95);
  }
}

/* Header Text */
.hero-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(196, 61, 175, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-magenta);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-brand-magenta);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.55s forwards;
}

.hero-title .gradient-text {
  background: var(--grad-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 48px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease 0.7s forwards;
}

/* =============================================
   PRODUCT SELECTOR / SPLIT CARDS
   ============================================= */
.product-selector-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  z-index: 3;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.85s forwards;
}

@media(min-width: 992px) {
  .product-selector-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 40px;
  }
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: var(--transition), background-color 0.5s ease, border-color 0.5s ease;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  min-height: 480px;
}

@media(min-width: 576px) {
  .product-card {
    padding: 36px;
    min-height: 520px;
  }
}

/* Highlight border colors on hover */
.product-card.card-lashes:hover {
  border-color: rgba(244, 86, 106, 0.35);
  box-shadow: 0 20px 50px rgba(244, 86, 106, 0.15);
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.70);
}

.product-card.card-bag:hover {
  border-color: rgba(77, 168, 200, 0.35);
  box-shadow: 0 20px 50px rgba(77, 168, 200, 0.15);
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.70);
}

/* Card Visual Frame */
.card-visual-container {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 8px 30px rgba(26, 16, 34, 0.06);
}

@media(min-width: 576px) {
  .card-visual-container {
    height: 280px;
  }
}

/* Glow ring effect inside image container on card hover */
.card-visual-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  z-index: 2;
  transition: var(--transition);
  pointer-events: none;
}

.product-card.card-lashes:hover .card-visual-container::before {
  border-color: rgba(244, 86, 106, 0.4);
  box-shadow: inset 0 0 20px rgba(244, 86, 106, 0.15);
}

.product-card.card-bag:hover .card-visual-container::before {
  border-color: rgba(77, 168, 200, 0.4);
  box-shadow: inset 0 0 20px rgba(77, 168, 200, 0.15);
}

.card-visual-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .card-visual-container img {
  transform: scale(1.05);
}

/* Limited Edition floating badges on cards */
.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-lashes .card-tag {
  background: var(--grad-warm);
}

.card-bag .card-tag {
  background: var(--grad-cool);
}

/* Card Content styling */
.card-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-lashes .card-label {
  color: var(--color-brand-pink);
}

.card-bag .card-label {
  color: var(--color-brand-blue);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  transition: var(--transition);
}

.card-lashes:hover .card-title {
  color: var(--color-brand-rose);
}

.card-bag:hover .card-title {
  color: var(--color-brand-blue);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Card Buttons */
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  width: 100%;
  text-align: center;
  transition: var(--transition);
  border: none;
}

.card-lashes .card-btn {
  background: var(--grad-warm);
  box-shadow: 0 4px 16px rgba(244, 86, 106, 0.25);
}

.card-lashes:hover .card-btn {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 86, 106, 0.35);
}

.card-bag .card-btn {
  background: var(--grad-cool);
  box-shadow: 0 4px 16px rgba(77, 168, 200, 0.25);
}

.card-bag:hover .card-btn {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 168, 200, 0.35);
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--color-text-dark);
  color: var(--color-white);
  padding: 60px 24px 30px;
  text-align: center;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Glowing orbs on footer */
#footer::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 240px;
  background: radial-gradient(circle, rgba(232, 49, 126, 0.15), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.footer-social-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-icon-link {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-icon-link:hover {
  color: var(--color-white);
  transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
