/* Electroplace — final responsive correction layer (mobile + tablet)
   This file is loaded after the shared theme styles. It changes layout only;
   product data, URLs, prices, inventory and checkout logic remain untouched. */
:root {
  --ep-mobile-gutter: 12px;
  --ep-touch-target: 44px;
}
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }

@media (max-width: 767px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  body { font-size: 14px; -webkit-text-size-adjust: 100%; }
  .main-content, .main-content > *, .container { min-width: 0; }
  .main-content { width: 100%; overflow-x: clip; }
  .container { max-width: 100% !important; }
  p, h1, h2, h3, h4, a, button, label { overflow-wrap: anywhere; }
  input, select, textarea, button { max-width: 100%; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: var(--ep-touch-target); font-size: 16px; }
  button, .yc-btn, .primary-button, .product-btn, .checkout_cta { min-height: var(--ep-touch-target); }

  /* Header : menu, logo centré, recherche et panier toujours accessibles. */
  .yc-header .yc-navbar {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: 6px !important;
    min-height: 64px !important;
    padding: 7px 10px !important;
  }
  .yc-header .yc-navbar > .menu { grid-column: 1; grid-row: 1; justify-self: start !important; min-width: 0; }
  .yc-header .yc-navbar > .logo { grid-column: 2; grid-row: 1; justify-self: center !important; min-width: 0; max-width: 100%; }
  .yc-header .yc-navbar > .logo img { display: block; width: auto !important; max-width: min(48vw, 155px) !important; max-height: 50px !important; }
  .yc-header .yc-navbar > .corner { grid-column: 3; grid-row: 1; justify-self: end !important; gap: 9px !important; min-width: 0; }
  .yc-header .yc-navbar .menu .menu-toggler { width: 42px !important; height: 42px !important; min-height: 42px !important; }
  .yc-header .yc-navbar .corner .search { display: none !important; }
  .yc-header .yc-navbar .corner .search svg { display: none !important; }
  .yc-header .yc-navbar .corner .cart { min-width: 40px; min-height: 42px; }
  .yc-header .yc-navbar .menu-list { display: none !important; }
  .ep-mobile-top-links { max-width: 100vw; gap: 7px !important; padding: 8px 10px !important; }
  .ep-mobile-top-links a { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 11px !important; font-size: 12px !important; }
  .navigation-drawer { max-width: 100vw; }
  .navigation-drawer .mobile-search { display: flex; gap: 7px; padding: 10px 12px; }
  .navigation-drawer .mobile-search input { min-width: 0; width: 100%; }

  /* Accueil : bannières fluides, raccourcis et sections sans débordement. */
  .ep-hero, .ep-hero__slider, .ep-hero__slider .splide__track,
  .ep-hero__slider .splide__list, .ep-hero__slider .splide__slide { min-width: 0; max-width: 100%; }
  .ep-hero--cats { display: block !important; }
  .ep-hero--cats .ep-catside { width: 100% !important; min-width: 0 !important; }
  .ep-home-quicklinks { width: 100%; padding: 22px 10px 18px !important; }
  .ep-home-quicklinks__heading { align-items: flex-start !important; flex-direction: column !important; gap: 8px !important; }
  .ep-home-quicklinks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
  .ep-home-quicklinks__card { min-width: 0; min-height: 138px !important; }
  .ep-home-quicklinks__copy { left: 10px !important; right: 8px !important; bottom: 10px !important; }
  .ep-home-quicklinks__copy strong { font-size: 14px !important; line-height: 1.25; }
  .ep-home-quicklinks__copy small { font-size: 10px !important; line-height: 1.3; }
  .ep-brands { overflow: hidden; }
  .ep-brands__viewport { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ep-brands__track { width: max-content; }
  .yc-section-title { padding-inline: 12px; font-size: clamp(20px, 5vw, 24px) !important; line-height: 1.25; }

  /* Catalogue, résultats de recherche et listes de produits. */
  .yc-product-listing-container { width: 100% !important; padding: 0 10px !important; }
  .yc-product-listing-container .collection-heading { display: block !important; margin: 16px auto !important; }
  .yc-product-listing-container .collection-heading .breadcrumbs-wrapper .breadcrumbs-name { font-size: 19px !important; line-height: 1.3; }
  .yc-product-listing-container .product-list,
  .yc-featured-products .product-list,
  .template-search .product-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 9px !important;
    width: 100% !important;
    margin: 16px auto 24px !important;
    padding-inline: 0 !important;
  }
  .yc-product-listing-container .product-list > *,
  .yc-featured-products .product-list > *,
  .product-list .product-block,
  .ep-product-card { min-width: 0 !important; max-width: 100%; }
  .yc-product-listing-container .product-list .product-thumbnail,
  .yc-featured-products .product-list .product-thumbnail,
  .ep-product-card .product-thumbnail {
    width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important;
    padding: 0 !important; overflow: hidden !important; background: #fff !important;
  }
  .yc-product-listing-container .product-list .product-thumbnail img,
  .yc-featured-products .product-list .product-thumbnail img,
  .ep-product-card .product-thumbnail img {
    position: static !important; display: block !important; width: 100% !important; height: 100% !important;
    max-height: none !important; transform: none !important; object-fit: contain !important;
    object-position: center !important; padding: 7px !important;
  }
  .yc-product-listing-container .product-details,
  .yc-featured-products .product-details,
  .ep-product-card .product-details { min-width: 0; padding: 8px 8px 5px !important; margin: 0 !important; }
  .yc-product-listing-container .product-title,
  .yc-featured-products .product-title,
  .ep-product-card .product-title {
    display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important;
    overflow: hidden !important; min-height: 2.65em; font-size: 12px !important; line-height: 1.35 !important;
  }
  .yc-product-listing-container .prices, .yc-featured-products .prices, .ep-product-card .prices {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; min-width: 0;
  }
  .yc-product-listing-container .product-price, .yc-featured-products .product-price, .ep-product-card .product-price {
    font-size: 14px !important; line-height: 1.3 !important; overflow-wrap: anywhere;
  }
  .ep-product-card__actions { flex-wrap: wrap; gap: 6px; padding: 5px 8px 9px !important; }
  .ep-product-card__actions .product-btn { width: 100% !important; }
  .ep-catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; padding: 10px !important; margin: 12px 0 !important; }
  .ep-catalog-toolbar .ep-catalog-search,
  .ep-catalog-toolbar .ep-catalog-count { grid-column: 1 / -1 !important; }
  .ep-catalog-toolbar label { min-width: 0; }
  .ep-catalog-toolbar input, .ep-catalog-toolbar select, .ep-catalog-toolbar button { width: 100% !important; min-width: 0 !important; height: 42px !important; font-size: 14px !important; }
  .sort-container { width: 100% !important; max-width: 100% !important; margin: 12px 0 !important; }
  .sort-container #productDropdownFiltring { width: 100% !important; min-width: 0 !important; }
  .ep-collection-page { width: 100% !important; padding: 0 10px 24px !important; }
  .ep-collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
  .ep-collections-hero-inner { padding: 18px 14px !important; }
  .ep-collections-hero h1 { font-size: clamp(23px, 6vw, 29px) !important; }
  .ep-collections-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* Fiche produit : galerie carrée 1:1, miniatures horizontales et achat clair. */
  body.template-product .yc-single-product { width: 100% !important; padding: 0 10px !important; gap: 10px !important; }
  body.template-product .yc-single-product > .product-images,
  body.template-product .yc-single-product > .product-details { width: 100% !important; min-width: 0 !important; }
  body.template-product .yc-single-product .product-images-container { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  body.template-product .yc-single-product #img-zoomer-box { width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: 1 / 1 !important; }
  body.template-product .yc-single-product #img-zoomer-box .main-image { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; }
  body.template-product .yc-single-product .thumbnail-images { width: 100% !important; min-width: 0 !important; overflow: hidden !important; }
  body.template-product .yc-single-product .thumbnail-images .splide__track { width: 100% !important; }
  body.template-product .yc-single-product .thumbnail-images .splide__list { display: flex !important; flex-direction: row !important; gap: 8px !important; }
  body.template-product .yc-single-product .thumbnail-images .image-container { flex: 0 0 68px !important; width: 68px !important; height: 68px !important; margin: 0 !important; }
  body.template-product .yc-single-product .thumbnail-images img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
  body.template-product .yc-single-product .product-name { font-size: clamp(19px, 5vw, 23px) !important; line-height: 1.28 !important; overflow-wrap: anywhere; }
  body.template-product .yc-single-product .product-details { gap: 11px !important; padding: 14px !important; }
  body.template-product .yc-single-product .product-description { font-size: 14px !important; line-height: 1.65 !important; }
  body.template-product .yc-single-product .product-details .yc-btn,
  body.template-product .yc-single-product .product-details .express-checkout-button,
  body.template-product .yc-single-product .product-details .add-to-cart-button,
  body.template-product .yc-single-product .add-to-cart-btn button { width: 100% !important; min-height: 48px !important; }
  body.template-product .ep-product-assurance { grid-template-columns: minmax(0, 1fr) !important; }
  body.template-product .yc-single-product table { display: block !important; max-width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

  /* Panier et pages éditoriales : colonnes flexibles, récapitulatif pleine largeur. */
  .yc-cart { width: 100%; margin: 20px 0 !important; }
  .yc-cart .container { width: 100% !important; padding-inline: 10px !important; }
  .yc-cart .cart-items-container { padding: 10px !important; margin: 16px 0 !important; gap: 12px !important; }
  .yc-cart .cart-table .summary-box { width: 100% !important; max-width: 100% !important; margin: 18px auto !important; padding: 15px !important; }
  .yc-cart .cart-table .summary-box .coupon-wrapper,
  .yc-cart .cart-table .summary-box form .flex { display: flex; flex-wrap: wrap; gap: 8px; }
  .yc-cart .cart-table .summary-box input { min-width: 0; flex: 1 1 150px; }
  .table-container .row { min-width: 0; grid-template-columns: 82px minmax(0, 1fr) !important; gap: 8px; }
  .table-container .row .product-preview { margin-inline-end: 0 !important; }
  .table-container .row .product-preview .product-image img { width: 76px !important; height: 76px !important; object-fit: contain !important; }
  .table-container .row .prodcut-details { min-width: 0; padding-inline-end: 28px !important; }
  .table-container .row .prodcut-details .cell { min-width: 0; }
  .table-container .row .prodcut-details .cell .product-title { font-size: 13px !important; line-height: 1.35; }
  .table-container .row .prodcut-details .close-btn { right: 0 !important; left: auto !important; top: 5px !important; }
  .yc-page, .yc-page-container, .contact-us, .contact-form, .yc-page-title { max-width: 100% !important; }
  .yc-page, .yc-page-container { padding-inline: 12px !important; }
  .contact-form, .contact-details { width: 100% !important; min-width: 0 !important; padding: 14px !important; }
  .yc-page img, .yc-page-container img, .product-description img { height: auto; max-width: 100%; }

  /* Pied de page et éléments flottants. */
  .yc-footer { width: 100%; overflow: hidden; }
  .yc-footer .container { width: calc(100% - 24px) !important; }
  .ep-compare-dock { width: calc(100% - 20px) !important; max-width: none !important; bottom: 8px !important; }
  .ep-compare-modal { padding: 8px !important; }
  .ep-compare-modal__panel { width: 100% !important; max-height: 90vh !important; padding: 12px !important; overflow: auto !important; }
}

@media (max-width: 380px) {
  :root { --ep-mobile-gutter: 8px; }
  .yc-header .yc-navbar { grid-template-columns: 40px minmax(0, 1fr) 40px !important; padding-inline: 7px !important; }
  .yc-header .yc-navbar > .logo img { max-width: min(44vw, 132px) !important; }
  .yc-product-listing-container { padding-inline: 7px !important; }
  .yc-product-listing-container .product-list, .yc-featured-products .product-list { gap: 10px 7px !important; }
  .ep-home-quicklinks__card { min-height: 125px !important; }
  .yc-product-listing-container .product-price, .yc-featured-products .product-price, .ep-product-card .product-price { font-size: 13px !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container { max-width: 100%; }
  .yc-product-listing-container { padding-inline: 22px !important; }
  .yc-product-listing-container .product-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px 14px !important; }
  .ep-collections-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .ep-home-quicklinks__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.template-product .yc-single-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 14px !important; }
  body.template-product .yc-single-product #img-zoomer-box { height: auto !important; min-height: 0 !important; aspect-ratio: 1 / 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ElectroPlace responsive refresh — Aura-inspired spacing, native brand palette */
.ep-visually-hidden {
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
.ep-desktop-search-bar {
  padding: 12px 20px !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(22,38,92,.08) !important;
}
.ep-desktop-search-bar form {
  max-width: 760px !important;
  position: relative;
  gap: 0 !important;
}
.ep-desktop-search-bar input {
  height: 50px !important;
  padding: 0 62px 0 22px !important;
  border: 1px solid #e4e8f0 !important;
  border-radius: 14px !important;
  background: #f8f9fc !important;
  font-size: 15px !important;
}
.ep-desktop-search-bar button {
  min-width: 46px !important;
  width: 46px;
  height: 46px;
  min-height: 46px !important;
  padding: 0 !important;
  position: absolute;
  right: 2px;
  top: 2px;
  border-radius: 12px !important;
  background: #16265c !important;
  font-size: 0 !important;
}
.ep-desktop-search-bar button::before {
  content: "";
  display: block;
  width: 18px;height:18px;margin:auto;
  border: 2px solid #fff;border-radius:50%;
  box-sizing:border-box;
}
.ep-desktop-search-bar button::after {
  content:"";position:absolute;width:8px;height:2px;background:#fff;
  right:11px;bottom:12px;transform:rotate(45deg);border-radius:2px;
}
.ep-mobile-search-bar { display:none; }
.ep-slide-link {
  position:absolute;inset:0;z-index:1;display:block;
  border-radius:inherit;
}
.yc-slider__desktop .content,
.yc-slider__mobile .content { position:relative;z-index:2;pointer-events:none; }
.yc-slider__desktop .content a,
.yc-slider__mobile .content a { pointer-events:auto; }

@media (min-width:768px) {
  .ep-desktop-search-bar { top:76px !important; }
  .main-content > section:first-child .yc-slider__desktop {
    height:clamp(280px, 34.72vw, 500px) !important;
  }
  .main-content > section:first-child .yc-slider__mobile { display:none !important; }
  .ep-mobile-search-bar { display:none !important; }
}
@media (max-width:767px) {
  .yc-header .yc-navbar {
    min-height:64px !important;
    padding:7px 12px !important;
    grid-template-columns:44px minmax(0,1fr) 44px !important;
    column-gap:8px !important;
  }
  .yc-header .yc-navbar > .menu { grid-column:1;grid-row:1; }
  .yc-header .yc-navbar > .logo { grid-column:2;grid-row:1;justify-self:center !important; }
  .yc-header .yc-navbar > .corner { grid-column:3;grid-row:1;justify-self:end !important; }
  .yc-header .yc-navbar .logo img { max-width:142px !important;max-height:48px !important; }
  .yc-header .yc-navbar .menu-toggler { width:40px !important;height:40px !important; }
  .ep-mobile-search-bar {
    display:block !important;
    padding:10px 12px 12px;
    background:#fff;
    border-bottom:1px solid rgba(22,38,92,.08);
  }
  .ep-mobile-search-bar form {
    display:flex;align-items:center;position:relative;
    width:100%;max-width:680px;margin:0 auto;
    border:1px solid #e4e8f0;border-radius:13px;
    background:#f7f8fb;overflow:hidden;
    box-shadow:0 2px 8px rgba(18,35,76,.045);
  }
  .ep-mobile-search-bar input {
    min-width:0;width:100%;height:48px!important;
    border:0!important;outline:0!important;box-shadow:none!important;
    background:transparent!important;color:#1b2333!important;
    padding:0 54px 0 15px!important;font-size:14px!important;
  }
  .ep-mobile-search-bar input::placeholder { color:#858b98;opacity:1; }
  .ep-mobile-search-bar button {
    position:absolute;right:4px;top:4px;
    width:40px;height:40px;display:flex;align-items:center;justify-content:center;
    border:0;border-radius:10px;background:#16265c;color:#fff;
  }
  .ep-mobile-search-bar button svg {
    width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;
    stroke-linecap:round;stroke-linejoin:round;
  }
  .ep-desktop-search-bar { display:none !important; }
  .ep-mobile-top-links {
    position:relative!important;top:auto!important;z-index:20!important;
    padding:8px 12px!important;gap:7px!important;
    background:#fff!important;
  }
  .ep-mobile-top-links a {
    padding:7px 12px!important;min-height:34px;
    border-radius:10px!important;background:#f4f6fa!important;
    border-color:#e8ebf2!important;font-size:11.5px!important;
  }
  .ep-mobile-top-links a[aria-current="page"] {
    background:#16265c!important;border-color:#16265c!important;color:#fff!important;
  }
  .main-content > section:first-child .yc-slider__desktop { display:none!important; }
  .main-content > section:first-child .yc-slider__mobile {
    display:block!important;height:clamp(190px,56vw,300px)!important;
  }
  .main-content > section:first-child .splide__slide {
    background-position:center center!important;background-size:100% 100%!important;
    background-color:#142653!important;
  }
  .main-content > section:first-child .splide__slide::after { display:none!important; }
  .main-content > section:first-child .splide__pagination { bottom:8px!important; }
  .main-content > section:first-child .splide__pagination__page {
    width:18px!important;height:3px!important;border-radius:5px!important;
  }
}


/* V3 — loupe ronde et accent orange, en priorité sur mobile */
@media (max-width:767px) {
  /* Recherche native du header : bouton loupe circulaire */
  .yc-header #searchInputHolder .search-btn,
  .yc-header .search-btn {
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:50%!important;
    background:#f58220!important;
    color:#fff!important;
    box-shadow:0 3px 9px rgba(245,130,32,.30)!important;
  }
  .yc-header #searchInputHolder .search-btn svg,
  .yc-header .search-btn svg {
    width:24px!important;height:24px!important;
    stroke:#fff!important;
  }
  /* Barre de recherche mobile ajoutée sous le logo */
  .ep-mobile-search-bar button {
    right:4px!important;top:4px!important;
    width:40px!important;height:40px!important;
    border-radius:50%!important;
    background:#f58220!important;
    color:#fff!important;
    box-shadow:0 3px 9px rgba(245,130,32,.28)!important;
  }
  .ep-mobile-search-bar button svg {
    width:22px!important;height:22px!important;
    stroke:#fff!important;
  }
}


/* V4 — style the ORIGINAL fixed search overlay (#searchInputHolder).
   This is the top fixed search field, not the secondary inline search bar. */
#searchInputHolder {
  padding: 12px 16px !important;
  box-sizing: border-box !important;
}
#searchInputHolder .container {
  width: 100% !important;
  max-width: 1000px !important;
  padding: 0 !important;
}
#searchInputHolder form.input {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 5px 6px 5px 18px !important;
  border: 1px solid #e1e5ed !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 3px 14px rgba(20,35,80,.08) !important;
}
#searchInputHolder form.input input,
#searchInputHolder input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 48px !important;
  padding: 0 8px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1b2333 !important;
  font-size: 16px !important;
}
#searchInputHolder .search-btn {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f58220 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(245,130,32,.32) !important;
}
#searchInputHolder .search-btn svg {
  display: block !important;
  width: 25px !important;
  height: 25px !important;
  color: #fff !important;
}
#searchInputHolder .search-btn svg path {
  stroke: #fff !important;
}
@media (max-width: 767px) {
  #searchInputHolder {
    padding: 10px 12px !important;
  }
  #searchInputHolder form.input {
    min-height: 56px !important;
    border-radius: 15px !important;
    padding: 4px 5px 4px 14px !important;
  }
  #searchInputHolder form.input input {
    font-size: 15px !important;
    height: 46px !important;
  }
  #searchInputHolder .search-btn {
    flex-basis: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}


