/* ===========================
   LOCATRIX — Custom CSS
   Couleurs BOSCH : Bleu #014e6d / Rouge #E20015
   =========================== */

/* ===========================
   COULEURS GLOBALES
   =========================== */

a, a:hover {
  color: #014e6d;
}

/* ===========================
   HEADER
   =========================== */

#header,
#header .header-top,
.header-top,
.header-top .container,
#header .header-nav,
.header-nav {
  background-color: #ffffff !important;
  border-bottom: none !important;
}

.header-top {
  border-bottom: 3px solid #E20015 !important;
}

/* Masquer bandeaux nav du haut */
.header-nav,
nav.header-nav,
#header .header-nav,
.header_content > nav {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Logo */
#_desktop_logo img.logo {
  max-height: 180px !important;
  width: auto !important;
}

/* ===========================
   MEGA MENU — couleurs BOSCH
   =========================== */

.ets_mm_megamenu,
#ets_mm_megamenu,
nav#main-menu {
  background-color: #ffffff !important;
  border-top: none !important;
  border-bottom: 2px solid #E20015 !important;
}

.ets_mm_megamenu_content .ets_mm_categories > li > a,
.ets_mm_megamenu ul li a,
#_desktop_top_menu .top-menu[data-depth="0"] > li > a,
nav .top-menu > li > a {
  color: #014e6d !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  padding: 0 8px !important;
  letter-spacing: 0 !important;
}

.ets_mm_megamenu_content .ets_mm_categories > li > a:hover,
.ets_mm_megamenu ul li a:hover,
#_desktop_top_menu .top-menu[data-depth="0"] > li > a:hover,
#_desktop_top_menu .top-menu[data-depth="0"] > li.active > a {
  color: #E20015 !important;
}

/* Combler le gap entre menu et sous-menu */
.ets_mm_megamenu_content .mm_menus_ul > li > a {
  padding-bottom: 15px !important;
}

.ets_mm_megamenu_content .mm_menus_ul > li {
  padding-bottom: 10px !important;
  margin-bottom: -10px !important;
}

.ets_mm_megamenu_content .mm_columns_ul {
  margin-top: 0 !important;
  top: 100% !important;
}

/* ===========================
   ICÔNES HEADER
   =========================== */

#_desktop_user_info,
#search_widget,
#_desktop_cart {
  display: inline-flex !important;
  align-items: center !important;
  height: 60px !important;
  vertical-align: middle !important;
}

#_desktop_user_info {
  margin-left: 10px !important;
}

#_desktop_user_info svg {
  stroke: #014e6d !important;
}

#search_widget .material-icons,
#search_widget button,
#search_widget a,
#search_widget i,
#search_widget .search-toggle-btn {
  color: #014e6d !important;
  fill: #014e6d !important;
}

#_desktop_cart .cart-products-count,
#_desktop_cart .material-icons,
#_desktop_cart i {
  color: #014e6d !important;
}

/* ===========================
   BOUTONS
   =========================== */

.btn-primary,
.add-to-cart,
button.btn.btn-primary,
.btn.btn-primary {
  background-color: #014e6d !important;
  border-color: #014e6d !important;
  color: #ffffff !important;
  transition: all 0.2s !important;
}

.btn-primary:hover,
.add-to-cart:hover,
button.btn.btn-primary:hover {
  background-color: #E20015 !important;
  border-color: #E20015 !important;
  color: #ffffff !important;
}

/* ===========================
   PRIX
   =========================== */

.price,
.product-price,
span.price,
.product-price-and-shipping .price {
  color: #E20015 !important;
  font-weight: 700 !important;
}

/* ===========================
   BADGES / FLAGS
   =========================== */

.product-flag,
.product-flag.new,
.product-flag.on-sale {
  background-color: #E20015 !important;
  color: #ffffff !important;
}

/* ===========================
   PAGINATION
   =========================== */

.pagination .current a,
.pagination .current span {
  background-color: #014e6d !important;
  border-color: #014e6d !important;
  color: #ffffff !important;
}

.pagination a:hover {
  background-color: #E20015 !important;
  border-color: #E20015 !important;
  color: #ffffff !important;
}

