@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Aeonik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.es-wysiwyg p {
  margin-bottom: 1rem;
}

.es-wysiwyg p, .es-wysiwyg li{
  font-size: 20px;
}

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

.es-wysiwyg ul, .es-wysiwyg ol {
  padding-left: 1.2rem;
}

.es-wysiwyg ul li {
  list-style-type: disc;
  line-height: 1.3;
}

.es-wysiwyg a {
  color: var(--color-turquoise) !important;
}

.es-gutenberg h1 {
  font-size: 75px;
}

.es-gutenberg h2 {
  font-size: 45px;
  margin-bottom: 3rem;
  font-weight: normal;
}

.es-gutenberg h3 {
  font-size: 30px;
  margin-bottom: var(--space-lg);
  font-weight: normal;
}

.es-gutenberg h4 {
  font-size: 22px;
  margin-bottom: 0;
  margin-top: var(--space-lg);
  font-weight: bold;
}

.es-gutenberg a {
  color: var(--color-turquoise);
  text-decoration: underline;
}

.es-gutenberg p {
  margin-bottom: 0.8rem;
}

.es-gutenberg ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.es-gutenberg ul li {
  list-style-type: disc;
  line-height: 1.5;
  padding-bottom: 0.4rem;
  padding-top: 0.4rem;
}

.es-gutenberg ul li > ul li {
  list-style-type: circle;
  line-height: 1.5;
}

.outlined-box {
  border: 1px solid var(--color-light-grey-rgba);
  padding: 20px;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-lg);
}

.outlined-box ul li {
  margin-bottom: 12px;
}

.outlined-box h3 {
  font-weight: normal;
  font-size: 35px;
  margin-bottom: 5px;
}

.outlined-box h4 {
  font-weight: normal;
  font-size: 32px;
  color: var(--color-turquoise);
  line-height: 1.2;
}

.wp-block-table td, .wp-block-table th {
  border-left: 0;
  border-right: 0;
  border-color: var(--color-light-grey-rgba);
  vertical-align: baseline;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wp-block-table tr:first-child td {
  border-top: 0;
}

.wp-block-table tr:last-child td {
  border-bottom: 0;
}


/* Container pour le SVG animé */
svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: hidden;
}

/* =================================== */
/* Balises typographiques */
/* =================================== */

h1 {
  font-size: 75px;
  font-family: var(--font-primary);
  font-weight: normal;
  margin-bottom: var(--space-xl);
  color: var(--color-white);
}

