/* ============================================================
   TALENTUM — talent-hero.css (Step 4.1)
   Copie exacte de la mécanique featured (Step 2.2)
   adaptée fond blanc : couleurs text-on-light.
   ============================================================ */

/* ============================
   Layout section
   ============================ */

/* Step 7.11 (retouche) — sélecteur assez spécifique pour battre la règle globale
   #talent-page > section. Hero : un peu de respiration en haut (sous navbar), compact en bas. */
#talent-page > #talent-hero {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.talent-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  /* Step 7.11 (retouche) — contenu groupé et remonté en haut (plus de répartition pleine hauteur) */
  align-items: start;
  padding: 0 clamp(1rem, 4vw, 4rem);
  max-width: 1600px;
  margin: 0 auto;
}

/* ============================
   Portrait gauche — identique featured-block__portrait
   ============================ */

.talent-hero__portrait {
  overflow: hidden;
  height: 80vh;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease-cinematic);
}

.talent-hero__inner.is-revealed .talent-hero__portrait {
  clip-path: inset(0 0 0% 0);
}

.talent-hero__portrait-image {
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(100%) brightness(0.85);
  transition: filter 1.4s var(--ease-cinematic);
}

.talent-hero__inner:hover .talent-hero__portrait-image {
  filter: grayscale(0%) brightness(1);
}

/* ============================
   Contenu droite
   ============================ */

.talent-hero__content {
  display: flex;
  flex-direction: column;
  /* Step 7.11 (retouche) — tout groupé en haut, tags/langues/réseaux serrés comme un bloc */
  justify-content: flex-start;
  padding: 0;
}

/* Eyebrow gold */
.talent-hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-gold);
  margin: 0 0 var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-cinematic), transform 0.7s var(--ease-cinematic);
}

.talent-hero__inner.is-revealed .talent-hero__eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* H1 — même style que featured-block__name, couleur on-light */
.talent-hero__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--title-sub);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-text-on-light);
  margin: 0 0 var(--space-md);
}

/* Chaque ligne = masque overflow hidden pour le reveal */
.talent-hero__name .title-line {
  display: block;
  overflow: hidden;
}

/* Override ornament-group (hérité hero Phase 1) */
.talent-hero__name .ornament-group {
  margin: 0 0.1em;
  gap: 0.6em;
  vertical-align: middle;
  position: relative;
  top: -10px;
}

/* Parenthèses noires sur fond blanc */
.talent-hero__name .ornament.paren {
  color: var(--color-text-on-light);
  font-weight: 900;
  line-height: 0.85;
}

/* image-wrapper + inline-image : hero-parens.css non chargé sur pages talents */
.talent-hero__name .image-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.talent-hero__name .image-wrapper--square {
  aspect-ratio: 1 / 1;
  width: 0.85em;
}

.talent-hero__name .inline-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* État initial — mots et ornement partent du bas */
.talent-hero__name .title-line .word,
.talent-hero__name .title-line .ornament-group {
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.9s var(--ease-cinematic), opacity 0.9s var(--ease-cinematic);
  display: inline-block;
}

/* Reveal : ligne 1 (prénom) */
.talent-hero__inner.is-revealed .talent-hero__name .title-line:nth-child(1) .word,
.talent-hero__inner.is-revealed .talent-hero__name .title-line:nth-child(1) .ornament-group {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* Reveal : ligne 2 ( portrait ) NOM */
.talent-hero__inner.is-revealed .talent-hero__name .title-line:nth-child(2) .word,
.talent-hero__inner.is-revealed .talent-hero__name .title-line:nth-child(2) .ornament-group {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Bio — noir sur fond blanc */
.talent-hero__bio {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text-on-light);
  max-width: 420px;
  margin: 0 0 var(--space-sm);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-cinematic), transform 0.7s var(--ease-cinematic);
  transition-delay: 0.65s;
}

.talent-hero__inner.is-revealed .talent-hero__bio {
  opacity: 1;
  transform: translateY(0);
}

/* Tags gold — identiques featured */
.talent-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease-cinematic);
  transition-delay: 0.8s;
}

