

/* ========================= */
/* ====== BANNIÈRE ========= */
/* ========================= */

.banner-cours {
  position: relative;
  background-image: url("images/background-accueil.jpg");
  overflow: hidden;
  color: white;
  margin-bottom: 12px;
}

.banner-cours::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.banner-cours-contenu {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: white !important;
}

.banner-cours-contenu p {
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.45;
  margin-bottom: 28px;
  opacity: 0.9;
  color: white;
}

/* BOUTONS DOMAINES */
.domaines {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.domain-btn {
  text-decoration: none;
  background-color: #7991ae;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.domain-btn:hover {
  background-color: #95a4b8;
  color: white;
}

.banner-cours .banner-cours-cta-mobile {
  display: none;
}

.cta-cours {
  display: block;
  width: fit-content;
  margin: 25px auto;
  background-color: #6888b1;
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.cta-cours:hover {
  transform: translateY(-2px);
}

.cta:hover {
  transform: translateY(-2px);
}

/* ========================= */
/* ===== CONTENU COURS ===== */
/* ========================= */

.course-content-row.course-content-row-reversed .course-content-media,
.cours-bloc.cours-pro .cours-visuel {
  justify-self: end;
}

.course-content-text .cta,
.cours-texte .cta {
  margin-left: auto;
  margin-right: auto;
}

.course-content-row-hero {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 1.25rem;
  margin-left: 0;
}

.course-content-row-hero .cours-hero-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  text-align: left;
  padding: 0;
  width: 100%;
  max-width: none;
}

.course-content-row-hero .cours-hero-body {
  grid-column: 1;
  grid-row: 2;
  padding-left: 0;
  align-self: start;
  margin-top: 0;
}

.course-content-row-hero .cours-hero-body > p {
  margin-top: 0;
}

.course-content-row-hero .cours-hero-media {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-content: flex-start;
  margin-top: 0;
}

.course-content-row-hero .cours-hero-cta {
  margin-top: 18px;
  margin-left: 0;
  margin-right: auto;
}

.course-content-row-hero .cours-hero-lead {
  margin: 0;
  text-align: left;
  display: block;
  width: 100%;
  max-width: none;
}

.course-content-row-hero .cours-hero-title + .cours-hero-lead {
  margin-top: 0 !important;
}

.course-content-row-hero .cours-hero-title {
  margin: 0 !important;
  display: block;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a2b48;
  text-align: left;
}

.course-content-row-hero .course-content-media img {
  max-width: 360px;
}

@media (max-width: 900px) {
  .course-content-row-hero {
    display: block;
    grid-template-columns: none;
    gap: 0;
    margin-left: 0;
  }

  .course-content-row-hero .cours-hero-header {
    display: block;
    width: 100%;
    max-width: none;
  }

  .course-content-row-hero .cours-hero-title,
  .course-content-row-hero .cours-hero-lead {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .course-content-row-hero .cours-hero-body,
  .course-content-row-hero .cours-hero-media {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  /* Anglais professionnel : image, puis titre, puis paragraphe */
  .course-content-row.course-content-row-reversed {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .course-content-row.course-content-row-reversed .course-content-text {
    display: contents;
  }

  .course-content-row.course-content-row-reversed .course-content-media {
    order: 1;
    justify-self: center;
    width: 100%;
  }

  .course-content-row.course-content-row-reversed .course-content-text h2 {
    order: 2;
    margin: 0.9rem 0 0.25rem !important;
    width: 100%;
    text-align: left;
    align-self: stretch;
  }

  .course-content-row.course-content-row-reversed .course-content-text p {
    order: 3;
    margin-top: 0 !important;
    width: 100%;
    text-align: justify;
  }

  /* Paragraphes justifiés en responsive */
  body.page-cours main p,
  body.page-cours .cours-hero-lead,
  body.page-cours .cours-domaines-subtitle,
  body.page-cours .general-tagline,
  body.page-cours .approche-subtitle,
  body.page-cours .course-content-text p {
    text-align: justify;
  }

  body.page-cours .general-feature-item p,
  body.page-cours .approche-step > p {
    text-align: center;
  }

  body.page-cours .cours-contact-hotel-banner-text p.cours-contact-description {
    text-align: left;
  }

  .cours-domaines-subtitle {
    display: none;
  }
}

.course-content-text h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a2b48;
  margin: 0 0 0.35rem !important;
}

.course-content-text p:last-child {
  margin-bottom: 0;
}


.cours-contact:not(.cours-contact-hotel-banner) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.5rem 1.5rem;
  background: #e9eef9;
  /* background: #f9eddb; */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(21, 27, 38, 0.08);
}

.cours-contact-texte {
  --cours-contact-icon-offset: calc(30px + 0.5rem);
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.cours-contact-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  color: #1a2b48;
  margin: 0 0 0.1rem;
}

.cours-contact-description {
  margin: 0 0 0 var(--cours-contact-icon-offset);
  color: #6b7280;
}

.cours-contact-title-icon {
  flex-shrink: 0;
  position: relative;
  top: 0.55rem;
}

.cours-contact-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #7991ae;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.cours-contact-btn:hover {
  background: #5c789c;
  transform: translateY(-1px);
}

/* même style typo que « Gagnez en impact… » (management-rh — .mgt-impact-hero-title) */
.cours-domaines-heading {
  margin: 0 0 0.65rem !important;
  max-width: 920px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a2b48;
  text-align: left;
}

.cours-domaines-subtitle {
  margin: 0 0 1.25rem;
  width: 100%;
  max-width: none;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: #4d6480;
  text-align: left;
}

.cours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 920px;
  margin: 0 auto;
  overflow: visible;
}

