/* ==========================================================================
   home-v2-hero.css : hero de la maquette, chargé après home-v2.css.

   Comme sur voicenotes.com : le hero occupe la fenêtre sous la navigation, son
   contenu garde des tailles fixes et reste centré (dézoomer ne l'agrandit pas).
   L'illustration a une taille plafonnée ; les lignes de conformité sont calées
   en bas de la colonne de texte, au niveau du bas de l'illustration.
   ========================================================================== */

/* ---------- Texte ---------- */
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero .lead { margin-top: 28px; max-width: 470px; }
.hero .actions { margin-top: 30px; }

.hero-proof {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 14px;
  margin-top: 48px;
  list-style: none;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
}
.hero-proof li { display: flex; align-items: flex-start; gap: 12px; }
.hero-proof svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ink-2); }
/* home-v2.css met les span de .hero-proof en inline-flex : on rend le texte au flux normal */
.hero-proof li > span { display: block; }
.hero-proof .nw { display: inline; white-space: nowrap; }

/* ---------- Illustration : la fenêtre vidéo seule, au centre de la toile ---------- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1.04;
}
.hero-visual .call { position: relative; left: auto; top: auto; width: 90%; transform: none; transition: transform 0.6s ease; }
.hero-visual .call.switching { transform: scale(0.975); }
/* Vidéo en 4/3 : plus haute qu'en 16/9, le visage prend plus de place (les sources en 3/2 sont à peine rognées) */
.call-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 11px; background: #d9d4cc; }
.call-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0; transition: opacity 0.7s ease; }
.call-media video.on { opacity: 1; }
.call-who { transition: opacity 0.3s ease; }
.call-who.fade { opacity: 0; }

/* Une toile par vidéo. La toile suivante se répand en cercle depuis la fenêtre vidéo,
   par-dessus la toile en cours, puis devient la toile en cours. */
.hero-visual > .paint { z-index: -3; clip-path: circle(0% at 50% 47%); }
.hero-visual > .paint.is-current { z-index: -2; clip-path: circle(150% at 50% 47%); }
.hero-visual > .paint.is-entering { z-index: -1; clip-path: circle(150% at 50% 47%); transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1); }

/* ---------- Desktop et tablette paysage : centré dans la fenêtre ---------- */
@media (min-width: 901px) {
  .hero {
    min-height: calc(100vh - 72px);
    padding-top: 40px;
    padding-bottom: 40px;
    align-items: center;
    align-content: center;
  }
  @supports (height: 100svh) {
    .hero { min-height: calc(100svh - 72px); }
  }
  /* Colonne de texte plus large et titre un peu plus petit : le titre tient sur trois lignes */
  .hero { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .hero h1 { font-size: clamp(34px, 4vw, 50px); }
  /* Le titre démarre un peu sous le haut de l'illustration, la conformité finit à son niveau bas */
  .hero-text { align-self: center; padding: 56px 0 0; }
  .hero-proof { margin-top: 0; padding-top: 50px; }
  /* L'illustration : un rectangle vertical plus compact, la fenêtre vidéo y prend plus de place */
  .hero-visual { align-self: center; aspect-ratio: 1 / 1.16; }
}
/* Fenêtre étroite : l'illustration se rétrécit plus vite que le texte, elle prend donc sa hauteur */
@media (min-width: 901px) and (max-width: 1140px) {
  .hero-visual { align-self: stretch; aspect-ratio: auto; }
}

/* ---------- Une colonne : texte, puis illustration ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-visual { justify-self: stretch; max-width: none; aspect-ratio: 1 / 0.9; }
  .hero-proof { margin-top: 40px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 36px; }
  .hero .lead { margin-top: 22px; }
  .hero .actions { margin-top: 26px; }
  .hero-proof { margin-top: 32px; gap: 12px; font-size: 14px; }
  .hero-visual { aspect-ratio: 1 / 1.02; }
  .hero-visual .call { width: 92%; }
}
