.m-boucle {
  /* Mobile : marge du bas réduite (écrase la marge du bloc définie en ligne). */
  @media (max-width: 767px) {
    margin-bottom: 90px !important;
  }

  .container {
    @media (max-width: 767px) {
      max-width: none;
      padding-left: 0;
      padding-right: 0;
    }
  }

  .m-boucle__panel {
    background-color: #F5F7FA;
    border-radius: 24px;
    padding: 64px 129px;

    @media (max-width: 767px) {
      padding: 24px;
    }
  }

  .m-boucle__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 64px;

    @media (max-width: 767px) {
      flex-direction: column;
      margin-bottom: 32px;
    }

    @media (max-width: 576px) {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  .m-boucle__titre {
    font-family: var(--wp--preset--font-family--primary);
    color: var(--wp--preset--color--secondary);
    font-size: 32px;
    font-weight: var(--wp--custom--font-weight--semi-bold);
    line-height: 40px;
    margin: 0;
  }

  .m-boucle__texte {
    color: var(--wp--preset--color--secondary);
    font-size: 16px;
    line-height: 24px;
    margin-top: 8px;
  }

  .m-boucle__lien {
    white-space: nowrap;
    color: var(--wp--preset--color--secondary) !important;
    font-family: var(--wp--preset--font-family--secondary) !important;
    font-size: 14px !important;
    font-weight: var(--wp--custom--font-weight--regular) !important;
    line-height: 20px !important;
    letter-spacing: 0.1px !important;
    text-decoration: underline !important;
    text-underline-position: from-font;
  }

  .m-boucle__loop {
    display: flex;
    gap: 32px;

    @media (max-width: 991px) {
      flex-direction: column;
    }
  }

  .m-boucle__item {
    flex: 1 1 0;
    min-width: 0;
  }
}

.card-actu {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-actu__image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.card-actu__image {
  width: 100%;
  height: 328px !important;
  object-fit: cover;
  display: block;

  @media (max-width: 1200px) {
    height: 240px;
  }
}

.card-actu__badge {
  width: fit-content;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
  font-size: 14px;
  font-weight: var(--wp--custom--font-weight--regular);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 16px;
}

.card-actu__titre {
  font-family: var(--wp--preset--font-family--secondary);
  font-size: 24px;
  font-weight: var(--wp--custom--font-weight--regular);
  line-height: 32px;
  margin: 16px 0 5px;
}

.card-actu__titre-lien {
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
}

.card-actu__texte {
  color: var(--wp--preset--color--dark-blue);
  font-size: 14px;
  font-weight: var(--wp--custom--font-weight--regular);
  line-height: 24px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
