/* ============================================
   SAMSAKTI — Hero Section
   Accueil fullscreen
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Fond avec overlay --- */
.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(10, 10, 10, 0.7) 60%,
    rgba(10, 10, 10, 0.95) 100%
  );
}

/* --- Contenu centré --- */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.hero__title-accent {
  display: block;
  font-size: 0.35em;
  letter-spacing: 0.06em;
  color: var(--color-accent-gold);
  margin-top: 0.3rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Animations d'entrée hero --- */
.hero__title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease-out forwards;
}

.hero__subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s ease-out 0.2s forwards;
}

.hero__actions {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1.2s ease-out 0.4s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   EFFETS SCÉNIQUES : PROJECTEUR + FUMÉE + GRAIN
   ============================================ */

.hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* --- Projecteur scénique depuis le haut --- */
/* Cône de lumière chaud tombant du cintre */
.hero__spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: conic-gradient(
    from -14deg at 50% -1%,
    transparent        0deg,
    rgba(255, 240, 180, 0.02)  16deg,
    rgba(255, 235, 160, 0.05)  20deg,
    rgba(255, 230, 140, 0.09)  23deg,
    rgba(255, 235, 160, 0.05)  26deg,
    rgba(255, 240, 180, 0.02)  30deg,
    transparent        46deg
  );
}

/* Halo diffus autour du point de focus (cercle lumineux haut-centre) */
.hero__spotlight::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(255, 245, 200, 0.12) 0%,
    rgba(255, 235, 160, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(20px);
}

/* --- Fumée de scène (couche basse) --- */
/* Nappe principale qui dérive lentement */
.hero__smoke {
  position: absolute;
  bottom: -15%;
  left: -10%;
  right: -10%;
  height: 65%;
  background:
    radial-gradient(ellipse 80% 50% at 30% 100%, rgba(201, 168, 76, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 75% 95%,  rgba(184, 115, 51, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 100% 55% at 50% 100%, rgba(15, 10, 5, 0.55)   0%, transparent 75%);
  filter: blur(35px);
  animation: smokeShift 12s ease-in-out infinite alternate;
}

/* Couche secondaire décalée */
.hero__smoke--2 {
  bottom: -8%;
  left: -20%;
  right: -20%;
  height: 45%;
  background:
    radial-gradient(ellipse 55% 35% at 20% 100%, rgba(201, 168, 76, 0.025) 0%, transparent 70%),
    radial-gradient(ellipse 70% 40% at 85% 100%, rgba(201, 168, 76, 0.025) 0%, transparent 70%),
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(12, 8, 4, 0.4)       0%, transparent 70%);
  filter: blur(50px);
  animation: smokeShift 16s ease-in-out 4s infinite alternate-reverse;
}

@keyframes smokeShift {
  0% {
    transform: translateX(0) scaleX(1);
    opacity: 0.8;
  }
  50% {
    transform: translateX(25px) scaleX(1.04);
    opacity: 1;
  }
  100% {
    transform: translateX(-20px) scaleX(0.97);
    opacity: 0.85;
  }
}

/* --- Grain de film (bruit organique) --- */
/* SVG feTurbulence + animation de position pour un grain "vivant" */
.hero__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  animation: grainAnimate 0.35s steps(1) infinite;
}

@keyframes grainAnimate {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-4%, -8%); }
  20%  { transform: translate(-12%, 4%); }
  30%  { transform: translate(6%, -20%); }
  40%  { transform: translate(18%, 20%); }
  50%  { transform: translate(-20%, 8%); }
  60%  { transform: translate(12%, 4%); }
  70%  { transform: translate(0%, 12%); }
  80%  { transform: translate(20%, 28%); }
  90%  { transform: translate(-8%, 8%); }
  100% { transform: translate(0, 0); }
}

/* --- Indicateur scroll (chevron) --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 1.5s ease-out 0.8s forwards;
}

.hero__scroll-chevron {
  width: 24px;
  height: 24px;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* --- Accessibilité : réduire les animations --- */
@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__scroll-indicator {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__scroll-chevron {
    animation: none;
  }

  .hero__smoke,
  .hero__smoke--2 {
    animation: none;
  }

  .hero__grain {
    animation: none;
  }
}
