:root {
  --legramme-gray: #F3F3F3;
  --legramme-yellow: #FF0;
  --legramme-white: #ffffff;
  --legramme-body-text: #000000;
  --legramme-section-title-font-weight: 600;
  --legramme-product-background-color: #f9f9f9;
  --legramme-hover-color: #D5D5D5;
  --legramme-container-gap: 30px;

  --swiper-scrollbar-border-radius: 0;
  --swiper-scrollbar-bg-color: var(--legramme-gray);
  --swiper-scrollbar-drag-bg-color: var(--legramme-body-text);
}

.swiper-horizontal > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
  left: 0!important;
  width: 100%!important;
}

.button {
  transition: .3s;
  padding: 8px 50px;

  span {
    border-bottom: none;
  }

  &:hover {
    text-decoration: none;
  }
}

.essential_annoucement_bar_wrapper div[class^="essential_annoucement_titles_wrapper_"] div[class^="essential_annoucement_bar_title_container_"] {
  font-weight: 400!important;
}

.hero-section {
  overflow: visible;

  .shopify-hero-section {

    .hero-section__container {
      display: grid;

      @media screen and (min-width: 1440px) {
        min-height: 600px;

        &.hero-section__container-full-height {
          min-height: 120vh;
        }
      }

      &.hero-section__container-full-height {
        .hero-section__content-container {
          &.vertical-bottom {
            padding: 20% 40px 20px;
          }
        }
      }


      .hero-section__image-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        .hero-section__image {
          height: 100%;

          .aspect-ratio {
            height: 100%;
            overflow: hidden;
            padding-bottom: 0 !important;
          }
        }
      }

      .hero-section__content-container {
        color: var(--legramme-white);

        &.vertical-bottom {
          position: sticky;
          bottom: 0;
          align-self: end;
          padding: 10% 40px 20px;
          z-index: 1;
        }
        &.vertical-center {
          @media screen and (min-width: 1024px) {
            bottom: 50%;
            transform: translateY(50%);
          }
        }

        &.horizontal-center {
          text-align: center;
          left: 0;
          right: 0;
          margin: 0 auto;
        }

        &.horizontal-left {
          left: 0;
        }

        &.horizontal-right {
          right: 0;
          justify-self: end;
        }


        .hero-section__content-title {
          @media screen and (min-width: 1024px) {
            font-size: 51px;
          }

          & + p {
            span {
              font-size: 18px;
              text-transform: uppercase;
            }
          }
        }

        .section-button {
          .button {
            background: var(--legramme-white);
            border: 1px solid var(--legramme-white);
            color: var(--legramme-body-text);

            &:hover {
              background: var(--legramme-gray);
              border-color: var(--legramme-gray);
            }
          }
        }
      }
    }
  }
}

.shopify-hero-slider-section {
  .hero-slider-section {
    overflow: visible;

    &.hero-slider-section-full-height {
      .flickity-viewport {
        @media screen and (min-width: 1440px) {
          min-height: 120vh !important;
        }
      }
    }

    .flickity-viewport {
      overflow: visible;
      @media screen and (min-width: 1440px) {
        min-height: 600px !important;
      }

      .flickity-slider {
        left: 0!important;
        transform: none!important;

        .hero-slide__slide_item {
          left: 0!important;
          transform: none!important;
          display: grid;
          padding-bottom: 0 !important;
          height: 100%;
          width: 100%;

          .aspect-ratio {
            padding-bottom: 0 !important;
            height: 100%;
            width: 100%;
          }

          .hero-slide__content {
            position: sticky;
            bottom: 0;
            align-self: end;
            max-width: none;
            padding: 20% 40px 50px;
            color: var(--legramme-white);
            z-index: 1;

            .hero-slide__subtitle {
              font-size: 1.2rem;
              text-transform: uppercase;
            }

            .hero-slide__button {
              background: var(--legramme-white);
              border: 1px solid var(--legramme-white);
              color: var(--legramme-body-text);

              &:hover {
                background: var(--legramme-gray);
                border-color: var(--legramme-gray);
              }
            }
          }
        }
      }
    }
  }
}

