/* ===========================================================
   PAGE — NOS COURS (cours à la carte)
   =========================================================== */


/* ================================
   1) Base scoping & utils
   ================================ */
.page-nos-cours .container {
  width: min(68.75rem, 92vw);
  margin-inline: auto;
}
.page-nos-cours img {
  display: block;
  max-width: 100%;
  height: auto;
}
.page-nos-cours .sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  margin: -0.0625rem;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =============================================
   2) HERO (harmonisé avec page-histoire)
   ============================================= */
.page-hero--cours {
  padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
  background:
    radial-gradient(circle at top left, #ffffff 0, #f4f4f0 42%, #ece8e0 100%);
  text-align: center;
}

.page-hero--cours h1 {
  color: #264154;
  font-size: clamp(2.2rem, 3.2vw, 3.1rem);
  margin-bottom: 0.6em;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page-hero--cours .lead {
  color: #2d3a43;
  opacity: 0.9;
  max-width: 43.75rem;
  margin-inline: auto;
  font-size: 1.25rem;
}


/* =======================
   3) Intro (texte)
   ======================= */
.cours-intro-block {
  padding: 4rem 0 0.5rem;
}
.cours-intro-block .intro-richtext {
  max-width: 55rem;
  margin: 2rem auto;
  color: #2d3a43;
  line-height: 1.7;
  font-size: 1.0625rem;
}
.cours-intro-block .intro-richtext ul {
  margin: 0.75rem 0 0.5rem 1.5rem;
}
.cours-intro-block .intro-richtext li {
  margin: 0.375rem 0;
}


/* =========================================
   4) Layout "magazine" : image full + carte
   ========================================= */
.cours-section {
  padding: 2rem 0 2.5rem;
  position: relative;
  margin-top: 2.5rem;
}
.cours-section.alt {
  background: transparent;
}

/* wrapper interne */
.cours-section-inner {
  position: relative;
}

/* Image pleine largeur dans le container */
.cours-figure {
  margin: 0;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #e9eef3;
  box-shadow: 0 0.875rem 2.1875rem rgba(0, 0, 0, 0.12);
  aspect-ratio: 16 / 9;
}
.cours-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carte texte décalée par-dessus l'image */
.cours-text-card {
  position: relative;
  max-width: 45rem;
  margin: -8.5rem auto 2rem;
  background: #fff;
  padding: 1.375rem 1.625rem 1.25rem;
  box-shadow: 0 1.125rem 2.25rem rgba(0, 0, 0, 0.12);
  border-radius: 0.25rem;
  border: 1px solid #e6e3dd;
}

/* Barre colorée latérale */
.cours-text-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 0.25rem;
  background: #d29c2c;
}

/* Décalage du contenu pour la barre */
.cours-text-card > * {
  margin-left: 0.5625rem;
}

/* Variante pour sections .alt */
.cours-section.alt .cours-text-card::before {
  background: #264154;
}

/* Texte */
.cours-h2 {
  margin: 0 0 0.4375rem;
  color: #264154;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}
.cours-text-card p {
  color: #2d3a43;
  margin: 0.5rem 0;
  line-height: 1.65;
}
.cours-meta {
  margin: 0.625rem 0 0;
  color: #1f2a33;
  font-weight: 700;
}


/* =================
   5) Helloresa
   ================= */

.helloresa-section {
  padding: 3rem 0 3.5rem;
}

.helloresa-container {
  text-align: center;
}

.helloresa-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: #264154;
}

.helloresa-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: #2d3a43;
  opacity: 0.9;
}

/* Wrapper centré + largeur raisonnable */
.helloresa-iframe-wrapper {
  margin: 0 auto;
}

/* Iframe responsive et plus contenu */
.helloresa-iframe {
  display: block;
  width: 100%;
  min-height: 24rem;
  height: 45rem;
  border: 1px solid #e6e3dd;
  border-radius: 2px;
  box-shadow: 0 0.75rem 1.9rem rgba(0, 0, 0, 0.08);
}

/* Option : ajuster sur mobile déjà existant */
@media (max-width: 38.75rem) {
  .helloresa-section {
    padding: 2.25rem 0 2.75rem;
  }
  .helloresa-iframe {
    min-height: 22rem;
  }
}


/* =================
   6) Responsive
   ================= */

/* Tablette ≤ 980px : cartes un peu moins sorties */
@media (max-width: 61.25rem) {
  .cours-section {
    padding: 1.625rem 0 1.875rem;
  }
  .cours-text-card {
    margin: -4.375rem auto 0;
    padding: 1.25rem 1.3125rem 1.1875rem;
  }
  .cours-intro-block {
    padding-top: 3.2rem;
  }
  .cours-intro-block .intro-richtext {
    font-size: 1.02rem;
    margin: 1.6rem auto;
  }
}

/* Mobile ≤ 620px : visuel plus “stacké” image + carte */
@media (max-width: 38.75rem) {
  .page-hero--cours {
    padding: clamp(1.75rem, 4vw, 2.5rem) 0 1.25rem;
  }

  .page-hero--cours h1 {
    font-size: clamp(1.875rem, 4.8vw, 2.4rem);
  }

  .page-hero--cours .lead {
    font-size: 1rem;
    padding-inline: 1rem;
  }

  .cours-intro-block {
    padding: 2.4rem 0 0.25rem;
  }

  .cours-intro-block .intro-richtext {
    margin: 1.4rem auto;
    font-size: 0.98rem;
    padding-inline: 1.1rem;
  }

  .cours-section {
    padding: 1.25rem 0 1.5rem;
    margin-top: 2rem;
  }

  .cours-figure {
    border-radius: 0.1875rem;
    aspect-ratio: 16 / 11; /* un peu plus vertical sur mobile */
    box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.12);
  }

  .cours-text-card {
    margin: -2.25rem auto 0;
    padding: 0.95rem 1.05rem 0.95rem;
    max-width: 100%;
  }

  .cours-text-card::before {
    top: 0.7rem;
    bottom: 0.7rem;
    width: 0.22rem;
  }

  .cours-h2 {
    font-size: clamp(1.12rem, 4.2vw, 1.3rem);
    margin-bottom: 0.35rem;
  }

  .cours-text-card p {
    font-size: 0.96rem;
    line-height: 1.6;
    margin: 0.4rem 0;
  }

  .cours-meta {
    font-size: 0.94rem;
    margin-top: 0.55rem;
  }

  .helloresa-title {
    font-size: clamp(1.4rem, 4.8vw, 1.7rem);
  }

  .helloresa-subtitle {
    font-size: 0.98rem;
    padding-inline: 1.1rem;
  }
  .helloresa-iframe {
  height: 20rem;
}
}
