/* ==========================================================================
   Page d'accueil
   ========================================================================== */

html, body { height: 100%; }
body.home { overflow: hidden; font-size: 13px; line-height: 1.35; }

.stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  grid-template-columns: minmax(0, 1fr);
}

/* Filtres par catégorie + année (styles des boutons dans site.css) */
.stage > .filters {
  position: relative;
  z-index: 2;
  padding: 10px var(--gutter) 22px;
  opacity: 0;
  transition: opacity .8s ease .5s;
}
.is-ready .stage > .filters { opacity: 1; }

/* Nom + description */
.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--gutter);
  padding: 0 var(--gutter);
}
.hero__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.035em;
}
.hero__link { display: block; cursor: pointer; }
.hero__first {
  display: block;
  margin: 0 0 .6em .25em;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0;
}
.hero__last {
  display: block;
  font-variation-settings: "wdth" 86;
  font-size: clamp(64px, 15.5vw, 300px);
  margin-left: -.04em;
  padding-bottom: .02em;
}
.hero__about { max-width: 330px; padding-bottom: 6px; }
.hero__label { font-size: 14px; letter-spacing: .01em; margin-bottom: 26px; }
.hero__text { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.32; }

.hero__last,
.hero__first,
.hero__about { opacity: 0; transform: translateY(30px); }
.is-ready .hero__last,
.is-ready .hero__first,
.is-ready .hero__about {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.is-ready .hero__first { transition-delay: .15s; }
.is-ready .hero__about { transition-delay: .3s; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero__about { order: -1; max-width: 100%; }
  .hero__label { margin-bottom: 12px; }
  .hero__last { font-size: 25vw; }
  .bar__left span:not(:first-child) { display: none; }
  .stage > .filters { flex-direction: column; gap: 8px; padding-bottom: 16px; }
  .filters__group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
  .filters__group::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
}

/* Survol du nom (lien vers « Qui suis-je ? ») : le nom prend la couleur
   d'accent. La déformation reste (site.js). */
.hero__first, .hero__last { transition: color .45s var(--ease); }
.is-ready .hero__link .hero__last,
.is-ready .hero__link .hero__first {
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), color .45s var(--ease);
}
.is-ready .hero__link .hero__first { transition-delay: .15s, .15s, 0s; }
.hero__link:hover .hero__first,
.hero__link:hover .hero__last,
.hero__link:focus-visible .hero__first,
.hero__link:focus-visible .hero__last { color: var(--accent); }