h2 {
  font-size: 40px;
  font-family: var(--font-primary);
  font-weight: normal;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

h2.centered {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
  margin-bottom: var(--space-lg);
}

h3 {
  margin-bottom: var(--space-md);
}

p {
  font-family: var(--font-primary);
  color: var(--color-white);
  font-size: 20px;
  font-weight: normal;
  line-height: 1.3;
  margin: 0;
  margin-bottom: var(--space-md);
}

a {
  font-family: var(--font-primary);
  color: var(--color-turquoise);
}


label {
   font-family: var(--font-primary);
   margin-bottom: 8px;
   color: var(--color-light-grey);
   opacity: 0.5;
}

input,
select {
   background-color: transparent;
   padding: 10px;
   border-radius: 8px;
   border: 1px solid var(--color-light-grey-rgba);
   font-family: var(--font-primary);
   color: var(--color-white);
}

input {
  border-radius: 0px;
}

.layout-with-cards {
  display: flex;
  flex-direction: row;
  gap: var(--space-xl);
  align-items: flex-start;
  min-height: 100vh;
  overflow: visible;
  padding: 20px 3rem 40px 3rem;
  margin: 100px 0px 0px 0px;
}

.course-type-cards.content__cards {
  position: sticky;
  top: 150px;
  width: 20%;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-self: flex-start;
  height: max-content;
  padding-bottom: 20px;
}

.layout-with-cards .content__details {
  width: 80%;
}

.course-type-cards .tuile-card {
  width: 150px;
  background-color: var(--color-white);
  border-radius: 25px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}

/* Styles spécifiques pour les différents types de tuiles actives */
.course-type-cards .tuile-card.tuile-reguliers.active {
  background-color: var(--color-green) !important;
}

.course-type-cards .tuile-card.tuile-ete.active {
  background-color: var(--color-yellow) !important;
}

/* Styles hover pour les tuiles spécifiques */
.course-type-cards .tuile-card.tuile-reguliers:hover:not(.active) {
  background-color: var(--color-green) !important;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.course-type-cards .tuile-card.tuile-ete:hover:not(.active) {
  background-color: var(--color-yellow) !important;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.course-type-cards .tuile-card h3 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
  color: var(--color-black);
  line-height: 1.1;
}

/* Animation hover pour les cartes génériques */
.course-type-cards .tuile-card:hover:not(.tuile-reguliers):not(.tuile-ete) {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Container et cercle pour les images des cartes */
.course-type-cards .tuile-card .image-container {
  width: 100%;
  margin: 20px 0px 15px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.course-type-cards .tuile-card .image-circle {
  position: relative;
  width: 85px;
  height: 85px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  flex-grow: 0;
  flex-shrink: 0;
}

.course-type-cards .tuile-card .card-image {
  width: 150px;
  z-index: 1;
}

/* =================================== */
/* BOUTONS GLOBAUX */
/* =================================== */
.btn-blue {
  font-family: var(--font-primary);
  font-weight: normal;
  border-radius: 25px;
  padding: 15px 25px;
  text-transform: uppercase;
  background-color: var(--color-turquoise);
  border: 1px solid var(--color-turquoise);
  color: var(--color-black);
  cursor: pointer;
  width: fit-content;
  min-width: 200px;
}

.btn-grey {
  font-family: var(--font-primary);
  font-weight: normal;
  border-radius: 25px;
  padding: 15px 25px;
  text-transform: uppercase;
  background-color: transparent;
  border: 1px solid var(--color-light-grey-rgb);
  color: var(--color-white);
  cursor: pointer;
  min-width: 200px;
}

.btn-black {
  font-family: var(--font-primary);
  font-weight: normal;
  border-radius: 25px;
  padding: 15px 25px;
  text-transform: uppercase;
  background-color: var(--color-black);
  border: 1px solid var(--color-black);
  color: var(--color-white);
  cursor: pointer;
}

.btn-grey-reverse {
  font-family: var(--font-primary);
  font-weight: normal;
  border-radius: 25px;
  padding: 15px 25px;
  text-transform: uppercase;
  background-color: transparent;
  border: 1px solid var(--color-light-grey);
  color: var(--color-white);
  cursor: pointer;
}

/* =================================== */
/* FORMES ANIMÉES SVG GLOBALES */
/* =================================== */

.forms {
  /* Sortir du conteneur parent pour prendre toute la largeur */
  position: relative;
  overflow: hidden;
}

.forms svg {
  height: auto;
  display: block;
}

.forms-mobile {
  display: none;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.forms-mobile svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .forms {
    display: none;
  }
  
  .forms-mobile {
    display: block;
  }
}

/* Container pour le SVG animé */
svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: hidden;
}

/* =================================== */
/* TYPOGRAPHIE GLOBALE */
/* =================================== */
.page-title {
  font-size: 75px;
  font-family: var(--font-primary);
  font-weight: normal;
  margin-bottom: var(--space-xl);
  color: var(--color-white);
}

.section-title {
  font-size: 30px;
  font-family: var(--font-primary);
  font-weight: normal;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.content-text {
  font-family: var(--font-primary);
  color: var(--color-white);
  font-weight: normal;
  line-height: 1.5;
}

.content-link {
  font-family: var(--font-primary);
  color: var(--color-turquoise);
}

/* =================================== */
/* LAYOUT GLOBAL */
/* =================================== */
.content {
  margin: 100px 0px 0px 0px;
}

.row {
  display: flex;
  gap: 20px;
}

.col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 425px) {
  .row {
    flex-direction: column;
    align-items: stretch !important;
  }
}

/* =================================== */
/* FORMULAIRES GLOBAUX */
/* =================================== */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 50px 0px;
}

.form-label {
  font-family: var(--font-primary);
  margin-bottom: 8px;
  color: var(--color-light-grey);
  opacity: 0.5;
}

.form-input,
.form-select {
  background-color: transparent;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--color-light-grey-rgba);
  font-family: var(--font-primary);
  color: var(--color-white);
}

/* =================================== */
/* CARTES GLOBALES */
/* =================================== */
.card-dark {
  background-color: #1d1d1d;
  border-radius: var(--space-md);
  padding: var(--space-lg);
}

.card-item {
  padding: var(--space-lg);
  border-radius: 8px;
  color: var(--color-black);
}

/* =================================== */
/* COULEURS D'ARRIÈRE-PLAN */
/* =================================== */
.bg-yellow {
  background-color: var(--color-yellow);
}

.bg-green {
  background-color: var(--color-green);
}

.bg-turquoise {
  background-color: var(--color-turquoise);
}

.bg-grey {
  background-color: var(--color-light-grey);
}

/* =================================== */
/* UTILITAIRES */
/* =================================== */
.divider {
  border-bottom: 1px solid var(--color-light-grey);
  opacity: 0.2;
  margin: var(--space-md) 0;
  width: 100%;
}

/* =================================== */
/* STYLES SVG SPÉCIFIQUES PAR PAGE */
/* =================================== */
/* Styles pour les couleurs SVG spécifiques */
.cls-cyan {
  fill: #42c2bd;
}

.cls-yellow {
  fill: #e8bf4e;
}

.cls-turquoise {
  fill: #79c0bb;
}

.cls-purple {
  fill: #6b45f5;
}

.cls-red {
  fill: #dc4937;
}

.cls-green-light {
  fill: #7a936f;
}

.cls-green-dark {
  fill: #365f63;
}

/* =================================== */
/* LAYOUT SPÉCIALISÉ */
/* =================================== */
.content-split {
  display: flex;
  flex-wrap: nowrap;
  gap: 100px;
}

.content-left {
  flex: 3;
  color: var(--color-white);
}

.content-right {
  flex: 1;
}

/* =================================== */
/* CARTES SPÉCIALISÉES */
/* =================================== */
.cart-content {
  display: flex;
  gap: 50px;
  margin: var(--space-xl) 0px;
}

.cart-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: 8px;
}