/* ===========================
   FOOTER — fond bleu BOSCH
   =========================== */

#footer,
#footer .footer-container,
.footer-container,
#footer .container,
#footer .row,
#footer [class*="col-"],
#footer .wrapper,
#footer .footer_top,
#footer .footer_bottom,
#footer .footer_after,
.footer_after {
  background-color: #014e6d !important;
  color: #ffffff !important;
}

#footer a,
#footer .footer-container a {
  color: #ccddee !important;
}

#footer a:hover {
  color: #E20015 !important;
}

#footer h4,
#footer .h4,
#footer .block-title,
#footer .title_block {
  color: #ffffff !important;
  border-bottom: 2px solid #E20015 !important;
  padding-bottom: 8px !important;
}

/* ===========================
   BREADCRUMB
   =========================== */

.breadcrumb-item a {
  color: #014e6d !important;
}

.breadcrumb-item.active {
  color: #E20015 !important;
}

/* ===========================
   CARDS PRODUITS
   =========================== */

.product-miniature {
  border: 1px solid #eee;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}

.product-miniature:hover {
  box-shadow: 0 4px 15px rgba(0, 61, 124, 0.15);
}

.product-miniature .product-title a {
  color: #014e6d !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

.product-miniature .product-title a:hover {
  color: #E20015 !important;
}

/* ===========================
   IMAGES PRODUITS
   =========================== */

.image_item_product {
  height: 280px !important;
  display: block !important;
  background-color: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  overflow: hidden !important;
}

.image_item_product img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 10px !important;
}

/* ===========================
   TITRE DE SECTION
   =========================== */

.products-section-title {
  position: relative !important;
  text-align: center !important;
  margin-bottom: 30px !important;
}

.products-section-title:before {
  content: "" !important;
  background-color: #E20015 !important;
  height: 2px !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
}

.products-section-title span {
  background-color: #ffffff !important;
  padding: 0 15px !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ===========================
   SORT BY — traduction
   =========================== */

.sort-by-row .sort-by {
  font-size: 0 !important;
}

.sort-by-row .sort-by::after {
  content: "Trier par" !important;
  font-size: 14px !important;
}

/* ===========================
   MINI-PANIER
   =========================== */

#header div.blockcart.cart-preview .body.cart-hover-content {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

#header div.blockcart.cart-preview .body.cart-hover-content .product-price {
  color: #E20015 !important;
  font-weight: 700 !important;
}

#header div.blockcart.cart-preview .body.cart-hover-content .cart-total {
  border-top: 2px solid #E20015 !important;
}

/* ===========================
   BARRE COOKIES RGPD
   =========================== */

#locatrix-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #014e6d;
  color: #ffffff;
  z-index: 999999;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  border-top: 3px solid #E20015;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

#locatrix-cookie-bar.hidden {
  display: none !important;
}

.locatrix-cookie-text {
  flex: 1 1 300px;
  line-height: 1.5;
  color: #ccddee;
}

.locatrix-cookie-text a {
  color: #E20015;
  text-decoration: underline;
}

.locatrix-cookie-btn {
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.locatrix-cookie-btn--accept {
  background: #E20015;
  color: #ffffff;
}

.locatrix-cookie-btn--accept:hover {
  background: #b00010;
}

.locatrix-cookie-btn--refuse {
  background: transparent;
  color: #aaaaaa;
  border: 1px solid #aaaaaa;
}

.locatrix-cookie-btn--refuse:hover {
  border-color: #ffffff;
  color: #ffffff;
}

@media (max-width: 600px) {
  #locatrix-cookie-bar {
    flex-direction: column;
    padding: 14px 16px;
  }
}

/* ===========================
   HOMEPAGE — blocs catégories
   =========================== */

.ybc-widget-display-home .ybc-widget-item img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.ybc-widget-display-home .ybc-widget-item:nth-child(2) img {
  object-position: top center !important;
}

/* Overlay sombre */
.ybc-widget-display-home .ybc-widget-item .ybc-widget-img-link {
  position: relative !important;
  display: block !important;
}

