/* AuMoinsChere — correctif ciblé de la boutique (1.5.1 hotfix).
   Chargé APRÈS style.css : protège le hero, le menu et les boutons en rupture
   d'une ancienne feuille de style toujours conservée dans le navigateur. */

#home.hero.hero-slider {
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

#home #heroSliderTrack {
  display: flex !important;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  max-width: none;
  min-width: 0;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

#home #heroSliderTrack > .hero-slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 4vw, 76px);
  width: 100%;
  min-width: 0;
  min-height: 600px;
  margin: 0;
  padding: clamp(40px, 5vw, 78px);
}

#home .hero-slide > .hero-inner {
  width: 100%;
  min-width: 0;
  max-width: 630px;
  flex: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

#home .hero-slide > .hero-inner h1 {
  max-width: 100%;
  font-size: clamp(38px, 4.15vw, 70px);
  line-height: 1.06;
  letter-spacing: -.045em;
  margin: 18px 0 22px;
}

#home .hero-slide > .hero-inner p {
  max-width: 560px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}

#home .hero-slide > .hero-inner .pill {
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  letter-spacing: .06em;
}

#home .hero-slide > .hero-inner .hero-actions {
  justify-content: flex-start;
}

#home .hero-slide > .hero-image {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: min(100%, 560px);
  min-width: 0;
  max-width: 100%;
  height: 460px;
  margin-inline: auto;
}

#home .hero-slide .shoe-card {
  width: min(92%, 480px);
  max-width: 100%;
  padding: clamp(15px, 2.5vw, 28px);
}

#home .hero-slide .shoe-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

#home .hero-slider-dots {
  position: absolute !important;
  inset: auto auto 17px 50%;
  transform: translateX(-50%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  margin: 0;
  padding: 0;
  z-index: 25;
}

#home .hero-slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.48);
}
#home .hero-slider-dot.is-active { background: #fff; }

/* Le menu hamburger appartient à la navigation mobile uniquement. */
#mobileNavToggle { display: none !important; }
@media (min-width: 981px) {
  #mainNav.main-nav { display: flex !important; }
}

/* La diapositive sacs garde son identité même avec un ancien style.css. */
#home .hero-slide-bag {
  background: radial-gradient(circle at 76% 20%, rgba(255,255,255,.10), transparent 22%),
              linear-gradient(135deg, #111827, #312e81 55%, #7c3aed);
}

/* Les produits épuisés restent consultables, pas commandables. */
.product-card .product-actions button:disabled,
.amc-product-popup .amc-product-popup-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.5);
  transform: none;
  box-shadow: none;
}

@media (max-width: 980px) {
  #mobileNavToggle { display: inline-grid !important; place-items: center; }
  #mainNav.main-nav { display: none; }
  #mainNav.main-nav.open { display: grid; }
  #home #heroSliderTrack > .hero-slide {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
    min-height: 0;
    padding: 42px 22px 70px;
  }
  #home .hero-slide > .hero-inner {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
  }
  #home .hero-slide > .hero-inner h1 {
    font-size: clamp(35px, 6.3vw, 57px);
    margin: 14px 0 18px;
  }
  #home .hero-slide > .hero-inner p { margin-inline: auto; }
  #home .hero-slide > .hero-inner .hero-actions { justify-content: center; }
  #home .hero-slide > .hero-image { height: 360px; max-width: 540px; }
}

@media (max-width: 560px) {
  #home #heroSliderTrack > .hero-slide { padding: 30px 16px 62px; row-gap: 16px; }
  #home .hero-slide > .hero-inner h1 { font-size: clamp(32px, 8.2vw, 44px); letter-spacing: -.035em; }
  #home .hero-slide > .hero-inner p { font-size: 14px; }
  #home .hero-slide > .hero-inner .pill { font-size: 10px; }
  #home .hero-slide > .hero-image { height: 270px; }
  #home .hero-slide .shoe-card { width: min(86%, 330px); }
  #home .hero-slide .stock-badge { top: 10px; left: 0; }
  #home .hero-slide .price-badge { right: 0; bottom: 6px; }
  #home .hero-slider-dots { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #home #heroSliderTrack { transition: none; }
}
