/* Electroplace global visual harmonisation — navy / white / orange */
:root {
  --ep-navy: #16265C;
  --ep-navy-deep: #101B3D;
  --ep-accent: #E66A16;
  --ep-accent-hover: #C9550D;
  --ep-ink: #202A3B;
  --ep-muted: #687386;
  --ep-border: #E4E8F0;
  --ep-surface: #FFFFFF;
  --ep-page: #F6F8FC;
  --ep-radius: 14px;
  --ep-shadow: 0 5px 20px rgba(16, 27, 61, .07);
}
html { scroll-behavior: smooth; }
body { background: var(--ep-page); color: var(--ep-ink); }
.main-content { background: transparent; }
.main-content > * { max-width: 100%; }

/* Header and navigation */
.yc-header, .yc-navbar, .yc-navbar-mobile {
  color: var(--ep-ink);
}
.yc-header, .yc-navbar {
  box-shadow: 0 2px 12px rgba(16, 27, 61, .06);
}
.yc-navbar a, .yc-navbar-mobile a, .menu-list a, .menu-item a {
  transition: color .18s ease, background-color .18s ease;
}
.yc-navbar a:hover, .yc-navbar-mobile a:hover, .menu-list a:hover, .menu-item a:hover {
  color: var(--ep-accent) !important;
}
.ep-retailer-strip { background: var(--ep-navy-deep); color: #fff; }
.ep-retailer-strip a { color: #fff; }

/* Consistent section headings */
.yc-section-title, .yc-featured-products .yc-section-title,
.yc-featured-collections .yc-section-title {
  color: var(--ep-navy) !important;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-top: 28px;
  margin-bottom: 20px;
}

/* Product cards and collection tiles */
.yc-product-card, .product-holder, .product-container,
.collection-block, .yc-featured-container .collection-block {
  border-radius: var(--ep-radius);
}
.yc-product-card, .product-holder {
  background: var(--ep-surface);
  border: 1px solid var(--ep-border);
  box-shadow: 0 2px 10px rgba(16, 27, 61, .035);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.yc-product-card:hover, .product-holder:hover {
  transform: translateY(-3px);
  border-color: #D4DCEC;
  box-shadow: var(--ep-shadow);
}
.yc-product-card .product-name, .product-holder .product-title,
.product-holder .product-name, .yc-product-card .product-title {
  color: var(--ep-ink);
  font-weight: 650;
}
.yc-product-card .price, .product-holder .price,
.product-price, .product-price-container {
  color: var(--ep-navy);
  font-weight: 800;
}
.collection-block {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ep-border);
  box-shadow: 0 2px 10px rgba(16, 27, 61, .04);
}
.collection-name { color: var(--ep-navy); font-weight: 750; }

/* Buttons and interactive controls */
.yc-btn, .primary-button, .add-to-cart-btn, .checkout_cta,
.product-btn, button.primary-button {
  background: var(--ep-accent) !important;
  border-color: var(--ep-accent) !important;
  color: #fff !important;
  border-radius: 9px;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.yc-btn:hover, .primary-button:hover, .add-to-cart-btn:hover,
.checkout_cta:hover, .product-btn:hover {
  background: var(--ep-accent-hover) !important;
  border-color: var(--ep-accent-hover) !important;
  color: #fff !important;
}
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  border-color: var(--ep-border);
  border-radius: 8px;
}
input:focus, select:focus, textarea:focus {
  border-color: #8D9BC0 !important;
  outline: 2px solid rgba(22, 38, 92, .10) !important;
}

/* Product detail page */
.yc-single-product, .product-details, .product-images-container {
  color: var(--ep-ink);
}
.product-name { color: var(--ep-navy); font-weight: 800; line-height: 1.25; }
.product-description { color: #465267; line-height: 1.75; }
.product-option, .product-options, .compare-container {
  border-color: var(--ep-border);
}
.thumbnail-images img, .main-image img { border-radius: 10px; }

/* Standard content pages, search, cart and checkout */
.template-page .yc-page, .template-page .yc-page-container,
.template-search .main-content, .template-cart .yc-cart,
.template-cart .summary-box, .template-cart .cart-items-container,
.template-search .product-listing-container {
  color: var(--ep-ink);
}
.yc-page, .yc-page-container, .contact-us, .contact-form,
.summary-box, .cart-items-container, .empty-cart {
  border-radius: var(--ep-radius);
}
.summary-box, .contact-form, .contact-details {
  background: #fff;
  border: 1px solid var(--ep-border);
  box-shadow: 0 2px 12px rgba(16, 27, 61, .035);
}
.breadcrumbs-container, .breadcrumbs-wrapper { color: var(--ep-muted); }

/* Footer */
.yc-footer {
  background: var(--ep-navy-deep);
  color: rgba(255,255,255,.88);
  margin-top: 34px;
}
.yc-footer .title, .yc-footer .copyright-title { color: #fff; font-weight: 750; }
.yc-footer a { color: rgba(255,255,255,.82); }
.yc-footer a:hover { color: #FFB36F; }
.yc-footer .social-icon { border-radius: 50%; }

/* Notice bar and trust elements */
.yc-notice { background: var(--ep-navy); color: #fff; }
.yc-notice a { color: #fff; }

/* Prevent oversized empty blocks on common templates */
.template-index .main-content, .template-page .main-content,
.template-search .main-content, .template-cart .main-content,
.template-product .main-content, .template-collection .main-content {
  min-height: 0;
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .yc-section-title, .yc-featured-products .yc-section-title,
  .yc-featured-collections .yc-section-title {
    font-size: 22px;
    margin: 22px auto 15px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .yc-product-card, .product-holder { border-radius: 11px; }
  .yc-footer { margin-top: 24px; }
  .template-page .yc-page, .template-page .yc-page-container { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ElectroPlace v1.1 — catalogue, search and collection page refinement */
.template-collection .ep-collection-page,
.template-search .yc-search-100,
.template-search .yc-featured-products {
  width: min(100% - 28px, 1320px);
  margin-left: auto;
  margin-right: auto;
}
.ep-collection-intro {
  padding: 18px 0 8px;
}
.ep-collection-intro .collection-page-title,
#search-title {
  color: var(--ep-navy, #16265C);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.ep-collection-description {
  max-width: 850px;
  color: var(--ep-muted, #687386);
  line-height: 1.65;
}
.ep-collection-page .collection-heading {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 8px;
}
.ep-collection-page .sort-container {
  padding: 0;
  background: transparent;
}
.ep-collection-page .ep-catalog-toolbar,
.template-search .ep-catalog-toolbar {
  border: 1px solid var(--ep-border, #E2E6EF);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(16,27,61,.045);
}
.ep-suggest-host { z-index: 30; }
.ep-suggest {
  border-color: #DCE2EE;
  box-shadow: 0 18px 42px rgba(16,27,61,.20);
}
.ep-suggest__prod { min-height: 62px; }
.ep-suggest__prod .ep-suggest__price { margin-inline-start: auto; }
@media (max-width: 767px) {
  .template-collection .ep-collection-page,
  .template-search .yc-featured-products {
    width: calc(100% - 20px);
  }
  .ep-collection-intro { padding-top: 12px; }
  .ep-collection-page .collection-heading { justify-content: stretch; }
}


/* FIX v1.2 — menus déroulants toujours au premier plan */
.yc-header {
  position: relative !important;
  z-index: 120 !important;
  isolation: isolate;
}
.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-list {
  position: relative;
  z-index: 121 !important;
}
.yc-header .yc-navbar .menu-item[data-has-submenu="true"] {
  position: relative;
  z-index: 122;
}
.yc-header .yc-navbar .menu-item[data-has-submenu="true"]:hover,
.yc-header .yc-navbar .menu-item[data-has-submenu="true"]:focus-within,
.yc-header .yc-navbar .menu-item[data-has-submenu="true"].is-open {
  z-index: 123 !important;
}
.yc-header .yc-navbar .menu-item .sub-links {
  z-index: 1240 !important;
  max-height: min(70vh, 520px);
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.ep-desktop-search-bar,
#searchInputHolder,
.ep-suggest-host {
  z-index: 30 !important;
}
@media (max-width: 767px) {
  .yc-header {
    z-index: 120 !important;
  }
  .yc-header .yc-navbar .menu-item .sub-links {
    max-width: min(82vw, 320px);
    max-height: 65vh;
  }
}



/* ELECTROPLACE V16 — boutons de commande premium et dynamiques */
:root {
  --ep-cta-blue-1: #1769E8;
  --ep-cta-blue-2: #0B3FAF;
  --ep-cta-glow: rgba(35, 119, 255, .30);
}
.add-to-cart-button,
.ep-whatsapp-order,
.express-checkout-button,
.sticky-form-button,
#express-checkout-form button[type="submit"],
#bundle-express-checkout-form button[type="submit"],
.yc-sticky-checkout .cta-bottom-wrapper button,
.is_sticky .add-to-cart-button {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 52px !important;
  padding: 14px 26px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 16px !important;
  background: linear-gradient(115deg, var(--ep-cta-blue-1) 0%, #2457D6 48%, var(--ep-cta-blue-2) 100%) !important;
  background-size: 180% 180% !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.12) !important;
  box-shadow: 0 8px 20px rgba(11,63,175,.22), inset 0 1px 0 rgba(255,255,255,.22) !important;
  transition: transform .22s ease, box-shadow .22s ease, background-position .35s ease, filter .22s ease !important;
  cursor: pointer !important;
}
.add-to-cart-button::before,
.ep-whatsapp-order::before,
.express-checkout-button::before,
.sticky-form-button::before,
#express-checkout-form button[type="submit"]::before,
#bundle-express-checkout-form button[type="submit"]::before,
.yc-sticky-checkout .cta-bottom-wrapper button::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -60% !important;
  left: -75% !important;
  width: 48% !important;
  height: 220% !important;
  transform: rotate(22deg) !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent) !important;
  transition: left .55s ease !important;
  pointer-events: none !important;
}
.add-to-cart-button:hover,
.ep-whatsapp-order:hover,
.express-checkout-button:hover,
.sticky-form-button:hover,
#express-checkout-form button[type="submit"]:hover,
#bundle-express-checkout-form button[type="submit"]:hover,
.yc-sticky-checkout .cta-bottom-wrapper button:hover {
  transform: translateY(-3px) !important;
  background-position: 100% 50% !important;
  filter: brightness(1.06) saturate(1.08) !important;
  box-shadow: 0 13px 28px var(--ep-cta-glow), inset 0 1px 0 rgba(255,255,255,.28) !important;
}
.add-to-cart-button:hover::before,
.ep-whatsapp-order:hover::before,
.express-checkout-button:hover::before,
.sticky-form-button:hover::before,
#express-checkout-form button[type="submit"]:hover::before,
#bundle-express-checkout-form button[type="submit"]:hover::before,
.yc-sticky-checkout .cta-bottom-wrapper button:hover::before {
  left: 135% !important;
}
.add-to-cart-button:active,
.ep-whatsapp-order:active,
.express-checkout-button:active,
.sticky-form-button:active,
#express-checkout-form button[type="submit"]:active,
#bundle-express-checkout-form button[type="submit"]:active,
.yc-sticky-checkout .cta-bottom-wrapper button:active {
  transform: translateY(0) scale(.975) !important;
  box-shadow: 0 4px 10px rgba(11,63,175,.20) !important;
}
.add-to-cart-button:focus-visible,
.ep-whatsapp-order:focus-visible,
.express-checkout-button:focus-visible,
.sticky-form-button:focus-visible,
#express-checkout-form button[type="submit"]:focus-visible,
#bundle-express-checkout-form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(35,119,255,.32) !important;
  outline-offset: 3px !important;
}
.add-to-cart-button:disabled,
.express-checkout-button:disabled,
.sticky-form-button:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
@media (max-width: 767px) {
  .add-to-cart-button, .ep-whatsapp-order, .express-checkout-button,
  .sticky-form-button, #express-checkout-form button[type="submit"],
  #bundle-express-checkout-form button[type="submit"] {
    min-height: 50px !important;
    border-radius: 14px !important;
    padding: 13px 20px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .add-to-cart-button, .ep-whatsapp-order, .express-checkout-button,
  .sticky-form-button, #express-checkout-form button[type="submit"],
  #bundle-express-checkout-form button[type="submit"] {
    transition: none !important;
  }
  .add-to-cart-button::before, .ep-whatsapp-order::before,
  .express-checkout-button::before, .sticky-form-button::before { display: none !important; }
}


/* ELECTROPLACE V17 — harmonisation des boutons Commander dans les pages catégories */
:root {
  --ep-cta-blue-1: #1769E8;
  --ep-cta-blue-2: #0B3FAF;
  --ep-cta-glow: rgba(35, 119, 255, .30);
}

/* Boutons d'action des cartes produit sur les pages catégories / collections */
.ep-collection-page .ep-product-card__actions .product-btn .yc-btn-secondary,
.template-collection .ep-product-card__actions .product-btn .yc-btn-secondary,
.ep-product-card__actions .product-btn .yc-btn-secondary,
.yc-featured-products .product-list .product-block .product-btn .yc-btn-secondary,
.yc-featured-products .product-list .product-block .yc-btn,
.product-home-container .product-block .yc-btn-secondary--large,
.template-collection .product-block .yc-btn-secondary,
.template-collection .product-card .yc-btn-secondary,
.template-collection .yc-product-card .yc-btn-secondary {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 11px 16px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 13px !important;
  background: linear-gradient(115deg, #1769E8 0%, #2457D6 48%, #0B3FAF 100%) !important;
  background-size: 180% 180% !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
  text-decoration: none !important;
  box-shadow: 0 7px 17px rgba(11,63,175,.20), inset 0 1px 0 rgba(255,255,255,.22) !important;
  transition: transform .22s ease, box-shadow .22s ease, background-position .35s ease, filter .22s ease !important;
  cursor: pointer !important;
}

.ep-collection-page .ep-product-card__actions .product-btn .yc-btn-secondary::before,
.template-collection .ep-product-card__actions .product-btn .yc-btn-secondary::before,
.ep-product-card__actions .product-btn .yc-btn-secondary::before,
.yc-featured-products .product-list .product-block .product-btn .yc-btn-secondary::before,
.yc-featured-products .product-list .product-block .yc-btn::before,
.product-home-container .product-block .yc-btn-secondary--large::before,
.template-collection .product-block .yc-btn-secondary::before,
.template-collection .product-card .yc-btn-secondary::before,
.template-collection .yc-product-card .yc-btn-secondary::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -60% !important;
  left: -75% !important;
  width: 48% !important;
  height: 220% !important;
  transform: rotate(22deg) !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent) !important;
  transition: left .55s ease !important;
  pointer-events: none !important;
}

.ep-collection-page .ep-product-card__actions .product-btn .yc-btn-secondary:hover,
.template-collection .ep-product-card__actions .product-btn .yc-btn-secondary:hover,
.ep-product-card__actions .product-btn .yc-btn-secondary:hover,
.yc-featured-products .product-list .product-block .product-btn .yc-btn-secondary:hover,
.yc-featured-products .product-list .product-block .yc-btn:hover,
.product-home-container .product-block .yc-btn-secondary--large:hover,
.template-collection .product-block .yc-btn-secondary:hover,
.template-collection .product-card .yc-btn-secondary:hover,
.template-collection .yc-product-card .yc-btn-secondary:hover {
  transform: translateY(-3px) !important;
  background-position: 100% 50% !important;
  filter: brightness(1.07) saturate(1.08) !important;
  color: #fff !important;
  box-shadow: 0 12px 25px var(--ep-cta-glow), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.ep-collection-page .ep-product-card__actions .product-btn .yc-btn-secondary:hover::before,
.template-collection .ep-product-card__actions .product-btn .yc-btn-secondary:hover::before,
.ep-product-card__actions .product-btn .yc-btn-secondary:hover::before,
.yc-featured-products .product-list .product-block .product-btn .yc-btn-secondary:hover::before,
.yc-featured-products .product-list .product-block .yc-btn:hover::before,
.product-home-container .product-block .yc-btn-secondary--large:hover::before,
.template-collection .product-block .yc-btn-secondary:hover::before,
.template-collection .product-card .yc-btn-secondary:hover::before,
.template-collection .yc-product-card .yc-btn-secondary:hover::before {
  left: 135% !important;
}

.ep-collection-page .ep-product-card__actions .product-btn .yc-btn-secondary:active,
.template-collection .ep-product-card__actions .product-btn .yc-btn-secondary:active,
.ep-product-card__actions .product-btn .yc-btn-secondary:active,
.yc-featured-products .product-list .product-block .product-btn .yc-btn-secondary:active,
.yc-featured-products .product-list .product-block .yc-btn:active,
.product-home-container .product-block .yc-btn-secondary--large:active {
  transform: translateY(0) scale(.975) !important;
  box-shadow: 0 3px 9px rgba(11,63,175,.20) !important;
}

@media (max-width: 767px) {
  .ep-collection-page .ep-product-card__actions .product-btn .yc-btn-secondary,
  .template-collection .ep-product-card__actions .product-btn .yc-btn-secondary,
  .ep-product-card__actions .product-btn .yc-btn-secondary,
  .yc-featured-products .product-list .product-block .product-btn .yc-btn-secondary,
  .yc-featured-products .product-list .product-block .yc-btn,
  .product-home-container .product-block .yc-btn-secondary--large {
    min-height: 42px !important;
    border-radius: 12px !important;
    padding: 10px 13px !important;
    font-size: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-collection-page .ep-product-card__actions .product-btn .yc-btn-secondary,
  .template-collection .ep-product-card__actions .product-btn .yc-btn-secondary,
  .ep-product-card__actions .product-btn .yc-btn-secondary,
  .yc-featured-products .product-list .product-block .product-btn .yc-btn-secondary,
  .yc-featured-products .product-list .product-block .yc-btn,
  .product-home-container .product-block .yc-btn-secondary--large {
    transition: none !important;
  }
}


/* ELECTROPLACE V20 — boutons Commander des produits sur la page d’accueil */
.yc-featured-products .product-slider .product-details .yc-btn-secondary--large,
.yc-featured-products .product-slider .product-details button.yc-btn-secondary--large,
.product-home-container .product-block .product-details .yc-btn-secondary--large,
.product-column .product-home-container .product-block .yc-btn-secondary--large {
  border: 1px solid #1769E8 !important;
  border-color: #1769E8 !important;
  outline: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: 0 7px 17px rgba(11,63,175,.20), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
.yc-featured-products .product-slider .product-details .yc-btn-secondary--large:focus,
.yc-featured-products .product-slider .product-details .yc-btn-secondary--large:focus-visible,
.product-home-container .product-block .product-details .yc-btn-secondary--large:focus,
.product-home-container .product-block .product-details .yc-btn-secondary--large:focus-visible {
  border-color: #1769E8 !important;
  outline: 0 !important;
}


/* ELECTROPLACE V20 — FIX DEFINITIF DE SUPERPOSITION MENU / BARRE DE RECHERCHE
   Le header et ses sous-menus doivent rester au-dessus de la recherche sticky. */
.yc-header {
  position: relative !important;
  z-index: 5000 !important;
  isolation: isolate !important;
}
.yc-header.nav-fixed.fixed {
  position: fixed !important;
  z-index: 5001 !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-list {
  position: relative !important;
  z-index: 5002 !important;
}
.yc-header .yc-navbar .menu-item[data-has-submenu="true"],
.yc-header .yc-navbar .menu-item[data-has-submenu="true"]:hover,
.yc-header .yc-navbar .menu-item[data-has-submenu="true"]:focus-within,
.yc-header .yc-navbar .menu-item[data-has-submenu="true"].is-open {
  position: relative !important;
  z-index: 5003 !important;
}
.yc-header .yc-navbar .menu-item .sub-links {
  z-index: 5004 !important;
}
