/* 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; } }

/* Téléphones : deux univers empilés, typographie plus compacte. */
@media (max-width: 575.98px) {
  .a4-home-split__panel { min-height: 350px; padding: 32px 22px; }
  #index .a4-home-split__panel:first-child { min-height: 470px; padding-top: 185px; }
  .a4-home-split__title { font-size: clamp(32px, 9vw, 38px); line-height: 1.04; }
  .a4-home-split__eyebrow { font-size: 11px; }
  .a4-home-split__copy { font-size: 14px; line-height: 1.5; }
  .a4-home-split__button { font-size: 13px; min-height: 44px; }
  .a4-space-hero { min-height: 250px; padding: 26px 18px; }
  .a4-space-hero__content { padding: 18px 16px; }
  .a4-space-hero__title { font-size: 32px; line-height: 1.05; }
  .a4-space-hero__copy { font-size: 15px; line-height: 1.45; }
}

/* Accueil mobile — correction du 16 septembre 2026. */
@media (max-width: 575.98px) {
  #index .l-header { top: 12px; left: 12px; right: 12px; }
  #index .l-header .header-top { gap: 8px; padding: 10px 12px; }
  #index .l-header .header__logo img.logo { max-width: 145px; }
  #index .a4-home-split__panel { min-height: 0; padding: 32px 24px; }
  #index .a4-home-split__panel:first-child { min-height: 0; padding-top: 166px; }
  #index .a4-home-split__title { max-width: none; font-size: clamp(28px, 8vw, 34px); line-height: 1.08; margin-bottom: 12px; overflow-wrap: anywhere; }
  #index .a4-home-split__eyebrow { font-size: 10px; line-height: 1.4; margin-bottom: 10px; }
  #index .a4-home-split__copy { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 18px; }
  #index .a4-home-split__button { width: 100%; min-height: 44px; padding: 12px 14px; font-size: 13px; line-height: 1.35; white-space: normal; text-align: center; overflow-wrap: anywhere; }
}

/* Chaque univers occupe au minimum un écran sur la version empilée. */
@media (max-width: 991.98px) {
  #index .a4-home-split__panel,
  #index .a4-home-split__panel:first-child {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
  }
}

/* Mobile : un écran pour les deux univers, réparti en deux parts égales. */
@media (max-width: 991.98px) {
  #index .a4-home-split {
    min-height: 100vh;
    min-height: 100svh;
    grid-template-rows: repeat(2, minmax(min-content, 1fr));
  }
  #index .a4-home-split__panel,
  #index .a4-home-split__panel:first-child {
    min-height: 50vh;
    min-height: 50svh;
    padding: 20px 24px;
    box-sizing: border-box;
  }
  #index .a4-home-split__panel:first-child { padding-top: 140px; }
  #index .a4-home-split__title { max-width: none; font-size: 26px; line-height: 1.05; margin-bottom: 8px; }
  #index .a4-home-split__eyebrow { font-size: 10px; line-height: 1.3; margin-bottom: 6px; }
  #index .a4-home-split__copy { font-size: 12px; line-height: 1.35; margin-bottom: 10px; }
  #index .a4-home-split__button { min-height: 40px; padding: 8px 12px; font-size: 12px; line-height: 1.3; white-space: normal; }
}

