/* Page Cours en direct (cours-en-ligne.php) */

/* Lien « Réserver un cours en ligne » sous le chapeau : seulement quand les deux colonnes
   du planning sont empilées (le calendrier est alors loin dans la page) */
@media (min-width: 64em) {
  .page-intro__links {
    display: none;
  }
}

/* ---------- Grande photo + encadré de texte qui chevauche son bord ---------- */

.online-hero {
  display: grid;
}

.online-hero__photo {
  margin: 0;
}

/* Photo entière, sans recadrage (Linda et l'ordinateur visibles) */
.online-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.online-hero__card {
  position: relative;
  z-index: 1;
  /* Téléphone et tablette : l'encadré remonte à peine sur le bas de la photo,
     pour laisser l'ordinateur (en bas à droite) bien visible */
  margin: -1rem 0.75rem 0;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(20, 35, 60, 0.1);
}

.online-hero__card h2 {
  margin-top: 0;
}

.online-hero__card p:last-of-type {
  margin-bottom: 0;
}

.online-hero__price {
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.95rem;
  color: var(--color-muted);
}

@media (min-width: 64em) {
  /* Photo sur 8 colonnes sur 12, encadré sur les 5 dernières : une colonne de chevauchement */
  .online-hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }

  .online-hero__photo {
    grid-column: 1 / 9;
    grid-row: 1;
  }

  .online-hero__card {
    grid-column: 8 / 13;
    grid-row: 1;
    margin: 0;
    padding: 2.75rem 2.5rem;
  }
}

/* ---------- Planning : bande teintée avec son titre ---------- */

.online-schedule__title {
  text-align: center;
  margin: 0 0 2.5rem;
}

/* « Comment ça marche » + calendrier, comme « Bon à savoir » sur la page Horaires,
   mais ici les étapes viennent avant le calendrier sur téléphone */
.online-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.online-layout__aside {
  max-width: 44rem;
  width: 100%;
  margin-inline: auto;
}

.online-layout__title {
  margin-top: 0;
  padding-top: 0.35rem;
}

.online-layout__calendar {
  min-width: 0;
}

@media (min-width: 64em) {
  .online-layout {
    grid-template-columns: 23rem minmax(0, 1fr);
    column-gap: 2rem;
  }

  /* Fine ligne à droite, alignée sur le sélecteur de dates (Bsport ajoute 3rem au-dessus) */
  .online-layout__aside {
    max-width: none;
    margin: 3rem 0 0;
    padding-right: 2rem;
    border-right: 1px solid var(--color-line);
    position: sticky;
    top: 9rem;
  }
}

/* Étapes : liste numérotée, une ligne par étape */
.online-steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.online-step {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-line);
}

.online-step__num {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  /* Josefin est dessinée haut : petit décalage pour centrer le chiffre dans le cercle */
  padding-top: 0.15em;
}

.online-step h4 {
  margin: 0.45rem 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.online-step p {
  margin: 0;
}

/* Notes sous les étapes : langue, aide */
.online-note {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ---------- Préparer votre cours ---------- */

.online-wrap {
  max-width: 62rem;
  margin-inline: auto;
}

.online-wrap > h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.online-prep {
  display: grid;
  gap: 2rem 4rem;
}

.online-prep h3 {
  margin-top: 0;
}

@media (min-width: 52em) {
  .online-prep {
    grid-template-columns: 1fr 1fr;
  }

  /* Fine ligne entre les deux colonnes */
  .online-prep > :last-child {
    border-left: 1px solid var(--color-line);
    padding-left: 4rem;
    margin-left: -2rem;
  }
}
