.m-formations {
  .m-formations__titre {
    margin: 0;
  }

  .m-formations__wrapper-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 60px;

    @media (width < 1200px) {
      display: initial;
      margin-bottom: 30px;
    }

    .facetwp-filters-wrapper {
      position: relative;
      max-width: 100%;

      @media (width < 1200px) {
        margin-bottom: 30px;
      }

      @media (width < 768px) {
        overflow: hidden;
      }
    }

    .facetwp-filters-arrow {
      display: none;

      @media (width < 768px) {
        position: absolute;
        top: 50%;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 48px;
        padding: 0;
        border: 0;
        background: var(--wp--preset--color--base);
        cursor: pointer;
        transform: translateY(-50%);
      }

      &.is-hidden {
        display: none !important;
      }

      svg {
        display: block;
        width: 45px;
        height: 48px;
      }
    }

    .facetwp-filters-arrow--prev {
      left: 0;

      svg {
        transform: rotate(180deg);
      }
    }

    .facetwp-filters-arrow--next {
      right: 0;
    }

    .facetwp-filters {
      display: flex;
      gap: 15px;
      justify-content: center;

      @media (width < 768px) {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        max-width: 100%;
        scrollbar-width: none;
        scroll-behavior: smooth;
      }

      &::-webkit-scrollbar {
        display: none;
      }

      .facetwp-facet {
        @media (width < 768px) {
          flex-shrink: 0;
        }
      }

      .facetwp-type-reset {
        display: flex;
        margin: 0;
        align-self: flex-start;

        &.facetwp-hidden .facetwp-hide-empty {
          font-weight: 500;
          background: var(--wp--preset--color--primary);
          color: var(--wp--preset--color--base);
        }

        .facetwp-hide-empty {
          border-radius: 100px;
          background: var(--wp--preset--color--base);
          border: 1px solid var(--wp--preset--color--primary);
          color: var(--wp--preset--color--primary);
          font-size: 1.125rem;
          padding: 8px 15px;
          font-style: normal;
          font-weight: 500;
          line-height: normal;
          text-decoration: none;

          &:hover {
            background-color: var(--wp--preset--color--primary-700);
            color: var(--wp--preset--color--primary);
          }

          @media (width < 768px) {
            font-size: 1rem;
          }
        }
      }

      .facetwp-facet-profils {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin: 0;

        @media (width < 768px) {
          flex-wrap: nowrap;
        }

        .facetwp-checkbox {
          display: block;
          cursor: pointer;
          background: none !important;
          padding-left: 0 !important;
          margin: 0 !important;

          &:hover {
            .facetwp-display-value {
              background-color: var(--wp--preset--color--primary-700);
            }
          }

          .facetwp-display-value {
            display: inline-block;
            border-radius: 100px;
            background: var(--wp--preset--color--base);
            border: 1px solid var(--wp--preset--color--primary);
            color: var(--wp--preset--color--primary);
            font-size: 1.125rem;
            padding: 8px 15px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;

            @media (width < 768px) {
              font-size: 1rem;
            }
          }

          .facetwp-counter {
            display: none;
          }

          &.checked .facetwp-display-value {
            font-weight: 500;
            background: var(--wp--preset--color--primary);
            color: var(--wp--preset--color--base);
          }

          &.disabled .facetwp-display-value:hover {
            background: none;
          }
        }
      }
    }
  }

  .m-formations__wrapper-container__texte {
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media (width < 1200px) {
      margin-bottom: 40px;
    }

    .m-formations__texte {
      max-width: 1100px;
      margin: 0 auto;
    }
  }

  .m-formations__wrapper-container__slider {
    @media (width < 768px) {
      overflow: visible;
      margin-right: -20px;
    }

    .swiper-wrapper {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      column-gap: 20px;

      @media (width < 1200px) {
        display: flex;
        flex-wrap: nowrap;
        column-gap: initial;
      }
    }

    .swiper-slide {
      height: auto;
      padding: 8px 0;
    }

    .swiper-pagination-formations {
      display: none;

      @media (width < 1200px) {
        display: flex;
        margin-bottom: 40px;
      }
    }
  }
}