/* =================================== */
/* TYPOGRAPHIE PRODUIT */
/* =================================== */
.product-title {
  font-family: var(--font-primary);
  font-weight: bold;
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

.product-subtitle {
  font-family: var(--font-primary);
  color: var(--color-light-grey);
  opacity: 0.8;
}

/* =================================== */
/* COURS ET NIVEAUX */
/* =================================== */
.course-item {
   width: 100%;
   display: flex;
   flex-direction: row;
   align-items: center;
}

.course-item__title {
   z-index: 0;
   height: 120px;
   width: 50%;
   padding: 30px;
   margin-left: -70px;
   padding-left: 100px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   background-color: #3131317a;
}

.course-item__title h3 {
   margin-bottom: 5px;
}

.course-item__levels {
   height: 120px;
   width: 50%;
   padding: 30px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   background-color: #3131317a;
   gap: 15px;
}

.course-item__levels span{
   color: var(--color-white);
}

.image-container {
   width: 100%;
   margin: 25px 0px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.image-circle {
   position: relative;
   width: 100px;
   height: 100px;
   background-color: var(--color-white);
   border-radius: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
   overflow: visible;
}

.card-image {
   width: 200px;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   max-width: none;
   max-height: none;
}

/* =================================== */
/* STYLES PANIER GLOBAUX */
/* =================================== */
.cart {
  color: var(--color-white);
}

.cart-content {
  display: flex;
  gap: 50px;
  margin: var(--space-xl) 0px;
}

.cart-content p {
  margin: 0;
}

.cart-list {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.cart-item {
  display: flex;
  gap: var(--space-lg);
  background-color: #1d1d1d;
  border-radius: var(--space-md);
  padding: var(--space-lg);
}

.cart-item__left {
  flex: 0 0 auto;
}

.cart-item__right {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: var(--space-md) 0px;
}

.cart-item__price {
  color: var(--color-white);
  font-size: 25px;
}

.cart-item__content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-md) 0px;
}

.cart-item__footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.cart-resume {
  flex: 1;
  height: fit-content;
  border-radius: var(--space-md);
}

.cart-resume__card {
  border: 1px solid var(--color-light-grey-rgb);
  height: fit-content;
  padding: var(--space-lg);
  border-radius: var(--space-md);
}

.cart-resume__content {
  display: flex;
  justify-content: space-between;
  margin: var(--space-md) 0px;
}

.cart-resume__title {
  font-weight: bold;
  color: var(--color-white);
  font-size: 20px;
  margin-bottom: 40px;
}

.cart-resume__label {
  font-weight: bold;
  color: var(--color-white);
}

.header-product__title--background {
  z-index: 1;
  padding: 25px;
  border-radius: 100px;
}

.header-product__title--background img {
  width: 100%;
  object-fit: contain;
}

.product-title {
  margin: 0;
  font-weight: bold;
  color: var(--color-white);
  font-size: 20px;
}

.product-subtitle {
  font-size: 20px;
}

.subscription-student {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-radius: var(--space-sm);
  font-family: var(--font-primary);
  color: var(--color-white);
  border: 1px solid var(--color-light-grey-rgb);
}

.subscription-form {
  border: 1px solid var(--color-light-grey-rgb);
  padding: var(--space-lg);
  border-radius: var(--space-md);
}

.subscription-form__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-weight: bold;
  color: var(--color-white);
}