/* V5 FIX — actual top sticky search bar (.ep-desktop-search-bar)
   This is the visible bar above the logo, not the hidden #searchInputHolder overlay. */
.ep-desktop-search-bar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1200 !important;
  display: block !important;
  padding: 10px 16px !important;
  background: rgba(255,255,255,.98) !important;
  border-bottom: 1px solid #e4e8f0 !important;
  box-shadow: 0 4px 16px rgba(20,35,75,.07) !important;
  backdrop-filter: blur(10px);
}
.ep-desktop-search-bar form {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
}
.ep-desktop-search-bar input {
  width: 100% !important;
  min-width: 0 !important;
  height: 58px !important;
  padding: 0 76px 0 22px !important;
  border: 2px solid #e4e8f0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: #1b2333 !important;
  font-size: clamp(15px, 2vw, 21px) !important;
  box-shadow: none !important;
}
.ep-desktop-search-bar input::placeholder {
  color: #777d89 !important;
  opacity: 1 !important;
}
.ep-desktop-search-bar button {
  position: absolute !important;
  right: 7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f58220 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(245,130,32,.32) !important;
  font-size: 0 !important;
  line-height: 1 !important;
}
.ep-desktop-search-bar button::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  left: 12px;
  box-sizing: border-box;
}
.ep-desktop-search-bar button::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
  top: 29px;
  left: 28px;
}
.ep-desktop-search-bar button:hover {
  background: #e96f0b !important;
  box-shadow: 0 4px 14px rgba(245,130,32,.42) !important;
}
@media (max-width: 767px) {
  .ep-desktop-search-bar {
    display: block !important;
    top: 0 !important;
    padding: 8px 10px !important;
  }
  .ep-desktop-search-bar input {
    height: 52px !important;
    padding: 0 64px 0 15px !important;
    border-radius: 15px !important;
    font-size: 15px !important;
  }
  .ep-desktop-search-bar button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    right: 5px !important;
  }
  .ep-desktop-search-bar button::before {
    width: 16px;height:16px;top:11px;left:11px;
  }
  .ep-desktop-search-bar button::after {
    width:8px;top:27px;left:25px;
  }
}