.collection-links {
  padding-top: 50px;
  padding-bottom: 50px;

  &[aria-hidden="false"] {
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255 255 255 / .8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 15px 0;

    .collection-links-title-wrapper {
      margin-bottom: 0;
      margin-right: 10px;
      .collection-links-title {
        color: rgb(0 0 0 / .6);
        font-size: 14px;
      }
    }
  }

  .collection-links-title-wrapper {
    text-align: center;
    margin-bottom: 20px;

    .collection-links-title {
      font-weight: var(--legramme-section-title-font-weight);

      @media screen and (min-width: 1440px) {
        font-size: 30px;
      }
    }
  }

  .collection-links-list-wrapper {
    .collection-links-list {
      display: flex;
      justify-content: center;
      gap: 10px;

      .collection-links-list-item {
        display: inline-block;

        a {
          background: var(--legramme-gray);
          padding: 4px 15px;
          transition: .3s;

          &:hover {
            
            background: var(--legramme-hover-color);
          }
        }
      }
    }
  }
}


.product-carousel-section__container {
  .product-carousel-section__title {
    font-weight: var(--legramme-section-title-font-weight);
  }

  .product-carousel-section__content-container {
    .product-carousel-section__products {
      padding-bottom: 24px;

      .badges-wrapper {
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 1;
        font-size: 14px;
        text-transform: lowercase;

        .badge {
          padding: 2px 10px;
          background: var(--legramme-body-text);
          color: var(--legramme-white);
          text-transform: lowercase;

          &.badge-new {
          }
        }
      }
      .product-item {
        background: var(--legramme-product-background-color);

        @media screen and (min-width: 1024px) {
          padding: 15px;

          .wk-button.wk-button--floating {
            top: 10px;
            right: 15px;
          }
        }

        .product-item__text {
          position: relative;
          width: 100% !important;
          left: auto;
          top: auto;
        }
      }
    }
  }
}

.editorial-carousel-section__container {
  @media screen and (min-width: 1024px) {
    padding-left: var(--legramme-container-gap);
    padding-right: var(--legramme-container-gap);

    .editorial-carousel-section__title {
      padding-left: 0;
      padding-right: 0;
    }
  }

  .editorial-carousel-section__title {
    font-weight: var(--legramme-section-title-font-weight);
  }

  .editorial-carousel-section__wrapper {
    @media screen and (min-width: 1024px) {
      margin-left: -5px;
      margin-right: -5px;
    }

    .editorial-carousel-section__content {
      &:nth-child(1),
      &:nth-child(2),
      &:nth-child(3) {
        border-right: none;
      }

      &:nth-child(1),
      &:nth-child(2),
      &:nth-child(3),
      &:nth-child(4) {
        @media screen and (min-width: 1024px) {
          padding-left: 5px;
          padding-right: 5px;
        }
      }

      &.editorial-carousel-section__content-contenu {
        min-height: 650px;

        &:not(:has(a)),
        & > a {
          display: grid;
          height: 100%;
          position: relative;
        }

        .editorial-carousel-section__image {
          overflow: hidden;
          .aspect-ratio {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;

            img {
              transition: .3s;
            }
          }
        }
        &:hover {
          .editorial-carousel-section__image {
            img {
              transform: rotate(5deg) scale(1.3);
            }
          }
        }
        @media screen and (min-width: 1024px) {
          padding-bottom: 0;

          .editorial-carousel-section__image {
            margin-bottom: 0;
          }
        }

        .editorial-carousel-section__content-text {
          
          
          
          

          position: sticky;
          bottom: 0;
          align-self: end;
          padding: 20% 40px 20px;
          color: var(--legramme-white);
          z-index: 1;

          .editorial-carousel-section__content-title {
            display: flex;
            justify-content: space-between;
            align-items: center;

            &:after {
              content: '';
              display: block;
              width: .8em;
              height: .8em;
              background: currentColor;
            }
          }
        }
      }
    }
  }
}

