.card-product .product-flags {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: auto;
  max-width: none;
  margin: 0;
  pointer-events: none;
}

.card-product .product-flag.stock-available,
.card-product .product-flag.a4-stock-badge {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 7px;
  color: #145d31;
  background: rgba(232, 245, 238, 0.96);
  border: 1px solid rgba(159, 210, 181, 0.9);
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(20, 93, 49, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}

.card-product .product-flag.stock-available::before,
.card-product .product-flag.a4-stock-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: #2fad61;
  border-radius: 50%;
}

.card-product .product-flag:not(.stock-available):not(.a4-stock-badge) {
  align-self: flex-start;
  margin: 0;
}

.home-highlight-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 30px;
  margin-right: 0;
  margin-left: 0;
}

/* Menu univers compact : deux liens de même poids, sans pictogramme. */
@media (min-width: 768px) {
  body:not(#index) .container-fluid.orange .menu .menu-top {
    align-items: stretch;
    justify-content: center;
    height: 52px;
    min-height: 52px;
    padding: 0 clamp(0px, 12vw, 180px);
  }

  body:not(#index) .container-fluid.orange .menu .menu-top > li {
    flex: 1 1 0;
    max-width: 360px;
    padding-right: 0;
    padding-left: 0;
  }

  body:not(#index) .container-fluid.orange .menu .menu-top > li + li {
    border-left: 1px solid rgba(86, 52, 10, 0.24);
  }

  body:not(#index) .container-fluid.orange .menu .menu-top > li > a {
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 16px;
    font-size: 1rem;
  }
}

.home-highlight-row > .home-highlight-block {
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.home-highlight-row > .home-highlight-block.d-none {
  display: none !important;
}

#index .home-highlight-container {
  display: none;
}

#product-availability.product-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: right;
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 8px 12px;
  color: #145d31;
  background: rgba(232, 245, 238, 0.96);
  border: 1px solid #9fd2b5;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(20, 93, 49, 0.1);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  clear: both;
  text-transform: none;
}

#product-availability.product-availability-badge:empty {
  display: none;
}

.product-availability-badge__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #2fad61;
  border-radius: 50%;
}

#product-availability.product-availability-badge--last_remaining_items,
#product-availability.product-availability-badge--on-order {
  color: #7a4a00;
  background: #fff7e8;
  border-color: #f3c16c;
  box-shadow: 0 2px 8px rgba(122, 74, 0, 0.1);
}

#product-availability.product-availability-badge--last_remaining_items .product-availability-badge__dot,
#product-availability.product-availability-badge--on-order .product-availability-badge__dot {
  background: #f3980c;
}

#product-availability.product-availability-badge--unavailable {
  color: #8a1420;
  background: #fff0f2;
  border-color: #e0a0a8;
  box-shadow: 0 2px 8px rgba(138, 20, 32, 0.1);
}

#product-availability.product-availability-badge--unavailable .product-availability-badge__dot {
  background: #a4101a;
}

@media (max-width: 575.98px) {
  .card-product .product-flags {
    top: 6px;
    right: 6px;
    left: 6px;
    gap: 6px;
  }

  .card-product .product-flag.stock-available,
  .card-product .product-flag.a4-stock-badge {
    gap: 4px;
    padding: 4px 6px;
    font-size: 0.64rem;
  }

  #product-availability.product-availability-badge {
    float: none;
    width: 100%;
    justify-content: center;
  }
}

#index .l-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  margin-bottom: 0;
  background: transparent;
}

#index .l-header .header-nav {
  background: rgba(44, 44, 44, 0.88);
  color: #fff;
}

#index .l-header .header-top {
  width: 100%;
  max-width: none;
  padding: 18px 36px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

#index .l-header .header__search {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
}

#index .l-header .header__logo img.logo {
  max-width: 250px;
}

#index .l-header .container-fluid.orange .menu .menu-top {
  background: rgba(250, 151, 12, 0.94);
  border-top: 0;
  border-bottom: 0;
}

#index #slidehome.homeSlideFull {
  margin: 0;
  background: #111;
}

.a4-home-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
  background: #111;
}

.a4-home-split::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.62), transparent);
}

.a4-home-split__panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 210px clamp(30px, 5vw, 76px) clamp(34px, 5vw, 76px);
  overflow: hidden;
  color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  transition: transform 320ms ease, filter 320ms ease;
}

.a4-home-split__panel:hover {
  color: #fff;
}

.a4-home-split__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28) 54%, rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.12);
  transition: background 280ms ease;
}

.a4-home-split__panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  opacity: 0.28;
  transform: scale(0.985);
  transition: opacity 260ms ease, transform 260ms ease;
}

.a4-home-split__panel--music {
  background-image: url("/modules/ps_imageslider/images/db13411ea7676d03ff48054afd7c96d7f7ad9127_slider_2.jpg");
}

.a4-home-split__panel--hifi {
  background-image: url("/modules/ps_imageslider/images/5ae1e089b37e046e62b89a71c655eb727598b003_slider_1.jpg");
}

.a4-home-split__content {
  max-width: 520px;
  transition: transform 260ms ease;
}

.a4-home-split__eyebrow {
  margin: 0 0 12px;
  color: #f3980c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.a4-home-split__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.a4-home-split__copy {
  max-width: 470px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.45;
}

.a4-home-split__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: #a4101a;
  border: 1px solid #a4101a;
  border-radius: 6px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .a4-home-split:hover .a4-home-split__panel {
    filter: brightness(0.76) saturate(0.9);
  }

  .a4-home-split .a4-home-split__panel:hover {
    z-index: 2;
    filter: brightness(1) saturate(1.08);
    transform: scale(1.018);
  }

  .a4-home-split .a4-home-split__panel:hover::before {
    background:
      linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 54%, rgba(0, 0, 0, 0.08)),
      rgba(0, 0, 0, 0.06);
  }

  .a4-home-split .a4-home-split__panel:hover::after {
    opacity: 0.78;
    transform: scale(1);
  }

  .a4-home-split .a4-home-split__panel:hover .a4-home-split__content {
    transform: translateY(-8px);
  }
}

@media (max-width: 991.98px) {
  #index .l-header {
    position: relative;
    background: #fff;
  }

  #index .l-header .header-top {
    padding: 10px 15px;
    background: #fff;
    box-shadow: none;
  }

  #index .l-header .header__logo img.logo {
    max-width: 185px;
  }

  .a4-home-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .a4-home-split::before {
    display: none;
  }

  .a4-home-split__panel {
    min-height: 430px;
    padding: 24px;
  }

  .a4-home-split__title {
    font-size: 46px;
  }

  .a4-home-split__copy {
    font-size: 16px;
  }

  .a4-home-split__button {
    width: 100%;
  }

  .a4-catalog-filters {
    display: none;
  }
}

/* Catalogue: keep faceted navigation visible beside products on desktop. */
@media (min-width: 992px) {
  .a4-catalog-with-filters {
    display: grid;
    grid-template-columns: minmax(220px, 25%) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }

  .a4-catalog-with-filters > #products {
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .a4-catalog-filters {
    min-width: 0;
  }
}
