/** END FONCTIONS **/
/* 
.fl-rich-text p,
.fl-accordion-content p,
.fl-tabs p,
.fl-rich-text li,
.fl-accordion-content li,
.fl-tabs li,
.fl-rich-text h1,
.fl-accordion-content h1,
.fl-tabs h1,
.fl-rich-text h2,
.fl-accordion-content h2,
.fl-tabs h2,
.fl-rich-text h3,
.fl-accordion-content h3,
.fl-tabs h3,
.fl-rich-text h4,
.fl-accordion-content h4,
.fl-tabs h4,
.fl-rich-text h5,
.fl-accordion-content h5,
.fl-tabs h5,
.fl-rich-text h6,
.fl-accordion-content h6,
.fl-tabs h6 {
  font-size: 16px;
  font-weight: 300;
  color: #000;
  line-height: 1.5;
  margin-bottom: 20px;
}
.fl-rich-text p strong,
.fl-accordion-content p strong,
.fl-tabs p strong,
.fl-rich-text li strong,
.fl-accordion-content li strong,
.fl-tabs li strong,
.fl-rich-text h1 strong,
.fl-accordion-content h1 strong,
.fl-tabs h1 strong,
.fl-rich-text h2 strong,
.fl-accordion-content h2 strong,
.fl-tabs h2 strong,
.fl-rich-text h3 strong,
.fl-accordion-content h3 strong,
.fl-tabs h3 strong,
.fl-rich-text h4 strong,
.fl-accordion-content h4 strong,
.fl-tabs h4 strong,
.fl-rich-text h5 strong,
.fl-accordion-content h5 strong,
.fl-tabs h5 strong,
.fl-rich-text h6 strong,
.fl-accordion-content h6 strong,
.fl-tabs h6 strong {
  font-weight: bold;
}
.fl-rich-text p a,
.fl-accordion-content p a,
.fl-tabs p a,
.fl-rich-text li a,
.fl-accordion-content li a,
.fl-tabs li a,
.fl-rich-text h1 a,
.fl-accordion-content h1 a,
.fl-tabs h1 a,
.fl-rich-text h2 a,
.fl-accordion-content h2 a,
.fl-tabs h2 a,
.fl-rich-text h3 a,
.fl-accordion-content h3 a,
.fl-tabs h3 a,
.fl-rich-text h4 a,
.fl-accordion-content h4 a,
.fl-tabs h4 a,
.fl-rich-text h5 a,
.fl-accordion-content h5 a,
.fl-tabs h5 a,
.fl-rich-text h6 a,
.fl-accordion-content h6 a,
.fl-tabs h6 a {
  font-weight: 500;
  border-bottom: 1px solid;
  color: #000000;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}
.fl-rich-text p a:hover,
.fl-accordion-content p a:hover,
.fl-tabs p a:hover,
.fl-rich-text li a:hover,
.fl-accordion-content li a:hover,
.fl-tabs li a:hover,
.fl-rich-text h1 a:hover,
.fl-accordion-content h1 a:hover,
.fl-tabs h1 a:hover,
.fl-rich-text h2 a:hover,
.fl-accordion-content h2 a:hover,
.fl-tabs h2 a:hover,
.fl-rich-text h3 a:hover,
.fl-accordion-content h3 a:hover,
.fl-tabs h3 a:hover,
.fl-rich-text h4 a:hover,
.fl-accordion-content h4 a:hover,
.fl-tabs h4 a:hover,
.fl-rich-text h5 a:hover,
.fl-accordion-content h5 a:hover,
.fl-tabs h5 a:hover,
.fl-rich-text h6 a:hover,
.fl-accordion-content h6 a:hover,
.fl-tabs h6 a:hover {
  color: #f9d569;
}
.fl-rich-text ul,
.fl-accordion-content ul,
.fl-tabs ul {
  margin-bottom: 20px;
}
.fl-rich-text ul li,
.fl-accordion-content ul li,
.fl-tabs ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}
.fl-rich-text ul li:last-of-type,
.fl-accordion-content ul li:last-of-type,
.fl-tabs ul li:last-of-type {
  margin-bottom: 0;
}
.fl-rich-text ul li:before,
.fl-accordion-content ul li:before,
.fl-tabs ul li:before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #000;
}
.fl-rich-text table,
.fl-accordion-content table,
.fl-tabs table {
  min-width: 100%;
}
.fl-rich-text table thead,
.fl-accordion-content table thead,
.fl-tabs table thead {
  border-bottom: 2px solid #000;
}
.fl-rich-text table thead td,
.fl-accordion-content table thead td,
.fl-tabs table thead td {
  font-weight: bold;
  padding: 30px 20px 30px 0;
}
.fl-rich-text table tbody tr,
.fl-accordion-content table tbody tr,
.fl-tabs table tbody tr {
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
}
.fl-rich-text table tbody tr:hover,
.fl-accordion-content table tbody tr:hover,
.fl-tabs table tbody tr:hover {
  background-color: #f5f5f5;
}
.fl-rich-text table tbody tr:not(:last-of-type),
.fl-accordion-content table tbody tr:not(:last-of-type),
.fl-tabs table tbody tr:not(:last-of-type) {
  border-bottom: 1px solid #ddd;
}
.fl-rich-text table tbody tr td,
.fl-accordion-content table tbody tr td,
.fl-tabs table tbody tr td {
  padding: 30px 20px 30px 0;
  font-size: 14px;
}
.fl-rich-text table p,
.fl-accordion-content table p,
.fl-tabs table p {
  margin-bottom: 0;
}
.fl-rich-text blockquote,
.fl-accordion-content blockquote,
.fl-tabs blockquote {
  background-color: rgba(249, 213, 105, 0.3);
  padding: 40px 20px 20px 20px;
  position: relative;
}
.fl-rich-text blockquote:after,
.fl-accordion-content blockquote:after,
.fl-tabs blockquote:after {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
  display: block;
  font-size: 100px;
}
.fl-accordion .fl-accordion-item {
  border: none;
}
.fl-accordion .fl-accordion-item:not(:last-of-type) {
  border-bottom: 1px solid;
}
.fl-accordion .fl-accordion-item .fl-accordion-button {
  color: #000;
  font-weight: bold;
  padding: 15px 10px 15px 0;
}
.fl-accordion .fl-accordion-item .fl-accordion-button a {
  outline: none !important;
  color: #000;
}
.fl-accordion .fl-accordion-item.fl-accordion-item-active .fl-accordion-button a {
  color: #000;
}
.fl-accordion .fl-accordion-item .fl-accordion-content {
  padding: 30px 0;
}
.fl-accordion .fl-accordion-item .fl-accordion-button-icon-right {
  opacity: 1;
}
.fl-tabs-panels {
  background-color: #000;
  border: none;
}
.fl-tabs-panels .fl-tabs-label {
  color: #ffffff;
  font-weight: bold;
  padding: 15px;
  outline: none !important;
}
.fl-tabs-panels .fl-tabs-label.fl-tab-active {
  background-color: #000000;
  color: #fff;
  border: 0;
  padding: 15px;
  outline: none;
}
.fl-tabs-panels .fl-tabs-panel {
  border: none;
}
.fl-tabs-panels .fl-tabs-panel-content {
  background-color: #e6e6e6;
  padding: 30px 20px;
}
.fl-tabs-labels {
  background-color: #000;
}
.fl-tabs-labels .fl-tabs-label {
  color: #ffffff;
  padding: 30px;
  font-weight: bold;
  text-transform: uppercase;
  outline: none !important;
}
.fl-tabs-labels .fl-tabs-label.fl-tab-active {
  background-color: #000000;
  color: #fff;
  border: 0;
}
@media (min-width: 1024px) {
  .fl-tabs-panels .fl-tabs-panel-content {
    padding: 50px;
  }
  .fl-accordion .fl-accordion-item .fl-accordion-button {
    padding: 25px 15px 25px 0;
  }
}
 */