.seo-text {
  margin: 40px auto;
  max-width: 920px;
  text-align: justify;

  .seo-text-content-wrapper {
    & > button {
      position: absolute;
      display: block;
      z-index: 1;
      left: 50%;
      bottom: 0;
      transform: translate(-50%);
      background: var(--legramme-body-text);
      color: var(--legramme-white);
    }
  }

  html:not(.no-js) & {
    & {
      .seo-text-content-wrapper {
        display: block;
        overflow: initial;
      }
    }

    &:not(.seo-text-visible) {
      .seo-text-content-wrapper {
        position: relative;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        overflow: hidden;

        &:after {
          content: '';
          position: absolute;
          top: 50%;
          bottom: 0;
          left: 0;
          right: 0;
          background: linear-gradient(to top, rgba(255, 255, 255, .8), rgba(255, 255, 255, .4));
        }
      }
    }
  }
}

.reinsurance-slider {
  margin: 20px auto;
  overflow: hidden;
  display: flex;

  &:hover {
    .reinsurance-slider-track {
      animation-play-state: paused;
    }
  }

  .reinsurance-slider-track {
    flex: 0 0 100%;
    display: flex;

    will-change: transform; /* We should be nice to the browser - let it know what we're going to animate. */
    animation: reinsurance-slider-autoplay 10s linear infinite;
  }

  .reinsurance-slider-item {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-size: 46px;
    white-space: nowrap;

    &:after {
      content: '';
      display: block;
      width: 12px;
      height: 12px;
      background: var(--legramme-body-text);
      margin-left: 40px;
      margin-right: 40px;
    }

    &:hover {
      color: var(--legramme-yellow);
    }
  }
}

@keyframes reinsurance-slider-autoplay {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

#shopify-section-footer {
  .footer__reinsurance {
    padding: 20px 15px;

    @media screen and (min-width: 1440px) {
      display: flex;
      padding: 80px 40px;

      .footer__reinsurance-item {
        flex-grow: 1;
        padding: 0 var(--legramme-container-gap);
      }
    }

    .footer__reinsurance-item {
      text-align: center;

      img {
        display: inline-block;
        width: auto;
      }

      .footer__reinsurance-item-title {
        font-size: 17px;
        font-weight: 700;
        margin-top: 20px;

        &:not(:last-child) {
          margin-bottom: 20px;
        }
      }
    }
  }
}

.text-image-section-container {
  margin: 50px 0 40px;
  padding: 0 var(--legramme-container-gap);

  .text-image-section {
    .text-image-section-section__title {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;

      &:after {
        content: '';
        display: block;
        width: .8em;
        height: .8em;
        background: currentColor;
      }
      @media screen and (min-width: 1440px) {
        font-size: 30px;
      }
    }

    .text-image-section-section__title,
    .text-image-section--content-text {
      margin-bottom: 30px;
    }

    @media screen and (min-width: 1440px) {
      display: flex;
      flex-direction: row;
      align-items: center;

      & > div {
        width: 50%;

        &.text-image-section--content {
          padding-left: 100px;
          padding-right: 100px;
        }
      }

      &.text-image-section-left {
        flex-direction: row-reverse;
      }
    }

    .button {
      background: var(--legramme-body-text);
      border: 1px solid var(--legramme-body-text);
      color: var(--legramme-white);
    }
  }
}

.faq-section {
  margin: 0 auto;
  max-width: 920px;

  .faq-title {
    font-size: 2rem;
    font-weight: bold;
    text-transform: lowercase;
    margin-bottom: 1.5rem;
  }

  .faq-list {

    .faq-item {
      &:not(:last-child) {
        margin-bottom: 1px;
      }

      &[open] {
        .faq-question {
          font-weight: 700;

          &::after {
            content: '-';
          }
        }
        .faq-answer {
          display: block;
        }
      }

      .faq-question,
      .faq-answer {
        padding: 15px 30px;
        background: var(--legramme-gray);
      }

      .faq-answer {
        padding-top: 0;
      }

      .faq-question {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;

        &::after {
          content: '+';
          font-size: 1.2rem;
          transition: transform 0.3s ease;
          font-weight: 400;
        }
      }
    }
  }
}