/* Home B : header flottant, avec les hooks natifs PrestaShop. */
#index .l-header {
  position: absolute;
  top: 38px;
  right: 30px;
  left: 30px;
  z-index: 30;
  margin-bottom: 0;
  background: transparent;
}

#index .l-header .header-nav,
#index .l-header .header-banner,
#index .l-header .container-fluid.orange {
  display: none;
}

#index .l-header .header-top {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: none;
  min-height: 76px;
  padding: 30px 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 24px 64px rgba(13, 11, 9, 0.24);
}

#index .l-header .header__logo {
  flex: 0 1 238px;
}

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

#index .l-header .header__search {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

#index .l-header .search-widget {
  width: 100%;
  max-width: none;
}

#index .l-header .header__right {
  flex: 0 0 auto;
  margin: 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: 3px;
  background: #f3980c;
  transform: translateX(-50%);
  pointer-events: none;
}

.a4-home-split__panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 180px clamp(32px, 5.5vw, 88px) 64px;
  overflow: hidden;
  color: #fff;
  background-image: var(--a4-home-image);
  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__content {
  max-width: 520px;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 260ms ease;
}

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

.a4-home-split__title {
  max-width: 7ch;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(42px, 5vw, 76px);
  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: 18px;
  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;
}

.a4-space-page {
  margin-bottom: 42px;
}

.a4-space-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100vw;
  min-height: 340px;
  margin: 0 calc(50% - 50vw) 48px;
  padding: 48px max(48px, calc((100vw - 1140px) / 2 + 48px)) 40px;
  color: #fff;
  background-image: var(--a4-home-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.a4-space-hero::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.16));
}

.a4-space-hero__content {
  max-width: 680px;
  padding: 24px 30px;
  border-left: 0;
  border-right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
}

.a4-space-hero__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.a4-space-hero__copy {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.a4-space-section {
  width: min(1400px, calc(100vw - 48px));
  margin: 0 auto 42px;
}

.a4-space-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ead7b9;
}

.a4-space-section__head h2 {
  margin: 0;
  color: #a4101a;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.a4-space-section__head a {
  color: #a4101a;
  font-weight: 800;
}

.a4-space-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.a4-space-block {
  min-height: 210px;
  padding: 22px;
  color: #2c2c2c;
  background: #fff;
  border: 1px dashed #fb9a08;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.a4-space-block:hover {
  color: #2c2c2c;
  box-shadow: 0 18px 42px rgba(44, 44, 44, 0.16);
  transform: translateY(-2px);
}

.a4-space-block img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 14px;
}

.a4-space-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #a4101a;
  background: #fff3dc;
  border: 1px solid #fb9a08;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.a4-space-block h2 {
  margin: 0 0 8px;
  color: #a4101a;
  font-size: 21px;
}

.a4-space-block p,
.a4-space-empty {
  margin: 0;
  color: #665f57;
  line-height: 1.45;
}

@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 .a4-home-split__content {
    transform: translateY(-8px);
  }
}

@media (max-width: 991.98px) {
  #index .l-header {
    position: absolute;
    top: 16px;
    right: 16px;
    left: 16px;
    background: transparent;
  }

  #index .l-header .header-top {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }

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

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

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

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

  .a4-home-split__content {
    width: 100%;
    padding: 0;
  }

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

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

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

  .a4-space-hero {
    min-height: 280px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 32px 24px;
  }

  .a4-space-hero__content {
    padding: 24px 20px;
  }

  .a4-space-hero__title {
    font-size: 42px;
  }

  .a4-space-hero__copy {
    font-size: 17px;
  }

  .a4-space-section {
    width: min(390px, calc(100vw - 24px));
    margin-bottom: 30px;
  }

  .a4-space-section__head {
    display: grid;
  }

  .a4-space-blocks {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .a4-home-split__panel {
    padding-right: 46px;
    padding-left: 46px;
  }

  .a4-home-split__title {
    font-size: clamp(42px, 5vw, 76px);
  }

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

  .a4-space-hero__title {
    font-size: 48px;
  }
}

@media (max-width: 991.98px) {
  #index .l-header #menu-icon { display: none; }
  #index .l-header .header__logo { flex: 1 1 120px; }
  #index .l-header .header__search { order: 3; flex: 1 0 100%; }
  #index .a4-home-split__panel:first-child { padding-top: 185px; min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .a4-home-split__panel, .a4-home-split__content { transition: none; }
  .a4-home-split .a4-home-split__panel:hover,
  .a4-home-split .a4-home-split__panel:hover .a4-home-split__content { transform: none; }
}

