/* ================================================================
   HEAR THE LIGHT — Pages Services (services.html) et Formations
   (formations.html) : en-tête, « comment ça se passe », appel final.
   Les cases et les affiches viennent de css/htl-offers.css.
   Règles projet : animations toujours actives, couleurs = jetons,
   mobile uniquement dans @media (max-width: 768px).
   ================================================================ */
.pg { position: relative; z-index: 2; }

/* ── En-tête ──────────────────────────────────────────────────── */
.pg-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 130px));
  padding-bottom: clamp(36px, 4.6vw, 72px);
}
/* Halo : s'éteint avant les bords de sa boîte (aucune coupure nette sur grand écran) */
.pg-head::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: -10%; top: 0; width: min(1100px, 90vw); height: 130%;
  background: radial-gradient(closest-side at 45% 55%, color-mix(in srgb, var(--light) 11%, transparent), transparent);
}
.pg-title { --tune-to: 96; margin-left: -.04em; white-space: nowrap; }
.pg-lead { margin: clamp(18px, 2vw, 28px) 0 0; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; }

.pg-main { padding-bottom: clamp(64px, 8vw, 130px); }

/* ── Comment ça se passe (vraie séquence : numérotée) ─────────── */
.pg-how { border-top: 1px solid var(--line); }
.pg-how__title { margin: 0 0 clamp(28px, 3.4vw, 52px); }
.pg-how__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); counter-reset: pg; }
.pg-how__list li { position: relative; padding-top: 22px; border-top: 1px solid var(--fg); counter-increment: pg; }
.pg-how__list li::before {
  content: counter(pg); display: block; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 800; line-height: .8;
  font-size: clamp(56px, 6vw, 96px); font-variation-settings: 'wdth' 60; color: var(--light);
  transition: font-variation-settings .9s var(--ease-out);
}
.pg-how__list li:hover::before { font-variation-settings: 'wdth' 100; }
.pg-how__t { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.05; font-variation-settings: 'wdth' 92; }
.pg-how__d { margin: 10px 0 0; color: var(--muted); max-width: 32ch; }
.pg-how__more { margin: clamp(28px, 3vw, 44px) 0 0; color: var(--muted); }
.pg-how__more a { color: var(--fg); }

/* ── Appel final ──────────────────────────────────────────────── */
.pg-cta { text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.pg-cta .htl-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.pg-cta .htl-wrap::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: min(1100px, 110vw); height: 480px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--light) 13%, transparent), transparent);
}
.pg-cta__title { max-width: 14ch; font-variation-settings: 'wdth' 78; }
.pg-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

@media (max-width: 768px) {
  .pg-head { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 28px; }
  .pg-head::before { left: -30%; width: 130%; } /* bord droit = 100 % : le halo ne crée plus de défilement horizontal */
  .pg-title { font-size: clamp(40px, 14vw, 100px); } /* « Formations » tient dans 390 px sans défilement horizontal */
  .pg-lead { font-size: 16px; }
  .pg-how__list { grid-template-columns: 1fr; gap: 28px; }
  .pg-how__list li::before { font-size: 56px; margin-bottom: 12px; }
  .pg-cta__title { font-size: 13vw; }
  .pg-cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .pg-cta__actions .htl-btn { width: 100%; font-size: 14px; }
}

/* Chantier mobile (30/11) : lien « Lire la FAQ » à 44 px de haut */
@media (max-width: 768px) {
  .pg-how__more a { display: inline-flex; align-items: center; min-height: 44px; }
}
