@media (max-width: 767px) {
  .elementor-ribbon.elementor-ribbon-left {
    transform: rotate(-0deg) translateX(0px);
    max-width: none;
    width: 100%;
  }

  .offer--beer .elementor-cta-content,
  .offer--wine .elementor-cta-content {
    align-content: baseline;
    padding-top: 55px;
  }

  .elementor-ribbon.elementor-ribbon-left {
    transform: rotate(0deg) translateX(0px);
    left: auto;
    right: 0;
    transform-origin: 100% 100%;
    width: 100%;
    max-width: unset;
  }

  #index .h2.products-section-title {
    padding: 60px 0 50px;
    text-align: center;
  }

  #index .h2.products-section-title:after {
    content: none;
  }

  .offer--beer h2,
  .offer--wine h2 {
    height: 165px;
    display: flex;
    justify-content: center;
    padding-top: unset;
  }

  /*SLIDER ARROW*/
  .carousel .direction {
    position: relative;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .carousel .carousel-control {
    position: relative;

  }

  .carousel-control .icon-next,
  .carousel-control .icon-prev {
    position: relative;
  }

  #carousel.carousel a.right.carousel-control {
    overflow: unset;
  }

  .carousel-control .icon-next::before {
    transform: unset;
  }
}

@media (max-width: 990px) {

  .slider-inner {
    position: relative;
  }

  .slider-inner .slick-dots {
    position: absolute;
    bottom: -33px;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .slider-inner .slick-dots li {
    margin: 0 0.25rem;
  }

  .slider-inner .slick-dots button {
    display: block;
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: none;
    border-radius: 100%;
    background-color: var(--main-color);
    text-indent: -9999px;
    opacity: 0.5;
  }

  .slider-inner .slick-dots .slick-active button {
    opacity: 1;
  }

}


@media (max-width: 1023px) {

  .products .slider-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    grid-gap: 10px
  }

  .s-bons-plans .ce-gallery-icon img {
    max-width: 300px ;
  }

}

@media (max-width: 1024px) {

  article.product-miniature.layout-2 {
    grid-column: 1/-1;
  }

}

@media (min-width: 768px) and (max-width: 1200px) {

  #offers > div > div > div:first-child .elementor-ribbon.elementor-ribbon-left {
    transform: rotate(0deg) translateX(0px);
    left: auto;
    right: 0;
    transform-origin: 100% 100%;
    width: 100%;
    max-width: unset;
  }

}

@media (max-width: 1199px) {

  .title-w-fili h2.elementor-heading-title {
    position: relative;
  }

  .title-w-fili h2.elementor-heading-title:after {
    content: url(../../../img/2024/home/filigrane-top.png);
    position: absolute;
    top: -26px;
    right: calc(-28px + (-30 - -28) * ((100vw - 320px) / (1199 - 320)));
  }

}

@media (max-width: 1300px) {

  .s-home-element .elementor-container {
    max-width: 90% !important;
  }

}

@media (min-width: 768px) {

  .products-w-universe-inner {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (min-width: 1200px) {

  .products-w-universe-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-w-universe .layout-2 {
    /*grid-column: 1 / span 2;*/
    grid-column: auto / span 2;
    /*grid-row: 1;*/
  }

  .products-w-universe .layout-2 ~ .layout-2 {
    grid-column: 3 / span 2;
    grid-row: 2;
  }

  /*
  --------------------------------------
  Top bons plans
  --------------------------------------
  */

  .s-bons-plans .elementor-image-gallery:after {
    content: url(../../../img/2024/home/filigrane-top.png);
    position: absolute;
    top: -40px;
    right: calc(-28px + (-35 - -28) * ((100vw - 1200px) / (1920 - 1200)));
  }

  .s-bons-plans-categories .elementor-image-gallery:after {
    content: url(../../../img/2024/home/left-arrow.png);
    position: absolute;
    bottom: 60px;
    left: -85px;
  }

  /*
  --------------------------------------
  Vos instants Conso
  --------------------------------------
  */

  .s-instants-conso .elementor-image-gallery:before {
    content: url(../../../img/2024/home/filigrane-top.png);
    position: absolute;
    top: -40px;
    right: -35px;
  }

  .s-instants-conso .elementor-image-gallery:after {
    content: url(../../../img/2024/home/filigrane-bottom.png);
    position: absolute;
    bottom: -40px;
    left: -35px;
  }


}

@media (min-width: 1025px) {

  .product-miniature.layout-2 .product-thumbnail,
  .product-miniature.layout-2 .product-thumbnail img {
    height: 100%;
  }

  .product-miniature.layout-2 .product-thumbnail img {
    object-fit: cover;
    object-position: right;
  }

  .products-w-universe-inner,
  .slider-inner {
    max-width: calc(900px + (1140 - 900) * ((100vw - 1024px) / (1920 - 1024)));
  }

}

@media (max-width: 1299px) {

  .title-w-fili .elementor-heading-title:after {
    content: url(../../../img/2024/home/filigrane-top.png);
    position: absolute;
    top: -25px;
    right: -30px;
  }

}

@media (min-width: 1300px) {

  /*
  --------------------------------------
  Top bons plans
  --------------------------------------
  */

  .s-bons-plans .elementor-image-gallery:after {
    content: url(../../../img/2024/home/filigrane-top.png);
    position: absolute;
    top: -40px;
    right: -35px;
  }

  .s-bons-plans-categories .elementor-image-gallery:after {
    content: url(../../../img/2024/home/left-arrow.png);
    position: absolute;
    bottom: 60px;
    left: -85px;
  }

}

@media (min-width: 1440px) {

  .carousel-control {
    left: 0;
    /*transform: translateX(-568px);*/
  }

  .carousel-control.right {
    right: 0;
    /*transform: translateX(568px);*/
  }

}

@media (min-width: 2000px) {

  /*
  --------------------------------------
  Catégories
  --------------------------------------
  */

  .s-home-categories > .elementor-container {
    max-width: 85% !important;
  }

  .s-home-categories .ce-gallery-item img {
    max-width: 125px;
  }

  .s-home-categories .ce-gallery-caption {
    font-size: 28px;
  }

  .elementor-widget-image-gallery figcaption {
    margin-top: 1em;
  }

}
