/* LPDE Wave Front2 / r2 slider native + no customtext — Hummingbird (staging 2026)
   Colors: rouge #EE1B22 + bleu LPDE #0859D1 (delta Igor) */
:root {
  --lpde-red: #EE1B22;
  --lpde-blue: #0859D1;
  --lpde-dark: #373737;
  --lpde-text: #232323;
  --lpde-bg: #f2f2f2;
  --lpde-red-rgb: 238, 27, 34;
  --lpde-blue-rgb: 8, 89, 209;
  --bs-primary: #0859D1;
  --bs-primary-rgb: 8, 89, 209;
  --bs-link-color: #0859D1;
  --bs-link-hover-color: #EE1B22;
  --bs-focus-ring-color: rgba(8, 89, 209, 0.45);
  --bs-blue: #0859D1;
}

body {
  color: var(--lpde-text);
  background-color: #ffffff;
}

a {
  color: var(--lpde-blue);
}
a:hover,
a:focus {
  color: var(--lpde-red);
}

/* Primary buttons / CTA — rouge (ex-jaune) */
.btn-primary,
.btn.btn-primary,
button.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #EE1B22;
  --bs-btn-border-color: #EE1B22;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #0859D1;
  --bs-btn-hover-border-color: #0859D1;
  --bs-btn-focus-shadow-rgb: 238, 27, 34;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #373737;
  --bs-btn-active-border-color: #373737;
  --bs-btn-disabled-bg: #EE1B22;
  --bs-btn-disabled-border-color: #EE1B22;
  background-color: #EE1B22;
  border-color: #EE1B22;
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #0859D1;
  border-color: #0859D1;
  color: #ffffff;
}

.btn-outline-primary {
  --bs-btn-color: #0859D1;
  --bs-btn-border-color: #0859D1;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #c4161c;
  --bs-btn-hover-border-color: #c4161c;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #c4161c;
  --bs-btn-active-border-color: #c4161c;
  --bs-btn-disabled-color: #0859D1;
  --bs-btn-disabled-border-color: #0859D1;
}

/* CTA hover FO — jamais rouge/rouge (a:hover global sinon gagne) */
a.btn:hover,
a.btn:focus,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-outline-primary:hover,
a.btn-outline-primary:focus,
a.btn-outline-primary:active,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-primary:hover,
.btn-primary:focus,
.module-products a.btn:hover,
.ps-featuredproducts a.btn:hover,
.ps-specials a.btn:hover,
#header a.btn:hover,
#header .btn:hover,
.cart-grid a.btn:hover,
#checkout a.btn-primary:hover,
.product-miniature a.btn-outline-primary:hover {
  color: #ffffff !important;
}
a.btn-outline-primary:hover,
a.btn-outline-primary:focus,
a.btn-outline-primary:active,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.module-products a.btn-outline-primary:hover,
.ps-featuredproducts a.btn-outline-primary:hover,
.ps-specials a.btn-outline-primary:hover {
  background-color: #c4161c !important;
  border-color: #c4161c !important;
}
a.btn-primary:hover,
a.btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
  background-color: #0859D1 !important;
  border-color: #0859D1 !important;
  color: #ffffff !important;
}

/* Override compiled theme.css blue #0b69f6 */
[data-bs-theme=light] {
  --bs-blue: #0859D1;
  --bs-primary: #0859D1;
  --bs-primary-rgb: 8, 89, 209;
  --bs-link-color: #0859D1;
  --bs-link-color-rgb: 8, 89, 209;
  --bs-link-hover-color: #EE1B22;
  --bs-primary-text-emphasis: #0859D1;
}

/* Header / nav */
#header .header-top,
.header-top {
  border-bottom-color: rgba(8, 89, 209, 0.15);
}
#header .top-menu a[data-depth="0"]:hover,
#header .header-nav a:hover,
.main-menu a:hover {
  color: var(--lpde-blue) !important;
}

:focus-visible {
  outline-color: var(--lpde-blue);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--lpde-blue);
  box-shadow: 0 0 0 0.2rem rgba(8, 89, 209, 0.35);
}

.page-item.active .page-link,
.pagination .current a {
  background-color: var(--lpde-blue);
  border-color: var(--lpde-blue);
  color: #fff;
}
.page-link {
  color: var(--lpde-blue);
}
.page-link:hover {
  color: var(--lpde-red);
}

.badge.discount,
.product-flags .discount {
  background-color: var(--lpde-red);
}
.badge.new {
  background-color: var(--lpde-blue);
  color: #ffffff;
}

/* Banner — do not replace sale70.png file; style only */
.ps-banner img,
.banner img {
  border-radius: 0.5rem;
  max-height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}


.section-title {
  color: var(--lpde-dark);
}
.section-title::after {
  background-color: var(--lpde-red);
}

/* blockreassurance icons etc. */
.blockreassurance,
.psr {
  --psr-icon-color: #0859D1;
}