/* Navigation responsive alimentée par les mêmes réglages que le menu bureau. */
.a4-mobile-menu__heading { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.a4-mobile-menu a { display: block; padding: 12px 0; color: #292929; line-height: 1.4; }
.a4-mobile-menu a:hover, .a4-mobile-menu a:focus-visible { color: #a4101a; text-decoration: underline; }
.a4-mobile-menu__universes a { font-size: 16px; }
.a4-mobile-menu__links { margin-top: 24px; }
.a4-mobile-menu__links:empty { display: none; }
.a4-mobile-menu + #_mobile_top_menu { display: none; }
@media (max-width: 991.98px) {
  .a4-site-menu__links { display: none; }
  #index .l-header #menu-icon { display: inline-flex; align-items: center; justify-content: center; padding: 6px; }
}

/* Répartir à égalité l'espace utile sous le header flottant (environ 130px). */
@media (max-width: 991.98px) {
  #index .a4-home-split { grid-template-rows: auto auto; }
  #index .a4-home-split__panel:first-child {
    min-height: calc(50vh + 65px);
    min-height: calc(50svh + 65px);
  }
  #index .a4-home-split__panel:last-child {
    min-height: calc(50vh - 65px);
    min-height: calc(50svh - 65px);
  }
}

/* Burger mobile : rubriques distinctes et contact en bas de l'écran. */
@media (max-width: 991.98px) {
  #mobile_top_menu_wrapper .modal-dialog__offcanvas { height: 100vh; height: 100dvh; margin-top: 0; margin-bottom: 0; }
  #mobile_top_menu_wrapper .modal-content { height: 100%; max-height: 100%; display: flex; flex-direction: column; border-radius: 0; }
  #mobile_top_menu_wrapper .modal-header { flex: 0 0 auto; padding-top: max(16px, env(safe-area-inset-top)); }
  #mobile_top_menu_wrapper .modal-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 24px max(24px, env(safe-area-inset-bottom)); }
  .a4-mobile-menu { display: flex; flex-direction: column; flex: 1 0 auto; }
  .a4-mobile-menu .a4-mobile-menu__heading { color: #a4101a; font-size: 12px; font-weight: 800; letter-spacing: .1em; margin: 0 0 10px; }
  .a4-mobile-menu__universes a { font-size: 18px; padding: 12px 0; }
  .a4-mobile-menu__links { margin-top: 22px; padding-top: 22px; border-top: 1px solid #e5ded5; }
  .a4-mobile-menu__links a { font-size: 15px; }
  .a4-mobile-menu__contact { margin-top: auto; padding-top: 32px; }
  .a4-mobile-menu__contact p { margin: 0 0 8px; font-size: 13px; color: #626262; }
  .a4-mobile-menu a.a4-mobile-menu__phone { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 10px; background: #a4101a; color: #fff; border-radius: 6px; font-size: 19px; white-space: nowrap; }
  .a4-mobile-menu a.a4-mobile-menu__phone:hover { background: #800c14; }
}

@media (max-width: 991.98px) {
  #mobile_top_menu_wrapper .a4-mobile-menu ~ .js-top-menu-bottom #_mobile_contact_link { display: none; }
  .a4-mobile-menu__contact p { font-size: 18px; font-weight: 700; line-height: 1.4; color: #292929; margin-bottom: 12px; }
}

/* Formats hauts en deux colonnes : centrer dans la zone sous le header. */
@media (min-width: 992px) and (max-aspect-ratio: 4/3) {
  #index .a4-home-split__panel {
    align-items: center;
    padding-top: 180px;
    padding-bottom: 64px;
  }
}

/* Pages intérieures : header compact en responsive. */
@media (max-width: 991.98px) {
  body:not(#index) .l-header .header-top { padding-top: 10px; padding-bottom: 12px; row-gap: 8px; }
  body:not(#index) .l-header .header__search { margin-top: 4px; margin-bottom: 0; padding-top: 0; }
  body:not(#index) .l-header .a4-site-menu__universe { padding-top: 11px; padding-bottom: 11px; }
}

/* Univers correspondant à la page consultée. */
.a4-site-menu__universe.is-active { background: #a4101a; color: #fff; }
.a4-mobile-menu__universes a.is-active { background: #a4101a; color: #fff; border-radius: 4px; padding-left: 12px; padding-right: 12px; }

/* Indiquer la destination au survol sans déplacer la hauteur du bandeau. */
.a4-site-menu__label { position: relative; display: block; }
.a4-site-menu__hint { position: absolute; bottom: 100%; left: 0; white-space: nowrap; font-size: 12px; line-height: 1.4; font-weight: 600; text-transform: none; opacity: 0; transition: opacity .2s; }
a.a4-site-menu__universe:hover .a4-site-menu__hint,
a.a4-site-menu__universe:focus-visible .a4-site-menu__hint { opacity: 1; }
.a4-site-menu__universe.is-active { cursor: default; flex-grow: 1; }
.a4-mobile-menu__universes > span.is-active { display: block; background: #a4101a; color: #fff; padding: 12px; border-radius: 4px; font-size: 18px; line-height: 1.4; }

/* Séparation orange entre les univers, comme sur l'accueil. */
.a4-site-menu__universe + .a4-site-menu__universe {
  border-left: 3px solid #f3980c;
}

/* Bandeau compact et libellé qui descend pour accueillir le surtitre. */
.a4-site-menu__universe { padding-top: 14px; padding-bottom: 14px; }
.a4-site-menu__links { padding-top: 6px; padding-bottom: 6px; }
.a4-site-menu__links a { padding-top: 6px; padding-bottom: 6px; }
.a4-site-menu__label { transition: transform 220ms ease; }
.a4-site-menu__hint { transform: translateY(4px); transition: opacity 220ms ease, transform 220ms ease; }
a.a4-site-menu__universe:hover .a4-site-menu__label,
a.a4-site-menu__universe:focus-visible .a4-site-menu__label { transform: translateY(7px); }
a.a4-site-menu__universe:hover .a4-site-menu__hint,
a.a4-site-menu__universe:focus-visible .a4-site-menu__hint { transform: translateY(0); }
.a4-space-breadcrumb { margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
  .a4-site-menu__label, .a4-site-menu__hint { transition: none; }
}
