/* ============================================
   TRIKROMI — Page d'accueil (hero)
   Lockup logo géant + 2 vignettes (photo + légende glass) sur fond sombre.
   Vignettes : ratio 841/386, radius 34px (Figma node 8:16).
   Légende : Inter SemiBold 16px, "ÉQUIPEMENTS…" en #adadad (Figma node 8:76).
   ============================================ */

/* ---------- SECTION HERO ---------- */
.home-hero {
  position: relative;
  min-height: 100svh;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(36px, 5vh, 80px);
  padding: clamp(120px, 16vh, 220px) var(--page-margin) clamp(34px, 5vh, 60px);
}

/* ---------- LOCKUP LOGO ---------- */
.hh-logo {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;             /* bloc centré */
  text-align: left;           /* texte aligné à gauche */
}
.hh-logo__line {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 7vw, 112px);    /* Studio+ / Creativ+ (~112px Figma) */
}
.hh-logo__line--xl {
  font-size: clamp(56px, 11.6vw, 186px); /* / Trikromi (~186px Figma) */
}
.hh-logo__inner { display: inline-block; }
.hh-slash { color: #5b5b5b; }            /* slash atténué */

/* Lockup en image (asset logo) — mis en blanc */
.hh-logo__img {
  display: block;
  width: clamp(300px, 46vw, 740px);
  height: auto;
  filter: brightness(0) invert(1);       /* asset noir -> blanc */
}
@media (max-width: 900px) {
  .hh-logo__img { width: min(86vw, 460px); }
}

/* ---------- VIGNETTES ---------- */
.hh-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.8vw, 34px);
  width: 100%;
}
.hh-img {
  position: relative;
  aspect-ratio: 841 / 386;     /* ratio vignette Figma */
  border-radius: 34px;         /* Figma node 8:16 */
  overflow: hidden;
  background: #333;            /* fallback "fond transparent" */
}
.hh-img__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease, transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity;
}
.hh-img__photo.is-active { opacity: 1; }

/* Vignettes cliquables : lien qui couvre toute la carte + survol */
.hh-img__link { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.hh-img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.hh-img:hover { transform: translateY(-5px); }
.hh-img:hover .hh-img__photo.is-active { transform: scale(1.05); }

/* Légende glass : bande pleine largeur collée en bas (coins suivent la carte) */
.hh-img__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(14px, 1.1vw, 20px) clamp(16px, 1.4vw, 26px);
  background: rgba(18, 18, 18, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hh-img__caption p {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(13px, 0.95vw, 16px);   /* Figma : 16px SemiBold */
  line-height: 1.32;
  color: #fff;
}
.hh-img__caption p + p { margin-top: 2px; font-weight: 500; }
.hh-img__caption .muted { color: #adadad; }

/* ---------- SEQUENCE D'ENTREE ---------- */
.home-hero .hh-logo,
.home-hero .hh-images {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-hero.is-in .hh-logo { opacity: 1; transform: none; transition-delay: 0.08s; }
.home-hero.is-in .hh-images { opacity: 1; transform: none; transition-delay: 0.24s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .home-hero {
    justify-content: flex-start;                 /* on gère le centrage via le logo */
    padding-top: clamp(76px, 9.5vh, 84px);       /* au ras du header */
    gap: 0;
  }
  .hh-images { grid-template-columns: 1fr; }
  .hh-logo {
    margin: 0;
    flex: 1 1 auto;                              /* prend tout l'espace au-dessus des images */
    display: flex;
    flex-direction: column;
    justify-content: center;                     /* logo centré verticalement dans cet espace */
    align-items: flex-start;                     /* garde l'alignement à gauche */
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .hh-logo,
  .home-hero .hh-images { opacity: 1; transform: none; transition: none; }
  .hh-img__photo { transition: none; }
}