/* V6 — FINAL: keep ONLY the original top search overlay (#searchInputHolder).
   The duplicate inline desktop/mobile search bars have been removed from navbar markup. */
#searchInputHolder {
  box-sizing: border-box !important;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 0 !important;
  top: 0 !important;
  padding: 14px 20px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(18,35,76,.10) !important;
}
#searchInputHolder .container {
  width: 100% !important;
  max-width: 1180px !important;
  padding: 0 !important;
  margin: 0 auto !important;
}
#searchInputHolder form.input {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 6px 7px 6px 24px !important;
  border: 2px solid #e2e6ee !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
}
#searchInputHolder form.input input,
#searchInputHolder form.input input.w-full {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #20283b !important;
  font-size: clamp(16px, 2.1vw, 22px) !important;
}
#searchInputHolder form.input input::placeholder {
  color: #747b88 !important;
  opacity: 1 !important;
}
#searchInputHolder form.input .search-btn {
  flex: 0 0 52px !important;
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f58220 !important;
  color: #fff !important;
  box-shadow: 0 3px 11px rgba(245,130,32,.30) !important;
}
#searchInputHolder form.input .search-btn svg {
  display: block !important;
  width: 27px !important;
  height: 27px !important;
}
#searchInputHolder form.input .search-btn svg path {
  stroke: #fff !important;
}
@media (max-width: 767px) {
  #searchInputHolder {
    padding: 10px 12px !important;
  }
  #searchInputHolder form.input {
    min-height: 58px !important;
    padding: 5px 5px 5px 14px !important;
    border-radius: 16px !important;
  }
  #searchInputHolder form.input input,
  #searchInputHolder form.input input.w-full {
    height: 46px !important;
    font-size: 15px !important;
  }
  #searchInputHolder form.input .search-btn {
    flex-basis: 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
  }
  #searchInputHolder form.input .search-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* FIX RECHERCHE V7 — loupe toujours visible dans le bouton orange */
