.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  /* Autorise le bloc à rétrécir sous son contenu plutôt que de pousser la carte hors de l'écran. */
  min-height: 0;
}

.hero__body {
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: calc(26px * var(--eb, 1));
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width .6s .12s var(--ease);
}

.hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  letter-spacing: -.03em;
  margin-bottom: 14px;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  color: var(--muted);
  font-size: clamp(.9rem, 1.1vw, 1.1rem);
  max-width: 44ch;
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .hero {
    justify-content: center;
    text-align: center;
  }

  .hero__body { max-width: 100%; }

  .eyebrow { margin-bottom: 10px; }

  .hero h1 {
    font-size: clamp(1.5rem, 4.4vw, 2.2rem);
    margin-bottom: 0;
    max-width: 100%;
  }

  .hero .lead { display: none; }
}

@media (max-width: 600px) {
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(1.35rem, 5.6vw, 1.7rem); }
}

@media (max-height: 560px) {
  .hero { display: none; }
}

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: none;
}

[data-reveal-group] > .eyebrow { --eb: 0; }
[data-reveal-group].is-visible > .eyebrow { --eb: 1; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal-group] > * { opacity: 1; transform: none; }
  [data-reveal-group] > .eyebrow { --eb: 1; }
}
