/* =============================================
   hero.css — Version Impact Compacte
   ============================================= */

#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: #FAF5DB; /* Beige Mazot */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Texture de fond cosmique */
.hero-noise {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.1;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Pousse tout vers le bas pour laisser le groupe central gérer son espace */
  height: 100%;
  width: 100%;
  padding: 0 0 40px 0;
  z-index: 2;
  padding-top: 60px
}

/* ── Groupe Central (Texte + Logo) ── */
.hero-main-content {
  flex-grow: 1; /* Prend tout l'espace libre au centre */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px; /* On colle le texte au logo */
}

/* ── Bienvenue : Gros & Orange ── */
.hero-bienvenue {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem); /* Taille massive */
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #FF6B48; /* Orange Mazot */
  text-transform: uppercase;
  line-height: 0.8; /* Très serré pour l'esthétique */
  margin: 0;
  padding: 0;
  animation: entrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Logo & Aura ── */
.hero-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -15px; /* On fait chevaucher légèrement le texte et le logo */
}

.hero-aura {
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 107, 72, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  animation: pulseAura 4s ease-in-out infinite;
}

.hero-logo-img {
  width: 360px;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(42, 9, 78, 0.12));
  padding: 50px;
}

/* ── Scroll Down ── */
.hero-scroll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: auto; /* Force le maintien en bas */
}

.hero-scroll__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: #2A094E;
  opacity: 0.8;
}

.hero-scroll__line {
  width: 1.5px;
  height: 70px;
  background: rgba(255, 107, 72, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll__line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #FF6B48;
  animation: scrollLineMove 2.2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

/* ── Animations ── */

@keyframes entrance {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseAura {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

@keyframes scrollLineMove {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero-inner {
    padding: 0 0 32px 0;
    padding-top: 60px;
  }

  .hero-bienvenue {
    font-size: clamp(2rem, 12vw, 3.5rem);
    letter-spacing: -0.01em;
  }

  .hero-logo-img {
    width: 220px;
    padding: 32px;
  }

  .hero-logo-container {
    margin-top: -10px;
  }

  .hero-aura {
    width: 160%;
    height: 160%;
  }

  .hero-scroll__label {
    font-size: 9px;
    letter-spacing: 0.3em;
  }

  .hero-scroll__line {
    height: 44px;
  }

  .hero-main-content {
    gap: 0;
  }
}

/* ── Très petit écran (iPhone SE etc.) ── */
@media (max-width: 380px) {
  .hero-bienvenue {
    font-size: 1.8rem;
  }

  .hero-logo-img {
    width: 180px;
    padding: 24px;
  }
}