/* === Header promo (remplace Contactez-nous) === */
.ps-contactinfo__promo {
  display: inline-block;
  color: #0859D1;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
@media (max-width: 991.98px) {
  .ps-contactinfo__promo { font-size: 0.85rem; }
}
/* === end header promo === */

/* === Custom text block (aligné comme Produits phares) === */
.ps-customtext,
#custom-text,
.custom-text {
  background: #ffffff !important;
  color: #232323 !important;
  padding: 2rem 0 1.5rem;
  margin: 0;
  width: 100%;
}
.ps-customtext > .container,
#custom-text > .container,
.custom-text > .container {
  text-align: left !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  width: 100%;
}
@media (min-width: 576px) {
  .ps-customtext > .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .ps-customtext > .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .ps-customtext > .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .ps-customtext > .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .ps-customtext > .container { max-width: 1320px; }
}
.ps-customtext h2,
#custom-text h2 {
  display: block !important;
  color: #232323 !important;
  font-weight: 700 !important;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  text-transform: none;
  text-align: left;
}
.ps-customtext h3,
#custom-text h3,
.ps-customtext .subtitle {
  display: block !important;
  color: #232323 !important;
  font-weight: 700 !important;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  text-align: left;
}
.ps-customtext p,
#custom-text p {
  color: #232323 !important;
  font-weight: 400 !important;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  text-align: left;
}
/* === end custom text block === */

/* === Logo size (80px hauteur, homothétique) === */
#header .header-top img.logo,
#header .logo img,
#_desktop_logo img,
#_mobile_logo img,
.header-top__center img.logo,
img.logo {
  height: 80px !important;
  width: auto !important;
  max-height: 80px !important;
  min-height: 0 !important;
  transform: none !important;
  object-fit: contain;
}
#_desktop_logo a,
#_mobile_logo a,
.header-top__center .logo {
  display: inline-block;
  line-height: 0;
  overflow: visible;
}
/* === end logo size === */

/* === Slider: 450px, pleine largeur === */
#ps_imageslider .ps-imageslider__figcaption,
#ps_imageslider .carousel-caption,
#ps_imageslider figcaption {
  display: none !important;
}
#ps_imageslider {
  width: 100% !important;
  max-width: 100% !important;
}
#ps_imageslider .carousel,
#ps_imageslider .carousel-inner {
  width: 100% !important;
  height: 450px !important;
  max-height: 450px !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  background: #f5f5f5;
}
#ps_imageslider .carousel-item {
  width: 100% !important;
  height: 450px !important;
  max-height: 450px !important;
  background: #f5f5f5;
}
#ps_imageslider .carousel-item img,
#ps_imageslider img.w-100,
#ps_imageslider .carousel-item picture,
#ps_imageslider .carousel-item picture img {
  width: 100% !important;
  max-width: 100% !important;
  height: 450px !important;
  max-height: 450px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}
@media (max-width: 767.98px) {
  #ps_imageslider .carousel,
  #ps_imageslider .carousel-inner,
  #ps_imageslider .carousel-item,
  #ps_imageslider .carousel-item img,
  #ps_imageslider img.w-100,
  #ps_imageslider .carousel-item picture img {
    height: 280px !important;
    max-height: 280px !important;
  }
}
#ps_imageslider .carousel-indicators [data-bs-target].active {
  background-color: #EE1B22;
}
/* === end slider 450 === */

/* === Discount badge (blanc + gras) === */
li.badge.discount,
.badge.discount,
.product-flag .badge.discount,
.product-miniature .badge.discount {
  color: #ffffff !important;
  font-weight: 700 !important;
}
/* === end discount badge === */

/* === Footer gray (semi-foncé) === */
#footer,
.footer-container,
footer#footer,
.footer__main,
.footer {
  background-color: #4a4a4a !important;
  color: #f0f0f0 !important;
}
#footer a,
.footer-container a,
footer#footer a,
.footer a {
  color: #f5f5f5 !important;
}
#footer a:hover,
.footer-container a:hover {
  color: #ffffff !important;
}
#footer .text-muted,
#footer .copyright,
.footer .copyright {
  color: #d0d0d0 !important;
}
/* === end footer gray === */

/* === Reassurance compact (fiche produit) === */
.blockreassurance--product,
.blockreassurance.blockreassurance--product {
  max-width: 100%;
}
.blockreassurance--product .reassurance,
.blockreassurance--product .block-reassurance-item {
  margin-bottom: 0.65rem !important;
  align-items: flex-start;
}
.blockreassurance--product .reassurance__title,
.blockreassurance--product .h6,
.blockreassurance--product .reassurance-item-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}
.blockreassurance--product .reassurance__desc,
.blockreassurance--product small.reassurance__desc,
.blockreassurance--product .reassurance-item-desc {
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
  margin: 0.15rem 0 0 !important;
  display: block;
}
.blockreassurance--product .reassurance__image img,
.blockreassurance--product .reassurance__image svg {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
}
/* === end reassurance compact === */


