/* ================================================
   HERO SECTION AVEC BACKGROUND IMAGE
   ================================================ */

/* Hero artistique avec image de fond */
.hero-artistic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Background image - remplacez 'hero-bg.jpg' par le nom de votre image */
  background-image: url("/images/boutiqueKmar.jpeg"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Overlay sombre semi-transparent pour rendre le contenu lisible */
.hero-artistic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 15, 0.75) 0%,
    rgba(26, 24, 21, 0.65) 50%,
    rgba(15, 15, 15, 0.75) 100%
  );
  z-index: 1;
}

/* Alternative: Overlay avec effet glassmorphism */
.hero-artistic.glassmorphism::before {
  background: rgba(250, 248, 245, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

/* Orbes de gradient - réduire l'opacité pour laisser voir l'image */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2; /* Réduit de 0.4 à 0.2 */
  animation: float 20s ease-in-out infinite;
  mix-blend-mode: overlay;
}

/* Container du contenu - z-index supérieur */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
}

/* Amélioration du contraste du texte */
.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--neutral-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.title-line.accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  filter: drop-shadow(0 2px 4px rgba(212, 165, 116, 0.4));
}

.hero-description {
  font-size: 1.2rem;
  color: var(--neutral-light);
  margin-bottom: 3rem;
  max-width: 500px;
  line-height: 1.7;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* ================================================
   FIX BOUTON MOBILE - TAILLE RÉDUITE
   ================================================ */

/* Bouton CTA - taille normale desktop */
.hero-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-artistic {
  position: relative;
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  max-width: fit-content;
}

.btn-artistic.primary {
  background: var(--gradient-primary);
  color: var(--neutral-white);
  box-shadow: var(--shadow-medium);
}

/* Fix spécifique pour mobile - bouton plus petit */
@media (max-width: 768px) {
  .hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .btn-artistic {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: auto;
    max-width: fit-content;
    min-width: unset;
  }

  .btn-artistic .btn-icon {
    width: 16px;
    height: 16px;
  }

  /* Titre hero plus petit sur mobile */
  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .hero-description {
    font-size: 1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ajustement du background pour mobile */
  .hero-artistic {
    background-attachment: scroll;
    background-position: center center;
  }

  .hero-artistic::before {
    background: rgba(15, 15, 15, 0.5);
  }
}

@media (max-width: 480px) {
  .btn-artistic {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .btn-text {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  /* Hero plus compact sur très petits écrans */
  .hero-container {
    padding: 0 1rem;
    gap: 2rem;
  }
}

/* ================================================
   VARIATIONS DE STYLE POUR LE BACKGROUND
   ================================================ */

/* Option 1: Overlay gradient radial du centre */
.hero-artistic.radial-overlay::before {
  background: radial-gradient(
    circle at center,
    rgba(250, 248, 245, 0.2) 0%,
    rgba(15, 15, 15, 0.85) 100%
  );
}

/* Option 2: Overlay avec vignette */
.hero-artistic.vignette-overlay::before {
  background: 
    radial-gradient(ellipse at center, transparent 0%, rgba(15, 15, 15, 0.9) 100%),
    linear-gradient(135deg, rgba(15, 15, 15, 0.6) 0%, rgba(26, 24, 21, 0.5) 100%);
}

/* Option 3: Overlay avec dégradé latéral (gauche plus sombre) */
.hero-artistic.lateral-overlay::before {
  background: linear-gradient(
    to right,
    rgba(15, 15, 15, 0.9) 0%,
    rgba(26, 24, 21, 0.6) 50%,
    rgba(15, 15, 15, 0.85) 100%
  );
}

/* ================================================
   ANIMATIONS AMÉLIORÉES POUR LE HERO
   ================================================ */

/* Animation d'apparition du hero */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content-artistic {
  animation: heroFadeIn 1s ease-out;
}

.hero-visual-artistic {
  animation: heroFadeIn 1.2s ease-out 0.3s backwards;
}

/* Animation du bouton au hover */
.btn-artistic.primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.btn-artistic.primary:active {
  transform: translateY(-1px);
}

/* ================================================
   SUPPORT POUR IMAGES RESPONSIVE
   ================================================ */

/* Utilisation de srcset pour différentes tailles d'écran */
@media (max-width: 768px) {
  .hero-artistic {
    /* Sur mobile, utilisez une version compressée de l'image */
    background-image: url("/images/boutiqueKmar.jpeg");
  }
}

@media (max-width: 480px) {
  .hero-artistic {
    /* Sur très petit écran, version encore plus optimisée */
    background-image: url("/images/boutiqueKmar.jpeg");
  }
}

/* Support pour écrans haute résolution (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-artistic {
    background-image: url("/images/boutiqueKmar.jpeg");
  }
}

/* ================================================
   MODE SOMBRE AUTOMATIQUE
   ================================================ */

@media (prefers-color-scheme: dark) {
  .hero-artistic::before {
    background: rgba(15, 15, 15, 0.65);
  }
}

/* ================================================
   ACCESSIBILITÉ
   ================================================ */

/* Augmenter le contraste pour les utilisateurs qui le demandent */
@media (prefers-contrast: high) {
  .hero-artistic::before {
    background: rgba(15, 15, 15, 0.85);
  }
  
  .hero-title,
  .hero-description {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
  }
}

/* Réduire les animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb {
    animation: none;
  }
  
  .hero-content-artistic,
  .hero-visual-artistic {
    animation: none;
  }
}

/* ================================================
   OPTIMISATION PERFORMANCE
   ================================================ */

/* Préchargement du background et optimisation GPU */
.hero-artistic {
  will-change: background-position;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Désactiver le parallax sur mobile pour meilleures performances */
@media (max-width: 768px) {
  .hero-artistic {
    background-attachment: scroll;
  }
}