#searchInputHolder form.input button.search-btn {
  position: relative !important; z-index: 5 !important;
  display: flex !important; visibility: visible !important; opacity: 1 !important;
  overflow: visible !important; cursor: pointer !important;
  background: #f58220 !important; color: #fff !important;
}
#searchInputHolder form.input button.search-btn svg,
#searchInputHolder form.input button.search-btn svg * {
  display: block !important; visibility: visible !important; opacity: 1 !important;
  fill: none !important; stroke: #fff !important;
  stroke-width: 2.4px !important; stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
#searchInputHolder form.input button.search-btn svg {
  width: 27px !important; height: 27px !important; flex: 0 0 27px !important;
  pointer-events: none !important;
}
@media (max-width: 767px) {
  #searchInputHolder form.input button.search-btn svg {
    width: 24px !important; height: 24px !important; flex-basis: 24px !important;
  }
}

/* ElectroPlace V8 — Force visible search submit button (mobile + desktop) */
#searchInputHolder,
#searchInputHolder .container,
#searchInputHolder form.input { display:block !important; width:100% !important; }
#searchInputHolder form.input {
  display:flex !important; align-items:center !important; gap:6px !important;
  box-sizing:border-box !important; overflow:visible !important;
}
#searchInputHolder form.input > input,
#searchInputHolder form.input > input.w-full {
  display:block !important; flex:1 1 auto !important; min-width:0 !important; width:0 !important;
}
#searchInputHolder form.input > button.search-btn {
  display:flex !important; flex:0 0 52px !important; width:52px !important;
  min-width:52px !important; max-width:52px !important; height:52px !important;
  min-height:52px !important; max-height:52px !important; position:relative !important;
  align-items:center !important; justify-content:center !important;
  visibility:visible !important; opacity:1 !important; pointer-events:auto !important;
  margin:0 !important; padding:0 !important; border:0 !important;
  border-radius:14px !important; background:#f58220 !important;
  color:#fff !important; z-index:999 !important; overflow:visible !important;
}
#searchInputHolder form.input > button.search-btn svg,
#searchInputHolder form.input > button.search-btn svg path {
  display:block !important; visibility:visible !important; opacity:1 !important;
  fill:none !important; stroke:#fff !important; stroke-width:2.6px !important;
}
#searchInputHolder form.input > button.search-btn svg { width:26px !important; height:26px !important; flex:none !important; }
@media (max-width:767px) {
  #searchInputHolder form.input > button.search-btn { flex-basis:46px !important; width:46px !important; min-width:46px !important; max-width:46px !important; height:46px !important; min-height:46px !important; max-height:46px !important; border-radius:12px !important; }
  #searchInputHolder form.input > button.search-btn svg { width:24px !important; height:24px !important; }
}


