/**
 * DESTOCK SHOP30 — Page d'accueil codée (milieu du site)
 */

.ds30-home-main {
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
  background: #fff;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .ds30-home-main {
    overflow-x: hidden;
  }
}

.ds30-homepage {
  font-family: var(--ds30-font, 'Montserrat', system-ui, sans-serif);
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .ds30-homepage {
    overflow-x: hidden;
  }
}

/* Hero sans cadre promo */
.ds30-hero--no-promo .ds30-hero-inner {
  grid-template-columns: 1fr;
  max-width: var(--ds30-container, 1280px);
  justify-items: start;
}

.ds30-hero-inner {
  justify-items: start;
}

.ds30-hero-content {
  text-align: left;
  justify-self: start;
  width: 100%;
  max-width: min(100%, 640px);
}

@media (min-width: 1024px) {
  .ds30-hero--no-promo .ds30-hero-inner {
    min-height: 480px;
  }
}

/* Hero — promo rectangle à droite (fond fixe) */
.ds30-hero-visuals {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  height: auto;
  min-height: 260px;
}

.ds30-hero-visuals .ds30-hero-product {
  display: none;
}

.ds30-hero-promo-box,
.ds30-hero-mechanic {
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.12);
  position: relative;
  background: #fff;
}

.ds30-hero-promo-box img,
.ds30-hero-mechanic img,
.ds30-hero-promo-link {
  width: 100%;
  height: 100%;
  display: block;
}

.ds30-hero-promo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ds30-hero-mechanic > img {
  object-fit: cover;
  object-position: center center;
}

/* Diaporama promo — rectangle droit uniquement */
.ds30-hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.ds30-hero-promo-box .ds30-hero-slider--promo,
.ds30-hero-mechanic .ds30-hero-slider--side {
  position: absolute;
  inset: 0;
}

.ds30-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.ds30-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.ds30-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ds30-hero-visuals {
  flex-direction: column;
  align-items: flex-end;
}

.ds30-hero-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  width: min(100%, 520px);
}

.ds30-hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 0;
  width: auto;
}

.ds30-hero-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.ds30-hero-arrow:hover {
  background: var(--ds30-blue, #005bff);
  border-color: var(--ds30-blue, #005bff);
}

.ds30-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.ds30-hero-dot.is-active,
.ds30-hero-dot:hover {
  background: var(--ds30-blue, #005bff);
  border-color: var(--ds30-blue, #005bff);
  transform: scale(1.15);
}

.ds30-hero--slider .ds30-hero-overlay {
  z-index: 1;
}

.ds30-hero--slider .ds30-hero-inner {
  position: relative;
  z-index: 2;
}

.ds30-hero-title {
  text-transform: uppercase;
}

/* Images catégories — icônes produit maquette */
.ds30-category-icon img,
.ds30-promo-image {
  object-fit: contain;
}

.ds30-promo-image {
  border-radius: 6px;
}

/* Bande promo défilante (remplace les 3 rectangles) */
.ds30-promo-strip {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  background: #0a0a0a;
  overflow: hidden;
}

.ds30-homepage .ds30-promo-strip {
  margin-bottom: 0;
}

.ds30-promo-strip__viewport {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 34vw, 420px);
}

.ds30-promo-strip__track {
  position: relative;
  width: 100%;
  min-height: inherit;
}

.ds30-promo-strip__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.ds30-promo-strip__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ds30-promo-strip__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ds30-promo-strip__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.ds30-promo-strip__slide--blue .ds30-promo-strip__shade {
  background: linear-gradient(90deg, rgba(0, 76, 204, 0.82) 0%, rgba(0, 108, 255, 0.45) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.ds30-promo-strip__slide--image .ds30-promo-strip__shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
}

.ds30-promo-strip__content {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
}

.ds30-promo-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(220px, 34vw, 420px);
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
  max-width: min(100%, 640px);
  text-align: left;
}

.ds30-promo-strip__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.ds30-promo-strip__text {
  margin: 0 0 1.1rem;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.5;
  opacity: 0.92;
  max-width: 34rem;
}

.ds30-promo-strip__btn {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.ds30-promo-strip__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.ds30-promo-strip__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: none;
}

.ds30-promo-strip__arrow,
.ds30-promo-strip__dot {
  pointer-events: auto;
}

.ds30-promo-strip__arrow {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ds30-promo-strip__arrow:hover {
  background: rgba(0, 108, 255, 0.85);
  border-color: rgba(0, 108, 255, 0.85);
}

.ds30-promo-strip__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ds30-promo-strip__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ds30-promo-strip__dot.is-active,
.ds30-promo-strip__dot:hover {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 639px) {
  .ds30-promo-strip__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.78) 100%);
  }

  .ds30-promo-strip__inner {
    justify-content: flex-end;
    max-width: 100%;
  }
}

/* Section produits — cartes uniformes */
.ds30-homepage .ds30-product-image-link {
  background: #fff;
  padding: 14px;
  display: block;
}

.ds30-homepage .ds30-product-image-link img {
  object-fit: contain;
  max-height: 180px;
  margin: 0 auto;
}

/* Newsletter pleine largeur */
.ds30-homepage .ds30-newsletter {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .ds30-hero-promo-box,
  .ds30-hero-mechanic {
    width: min(100%, 100%);
    margin: 0 auto;
  }

  .ds30-hero-slider-nav {
    width: 100%;
  }

  .ds30-hero-visuals {
    justify-content: center;
    margin-top: 20px;
  }
}
