/* ========================================
   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;
  /* Pas de position:relative ici : on laisse .hero-reassurance (absolute) se
     positionner par rapport à la SECTION (.hero-team-centered, 100vh pleine
     largeur) → bord droit de l'écran + centre vertical de l'écran.
     z-index fonctionne car le conteneur est un flex-item de la section. */
  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;
    }
}
/* ========================================
   HERO HOME — Titre H1 + label (sémantique CMS)
   eyebrow = label, title = H1, subtitle = sous-titre.
   Ajout append-only (ne modifie pas les règles existantes).
   ======================================== */

/* Le wrapper eyebrow : marge basse explicite pour séparer du titre (anti-chevauchement). */
.hero-team-centered .hero-team-tagline {
    margin: 0 0 var(--space-sm, 0.75rem);
    line-height: 1.3;
}

.hero-team-tagline__label {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    /* eyebrow = couleur discrète / atténuée (muted) */
    color: var(--color-text-light-muted, rgba(248, 250, 252, 0.7));
    line-height: 1.3;
}

.hero-team-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    /* titre = jaune / or (accent de marque) */
    color: var(--color-honey, #F7B32B);
    /* marge haute explicite pour garantir la séparation verticale eyebrow ↔ titre */
    margin: var(--space-md, 1rem) 0 var(--space-md, 1rem);
}

/* ========================================
   HERO HOME — Colonne de réassurances (verticale, à droite)
   Source : section_items (key="reassurance") de la section hero.
   ======================================== */

.hero-reassurance {
    position: absolute;
    /* Centrage vertical via marges auto (découplé du transform : l'animation
       heroContentSlide finit en translateY(0) avec fill-mode both et écrasait
       sinon translateY(-50%)). top:0/bottom:0 + height:max-content + margin auto
       centre le bloc sur la hauteur de la section (100vh = écran). */
    top: 0;
    bottom: 0;
    height: max-content;
    margin-top: auto;
    margin-bottom: auto;
    /* Collé au bord droit de l'ÉCRAN (offset parent = section pleine largeur). */
    right: clamp(0.75rem, 1.5vw, 1.5rem);
    z-index: 11;
    animation: heroContentSlide 0.8s ease-out 0.6s both;
}

.hero-reassurance__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md, 1.25rem);
}

.hero-reassurance__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(247, 179, 43, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    min-width: 190px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.hero-reassurance__item:hover {
    border-color: rgba(247, 179, 43, 0.6);
    transform: translateX(-4px);
}

.hero-reassurance__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-honey, #F7B32B);
}

.hero-reassurance__icon svg {
    width: 22px;
    height: 22px;
}

/* Image personnalisée à la place de l'icône (section_items.image). */
.hero-reassurance__img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.hero-reassurance__body {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.hero-reassurance__value {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--color-honey, #F7B32B);
}

.hero-reassurance__label {
    font-size: var(--text-sm, 0.8125rem);
    color: var(--color-text-light-muted, #5a6378);
    letter-spacing: 0.01em;
}

/* Sous le hero centré : on libère de la place pour la colonne à droite. */
@media (min-width: 1025px) {
    .hero-team-centered .hero-team-content {
        max-width: 760px;
    }
}

@media (max-width: 1100px) {
    .hero-reassurance {
        position: static;
        transform: none;
        margin-top: var(--space-lg, 2rem);
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-reassurance__list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm, 1rem);
    }

    .hero-reassurance__item {
        min-width: 0;
        flex: 1 1 160px;
        max-width: 220px;
    }
}

@media (max-width: 600px) {
    .hero-reassurance__list {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-reassurance__item {
        max-width: none;
        width: 100%;
    }
}
