/* Grande bannière Lourdes sur la page d'accueil */
.lourdes-hero {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0;
  overflow: hidden;
  background: #222;
  border-radius: 0;
}

.lourdes-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 60%;
}

.lourdes-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.lourdes-hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 900px;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.lourdes-hero-content h1 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
}

.lourdes-hero-content p {
  margin: 0 0 28px;
  color: #fff;
  font-size: 22px;
}

.lourdes-hero-button {
  display: inline-block;
  padding: 13px 25px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: rgba(19, 78, 140, 0.9);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.lourdes-hero-button:hover {
  background: #c39a3c;
  border-color: #c39a3c;
  color: #fff !important;
}

/* Version mobile */
@media (max-width: 767px) {
  .lourdes-hero {
    height: 330px;
  }

  .lourdes-hero-content h1 {
    font-size: 32px;
  }

  .lourdes-hero-content p {
    font-size: 17px;
  }

  .lourdes-hero-button {
    padding: 11px 18px;
    font-size: 14px;
  }
}

/* =====================================================
   ACCUEIL : menu superposé sur la bannière de Lourdes
   Uniquement sur ordinateur
===================================================== */

@media (min-width: 768px) {

   #header {
    position: relative;
    background: transparent;
  }

   #header .header-nav {
    position: absolute;
    z-index: 30;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: none;
  }

   #header .header-top {
    position: absolute;
    z-index: 29;
    top: 50px;
    left: 0;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    background: rgba(0, 0, 0, 0.20);
    box-shadow: none;
  }

  body#index .lourdes-hero {
    width: 100%;
    height: 560px;
    margin: 0;
    border-radius: 0;
  }

  body#index .lourdes-hero-content {
    top: 62%;
  }

  body#index #header .header-nav,
   #header .header-nav a,
   #header .header-top a,
   #header .top-menu a[data-depth="0"] {
    color: #fff !important;
  }

  body#index #header .top-menu a[data-depth="0"] {
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

 .top-menu > li {
    margin-right: 18px;
}

   #header .search-widget form input[type="text"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.65);
  }

  body#index #header .search-widget form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.85);
  }

  body#index #header .search-widget form button {
    color: #fff;
  }

   #header .blockcart {
    background: rgba(13, 82, 145, 0.85);
  }
}
/* =====================================================
   Fond discret uniquement derrière le contenu de l'accueil
===================================================== */
/* =====================================================
   Fond discret derrière le contenu de toutes les pages
===================================================== */

#wrapper {
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.76),
      rgba(255, 255, 255, 0.76)
    ),
    url('/themes/classic/assets/img/lourdes-banner.jpg')
    center center fixed no-repeat;

  background-size: cover;
}

/* =====================================================
   Bannière sur les pages intérieures
===================================================== */

.lourdes-hero-page {
  height: 280px;
}

.lourdes-hero-page .lourdes-hero-image {
  object-position: center 58%;
}

.lourdes-page-title {
  top: 62%;
}

.lourdes-page-title h1 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Mobile */
@media (max-width: 767px) {
  .lourdes-hero-page {
    height: 190px;
  }

  .lourdes-page-title {
    top: 50%;
  }

  .lourdes-page-title h1 {
    font-size: 26px;
  }
}

/* =====================================================
   Bandeau défilant livraison
===================================================== */

.shipping-marquee {
  width: 100%;
  overflow: hidden;
  background: #0d5291;
  color: #fff;
  height: 38px;
  line-height: 38px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.shipping-marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: shipping-scroll 20s linear infinite;
}

.shipping-marquee-content strong {
  color: #ffd54f;
}

@keyframes shipping-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Couleur du panier */
#header .blockcart,
#header .blockcart a,
#header .blockcart .header,
#header .blockcart .cart-products-count,
#header .blockcart i {
    color: #ffffff !important;
}
#header .blockcart {
    background: rgba(13,82,145,0.85) !important;
}

/* Webcam de Lourdes sur l'accueil */
.lourdes-webcam {
  padding: 50px 15px;
  text-align: center;
}

.lourdes-webcam h2 {
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 700;
}

.lourdes-webcam p {
  margin-bottom: 25px;
  font-size: 17px;
}

.webcam-video {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.webcam-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}


#search_filters_brands,
#search_filters_suppliers,
.block-category + #left-column .block:first-of-type,
.block-category + #left-column .block:nth-of-type(2) {
    display: none !important;
}

/* =====================================================
   Bandeau de consentement aux cookies
===================================================== */

.cookie-banner {
  position: fixed;
  z-index: 99999;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 20px;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.3);
}

.cookie-banner[hidden],
.cookie-settings[hidden] {
  display: none !important;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 25px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text strong {
  display: block;
  margin-bottom: 7px;
  color: #0d5291;
  font-size: 20px;
}

.cookie-banner-text p {
  margin: 0 0 6px;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #0d5291;
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}

.cookie-button {
  min-width: 115px;
  padding: 12px 20px;
  border: 2px solid #0d5291;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-refuse {
  background: #fff;
  color: #0d5291;
}

.cookie-accept {
  background: #0d5291;
  color: #fff;
}

.cookie-button:hover {
  opacity: 0.88;
}

.cookie-settings {
  position: fixed;
  z-index: 99998;
  left: 15px;
  bottom: 15px;
  padding: 9px 14px;
  border: 0;
  border-radius: 5px;
  background: #0d5291;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 16px;
  }

  .cookie-banner-content {
    display: block;
  }

  .cookie-banner-buttons {
    margin-top: 15px;
  }

  .cookie-button {
    flex: 1;
    min-width: 0;
  }
}

/* Barre de recherche placée sous le logo */
.search-under-logo {
  width: 100%;
  margin-top: 12px;
}

.search-under-logo #search_widget {
  width: 100%;
  float: none;
}

.search-under-logo form {
  width: 100%;
}

.search-under-logo input[type="text"] {
  width: 100%;
  height: 38px;
  padding-right: 38px;
  font-size: 14px;
}

.search-under-logo button {
  right: 5px;
}

/* Supprime les marges inutiles du logo */
#_desktop_logo h1 {
  margin-bottom: 0;
}


/* Cache la recherche située à droite */
.header-top-right #search_widget {
    display: none;
}

/* Boutons de la bannière */
.lourdes-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Le bouton Rechercher doit avoir le même aspect */
.lourdes-search-button {
  cursor: pointer;
  font-family: inherit;
}

/* Champ de recherche caché au départ */
.lourdes-search-box {
  display: none;
  width: 100%;
  max-width: 560px;
  margin: 18px auto 0;
}

/* Champ visible après le clic */
.lourdes-search-box.is-open {
  display: block;
}

/* Mise en forme de la recherche */
.lourdes-search-box #search_widget {
  width: 100%;
  float: none;
}

.lourdes-search-box #search_widget form {
  width: 100%;
  position: relative;
}

.lourdes-search-box #search_widget input {
  width: 100%;
  height: 46px;
  padding: 10px 50px 10px 16px;
  border-radius: 5px;
  border: 2px solid #ffffff;
  font-size: 16px;
}

.lourdes-search-box #search_widget button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

/* Téléphone */
@media (max-width: 767px) {
  .lourdes-hero-actions {
    flex-direction: column;
  }

  .lourdes-hero-actions .lourdes-hero-button {
    width: 100%;
    max-width: 280px;
  }

  .lourdes-search-box {
    max-width: 280px;
  }
}

.lourdes-search-box{
    opacity:0;
    transform:translateY(-10px);
    transition:.25s;
    pointer-events:none;
}

.lourdes-search-box.is-open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}










