/* ============================================
   FFF Core Programs – 4 blurbs (homepage)
   Module class: fff-core-programs
============================================ */

/* Carte */
.et_pb_blurb.fff-core-programs{
  height: 100%;
  display: flex;
  flex-direction: column;

  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);

  overflow: hidden;
  -webkit-font-smoothing: antialiased;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

/* Hover discret */
.et_pb_blurb.fff-core-programs:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  border-color: rgba(66,103,178,0.55);
  background: rgba(255,255,255,0.985);
}

/* Contenu global: padding propre */
.et_pb_blurb.fff-core-programs .et_pb_blurb_content{
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
}

/* Image */
.et_pb_blurb.fff-core-programs .et_pb_main_blurb_image{
  margin: 0 0 12px;
}

.et_pb_blurb.fff-core-programs .et_pb_main_blurb_image img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.et_pb_blurb.fff-core-programs:hover .et_pb_main_blurb_image img{
  transform: scale(1.02);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

/* Titre */
.et_pb_blurb.fff-core-programs .et_pb_module_header{
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 900;
  color: rgba(12,18,28,0.95);
  text-align: center;
}

/* Texte (CTA collé au texte, pas repoussé) */
.et_pb_blurb.fff-core-programs .et_pb_blurb_description{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(12,18,28,0.78);

  text-align: justify;
  text-justify: inter-word;

  flex: 0; /* IMPORTANT: ne pousse plus le CTA en bas */
}

/* Nettoyer les p */
.et_pb_blurb.fff-core-programs .et_pb_blurb_description p{
  margin: 0;
}
.et_pb_blurb.fff-core-programs .et_pb_blurb_description p:last-child{
  margin-bottom: 0;
}

/* CTA (lien) – style souligné, collé au texte */
.et_pb_blurb.fff-core-programs .et_pb_blurb_description a{
  display: inline-block;
  margin-top: 6px; /* collé */

  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;

  color: rgba(66,103,178,1);
  text-decoration: none !important;

  position: relative;
  padding-bottom: 8px;

  transition: transform 0.18s ease, color 0.18s ease;
}

/* Ligne soulignée fine */
.et_pb_blurb.fff-core-programs .et_pb_blurb_description a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 110px;
  height: 2px;
  background: rgba(66,103,178,0.35);
  transition: background-color 0.18s ease, width 0.18s ease;
}

/* Hover CTA */
.et_pb_blurb.fff-core-programs .et_pb_blurb_description a:hover{
  color: rgba(50,82,150,1);
  transform: translateY(-1px);
}
.et_pb_blurb.fff-core-programs .et_pb_blurb_description a:hover::after{
  background: rgba(66,103,178,0.65);
  width: 135px;
}

/* Mobile: éviter les trous de justification */
@media (max-width: 680px){
  .et_pb_blurb.fff-core-programs .et_pb_blurb_description{
    text-align: left;
    text-justify: auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .et_pb_blurb.fff-core-programs,
  .et_pb_blurb.fff-core-programs *{
    transition: none !important;
  }
}