.talent-hero__inner.is-revealed .talent-hero__tags {
  opacity: 1;
}

.talent-hero__tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-gold);
}

.talent-hero__tag-sep {
  color: var(--color-text-on-light);
  margin: 0 0.3em;
}

/* Meta langues + nationalité (Step 7.3a) — remontée depuis l'ancienne section Identité */
.talent-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em var(--space-md);
  margin: 0; /* Step 7.11 (retouche) — l'espacement est géré par .talent-hero__visibility */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-cinematic), transform 0.7s var(--ease-cinematic);
  transition-delay: 0.95s;
}

/* Step 7.11 (retouche) — bloc visibilité : langues/natio + réseaux, centrés ensemble,
   calé à gauche dans la colonne et dimensionné sur la ligne la plus large (nationalité). */
.talent-hero__visibility {
  width: fit-content;
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.talent-hero__inner.is-revealed .talent-hero__meta {
  opacity: 1;
  transform: translateY(0);
}

.talent-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.talent-hero__meta-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-on-light);
}

.talent-hero__meta-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--color-text-on-light);
}

.talent-hero__meta-flag {
  height: 0.85em;
  width: auto;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--color-divider-gold-whisper);
}

.talent-hero__meta-sep,
.talent-hero__meta-divider {
  color: var(--color-text-on-light);
  opacity: 0.5;
}

/* ============================
   Bloc réseaux COMPACT (Step 7.11) — sous les nationalités, sans bordures.
   Petite ligne : plateforme (haut) + chiffre (bas), 3 mini-stats côte à côte.
   ============================ */

.talent-hero__stats {
  margin-top: var(--space-sm); /* Step 7.11 (retouche) — collé aux langues (md → sm) */
}

/* Label « VISIBILITÉ » supprimé (retouche) */

.talent-hero__stats-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Step 7.11 (retouche) — réseaux centrés dans le bloc */
  gap: var(--space-md) var(--space-lg);
}

.talent-hero__stat {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-cinematic), transform 0.5s var(--ease-cinematic);
}

.talent-hero__inner.is-revealed .talent-hero__stat:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 1.1s; }
.talent-hero__inner.is-revealed .talent-hero__stat:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 1.2s; }
.talent-hero__inner.is-revealed .talent-hero__stat:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 1.3s; }
.talent-hero__inner.is-revealed .talent-hero__stat:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 1.4s; }

.talent-hero__stat-inner {
  display: flex;
  flex-direction: column;
  align-items: center; /* Step 7.11 (retouche) — plateforme + chiffre centrés */
  gap: 0.15em;
  text-decoration: none;
  text-align: center;
}

a.talent-hero__stat-inner { cursor: pointer; }

.talent-hero__stat-platform {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-on-light);
  transition: color 0.3s var(--ease-cinematic);
}

.talent-hero__stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-text-on-light);
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}

.talent-hero__stat-plus { color: var(--color-accent-gold); }

.talent-hero__stat-suffix {
  font-size: 0.6em;
  font-weight: 700;
}

a.talent-hero__stat-inner:hover .talent-hero__stat-platform,
a.talent-hero__stat-inner:hover .talent-hero__stat-number {
  color: var(--color-accent-gold);
}

/* ============================
   Responsive mobile
   ============================ */

@media (max-width: 767px) {
  .talent-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--space-lg);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .talent-hero__portrait {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .talent-hero__bio {
    max-width: none;
    margin-top: var(--space-sm);
  }
}

/* ============================
   Reduced motion
   ============================ */

@media (prefers-reduced-motion: reduce) {
  .talent-hero__portrait {
    clip-path: none;
    transition: none;
  }

  .talent-hero__portrait-image {
    height: 100%;
    transition: filter 0.3s ease;
  }

  .talent-hero__name .title-line .word,
  .talent-hero__name .title-line .ornament-group {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .talent-hero__eyebrow,
  .talent-hero__bio,
  .talent-hero__tags,
  .talent-hero__meta,
  .talent-hero__stat {
    transform: none;
    transition: opacity 0.3s ease;
    transition-delay: 0s;
  }
}
