/* ========================================
   HERO TEAM CENTERED - Variante index4
   Style inspiré du composant React HeroSection
   ======================================== */

/* Hero container */
.hero-team-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-team-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  min-height: 100vh;
  position: relative;
  z-index: 10;
  gap: var(--space-lg);
}

/* Illustration container */
.hero-team-illustration {
  width: 100%;
  max-width: min(650px, 45vw);
  max-height: 40vh;
  margin: 0 auto;
  margin-bottom: var(--space-xl);
  flex-shrink: 0;
  animation: heroTeamFadeIn 1s ease-out 0.2s both;
}

/* SVG Illustration */
.hero-team-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG hover effects */
.hero-team-svg g {
  transition: filter 0.3s ease;
}

.hero-team-svg g:hover polygon {
  filter: drop-shadow(0 0 10px rgba(247, 179, 43, 0.6));
}

.hero-team-svg image {
  transition: filter 0.3s ease;
}

.hero-team-svg g:hover image {
  filter: brightness(1.1);
}

/* Content below illustration */
.hero-team-content {
  margin-top: 80px;
  max-width: 1000px;
  width: 100%;
  animation: heroContentSlide 0.8s ease-out 0.4s both;
  flex-shrink: 0;
}

.hero-team-tagline {
  margin-bottom: var(--space-xs);
}

.hero-team-tagline__accent {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--color-honey);
  letter-spacing: 0.05em;
  display: block;
}

.hero-team-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.hero-team-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(247, 179, 43, 0.6);
  animation: scrollIndicatorFade 0.8s ease-out 1s both;
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(247, 179, 43, 0.6), transparent);
  animation: scrollLineGrow 1.5s ease-in-out infinite;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes heroTeamFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


@keyframes heroContentSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes scrollIndicatorFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scrollLineGrow {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.01% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-team-illustration {
    max-width: min(450px, 55vw);
    max-height: 40vh;
  }

  .hero-team-tagline__accent {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .hero-team-centered {
    min-height: calc(100vh - 60px);
    max-height: none;
    padding-top: 60px; /* Mobile header height */
  }

  .hero-team-container {
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
    min-height: calc(100vh - 60px);
    gap: var(--space-xl);
    justify-content: center;
  }

  .hero-team-illustration {
    max-width: min(340px, 85vw);
    max-height: 38vh;
    margin-bottom: var(--space-lg);
  }

  .hero-team-content {
    margin-top: 0;
    padding: 0 var(--space-md);
  }

  .hero-team-tagline {
    margin-bottom: var(--space-sm);
  }

  .hero-team-tagline__accent {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.15;
  }

  .hero-team-subtitle {
    font-size: var(--text-sm);
    letter-spacing: 0.12em;
    margin-bottom: var(--space-xl);
  }

  .hero-team-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: var(--space-sm);
  }

  .hero-team-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-team-centered {
    min-height: calc(100vh - 56px);
    padding-top: 56px;
  }

  .hero-team-container {
    padding: var(--space-lg) var(--space-sm) var(--space-xl);
    min-height: calc(100vh - 56px);
    gap: var(--space-lg);
  }

  .hero-team-illustration {
    max-width: min(280px, 90vw);
    max-height: 35vh;
    margin-bottom: var(--space-md);
  }

  .hero-team-tagline__accent {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero-team-subtitle {
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
  }

  .hero-team-actions {
    max-width: 100%;
    padding: 0 var(--space-sm);
  }

  .hero-team-actions .btn {
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-team-centered {
    min-height: auto;
    max-height: none;
  }

  .hero-team-container {
    flex-direction: row;
    gap: var(--space-xl);
    padding: var(--space-lg);
    min-height: auto;
  }

  .hero-team-illustration {
    max-width: 40%;
    max-height: 60vh;
    margin-bottom: 0;
  }

  .hero-team-content {
    flex: 1;
    text-align: left;
  }

  .hero-team-actions {
    align-items: flex-start;
  }
}/* ========================================
   MOBILE RESPONSIVENESS FIXES
   ======================================== */

@media (max-width: 768px) {
    .hero-team-container {
        padding-top: 2rem;
        padding-bottom: 2rem;
        gap: 1.5rem;
        justify-content: flex-start;
        /* Avoid centering if content is tally */
    }

    .hero-team-illustration {
        margin-bottom: 1rem;
        max-height: 30vh;
    }

    .hero-team-tagline__accent {
        font-size: 2rem;
        /* Fixed size for better control */
    }

    .hero-team-subtitle {
        margin-bottom: 1rem;
    }
}