/*
 * Section « hero » — reprise de la maquette Kiwanis (.hero, .hero-grid,
 * .hero-title, .hero-tag, .hero-meta, .hero-illu-wrap, .hero-arch).
 *
 * Écarts :
 *
 * 1. La photo est une <img> posée en fond (.hero-bg) et non un background-image :
 *    c'est le LCP. Le dégradé de la maquette est reproduit à l'identique par
 *    .hero-bg::after.
 *
 * 2. Chiffres en <dl> : le libellé (dt) précède la valeur (dd) dans le code,
 *    l'ordre visuel de la maquette (icône, valeur, libellé) est rétabli par
 *    « order ».
 *
 * 3. Focus en --accent-soft : le fond est bleu.
 *
 * 4. Dégradé renforcé sous le texte. Celui de la maquette tombait à 0.78 dès
 *    38 % de la largeur : mesuré sur la photo réelle, les libellés des chiffres
 *    (13 px, papier à 72 %) descendaient à 3.4:1, l'accroche à 4.0:1. Le voile
 *    tient désormais 0.88 jusqu'à 55 %, au-delà de la colonne de texte (53 % à 1000 px), puis
 *    s'éclaircit comme dans la maquette. Sous 900 px, le texte occupe toute la
 *    largeur : voile uniforme de 0.86.
 *
 *    Le ratio est garanti PAR CONSTRUCTION, quelle que soit la photo choisie par
 *    le club : mesuré sur un pixel blanc, le pire cas possible.
 *
 * Contrastes, pire cas (voile 0.86 sur blanc) : titre #edf8ff 7.24:1 ; accroche
 * papier à 85 % 5.83:1 ; libellés des chiffres papier à 72 % 4.68:1 ;
 * « Cathédrale » en or, grand texte (≈ 150 px), 4.13:1 sur le bleu plein. Les
 * icônes dorées des chiffres sont décoratives.
 */

.hero {
  --focus: var(--accent-soft);
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--h-hero);
  min-height: calc(100svh - var(--h-header));
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 60px);
  overflow: hidden;
  color: var(--on-primary);
  background-color: var(--primary);
}

/* Écart n° 1 : la photo en <img>, sous le dégradé de la maquette. */
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg picture,
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Écart n° 4 : 0.88 jusqu'à 55 % (maquette : 0.78 à 38 %). */
  background: linear-gradient(to right, rgba(0, 56, 116, 0.97) 0%, rgba(0, 56, 116, 0.88) 55%, rgba(0, 56, 116, 0.45) 78%, rgba(0, 56, 116, 0.20) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ==========================================================================
   Texte
   ========================================================================== */

.hero-title {
  padding: 20px 0;
  color: var(--hero-title);
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: var(--fs-h1-hero);
  line-height: var(--lh-h1-hero);
  letter-spacing: 0.04rem;
}

.hero-title .line-2 {
  display: inline-block;
  position: relative;
  margin-left: 0.08em;
  font-family: var(--ff-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 2em;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.hero-tag {
  max-width: 24ch;
  margin-top: 22px;
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.3;
  color: rgba(250, 248, 243, 0.85);
}

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

/* ==========================================================================
   Chiffres — écart n° 2
   ========================================================================== */

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: baseline;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-meta-item .num {
  order: 1;
  margin: 0;
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: 52px;
  line-height: 1;
  color: #ffffff;
}

.hero-meta-icon {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

.hero-meta-icon .icon { width: 20px; height: 20px; }

.hero-meta-item .lbl {
  order: 2;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.72);
}

/* ==========================================================================
   Illustration et arche
   ========================================================================== */

.hero-illu-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.hero-arch {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: var(--hero-arch);
}

.hero-arch svg {
  width: 471px;
  height: 550px;
  max-width: 100%;
}

.hero-illu {
  position: relative;
  z-index: 2;
  width: 249px;
  height: 416px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.32));
}

/* ==========================================================================
   Sous 900 px — une colonne, comme dans la maquette
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }

  /* Écart n° 4 : le texte occupe toute la largeur, le voile aussi. */
  .hero-bg::after { background: rgba(0, 56, 116, 0.86); }
}

/* Écart : sous 620 px, les trois chiffres passent sur deux rangs plutôt que de
   déborder, et l'illustration réduit. */
@media (max-width: 620px) {
  .hero-meta { flex-wrap: wrap; gap: 24px 32px; }
  .hero-meta-item .num { font-size: 40px; }

  .hero-illu-wrap { min-height: 320px; }
  .hero-arch svg { width: 340px; height: 400px; }
  .hero-illu { width: 180px; height: 300px; }
}
