/* Page L'Ashtanga yoga, version 2 (ashtanga-yoga-v2.php) : texte d'origine du site actuel,
   photos de la galerie choisies par numéro. */

/* Deux sections blanches qui se suivent : pas de double marge */
.ay2 .section:not(.section--tint) + .section:not(.section--tint) {
  padding-top: 0;
}

/* ---------- Photo choisie : coins arrondis ---------- */

.ay2-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
}

.ay2-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Grand écran : photo à droite pour .split--reverse ; photos toutes à la même hauteur
   (--ay2-photo-h), recadrées sur la page, jamais dans le fichier. Colonne de texte plus large
   que la photo, pour que les longs paragraphes ne dépassent pas trop la photo. */
@media (min-width: 52em) {
  .ay2 {
    --ay2-photo-h: 28rem;
  }

  .ay2 .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 4rem;
  }

  .ay2 .split--reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .ay2 .split--reverse .split__image {
    order: 2;
  }

  .ay2 .split .prose {
    max-width: 44rem;
  }

  .ay2 .split__image {
    display: flex;
    max-width: none;
    justify-self: stretch;
  }

  .ay2 .split__image > * {
    flex: 1;
  }

  .ay2-photo {
    position: relative;
    height: var(--ay2-photo-h);
  }

  /* Huit membres : la photo prend la hauteur du texte (la plus haute de la page) */
  .ay2-full .split {
    align-items: stretch;
  }

  .ay2-full .ay2-photo {
    height: auto;
    min-height: var(--ay2-photo-h);
  }

  .ay2-photo img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
  }

  /* La pratique (photo 73) : cadrée sur la gauche, pour garder Gérald et Linda */
  .ay2-frame-left .ay2-photo img {
    object-position: 0% 50%;
  }

  .ay2 .split__image .ay2-ph {
    aspect-ratio: auto;
    height: var(--ay2-photo-h);
  }
}

/* ---------- Emplacement « photo à venir » (tant que le fichier n'est pas sur le serveur) ---------- */

.ay2-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 14rem;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-muted);
  border-radius: 1.25rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--color-ink) 4%, transparent) 14px 15px),
    linear-gradient(160deg, var(--color-tint), color-mix(in srgb, var(--color-accent) 18%, var(--color-tint)));
}

/* Formats sur mobile : vertical, large, carré */
.ay2-ph--tall { aspect-ratio: 4 / 5; }
.ay2-ph--wide { aspect-ratio: 21 / 9; }
.ay2-ph--square { aspect-ratio: 1; }

.ay2-ph__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ay2-ph__options {
  max-width: 22rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ay2-ph__options li + li {
  margin-top: 0.3rem;
}

.ay2-ph__options strong {
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------- Les huit membres : liste numérotée compacte ---------- */

.prose .ay2-limbs {
  margin: 1.25rem 0 0;
  padding-left: 1.6em;
}

.ay2-limbs li + li {
  margin-top: 0.45em;
}

.ay2-limbs li::marker {
  font-size: 0.85em;
  color: var(--color-accent);
}

/* Les cinq principes de Yama et Niyama, en petit sous le nom */
.ay2-limbs__sub {
  display: block;
  margin-top: 0.2em;
  font-size: 0.88em;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ---------- Photo des huit membres : toute la hauteur du texte ---------- */

.ay2-fill {
  position: relative;
  width: 100%;
}

/* Grand écran : la photo remplit toute la hauteur du texte */
@media (min-width: 52em) {
  .ay2-fill {
    min-height: var(--ay2-photo-h);
  }

  .ay2-fill__item {
    position: absolute;
    inset: 0;
    display: flex;
  }

  .ay2-fill__item > * {
    flex: 1;
    height: auto;
    min-height: 0;
  }
}

/* D'autres styles : texte seul, centré sur la page */
.ay2-centre {
  margin-inline: auto;
  text-align: center;
}

/* Boutons de fin de page */
.ay2 .hero__actions {
  margin-top: 2rem;
}