.fl-row.has__trash_deco {
  position: relative;

  &::after {
    content: "";
    display: block;
    width: 100%;
    height: var(--mfr_trash_h, 32px);
    position: absolute;
    inset: auto 0 0 0;
    background-image: var(--trash_url, url('/wp-content/uploads/2026/10/Trash_bar.svg'));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
  }
}

.fl-module {

  p {
    line-height: var(--lh-150);
  }

  h2,
  h3,
  h4,
  h5,
  p:has(.title) {
    margin-block-end: clamp(10px, 8.571px + 0.446vw, 15px);
  }

  &.mfr__img_has_deco,
  .mfr__img_has_deco {
    .fl-photo-content {
      position: relative;

      &::after {
        content: "";
        position: absolute;
        display: block;
        inset: auto auto -4px 0;
        height: 5px;
        width: min(260px, 50%);
        background-color: #1D1D1D;
      }
    }
  }

  .mfr__img_has_deco_bordered,
  &.mfr__img_has_deco_bordered {
    .fl-photo-content {
      position: relative;

      &::after {
        content: '';
        position: absolute;
        inset: -6px -4px;
        border: 3px solid var(--primary-clr, #CEAB5D);
        transform: rotate(-1.3deg);
        pointer-events: none;
      }
    }
  }

  &.mfr__img_has_deco_trash,
  .mfr__img_has_deco_trash {
    position: relative;

    &::after {
      content: "";
      width: 100%;
      height: var(--mfr_trash_h, 32px);
      position: absolute;
      inset: auto 0 0 0;
      background-image: var(--trash_url, url('/wp-content/uploads/2026/10/Trash_bar.svg'));
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center bottom;
    }
  }

  .text_module_has_quote {
    display: inline-flex;
    gap: 15px;

    &::before {
      content: "";
      width: clamp(32px, 29.143px + 0.893vw, 42px);
      height: clamp(22px, 19.143px + 0.893vw, 32px);
      position: relative;
      display: inline-flex;
      background-image: url('/wp-content/uploads/2026/11/quote_black.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      flex: 0 0 auto;
    }
  }

  .has_2_span_diff {
    &>span:not(:first-child) {
      margin-block-start: -0.35em;
      display: block;
    }
  }

  .mfr-carousel {
    --mfr-carousel-arrow-size: 70px;

    .mfr-carousel__arrow {
      background-image: url('/wp-content/uploads/2026/10/slider_left.svg');
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;

      svg {
        display: none;
      }

      &.mfr-carousel__arrow--next {
        background-image: url('/wp-content/uploads/2026/10/Slider.svg');

      }
    }
  }

  /* Liste */
  .c__list-orange {
    --list-accent: #CEAB5D;
    --list-gap: 1.75em;

    list-style: none;
    padding-left: 0;
    margin: 0 0 1.5em;
  }

  /* Niveau 1 : carré plein */
  .c__list-orange>li {
    position: relative;
    padding-left: var(--list-gap);
    margin-bottom: 1em;
  }

  .c__list-orange>li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    /* fallback */
    top: calc(1lh / 2);
    /* centré sur la 1re ligne */
    width: 8px;
    height: 8px;
    background-color: var(--list-accent);
  }

  .c__list-orange>li:last-child {
    margin-bottom: 0;
  }

  /* Niveau 2 : cercle vide */
  .c__list-orange li ul,
  .c__list-orange li ol {
    list-style: none;
    padding-left: 0;
    margin: 1em 0 0;
  }

  .c__list-orange li li {
    position: relative;
    padding-left: var(--list-gap);
    margin-bottom: .6em;
  }

  .c__list-orange li li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    top: calc((1lh - 7px) / 2);
    width: 7px;
    height: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    background: none;
  }

  /* Variante <ol> : numéros dorés au lieu du carré */
  ol.c__list-orange {
    counter-reset: c-list;
  }

  ol.c__list-orange>li {
    counter-increment: c-list;
  }

  ol.c__list-orange>li::before {
    content: counter(c-list) ".";
    width: auto;
    height: auto;
    top: 0;
    background: none;
    color: var(--list-accent);
    font-weight: 700;
  }


  /* accordeon */
  .fl-accordion {
    .fl-accordion-item {
      border: none;
      padding-block: 20px;
      margin: 0;

      &:not(:first-child) {
        border-top: 1px solid var(--full-white-clr);
      }
    }

    .fl-accordion-button {
      font-family: var(--font-family-primary);
      line-height: var(--lh-110);
      font-size: clamp(var(--fs-22), 0.282vw + 20.94px, var(--fs-25));
      font-weight: var(--fw-700);
      padding: 0;
    }

    .fl-accordion-heading {
      padding: 0;
    }

    .fl-accordion-content {
      padding-inline: 0;
      padding-block: 10px 0;
      line-height: var(--lh-150);
      font-weight: var(--fw-400);
      color: var(--full-black-clr);
      font-size: var(--fs-18);

      p {
        font: inherit;
        color: inherit;
      }
    }

    .fl-accordion-button .fl-accordion-button-icon-left,
    .fl-accordion-button .fl-accordion-button-icon-right {
      opacity: 1;
    }
  }

  .gform_wrapper {


    form {
      .gform_fields {
        grid-row-gap: clamp(25px, 20.714px + 1.339vw, 40px);
      }

      .gfield_label {
        font-family: var(--font-family-primary);
        font-weight: 700;
        color: var(--base-clr);
        line-height: var(--lh-110);
        font-size: var(--fs-16);
        margin-block-end: 8px;
      }

      label span {
        font: inherit;
        color: inherit;
      }

      /* .gfield_radio:has(.gchoice:nth-child(2)),
      .gfield_checkbox:has(.gchoice:nth-child(2)) {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;

        &>* {
          width: max-content;
        }
      } */

      input:not([type="radio"], [type="checkbox"]),
      textarea,
      select {
        border: 1px solid #8B97AF80;
        padding: clamp(10px, 8.571px + 0.446vw, 15px) clamp(12px, 9.714px + 0.714vw, 20px);
        color: var(--full-black-clr);
        font-size: var(--fs-16);
        line-height: var(--lh-110);
        font-weight: 400;
        background-color: var(--full-white-clr);
        outline: none;

        &:hover,
        &:focus-visible {
          border-color: var(--primary-clr);
        }
      }

      textarea {
        min-height: 119px;
        padding-top: 20px;
        resize: vertical;
      }

      /* input[type="radio"],
      & input[type="checkbox"] {
        accent-color: var(--primary-clr);
        width: 24px;
        height: 24px;
      } */

      .ginput_container_radio,
      .ginput_container_checkbox {

        .gfield_checkbox,
        .gfield_radio {
          display: flex !important;
          flex-wrap: wrap !important;
          gap: 12px !important;

          .gchoice {
            padding-inline-end: 0 !important;
          }
        }

        .gchoice {
          position: relative;

          input {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
          }
        }

        .gform-field-label {
          display: inline-flex;
          align-items: center;
          gap: clamp(10px, 8.571px + 0.446vw, 15px);
          position: relative;
          font-family: var(--font-family-primary);
          font-weight: var(--fw-400);
          color: var(--base-clr);
          line-height: var(--lh-110);
          font-size: var(--fs-16);
          cursor: pointer;

          &::before {
            content: "";
            width: clamp(18px, 16.286px + 0.536vw, 24px);
            ;
            height: clamp(18px, 16.286px + 0.536vw, 24px);
            ;
            display: block;
            border: 1px solid var(--full-black-clr, #000000);
            position: relative;
            border-radius: 50%;
            background-color: transparent;
          }

          &::after {
            content: "";
            width: clamp(14px, 12.286px + 0.536vw, 20px);
            ;
            height: clamp(14px, 12.286px + 0.536vw, 20px);
            ;
            position: absolute;
            display: block;
            left: 2px;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--primary-clr);
            opacity: 0;
            visibility: hidden;
            transition: opacity .3s, visibility.3s;
            border-radius: 50%;
          }
        }

        input:checked+label {
          &::after {
            opacity: 1;
            visibility: visible;
          }
        }
      }

      .ginput_container_checkbox {
        .gform-field-label {
          &::before {
            transition: background-color .3s;
          }

          &::after,
          &::before {
            border-radius: 3px;
          }

          &::after {
            background-color: transparent;
            background-image: url('/wp-content/uploads/2026/11/check.svg');
            background-position: center;
            background-size: 60%;
            background-repeat: no-repeat;
          }
        }

        input:checked+label {

          &::before {
            background-color: var(--primary-clr);
          }
        }
      }

      .ginput_container_date {
        border: 1px solid #8B97AF80;
        width: max-content;
        max-width: 100%;
        padding-inline-end: clamp(12px, 9.714px + 0.714vw, 20px);

        input {
          border: none;
        }

        .gform-calendar-icon::before {
          color: var(--base-clr) !important;
        }
      }

      button[type="submit"] {
        display: inline-flex;
        margin: 0;

        &::before,
        &::after {
          height: calc(100% - 2px);
        }

        span {
          display: inline-flex;
          gap: 10px;

          &::after {
            content: '';
            position: relative;
            width: 16px;
            height: 16px;
            mask-repeat: no-repeat;
            mask-position: center;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-position: center;
            -webkit-mask-size: contain;
            background-color: var(--_btn_clr);
            mask-image: url('data:image/svg+xml,<svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.1048 6.59943L11.1368 12.117C10.8706 12.4126 10.4025 12.4371 10.0757 12.1726C9.78015 11.9065 9.75398 11.4071 10.0201 11.1116L13.7757 6.94054L1.10562 7.60456C0.699926 7.62582 0.338656 7.30053 0.317395 6.89484C0.296133 6.48914 0.621422 6.12787 1.02711 6.10661L13.6972 5.4426L9.52621 1.687C9.23062 1.42085 9.20446 0.921538 9.4706 0.625954C9.73675 0.33037 10.2361 0.304202 10.5316 0.570347L16.0492 5.53839C16.3448 5.80453 16.371 6.30385 16.1048 6.59943Z" fill="white" /> </svg> ');
            -webkit-mask-image: url('data:image/svg+xml,<svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.1048 6.59943L11.1368 12.117C10.8706 12.4126 10.4025 12.4371 10.0757 12.1726C9.78015 11.9065 9.75398 11.4071 10.0201 11.1116L13.7757 6.94054L1.10562 7.60456C0.699926 7.62582 0.338656 7.30053 0.317395 6.89484C0.296133 6.48914 0.621422 6.12787 1.02711 6.10661L13.6972 5.4426L9.52621 1.687C9.23062 1.42085 9.20446 0.921538 9.4706 0.625954C9.73675 0.33037 10.2361 0.304202 10.5316 0.570347L16.0492 5.53839C16.3448 5.80453 16.371 6.30385 16.1048 6.59943Z" fill="white" /> </svg> ');
          }
        }
      }

      button[type="submit"],
      button[type="submit"]:focus-visible {
        background: transparent;
        outline: none;
        border: none;
      }
    }
  }

  &.has__white_quote_deco,
  .has__white_quote_deco {
    .mfr_numbers {
      position: relative;
      isolation: isolate;

      &::before {
        content: "";
        width: 112px;
        height: 84px;
        display: block;
        position: absolute;
        left: -60px;
        top: -26px;
        background-image: url('/wp-content/uploads/2026/11/Quote_white.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: -1;
      }
    }
  }

  .has_hand_deco,
  &.has_hand_deco {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      display: block !important;
      left: auto;
      right: 0;
      top: -70px;
      width: 84px;
      aspect-ratio: 84 / 158;
      overflow: hidden;
      background-image: url('/wp-content/uploads/2026/11/hand.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      z-index: 2;
      transform: rotateZ(25deg) rotateY(180deg);
    }
  }
}

@media (max-width: 768px) {
  .fl-module {
    .mfr-table--stack .mfr-table__body td[data-label]::before {
      /* opacity: 1;
      font-size: var(--fs-16);
      font-weight: var(--fw-400);
      color: var(--base-clr);
      background-color: var(--primary-clr);
      line-height: var(--lh-110);
      padding: 5px; */
      display: none;
    }

    &.has__white_quote_deco,
    & .has__white_quote_deco {
      & .mfr_numbers {
        &::before {
          left: -20px;
          top: -26px;
          width: 92px;
          height: 54px;
        }
      }
    }

    .has_hand_deco,
    &.has_hand_deco {
      &::before {
        top: -40px;
        width: 64px;
        aspect-ratio: 64 / 98;
      }
    }

    .mfr-carousel {
      --mfr-carousel-ratio: 4/4.5;
    }
  }
}