/*Gestion des carte formation de la home page*/

/* 1 � Supprimer la bordure sur la colonne o� tu as mis .no-border */
/*.wp-block-column.no-border {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    border-width: 0 !important;
}*/

.course-card {
  /* border: 1px solid #d9d9d9; */
  overflow: hidden;
  /* background: #f8f8f8; */
  border-radius: 24px;
  margin-top: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 13px;
}

/* .course-content > *:last-child {
  margin-top: auto;
} */

.course-card img {
  width: 100%;
  height: 80px;
  display: flex;
  object-fit: cover;
}

.course-content {
  padding: 20px;
  display: flex;
  background-color: #ffffff;
  flex-direction: column;
  height: 100%;
}

/* Le bloc bouton poussé en bas */
.course-content .wp-block-button {
  margin-top: auto !important;
  text-align: center;
}
/*
.course-title {
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}*/

.course-excerpt {
  color: #555555;
  font-size: 17px !important;
  margin-bottom: 28px;
  line-height: 1.6 !important;
  text-align: center;
}

/* .wp-block-buttons > .wp-block-button {
  display: inline-block;
  margin-top: 20px;
  justify-content: center;
  margin-bottom: 0px;
} */

/* ============================================
   RESPONSIVE – TABLETTE (< 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .course-card {
    margin-bottom: 30px; /* espace entre les cartes */
    /* height: 420px; */
  }

  .course-card img {
    /* height: 120px; image un peu plus haute sur tablette */
    object-fit: contain;
  }

  .course-content {
    padding: 18px;
  }

  .course-excerpt {
    font-size: 16px !important;
    margin-bottom: 24;
  }
}

/* ============================================
   RESPONSIVE – MOBILE (< 768px)
   ============================================ */
@media (max-width: 768px) {
  .course-card {
    border-radius: 20px;
    margin-bottom: 25px;
  }

  .course-card img {
    /*height: 100px; /*pour éviter une image trop haute */
    object-fit: contain; /*évite le recadrage brutal sur mobile*/
    /* background: #ffffff;
    padding: 10px; */
  }

  .course-content {
    padding: 15px;
  }

  .course-content h2 {
    font-size: 18px !important;
  }

  .course-excerpt {
    font-size: 15px !important;
    margin-bottom: 15px;
    padding: 0 5px; /* petite marge interne */
  }

  .wp-block-button__link {
    padding: 10px 20px !important;
    font-size: 15px !important;
  }
}