.subscription-form label {
  font-family: var(--font-primary);
  margin-bottom: 8px;
  color: var(--color-light-grey);
  opacity: 0.5;
}

.subscription-form input,
.subscription-form select {
  background-color: transparent;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--color-light-grey-rgb);
  font-family: var(--font-primary);
  color: var(--color-white);
}

.subscription-form .col {
  display: flex;
  flex-direction: column;
  margin: var(--space-lg) 0px;
}

.subscription-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
}

.subscription-form__footer a {
  font-family: var(--font-primary);
  color: var(--color-turquoise);
  text-decoration: underline;
}

/* Classes utilitaires pour couleurs spéciales */
.purple {
  color: var(--color-purple) !important;
}

.card-back {
  background-color: var(--color-light-black);
  border-radius: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
}

/* #region ES - Accordion  */
.es-accordeon-items {
  margin: var(--space-lg) 0;
}

.es-accordeon-item {
  border-top: 1px solid var(--color-grey);
  border-bottom: 1px solid var(--color-grey);
  margin-bottom: -1px;
}

.es-accordeon-item:last-child {
  border-bottom: none;
}

.es-accordeon-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.es-accordeon-header:hover {
  opacity: 0.8;
}

.es-accordeon-header span {
  font-size: 35px;
  min-width: 50px;
}

.es-accordeon-title {
  flex: 1;
  color: var(--color-white);
  font-size: 26px;
  margin: 0;
  font-weight: normal;
}

.es-accordeon-arrow {
  color: var(--color-white);
  transition: transform 0.3s ease;
  line-height: 1;
}

.es-accordeon-item.is-open .es-accordeon-arrow {
  transform: rotate(180deg);
}