.cours-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.6rem 0.95rem;
  background: #fefdfb;
  border: 1px solid rgba(52, 82, 124, 0.18);
  border-radius: 10px;
  text-decoration: none;
  color: #323131 !important;
  box-shadow: 0 2px 12px rgba(21, 27, 38, 0.06);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  min-width: 0;
}

.cours-card:hover {
  box-shadow: 0 8px 24px rgba(21, 27, 38, 0.1);
  transform: translateY(-2px);
}

.cours-card img {
  width: 112px;
  height: 112px;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  box-sizing: border-box;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center;
}

.cours-card img[src*="retail"] {
  width: 102px;
  height: 102px;
  transform: none;
}

.cours-card span {
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  color: #1a2b48;
}

.cours-card .cours-card-subtitle {
  font-family: "Manrope", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  color: #6b7280;
  max-width: 26ch;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .domaines {
    display: none;
  }

  .banner-cours .banner-cours-cta-mobile {
    display: block;
  }

  .cours-domaines {
    scroll-margin-top: 5.5rem;
  }

  .cours-domaines-heading {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .cours-contact:not(.cours-contact-hotel-banner) {
    flex-direction: column;
    text-align: center;
  }

  .cours-contact:not(.cours-contact-hotel-banner) .cours-contact-texte {
    text-align: center;
  }

  .cours-contact:not(.cours-contact-hotel-banner) .cours-contact-title {
    justify-content: center;
  }

  .cours-contact:not(.cours-contact-hotel-banner) .cours-contact-description {
    margin-left: 0;
  }

  .cours-grid {
    max-width: none;
    padding: 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .cours-card {
    width: 100%;
  }

}

@media (max-width: 520px) {
  .cours-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================= */
/* ===== ANGLAIS GÉNÉRAL ==== */
/* ========================= */

/* Même écart visuel qu’entre le texte « Anglais général » et le titre « Pourquoi apprendre l'anglais » */
body.page-cours {
  --cours-part-gap: calc(10px + clamp(1.75rem, 3.2vw, 2.35rem));
}

body.page-cours .course-content-layout {
  gap: var(--cours-part-gap);
  padding-bottom: 0;
}

body.page-cours .course-content-layout + .cours-contact.cours-contact-hotel-banner {
  margin-top: var(--cours-part-gap);
}

.section-anglais-general {
  --general-accent-surface: #e9eef9;
  --general-accent-ink: #34527c;
  --general-text: #1a2b48;
}

.general-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.general-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--general-text);
  margin: 0 0 0.75rem !important;
  text-align: left;
  white-space: nowrap;
}

.section-anglais-general > .general-title {
  font-size: clamp(1.2rem, 2.4vw, 2.05rem);
}

.general-hero {
  background: transparent;
  margin: 0 calc(50% - 50vw);
  padding: 0 clamp(16px, 4vw, 48px) clamp(1.75rem, 3.2vw, 2.35rem);
}

.general-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 44%);
  column-gap: clamp(1.25rem, 3.6vw, 2.5rem);
  row-gap: 0.35rem;
  align-items: start;
}

.general-hero-inner > .general-title {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  text-align: left;
  margin: 0.65rem 0 0 !important;
}