.ybc-widget-display-home .ybc-widget-item .ybc-widget-img-link::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

/* ===========================
   HOMEPAGE — bloc textes services
   =========================== */

.custom_service {
  overflow: visible !important;
  padding-top: 20px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.custom_service li {
  padding-top: 20px !important;
  height: auto !important;
  overflow: visible !important;
}

#custom-text,
.custom-text {
  padding-top: 15px !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Suppression espace entre textes et blocs photos */
.clearfix {
  display: none !important;
}

.home-block {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ===========================
   HOMEPAGE — hero pleine largeur
   =========================== */

.locatrix-hero {
  display: block !important;
  width: 100vw !important;
  height: 450px !important;
  min-height: 450px !important;
  margin-left: calc(-50vw + 50%) !important;
  background-image: url('/modules/ybc_widget/images/widget/location_outillage_electrique.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-bottom: 30px !important;
}

/* ===========================
   HOMEPAGE — cards produits
   =========================== */

.locatrix-products-home { padding: 10px 0; }
.lp-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.lp-card { width: 260px; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; cursor: pointer; }
.lp-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.lp-card a { text-decoration: none; color: inherit; display: block; }
.lp-card img { width: 100%; height: auto; object-fit: contain; }
.lp-info { padding: 14px; }
.lp-name { font-weight: 600; font-size: 15px; color: #014e6d; margin-bottom: 6px; }
.lp-price { font-size: 14px; color: #555; margin-bottom: 12px; }
.lp-btn { display: inline-block; background: #E20015; color: #fff; padding: 8px 16px; border-radius: 4px; font-size: 13px; }
.lp-section { padding: 40px 0 !important; background: #f8f8f8 !important; }
.lp-section .lp-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.lp-section-title { text-align: center; color: #014e6d; font-size: 24px; margin-bottom: 30px; width: 100%; }

/* ===========================
   DIVERS
   =========================== */

/* Masquer icône démo YBC */
.ybc-theme-panel-btn {
  display: none !important;
}

/* ===========================
   HOMEPAGE — bloc présentation
   =========================== */

.locatrix-presentation { padding: 50px 20px 20px 20px; text-align: center; max-width: 750px; margin: 40px auto 0 auto; }
.lp-intro-title { font-size: 20px; font-weight: 700; color: #014e6d; margin-bottom: 16px; }
.lp-intro-text { font-size: 15px; color: #555; line-height: 1.8; }

/* ===========================
   FICHE PRODUIT — bloc réservation
   =========================== */

#locatrix-reservation {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-top: 30px;
}

.lp-resa-title {
  color: #014e6d;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #E20015;
  padding-bottom: 10px;
}

.lp-resa-form .lp-resa-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lp-resa-field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-resa-field label {
  font-size: 13px;
  font-weight: 600;
  color: #014e6d;
}

.lp-resa-field input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

.lp-resa-field input:focus {
  outline: none;
  border-color: #014e6d;
}

.lp-prix-total {
  background: #014e6d;
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 15px;
  min-height: 20px;
}

.lp-total-prix {
  color: #ffdd57;
}

.lp-resa-btn {
  background: #E20015;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.lp-resa-btn:hover {
  background: #b00010;
}

.lp-confirm {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 20px;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
}
/* Masque le bouton Ajouter au panier et la quantité sur les pages produit */
.product-add-to-cart,
#product-availability {
  display: none !important;
}
/* Masque définitivement le bouton panier sur les pages produit Locatrix */
[data-button-action="add-to-cart"],
.product-add-to-cart,
#product-availability,
.product-quantity {
  display: none !important;
}
/* Masque Twitter et Pinterest dans le bloc partage */
.social-sharing li.twitter,
.social-sharing li.pinterest {
  display: none !important;
}
/* Icône email dans le bloc partage */
.social-sharing li.email a::before {
  content: '✉';
  font-size: 16px;
}
.product-accessories .products-section-title {
  display: none !important;
}
.product-accessories h3 span {
  visibility: hidden;
}
.product-accessories h3::before {
  content: 'Autres produits de la catégorie';
  visibility: visible;
  display: block;
}
.product-accessories h3 span {
  visibility: hidden;
}
.product-accessories h3::before {
  content: 'Autres produits de la catégorie';
  visibility: visible;
  display: block;
}
/* =============================================
   MENU MOBILE — styles et couleurs
   ============================================= */
@media (max-width: 767px) {
  .ets_mm_megamenu_content .mm_menus_ul {
    background-color: #ffffff !important;
  }

  .ets_mm_megamenu_content .mm_menus_ul > li.close_menu {
    background-color: #014e6d !important;
    color: #ffffff !important;
  }

  .ets_mm_megamenu_content .mm_menus_ul > li.close_menu * {
    color: #ffffff !important;
  }

  .ets_mm_megamenu_content .mm_menus_ul > li.close_menu .icon-bar {
    background-color: #ffffff !important;
  }

  .ets_mm_megamenu_content .mm_menus_ul > li.mm_menus_li {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  .ets_mm_megamenu_content .mm_menus_ul > li.mm_menus_li > a {
    color: #014e6d !important;
    font-weight: 700 !important;
  }

  .ets_mm_megamenu_content .mm_menus_ul > li.mm_menus_li > a:hover {
    color: #E20015 !important;
  }
}
/* Cross-selling — masquer panier et aperçu rapide */
.product-accessories .highlighted-informations,
.crossselling .highlighted-informations,
#carousel_rel_product .highlighted-informations {
  display: none !important;
}
/* Suppression bouton ajout au panier — site de location */
.add_to_cart,
.add-to-cart,
.highlighted-informations,
.cart-wishlist-action,
#add-to-cart-or-refresh {
  display: none !important;
}
/* Prix — suffix /jour partout */
span.price::after {
  content: " / jour";
  font-size: 0.85em;
}
/* Fiche produit — masquer onglet Détails du produit */
a[href="#product-details"],
#product-details {
  display: none !important;
}
/* Présentation Locatrix — texte justifié */
.lp-intro-text {
  text-align: justify !important;
}
/* Blocs arguments — fond rouge, texte blanc */
.ybc-widget-ybc-custom-3 .ybc-widget-title {
  background-color: #E20015 !important;
  color: #ffffff !important;
  padding: 10px 14px !important;
  border-radius: 4px !important;
  display: inline-block !important;
}
@media (max-width: 768px) {
  .locatrix-hero {
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
  }

  .locatrix-hero img {
    height: 70px !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}
@media (max-width: 768px) {
  .locatrix-hero img {
    object-position: center center !important;
  }
}
/* Badge disponibilité */
#locatrix-availability {
  margin: 12px 0 16px 0;
}
.lp-dispo-available {
  display: inline-block;
  background-color: #2e7d32;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.lp-dispo-unavailable {
  display: inline-block;
  background-color: #e65100;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.lp-dispo-loading {
  color: #aaaaaa;
  font-size: 12px;
  font-style: italic;
}
/* ===== Panier flottant ===== */
#lp-panier-flottant {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #014e6d;
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: background-color 0.2s;
}
#lp-panier-flottant:hover {
  background-color: #E20015;
}
.lp-panier-count {
  background-color: #E20015;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
#lp-prix-total:empty {
  display: none !important;
}
/* ===== Toast notification ajout panier ===== */
#lp-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background-color: #014e6d;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
#lp-toast.lp-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Masquer le picto panier header */
#_desktop_cart {
  display: none !important;
}
/* Barre de recherche — bouton */
#search_widget form button[type="submit"] {
  background-color: #014e6d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  cursor: pointer !important;
}
#search_widget form button[type="submit"]:hover {
  background-color: #E20015 !important;
}
/* Blocs arguments — titre centré */
.ybc-widget-ybc-custom-3 .ybc-widget-title {
  display: block !important;
  text-align: center !important;
  margin: 0 auto !important;
}
/* Blocs arguments — espace entre titre et texte */
.ybc-widget-ybc-custom-3 .ybc-widget-title {
  display: block !important;
  text-align: center !important;
  margin: 0 auto 12px auto !important;
}