/* ==========================================================================
   PAGE : HOME (index.html)
   ========================================================================== */

/* ---- Hero ---- */
.hero {
  position: relative;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}
.hero .media--hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 100vh;
  min-height: 520px;
}
.hero__content {
  position: absolute;
  inset: auto 0 28%;
  display: flex;
  justify-content: center;
}

/* ---- Produits ---- */
.products { padding-top: var(--space-8); }
.products__more {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
  font-size: var(--fs-md);
  font-weight: 400;
}

/* ---- Carte ONIX gyro : composant .feature-card, voir components.css ---- */

/* ---- Training ---- */
.training {
  position: relative;
  margin-top: var(--space-7);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  color: var(--color-on-image);
}
.training .media--training {
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 560px;
  max-height: 110vh;
  background: var(--color-placeholder-dark);
}
.training .media--training:empty::after { color: rgba(255, 255, 255, 0.35); align-items: start; padding-top: var(--space-6); }
.training::after {
  /* voile pour la lisibilité du texte sur la photo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.training__content {
  position: absolute;
  z-index: 1;
  inset: auto 0 12%;
  margin-inline: auto;
  max-width: 760px;
  padding-inline: var(--gutter);
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 300;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.training__title {
  font-size: var(--fs-hero-title);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.training__content .btn { margin-top: var(--space-5); text-shadow: none; }
