/* =========================================================
   DE HOME CAROUSEL
   Design Essentials France
   ========================================================= */

.de-home-carousel {
  width: 100%;
  max-width: 1320px;
  margin: 48px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.de-home-carousel__inner {
  width: 100%;
}

/* HEADER */
.de-home-carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.de-home-carousel__eyebrow {
  margin: 0 0 6px;
  color: #bb4d99;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.de-home-carousel__title {
  margin: 0;
  color: #222;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
}

/* FLÈCHES */
.de-home-carousel__controls {
  display: flex;
  gap: 8px;
}

.de-home-carousel__arrow {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid #74096e;
  border-radius: 50%;

  background: #fff;
  color: #74096e;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.de-home-carousel__arrow:hover {
  background: #74096e;
  border-color: #74096e;
  color: #fff;
  transform: translateY(-1px);
}

/* VIEWPORT */
.de-home-carousel__viewport {
  width: 100%;
  overflow: hidden;
}

/* PISTE */
.de-home-carousel__track {
  display: flex;
  gap: 18px;

  transform: translate3d(0, 0, 0);
  transition: transform .45s ease;

  will-change: transform;
}

/* CARTE */
.de-home-carousel__slide {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: #fff;
  border: 1px solid #ece7e3;

  box-sizing: border-box;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.de-home-carousel__slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

/* IMAGE */
.de-home-carousel__image-link {
  display: block;
  text-decoration: none;
}

.de-home-carousel__image-wrap {
  height: 285px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  background: #fff;
}

.de-home-carousel__image {
  display: block;

  width: auto;
  height: auto;

  max-width: 92%;
  max-height: 260px;

  object-fit: contain;

  transition: transform .3s ease;
}

.de-home-carousel__slide:hover .de-home-carousel__image {
  transform: scale(1.035);
}

/* TEXTE */
.de-home-carousel__content {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 16px;
  text-align: center;
}

.de-home-carousel__name {
  height: 66px;
  min-height: 66px;

  margin: 0 0 8px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: hidden;

  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.de-home-carousel__name a {
  color: #333;
  text-decoration: none;
}

.de-home-carousel__name a:hover {
  color: #c6a15b;
}

/* PRIX */
.de-home-carousel__price {
  min-height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  color: #111;

  font-size: 19px;
  font-weight: 700;
}

/* BOUTON */
.de-home-carousel__button {
  width: 100%;
  min-height: 42px;

  margin-top: auto;
  padding: 10px 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #74096e;
  border: 1px solid #74096e;

  color: #fff !important;
  text-decoration: none !important;

  font-size: 13px;
  font-weight: 700;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.de-home-carousel__button:hover {
  background: #c6a15b;
  border-color: #c6a15b;
  color: #111 !important;
}

/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1199px) {

  .de-home-carousel__slide {
    flex-basis: calc((100% - 36px) / 3);
  }

  .de-home-carousel__image-wrap {
    height: 260px;
  }

  .de-home-carousel__image {
    max-height: 235px;
  }

}

/* =========================================================
   TABLETTE / PETIT ÉCRAN
   ========================================================= */

@media (max-width: 900px) {

  .de-home-carousel__slide {
    flex-basis: calc((100% - 18px) / 2);
  }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .de-home-carousel {
    margin: 34px auto;
    padding-left: 14px;
    padding-right: 14px;
  }

  .de-home-carousel__header {
    align-items: center;
  }

  .de-home-carousel__title {
    font-size: 26px;
  }

  .de-home-carousel__eyebrow {
    font-size: 10px;
  }

  .de-home-carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .de-home-carousel__track {
    gap: 14px;
  }

  .de-home-carousel__slide {
    flex-basis: 82%;
  }

  .de-home-carousel__image-wrap {
    height: 270px;
  }

  .de-home-carousel__image {
    max-height: 245px;
  }

}