/* CAPDECO Fast home */

.page-index .breadcrumb,
body#index .breadcrumb {
  display: none !important;
}

.page-index #wrapper,
.page-index #content-wrapper,
.page-index #main,
.page-index #content,
.page-index .page-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-index #wrapper > .container,
.page-index #wrapper .container,
.page-index #wrapper .row {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.page-index #content-wrapper {
  float: none;
}

.cd-home {
  background: #fff;
}

/* Hero */
.cd-hero {
  position: relative;
  overflow: hidden;
  background: #f3eee6;
}

.cd-hero picture,
.cd-hero img {
  width: 100%;
}

.cd-hero img {
  min-height: 330px;
  max-height: 560px;
  object-fit: cover;
}

.cd-hero__content {
  position: absolute;
  left: max(42px, calc((100vw - var(--cd-max)) / 2 + 70px));
  bottom: 54px;
  max-width: 470px;
  color: #111;
}

.cd-hero__content p {
  margin: 0 0 12px;
  font-size: 15px;
}

.cd-hero__content h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -.035em;
}

.cd-hero__content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 48px;
  background: #111;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

/* Catégories */
.cd-category-showcase {
  padding: 74px 30px 78px;
  background: #f8f3ec;
}

.cd-category-showcase__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.cd-category-showcase__head {
  text-align: center;
  margin: 0 0 42px;
}

.cd-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: #6f665c;
}

.cd-category-showcase__head h2,
.cd-product-slider__head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cd-category-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 34px;
}

.cd-category-card {
  display: block;
  color: #111;
}

.cd-category-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #ede8df;
  transition: transform .24s ease, opacity .24s ease;
}

.cd-category-card span {
  display: block;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.cd-category-card:hover img {
  transform: translateY(-3px);
  opacity: .94;
}

.cd-category-card:hover span {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Slider produits */
.cd-product-slider {
  padding: 70px 30px 78px;
  background: #fff;
  border-top: 1px solid #f1eee9;
  border-bottom: 1px solid #f1eee9;
}

.cd-product-slider__head {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.cd-product-slider__head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05;
}

.cd-product-slider__shell {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
}

.cd-product-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1px;
  padding: 0 0 10px;
  scrollbar-width: none;
}

.cd-product-track::-webkit-scrollbar {
  display: none;
}

.cd-product-card {
  position: relative;
  min-width: 0;
  color: #111;
  scroll-snap-align: start;
  text-align: center;
}

.cd-product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  background: #f7f6f3;
  overflow: hidden;
  color: #111;
}

.cd-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .28s ease;
}

.cd-product-card__heart {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.cd-product-card__heart svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.cd-product-card__badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  min-height: 74px;
  padding: 9px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.cd-product-card__quick {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  z-index: 3;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #111;
  color: #111;
  font-size: 14px;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, background .15s ease, color .15s ease;
}

.cd-product-card__media:hover .cd-product-card__quick,
.cd-product-card:focus-within .cd-product-card__quick {
  opacity: 1;
  transform: translateY(0);
}

.cd-product-card__media:hover .cd-product-card__quick:hover {
  background: #111;
  color: #fff;
}

.cd-product-card__media:hover img {
  transform: scale(1.018);
}

.cd-product-card__body {
  padding: 21px 8px 0;
}

.cd-product-card__type {
  margin: 0 0 8px;
  color: #8a8278;
  font-size: 15px;
  line-height: 1.35;
}

.cd-product-card__name {
  display: block;
  color: #111;
  font-size: 15px;
  line-height: 1.4;
}

.cd-product-card__name:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cd-product-card__price {
  margin: 10px 0 0;
  color: #111;
  font-size: 18px;
  line-height: 1.2;
}

.cd-product-swatches {
  min-height: 39px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cd-product-swatch {
  width: 35px;
  height: 35px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7d3cd;
  border-radius: 3px;
  background: #fff;
}

.cd-product-swatch:first-child {
  border-color: #111;
}

.cd-product-swatch > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: #f6f4f1;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.cd-product-swatches__more {
  margin-left: 6px;
  color: #3c3833;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cd-product-slider__btn {
  position: absolute;
  top: 39%;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded8cf;
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: background .15s ease, color .15s ease;
}

.cd-product-slider__btn span {
  font-size: 31px;
  line-height: 1;
  transform: translateY(-1px);
}

.cd-product-slider__btn:hover {
  background: #111;
  color: #fff;
}

.cd-product-slider__btn--prev {
  left: -22px;
}

.cd-product-slider__btn--next {
  right: -22px;
}

/* Editorial */
.cd-editorial {
  padding: 76px 30px 88px;
  background: #fbfaf7;
}

.cd-editorial__intro {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.cd-editorial__intro h2,
.cd-category-tiles__head h2 {
  margin: 0;
  color: #111;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -.04em;
}

.cd-editorial__intro p:not(.cd-kicker) {
  max-width: 760px;
  margin: 18px auto 0;
  color: #3d3832;
  font-size: 17px;
  line-height: 1.65;
}

.cd-editorial__intro a {
  display: inline-flex;
  margin-top: 26px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.cd-editorial__image {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  background: #f1ece4;
}

.cd-editorial__image img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  transition: transform .4s ease;
}

.cd-editorial__image:hover img {
  transform: scale(1.012);
}

/* Tuiles */
.cd-category-tiles {
  padding: 74px 30px 86px;
  background: #fff;
}

.cd-category-tiles__head {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}

.cd-tile-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
}

.cd-tile {
  position: relative;
  display: block;
  min-height: 520px;
  overflow: hidden;
  background: #eee;
  color: #fff;
}

.cd-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.cd-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.54));
}