.es-accordeon-content {
  overflow: hidden;
  display: none;
}

.es-accordeon-content-inner {
  padding: 0 0 var(--space-lg)  var(--space-md);
}

.parcours-ecole-maison .es-accordeon-content-inner p {
  margin: 0;
  margin-left: 30px;
  color: var(--color-white);
  line-height: 1.6;
}

.parcours-ecole-maison .es-accordeon-content-inner a {
  color: var(--color-turquoise);
}

.es-accordeon-item.is-open .es-accordeon-content {
  display: block;
}

.es-accordeon-text {
  white-space: pre-line;
}

.es-accordeon-text p, .es-accordeon-text ul, .es-accordeon-text ol {
  color: var(--color-turquoise);
}

.es-accordeon-text a {
  text-decoration: underline;
}
/* #endregion ES - Accordion  */

/* #region parcours ressources cards */
.cartes-blanches-wrapper {
  margin: 100px 0px;
}

.cartes-blanches-wrapper .description-container {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.es-white-cards__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  max-width: 100%;
  justify-content: center;
}

.es-white-cards__card {
  transition: all 0.3s ease;
}

.es-white-cards__card:hover{
  transform: translate( 0, -5px);
}



.bubble-columns .courses-works p {
  width: 80%;
}

.bubble-columns .courses-works-steps p {
  width: 100%;
  color: var(--color-black);
  margin-bottom: 25px;
}

/* Container grid responsive pour les étapes - 4 colonnes par défaut */
.bubble-columns .courses-works-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  text-align: center;
  width: 100%;
  margin-top: var(--space-xl);
}

/* Items d'étape pour grid layout */
.bubble-columns .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Numéro circulaire de l'étape */
.bubble-columns .step-item__number {
  font-size: 80px;
  background-color: #00c3be;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-black);
  font-family: var(--font-primary);
  font-weight: normal;
}

/* Container d'information de l'étape */
.bubble-columns .step-item__info {
  background-color: #00c3be;
  border-radius: 200px;
  width: 100%;
  padding: 70px 20px 75px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-black);
}

.bubble-columns .step-item__info__title {
  min-height: 100px;
  display: flex;
  align-items: start;
  justify-content: center;
  text-align: center;
  width: 75%;
  font-size: 24px;
  margin: 0 auto 40px auto;
  color: var(--color-black);
}

.bubble-columns .step-item__info__description {
  text-align: left;
}

.bubble-columns .step-item__info ul {
  margin: 0px 0px 25px 0px;
  padding-inline-start: 30px;
}

.bubble-columns .step-item__info li {
  text-align: left;
}

/* ================== STYLES SPÉCIAUX ÉTAPES ================== */

/* Styles alternés pour les étapes 2 et 4 */
.bubble-columns .courses-works-steps .step-item:nth-child(2) .step-item__number,
.bubble-columns .courses-works-steps .step-item:nth-child(4) .step-item__number {
  border-radius: 200px 200px 0px 0px;
}

.bubble-columns .courses-works-steps .step-item:nth-child(2) .step-item__info,
.bubble-columns .courses-works-steps .step-item:nth-child(4) .step-item__info {
  border-radius: 0px 0px 200px 200px;
}

/* Style spécial pour la 4ème étape */
.bubble-columns .courses-works-steps .step-item:nth-child(4) .step-item__number,
.bubble-columns .courses-works-steps .step-item:nth-child(4) .step-item__info {
  background-color: var(--color-white);
}

.bubble-columns .courses-works-steps .step-item:nth-child(4) .step-item__info {
  padding: 70px 20px 175px 20px;
}

.es-white-cards__card {
  background-color: var(--color-beige);
  border-radius: 10px;
  padding: var(--space-lg) 1.5rem;
  min-height: 410px;
}