/* === Header contact split (livraison gauche + support centre viewport) === */
@media (min-width: 768px) {
  #header .header-top .container-md,
  #header .header-top .container {
    position: relative;
  }
  #header .header-top .row {
    position: relative;
    align-items: center;
  }
  /* full-width strip for promo row inside left col */
  #header .header-top__left.col-md-4 {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 100%;
    flex: none;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    z-index: 1;
    pointer-events: none;
  }
  #header .header-top__right {
    position: relative;
    z-index: 2;
    margin-left: auto;
  }
  #header .ps-contactinfo--split,
  #_desktop_ps_contactinfo .ps-contactinfo--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    width: 100%;
    pointer-events: none;
  }
  #header .ps-contactinfo__promo--left {
    grid-column: 1;
    justify-self: start;
    text-align: left;
    white-space: nowrap;
    pointer-events: auto;
    position: static;
    transform: none;
    z-index: auto;
  }
  #header .ps-contactinfo__promo--center {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    pointer-events: auto;
    position: static;
    left: auto;
    transform: none;
    z-index: auto;
    color: inherit;
    text-decoration: none;
  }
  #header .ps-contactinfo__promo--center:hover {
    text-decoration: underline;
  }
  #header .ps-contactinfo__promo-spacer {
    grid-column: 3;
    display: block;
    min-width: 1px;
  }
}
@media (max-width: 767.98px) {
  #header .ps-contactinfo--split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  #header .ps-contactinfo__promo--center {
    position: static;
    transform: none;
  }
  #header .ps-contactinfo__promo-spacer {
    display: none;
  }
}
/* === end header contact split === */

/* === Cart discount badge (rouge LPDE) === */
/* Bootstrap 5 .bg-primary uses --bs-primary-rgb + !important rgba(); override vars + color */
#checkout .product-line__item-discount.badge.bg-primary,
#cart .product-line__item-discount.badge.bg-primary,
.cart-grid .product-line__item-discount.badge.bg-primary,
.cart-container .product-line__item-discount.badge.bg-primary,
.product-line__item-discount.badge.bg-primary,
span.product-line__item-discount.badge.bg-primary,
.product-line__item-discount.badge.bg-primary.product-line__item-discount--percentage,
.product-line__item-discount.badge.bg-primary.product-line__item-discount--amount {
  --bs-bg-opacity: 1 !important;
  --bs-primary-rgb: 238, 27, 34 !important;
  --bs-badge-color: #ffffff !important;
  background-color: #EE1B22 !important;
  background: #EE1B22 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: #EE1B22 !important;
}
/* === end cart discount badge === */

/* === Home réassurance (displayHome widget) === */
.blockreassurance.blockreassurance--light {
  margin: 0 0 0.35rem !important;
  padding-block: 0.1rem 0.25rem !important;
  padding-top: 0.1rem !important;
  padding-bottom: 0.25rem !important;
}
#index .blockreassurance.blockreassurance--light {
  margin-top: 0 !important;
  margin-bottom: 0.25rem !important;
}
#index .blockreassurance--horizontal {
  padding-block: 0.1rem 0.25rem !important;
  gap: 1rem 1.25rem;
}
.blockreassurance--horizontal .reassurance {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}
.blockreassurance--horizontal .reassurance__image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blockreassurance--horizontal .reassurance__image img {
  width: 100%;
  height: 100%;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.blockreassurance--horizontal .reassurance__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #232323;
}
.blockreassurance--horizontal .reassurance__desc {
  font-size: 0.8rem;
  line-height: 1.3;
  color: #4a4a4a;
}
/* === end home réassurance === */

/* === Produits phares / spécialités — thumbs visibles === */
.ps-featuredproducts .product-miniature__image-container,
.ps-specials .product-miniature__image-container,
.module-products .product-miniature__image-container {
  display: block !important;
  width: 100%;
  min-height: 180px;
  background: #f7f7f7;
}
.ps-featuredproducts .product-miniature__image,
.ps-specials .product-miniature__image,
.module-products .product-miniature__image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
}
/* === end featured thumbs === */


/* === Manufacturer logos (fiche produit) === */
.product__manufacturer-logo,
.product__manufacturer img,
.details__manufacturer-logo,
.page-product .product__manufacturer img,
.page-product img.product__manufacturer-logo {
  max-height: 64px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center;
  display: inline-block;
}
.product__manufacturer {
  margin-bottom: 0.75rem;
}
/* === end manufacturer logos === */


/* === Home: coller réassurance sous slider (kill grid gap) === */
#index .page-content--home {
  gap: 0 !important;
}
#index .page-content--home > #carousel,
#index .page-content--home > #ps_imageslider,
#index .page-content--home > section:has(#ps_imageslider),
#index .page-content--home > section:has(.carousel) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
#index .blockreassurance.blockreassurance--light {
  margin-top: 0 !important;
  margin-bottom: 0.25rem !important;
  padding-block: 0.35rem 0.4rem !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.4rem !important;
}
#index .blockreassurance--horizontal {
  padding-block: 0.2rem 0.25rem !important;
}
/* spacing only after reass for following home blocks */
#index .ps-featuredproducts,
#index .ps-banner,
#index .ps-specials {
  margin-top: 1.5rem;
}
#index .ps-featuredproducts {
  margin-top: 1.25rem;
}
/* === end home stick reass === */