.cd-tile__content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cd-tile__content strong {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.cd-tile__content em {
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.35;
}

.cd-tile__content span {
  margin-top: 22px;
  min-width: 132px;
  height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 600;
}

.cd-tile:hover img {
  transform: scale(1.035);
}

.cd-tile:hover .cd-tile__content span {
  background: #111;
  color: #fff;
}

/* Responsive home */
@media (max-width: 1500px) {
  .cd-product-slider__btn--prev {
    left: 8px;
  }

  .cd-product-slider__btn--next {
    right: 8px;
  }
}

@media (max-width: 1100px) {
  .cd-product-track {
    grid-auto-columns: calc((100% - 48px) / 3);
  }

  .cd-tile-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .cd-tile {
    min-height: 460px;
  }
}

@media (max-width: 1000px) {
  .cd-category-showcase__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 900px) {
  .cd-hero img {
    min-height: 420px;
  }

  .cd-hero__content {
    left: 22px;
    right: 22px;
    bottom: 34px;
  }

  .cd-hero__content h1 {
    font-size: 34px;
  }

  .cd-hero__content a {
    height: 44px;
    min-width: 135px;
  }
}

@media (max-width: 760px) {
  .cd-product-slider {
    padding: 52px 18px 58px;
  }

  .cd-product-track {
    grid-auto-columns: calc((100% - 16px) / 2);
    gap: 16px;
  }

  .cd-product-slider__btn {
    display: none;
  }

  .cd-product-card__body {
    padding-top: 16px;
  }

  .cd-product-card__quick {
    display: none;
  }

  .cd-product-card__heart {
    right: 12px;
    top: 12px;
  }

  .cd-product-card__price {
    font-size: 16px;
  }

  .cd-product-swatch {
    width: 31px;
    height: 31px;
  }

  .cd-product-swatches {
    margin-top: 14px;
  }
}

@media (max-width: 700px) {
  .cd-editorial {
    padding: 52px 18px 60px;
  }

  .cd-editorial__intro {
    margin-bottom: 26px;
  }

  .cd-editorial__intro p:not(.cd-kicker) {
    font-size: 15px;
    line-height: 1.55;
  }

  .cd-editorial__image img {
    aspect-ratio: 4/3;
  }

  .cd-category-tiles {
    padding: 52px 18px 60px;
  }

  .cd-tile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cd-tile {
    min-height: 430px;
  }

  .cd-tile__content strong {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .cd-category-showcase {
    padding: 52px 18px 58px;
  }

  .cd-category-showcase__head {
    margin-bottom: 28px;
  }

  .cd-category-showcase__grid {
    gap: 22px 16px;
  }

  .cd-category-card span {
    font-size: 11px;
    letter-spacing: .1em;
  }
}

@media (max-width: 520px) {
  .cd-hero img {
    min-height: 390px;
  }

  .cd-hero__content h1 {
    font-size: 30px;
  }
}

@media (max-width: 470px) {
  .cd-product-track {
    grid-auto-columns: 82%;
  }
}

/* CAPDECO home - header transparent sur hero */
.page-index .cd-header,
body#index .cd-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  z-index: 80;
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-index .cd-header__inner,
body#index .cd-header__inner {
  height: 72px;
}

.page-index .cd-menu__link,
body#index .cd-menu__link {
  height: 72px;
}

.page-index .cd-hero,
body#index .cd-hero {
  margin-top: 0;
}

.page-index .cd-hero img,
body#index .cd-hero img {
  min-height: 620px;
}

@media (max-width: 900px) {
  .page-index .cd-header,
  body#index .cd-header {
    top: 34px;
    background: rgba(255,255,255,.86);
  }

  .page-index .cd-header__inner,
  body#index .cd-header__inner {
    height: 62px;
  }

  .page-index .cd-hero img,
  body#index .cd-hero img {
    min-height: 520px;
  }
}
