/* ==========================================================
   Accueil, version 7 (index-v7.php) : ce qui est propre à cette page.
   Le reste vient de home-v9.css (accueil, À ne pas manquer, FAQ), cover-hero.css (grand visuel)
   et premiere-visite-v3.css (les cinq étapes). Couleurs : variables du thème.
   ========================================================== */

/* ---------- 1. Grand visuel : Bakasana calée en bas, pour garder les mains sur grand écran ;
   le zoom lent part du bas, donc il ne coupe que le ciel ---------- */

.h7 .h7-hero__img--bas {
  object-position: 50% 100%;
  transform-origin: 50% 100%;
}

/* Devise « Bouger, respirer, être bien » : grande, en Cormorant, un temps par ligne
   (le 3e en italique, style.css) */
.h7 .cover-hero__text .h7-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--h9-serif);
  font-size: clamp(2.5rem, 1.7rem + 2.2vw, 3.75rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  color: var(--color-ink);
}

/* Second bouton : fond clair translucide (verre dépoli), lisible sur la photo sans faire un bloc blanc */
.h7 .cover-hero .button--ghost:not(:hover):not(:focus-visible) {
  background: rgba(250, 248, 245, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- 3. Découvrir : quatre grandes photos-liens, 2 + 2 (une colonne sur téléphone) ---------- */

.h7-discover {
  padding-bottom: var(--h9-space);
}

.h7-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--h9-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40em) {
  .h7-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.h7-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  /* arrondi léger, comme les cartes de « Ne manquez pas » (--radius : 2px) */
  border-radius: var(--radius);
  background: var(--color-line);
  color: #ffffff;
  text-decoration: none;
}

.h7-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: perspective(100px) translateZ(var(--tile-z, 0px));
  transition: transform 1.2s var(--ease);
}

/* Cadrage de chaque photo (numéros de la galerie) ; --tile-z : zoom de départ (20px = 125 %) */
.h7-tile img[data-photo="29"] { object-position: 50% 55%; }
/* 58 : zoom vers le bas de la photo (Linda en entier plutôt que les visages) */
.h7-tile img[data-photo="58"] { object-position: 50% 85%; transform-origin: 60% 85%; --tile-z: 16px; }
/* 36 : les pieds visibles, le bas s'arrête juste avant le logo du photographe */
.h7-tile img[data-photo="36"] { object-position: 50% 80%; }

/* Voile léger en bas, pour lire le titre */
.h7-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 24, 28, 0.55) 0%, rgba(20, 24, 28, 0) 55%);
  pointer-events: none;
}

.h7-tile__title {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-inline: 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* Survol : la photo avance doucement (zoom en 3D, plus fluide que scale), la flèche aussi */
.h7-tile:hover img,
.h7-tile:focus-visible img {
  transform: perspective(100px) translateZ(calc(var(--tile-z, 0px) + 3px));
}

/* Le titre reste blanc au survol (sinon le a:hover de style.css le colore) */
.h7-tile:hover,
.h7-tile:focus-visible {
  color: #ffffff;
}

.h7-tile:hover .h9-arrow,
.h7-tile:focus-visible .h9-arrow {
  transform: translateX(0.3rem);
}

.h7-tile:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

/* ---------- 4. Ne manquez pas : fond de halos doux (bleu, pêche) sur le fond de la page ----------
   Thème Halos : ses propres halos (--halos) ; autres thèmes : couleurs du thème. */

.h7-halo {
  background:
    var(--halos,
      radial-gradient(ellipse 34% 55% at 8% 20%, color-mix(in srgb, var(--color-underline) 28%, transparent), transparent 70%),
      radial-gradient(ellipse 30% 50% at 92% 12%, color-mix(in srgb, var(--color-underline) 18%, transparent), transparent 70%),
      radial-gradient(ellipse 42% 45% at 70% 88%, var(--tint-sable), transparent 70%)),
    var(--color-bg);
  /* filets fins en haut et en bas : les halos seuls ne séparent pas assez la section */
  border-block: 1px solid var(--color-line);
  /* moins haut que les autres sections : la section tient à peu près dans l'écran */
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

/* Plus large que le reste de la page, titre et lien centrés */
.h7-miss__wrap {
  width: min(100% - 2.5rem, 84rem);
}

.h7-halo .h9-miss__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

.h7-halo .h9-scroller__foot {
  justify-content: center;
}

/* Photos en hauteur (4:5, comme les cartes d'événements 5) ; le texte reste sous la photo.
   Les notes (early bird) suivent le même cadre que la photo */
.h7-halo .card--caption .card__media,
.h7-halo .card--caption .card__notes {
  aspect-ratio: 4 / 5 !important;
  /* même arrondi léger que les photos-liens ; les notes aussi, pour que le bandeau early bird ne dépasse pas du coin */
  border-radius: var(--radius);
}

.h7-halo .card--caption .card__notes {
  overflow: hidden;
}

/* Grand écran : 4 cartes sur une ligne (la 4e n'est plus masquée) */
@media (min-width: 64em) {
  .h7-halo .h9-cards {
    grid-auto-columns: calc((100% - 3 * var(--h9-gap)) / 4);
  }

  .h7-halo .h9-cards > :nth-child(n+4) {
    display: flex;
  }
}

/* ---------- 5. Nouveau au studio ? : le haut de page de Première visite, à la hauteur de son contenu ---------- */

.h7-newcomer.pv-hero {
  min-height: 0;
  scroll-margin-top: var(--header-h, 5rem);
}

.h7-newcomer .pv-hero__inner {
  padding-block: var(--h9-space);
}

.h7-newcomer .pv-hero__text {
  margin-top: 0;
}

.h7-newcomer .pv-path {
  margin-bottom: 0;
}


.h7-newcomer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

/* ---------- 6. Questions fréquentes (sans filet : le bas teinté de « Nouveau au studio ? » sépare déjà) ---------- */

.h7-faq {
  padding-top: clamp(3rem, 6vw, 5rem);
}

/* Sans animation si la personne l'a demandé à son appareil */
@media (prefers-reduced-motion: reduce) {
  .h7-tile img,
  .h7-tile .h9-arrow {
    transition: none;
  }
}
