/* ------------------------------------------------------------------
   hero.css — l'accroche et les trois stat boxes.
   Le H1 en deux temps est le geste typographique de la page :
   une ligne serif italique, une ligne condensée en capitales.
   ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) var(--gutter) 48px;
  text-align: center;
}

/* Une lueur d'or très basse, en haut : elle donne de la profondeur sans éclairer */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: 620px;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgb(var(--gold-rgb) / 0.09), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  margin-top: 28px;
  color: var(--white);
}

.h1-a {
  display: block;
  font-family: var(--font-title);
  font-size: var(--fs-h1-a);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
}

.h1-b {
  display: block;
  margin-top: 12px;
  font-family: var(--font-label);
  font-size: var(--fs-h1-b);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* La promesse jalonnée : elle ne se raccourcit jamais. En grand, c'est elle qu'on retient. */
.hero-promise {
  max-width: 700px;
  margin: 28px auto 0;
  color: var(--gold-bright);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.hero-copy {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: var(--fs-chapeau);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* Le second bouton : un contour, pour ne jamais concurrencer l'or */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 16px 28px;
  border: 1px solid rgb(var(--white-rgb) / 0.16);
  border-radius: 100px;
  color: rgb(var(--white-rgb) / 0.8);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 250ms ease-out, color 250ms ease-out;
}

.btn-ghost:hover {
  border-color: rgb(var(--gold-rgb) / 0.55);
  color: var(--white);
}

/* --- Stat boxes : l'autorité par les études --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--w-read);
  margin: 64px auto 0;
}

.stat {
  position: relative;
  isolation: isolate;
  padding: 28px 18px 22px;
  border-radius: 14px;
  background: rgb(var(--card-rgb) / 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Anneau de 1 px en dégradé d'or qui circule : on évide le centre par mask-composite */
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgb(var(--gold-rgb) / 0.12) 0%,
    rgb(var(--gold-rgb) / 0.95) 25%,
    rgb(var(--gold-rgb) / 0.12) 50%,
    rgb(var(--gold-rgb) / 0.6) 75%,
    rgb(var(--gold-rgb) / 0.12) 100%
  );
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
  animation: ring 7s linear infinite;
  pointer-events: none;
}

/* Halo radial qui respire derrière le chiffre */
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 28%, rgb(var(--gold-rgb) / 0.2), transparent 62%);
  animation: breathe 4.2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ring {
  to {
    background-position: -300% 0;
  }
}

@keyframes breathe {
  from {
    opacity: 0.35;
  }

  to {
    opacity: 1;
  }
}

.stat-value {
  color: var(--gold);
  font-family: var(--font-label);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.stat-label {
  margin-top: 14px;
  color: rgb(var(--white-rgb) / 0.88);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: balance;
}

.stat-more {
  margin-top: 8px;
  color: rgb(var(--white-rgb) / 0.7);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: balance;
}

/* La source : séparée par un filet, jamais sous 13 px — c'est la preuve */
.stat-source {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgb(var(--gold-rgb) / 0.18);
  color: var(--soft);
  font-size: var(--fs-source);
  line-height: 1.45;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .hero {
    padding-top: calc(var(--nav-h) + 56px);
  }

  .stats {
    margin-top: 48px;
  }
}

/* 2 × 2 sous 600 px : trois études, la troisième prend toute la largeur. Jamais une quatrième. */
@media (max-width: 599px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat {
    padding: 22px 12px 18px;
  }

  .stat-label,
  .stat-more {
    font-size: 0.8125rem;
  }

  .stat:last-child {
    grid-column: 1 / -1;
    padding-inline: 20px;
  }
}

@media (max-width: 479px) {
  .btn-ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat::before,
  .stat::after {
    animation: none;
  }

  .btn-ghost {
    transition: none;
  }
}