/* V11 override: neutralise les anciennes règles V4–V8 qui réaffichaient la recherche native. */
#searchInputHolder, #searchInputHolder *, .navigation-drawer .mobile-search {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}



/* ELECTROPLACE V20 — priorité absolue du menu sur la recherche sticky mobile */
@media (max-width: 767px) {
  .yc-header,
  .yc-header.nav-fixed.fixed {
    position: relative !important;
    z-index: 5000 !important;
    isolation: isolate !important;
  }
  .yc-header .yc-navbar,
  .yc-header .yc-navbar .menu,
  .yc-header .yc-navbar .menu-list,
  .yc-header .yc-navbar .menu-item {
    overflow: visible !important;
  }
  .yc-header .yc-navbar .menu-item .sub-links {
    z-index: 5004 !important;
  }
}

/* ELECTROPLACE V21 — LOGO MOBILE + RECHERCHE STICKY DEFINITIVE */
.yc-header .yc-navbar > .logo img,
.yc-header .yc-navbar .logo img {
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Logo plus lisible sur mobile : le fichier PNG est déjà transparent et proportionné. */
@media (max-width: 767px) {
  .yc-header .yc-navbar > .logo img,
  .yc-header .yc-navbar .logo img {
    width: min(190px, 52vw) !important;
    max-width: min(190px, 52vw) !important;
    height: auto !important;
    max-height: 58px !important;
  }
}

/* Desktop/tablette : même comportement sticky, sans créer de seconde recherche. */
@media (min-width: 768px) {
  .yc-header .yc-navbar > .logo img,
  .yc-header .yc-navbar .logo img {
    width: min(230px, 18vw) !important;
    max-width: 230px !important;
    height: auto !important;
    max-height: 64px !important;
  }
}