.es-white-cards__card--article {
  background-color: var(--color-green);
  border-radius: 10px;
  padding: var(--space-lg) 1.5rem;
  padding-bottom: 6.6rem;
  position: relative;
}
.es-white-cards__card--article span {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: var(--space-md);
  color: var(--color-black);
}
.es-white-cards__card--article h3 {
  font-size: 30px;
  margin-bottom: var(--space-lg);
  color: var(--color-black);
}

.es-white-cards__card--article .btn-container {
  position: absolute;
  left: 0;
  bottom: var(--space-lg);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  width: 100%;
}

.es-white-cards__card--article .outline-btn {
  border-color: var(--color-black);
  color: var(--color-black);
  text-align: center;
  width: 100%;
}

.es-white-cards__card--article .outline-btn:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.es-white-cards__card .es-white-cards__card__img-container {
  display: flex;
  height: 130px;
  padding-bottom: 20px;
}

.es-white-cards__card img {
  width: 50%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  object-position: left;
}

.es-white-cards__card p {
  margin: 0;
  color: var(--color-black);
}
/* #endregion parcours ressources cards */

/* #region es-cta-section  */
.es-cta-section {
  text-align: center;
}
.es-cta-section .cta-btns {
  margin-top: 40px;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.es-cta-section .es-cta-section-title {
  font-size: 40px;
}

.es-cta-section .cta-btns.vertical {
  flex-direction: column;
}

.es-cta-section .cta-btns a {
  min-width: 390px;
}

@media (max-width: 1180px) {
  .es-cta-section .cta-btns a{
    min-width: 270px;
  }
}

@media (max-width: 768px) {
  .es-white-cards__card:hover {
    transform: translateY(0px);
  }
  .es-cta-section .cta-btns{
    flex-wrap: wrap;
  }
  .es-cta-section .cta-btns a{
    min-width: auto;
  }
}
/* #endregion es-cta-section  */

/* #region es-bottom-navigation  */
.es-bottom-navigation {
  border-top: 1px solid var(--color-dark-grey);
  padding-top: 2rem;
}

.es-bottom-navigation > a {
  margin-right: 1rem;
}

.es-bottom-navigation > a:last-child {
  margin: 0;
}

@media (max-width: 480px) {
  .es-bottom-navigation{
    display: flex;
    gap: var(--space-md);
    flex-direction: column;
    align-items: flex-start;
  }
}
/* #endregion es-bottom-navigation  */

.es-custom-content h2, .es-custom-content h3, .es-custom-content h4, .es-custom-content h5{
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

.es-gutenberg h1 {
  font-size: 75px;
}

.es-gutenberg h2 {
  font-size: 45px;
  margin-bottom: 3rem;
  font-weight: normal;
}

.es-gutenberg h3 {
  font-size: 30px;
  margin-bottom: var(--space-lg);
  font-weight: normal;
}

.es-gutenberg h4 {
  font-size: 22px;
  margin-bottom: 0;
  margin-top: var(--space-lg);
  font-weight: bold;
}

.es-custom-content figure {
  margin-top: 1.5rem;
}

.es-custom-content ul {
  padding-left: 1rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.es-custom-content ul li {
  list-style: disc;
}

.d-md-none {
  display: none;
}

.logo-ed-quebec {
  margin-top: 2rem;
  display: block;
}

@media (min-width: 1200px) {
  .es-white-cards__cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
  }
}


@media (max-width: 1250px) {
  h1 {
    font-size: 55px;
  }

  h2, .es-cta-section .es-cta-section-title {
    font-size: 34px;
  }

  p, .es-wysiwyg p, .es-wysiwyg li {
    font-size: 18px;
  }

  .es-gutenberg h1 {
    font-size: 55px;
  }

  .es-gutenberg h2 {
    font-size: 34px;
  }

  .es-gutenberg h3 {
    font-size: 24px;
  }

  .es-gutenberg h4 {
    font-size: 20px;
  }
  
  .es-gutenberg p, .es-gutenberg ul, .es-gutenberg ol {
    font-size: 16px;
  }

  .bubble-columns .courses-works-steps .step-item:nth-child(2) .step-item__number,
  .bubble-columns .courses-works-steps .step-item:nth-child(4) .step-item__number {
    border-radius: 50%;
  }

  .bubble-columns .courses-works-steps .step-item:nth-child(2) .step-item__info,
  .bubble-columns .courses-works-steps .step-item:nth-child(4) .step-item__info {
    border-radius: var( --border-radius-l);
  }

  .bubble-columns .courses-works-steps .step-item:nth-child(4) .step-item__info {
    padding: 30px;
  }

  .bubble-columns .courses-works-steps {
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
  }
  
  .bubble-columns .step-item {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
  }

  
  .bubble-columns .step-item__number {
    font-size: 32px;
    width: 80px;
  }

  .bubble-columns .step-item__info {
    border-radius: var(--border-radius-l);
    width: 100%;
    padding: 30px;
    gap: 1rem;
  }

  .bubble-columns .step-item__info__title {
    min-height: auto;
    display: block;
    align-items: start;
    justify-content: start;
    text-align: left;
    width: 100%;
    font-size: 26px;
    margin: 0 auto;
    margin-bottom: 10px;
  }
}


@media (max-width: 1024px) {

  .layout-with-cards{
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 20px;
  }

  .page-prealables .layout-with-cards, .parcours-ecole-maison .layout-with-cards {
    margin-top: 0;
  }

  .course-type-cards.content__cards {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row; /* Horizontal au lieu de vertical */
    background-color: var(--color-black);
    padding: 15px;
    z-index: 100;
    gap: 15px;
    overflow-x: auto; /* Scroll horizontal si nécessaire */
    justify-content: flex-start;
  }

  .layout-with-cards .content__details {
    width: 100%;
  }
      
  /* Les liens <a> prennent chacun 50% de la largeur */
  .course-type-cards.content__cards a {
    flex: initial;
    width: 44%;
  }
  
  /* Cards deviennent des boutons compacts - masquer les images */
  .course-type-cards .tuile-card {
    width: 44%;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
  }
  
  .course-type-cards .tuile-card h3 {
    margin-bottom: 0;
    font-size: 16px;
    text-align: center;
  }
  
  /* Masquer complètement les images en mobile pour gagner de la place */
  .course-type-cards .tuile-card .image-container {
    display: none;
  }
}


@media (max-width: 1180px) {
  .es-accordeon-title {
    font-size: 24px;
  }
}


@media (max-width: 768px) {
  
  .es-white-cards__cards {
    grid-template-columns: repeat(1, 1fr);
    align-items: stretch;
  }
  
  .es-white-cards__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: auto;
  }
  
  .parcours-ecole-maison .es-accordeon-content-inner p {
    margin-left: 10px;
    font-size: 16px;
  }

  .es-accordeon-header span{
    font-size: 23px;
    min-width: 30px;
  }
  .es-accordeon-title {
    font-size: 20px;
  }

  .es-accordeon-header {
    padding: 1.5rem 0;
  }
  
  p, .es-wysiwyg p, .es-wysiwyg li{
    font-size: 16px;
  }
  .d-md-none {
    display: block;
  }

  h1 {
    margin-bottom: var(--space-lg);
  }

  h2, .es-cta-section .es-cta-section-title {
    font-size: 28px;
  }

  .es-cta-section .cta-btns a {
    min-width: auto;
  }
}

@media (max-width: 600px) {
  .course-type-cards .tuile-card:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 40px;
    margin-bottom: var(--space-lg);
  }

  h2, .es-cta-section .es-cta-section-title {
    font-size: 28px;
  }
}


@media (max-width: 375px) {
  .es-white-cards__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  .course-type-cards .tuile-card {
    padding: 8px 12px;
  }
  
  .course-type-cards .tuile-card h3 {
    font-size: 14px;
  }

  .layout-with-cards .content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