@media (min-width: 992px) {
  .a4-home-split__copy { min-height: 4.35em; }
}

/* Deux carrousels indépendants, comme sur l'ancienne home. */
.a4-space-highlights .home-highlight-container { width: 100%; max-width: none; padding: 0; }
.a4-space-highlights .home-highlight-block { min-width: 0; }
.a4-space-highlights .products-section-title { text-align: center; }
@media (min-width: 768px) {
  .a4-space-highlights .home-highlight-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .a4-space-highlights .home-highlight-block:only-child { grid-column: 1 / -1; }
}

.a4-space-empty--new {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 32px;
  text-align: center;
  border: 1px dashed #fb9a08;
  border-radius: 18px;
}

/* L'image des pages univers touche directement le menu. */
#module-a4home-space #content { border: 0; padding-top: 0; }
#module-a4home-space #wrapper { margin-top: 0; padding-top: 0; }

#module-a4home-space #main { border: 0; }

/* Coller le bandeau des horaires au visuel de la home. */
#index .page-home > .mt-5.mb-0 { margin-top: 0 !important; }

@media (min-width: 992px) {
  #index .l-header { left: 0; right: 0; }
  #index .l-header .header-top { max-width: 1400px; margin: 0 auto; padding: 30px 15px; }
}
#module-a4home-space #products { margin-bottom: 48px; }

.breadcrumb > .breadcrumb-item + .breadcrumb-item::before { content: '›'; }

/* Menu global : univers visuels à gauche, services à droite. */
body:not(#index) .l-header .container-fluid.orange { padding: 0; background: #f1a02e; }
.a4-site-menu { display: flex; align-items: stretch; gap: 28px; }
.a4-site-menu__universes { display: flex; flex: 0 1 48%; min-width: 0; }
.a4-site-menu__universe { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 16px; padding: 19px 24px; background: #f1a02e; color: #292929; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.a4-site-menu__universe + .a4-site-menu__universe { border-left: 1px solid rgba(80,40,0,.2); }
.a4-site-menu__universe::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #a4101a; opacity: 0; transform: scale(1.06); transition: opacity .22s, transform .35s; }
.a4-site-menu__universe:hover, .a4-site-menu__universe:focus-visible { color: #fff; }
.a4-site-menu__universe:hover::before, .a4-site-menu__universe:focus-visible::before { opacity: 1; transform: scale(1); }
.a4-site-menu__links { display: flex; align-items: center; justify-content: flex-end; flex: 1; flex-wrap: wrap; gap: 8px 24px; padding: 12px 0; }
.a4-site-menu__links a { color: #292929; font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: .015em; padding: 9px 0; border-radius: 0; background: transparent; text-decoration: none; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: background-color .2s, color .2s; }
.a4-site-menu__links a:hover, .a4-site-menu__links a:focus-visible { background: transparent; color: #872020; text-decoration: underline; }
@media (max-width: 991.98px) {
  .a4-site-menu { flex-direction: column; gap: 0; }
  .a4-site-menu__universes { flex-basis: auto; }
  .a4-site-menu__links { justify-content: center; gap: 8px 20px; }
  .a4-site-menu__universe { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { .a4-site-menu__universe::before { transition: none; } }

/* Supprimer aussi le contour hérité du thème. */
#index .a4-home-split__panel::after { content: none; }

/* La séparation suit l'élargissement du panneau, sans chevauchement. */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  #index .a4-home-split { transition: grid-template-columns 320ms ease; }
  #index .a4-home-split::before { transition: left 320ms ease; }
  #index .a4-home-split:has(.a4-home-split__panel:first-child:hover) {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  }
  #index .a4-home-split:has(.a4-home-split__panel:first-child:hover)::before { left: 52%; }
  #index .a4-home-split:has(.a4-home-split__panel:last-child:hover) {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  }
  #index .a4-home-split:has(.a4-home-split__panel:last-child:hover)::before { left: 48%; }
  #index .a4-home-split .a4-home-split__panel:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #index .a4-home-split, #index .a4-home-split::before { transition: none; }
}

@media (hover: hover) and (pointer: fine) {
  .a4-site-menu__universe { transition: flex-grow 280ms ease, color 220ms ease; }
  .a4-site-menu__universe:hover { flex-grow: 1.08; }
}
@media (prefers-reduced-motion: reduce) { .a4-site-menu__universe { transition: none; } }