.general-hero-intro {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.general-cta {
  display: block;
  margin-top: 1.25rem;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

.general-cta.cta-cours {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: 8px;
}

body.page-cours .cours-contact-hotel-banner-text > .cours-contact-hotel-banner-cta.cta-cours {
  align-self: center;
  margin: 0.5rem auto 0;
}

/* Image pleine hauteur + fondu gauche (réf. bannière hôtellerie) */
body.page-cours .cours-contact-hotel-banner-visual {
  background: #f0f5f9;
}

body.page-cours .cours-contact-hotel-banner-visual img {
  inset: auto;
  right: 0;
  top: 0;
  bottom: 0;
  left: auto;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  transform: translateX(-14%) scale(1.28, 1.14);
  transform-origin: center center;
}

body.page-cours .cours-contact-hotel-banner-visual::before {
  background: linear-gradient(
    90deg,
    #f0f5f9 0%,
    rgba(240, 245, 249, 0.95) 8%,
    rgba(240, 245, 249, 0.72) 20%,
    rgba(240, 245, 249, 0.32) 42%,
    transparent 62%
  );
}

@media (max-width: 900px) {
  body.page-cours .cours-contact-hotel-banner-visual {
    background: transparent;
  }
}

.general-hero-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 500px;
  margin-top: 0;
}

.general-photo-blob {
  max-width: 470px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
}

.general-photo-blob img {
  width: 100%;
  max-width: 470px;
  height: auto;
  display: block;
}

.general-features {
  margin-top: clamp(0.6rem, 1.4vw, 1rem);
  padding: 0 4px;
}

.general-feature-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 920px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.general-feature-item {
  padding: 0.85rem 0.6rem 0.95rem;
  background: #fefdfb;
  border: 1px solid rgba(52, 82, 124, 0.18);
  border-radius: 10px;
  text-align: center;
}

.general-feature-item:last-child {
  border-right: none;
}

.general-feature-icon-wrap {
  width: 102px;
  height: 102px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.general-feature-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(var(--general-icon-scale, 0.92));
  transform-origin: center;
}

/* Normalisation visuelle : les PNG n'ont pas tous les mêmes marges internes */
.general-feature-icon-wrap img[src*="objectifs"] { --general-icon-scale: 0.79; }
.general-feature-icon-wrap img[src*="horizons"] { --general-icon-scale: 0.96; }

.general-feature-item h4 {
  margin: 0 0 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a2b48;
}

.general-feature-item p {
  margin: 0;
}

@media (max-width: 900px) {
  .general-hero {
    padding-top: 0;
  }

  .general-cta.cta-cours {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
  }

  .general-hero-inner {
    grid-template-columns: 1fr;
  }

  .general-hero-inner > .general-title,
  .general-hero-intro,
  .general-hero-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .general-hero-visual {
    max-width: 420px;
    margin: 0 auto;
    justify-self: center;
  }

  .general-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .general-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================= */
/* == TYPO CORPS DE TEXTE == */
/* ========================= */

/* Réf. page IT — .it-essentiel-text p */
body.page-cours {
  --cours-body-font: "Montserrat", sans-serif;
  --cours-body-size: clamp(0.92rem, 1.15vw, 1rem);
  --cours-body-weight: 400;
  --cours-body-leading: 1.55;
  --cours-body-color: #4a5568;
}

body.page-cours main p {
  font-family: var(--cours-body-font);
  font-size: var(--cours-body-size);
  font-weight: var(--cours-body-weight);
  line-height: var(--cours-body-leading);
  color: var(--cours-body-color);
}

body.page-cours .general-feature-item p {
  font-family: var(--cours-body-font);
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  font-weight: var(--cours-body-weight);
  line-height: 1.45;
  color: var(--cours-body-color);
  text-align: center;
}

body.page-cours .cours-contact-hotel-banner-text p.cours-contact-description {
  font-size: clamp(0.78rem, 1.08vw, 0.875rem);
  line-height: 1.38;
  color: #4d6480;
}

/* ========================= */
/* == DÉROULEMENT DES COURS = */
/* ========================= */

.texte-approche.bloc-contenu {
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: 0;
}

.texte-approche > .approche-subtitle {
  font-family: var(--cours-body-font);
  font-size: var(--cours-body-size);
  font-weight: var(--cours-body-weight);
  line-height: var(--cours-body-leading);
  color: var(--cours-body-color);
  margin-top: 4px;
  margin-bottom: 16px;
  text-align: justify;
}

.texte-approche .approche-step > p {
  font-family: var(--cours-body-font);
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  font-weight: var(--cours-body-weight);
  line-height: 1.45;
  color: var(--cours-body-color);
  margin: 0;
  text-align: center;
  width: 100%;
}

.texte-approche .approche-flow-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-top: 6px;
  max-width: 100%;
}

.texte-approche .approche-flow-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #243347;
}

.texte-approche .approche-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  position: relative;
  padding-top: 28px;
}

.texte-approche .approche-step {
  min-width: 0;
  height: auto;
  min-height: 100%;
  padding: 2.15rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: #fefdfb;
  border: 1px solid rgba(52, 82, 124, 0.18);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(21, 27, 38, 0.06);
  box-sizing: border-box;
}

.texte-approche .approche-step:not(:last-child)::after {
  display: none;
}

.texte-approche .approche-step-icon-number {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e9eef9;
  color: #34527c;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-shadow: 0 2px 8px rgba(50, 49, 49, 0.08);
  z-index: 1;
}

.texte-approche .approche-step-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  text-align: center;
}

.texte-approche .approche-step h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a2b48;
  text-align: center;
}

@media (max-width: 768px) {
  .texte-approche .approche-flow-wrap {
    margin-top: 4px;
  }

  .texte-approche .approche-flow-title {
    font-size: 1.02rem;
  }

  .texte-approche .approche-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 24px;
  }

  .texte-approche .approche-step {
    min-height: 12rem;
  }
}

@media (max-width: 520px) {
  .texte-approche .approche-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .texte-approche .approche-step {
    min-height: 0;
  }
}
