:root{
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.72);
  --lime:#d7ff4a;

  --shadow:0 18px 55px rgba(0,0,0,.38);

  --glassTop:rgba(8,16,40,.78);
  --glassBottom:rgba(8,16,40,.52);

  --liquidA:rgba(255,255,255,.12);
  --liquidB:rgba(255,255,255,.06);
  --liquidBorder:rgba(255,255,255,.14);

  --pillR:16px;
  --pillBg:rgba(255,255,255,.06);
  --pillBgHover:rgba(255,255,255,.10);
  --pillBorder:rgba(255,255,255,.12);
  --pillBorderHover:rgba(215,255,74,.28);
  --pillShadow:0 12px 26px rgba(0,0,0,.18);

  --btnH:44px;
  --searchH:46px;

  --padX:14px;
  --icon:20px;
}

/* ===== HEADER GLASS ===== */
header#header,
#header.header{
  position:sticky !important;
  top:0 !important;
  z-index:1200 !important;
  background:linear-gradient(180deg,var(--glassTop),var(--glassBottom)) !important;
  backdrop-filter:blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(140%) !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
  box-shadow:var(--shadow) !important;
}

header#header::before,
#header.header::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 140px at 50% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 180px at 12% 10%, rgba(215,255,74,.08), transparent 55%);
  opacity:.9;
}

header#header, header#header a, header#header span, header#header i,
#header.header, #header.header a, #header.header span, #header.header i{
  color:var(--text) !important;
}

i.material-icons{ line-height:1 !important; }

#header .header__banner,
#header .header-top,
#header .header-bottom{
  background:transparent !important;
  border:0 !important;
}

/* ===== MOBILE OFFCANVAS LIQUID GLASS ===== */
.offcanvas{
  z-index:4000 !important;
  --bs-offcanvas-bg: transparent !important;
  --bs-offcanvas-color: rgba(255,255,255,.92) !important;
  background:linear-gradient(180deg,var(--liquidA),var(--liquidB)) !important;
  backdrop-filter:blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(160%) !important;
  border-color:rgba(255,255,255,.10) !important;
  box-shadow:0 40px 120px rgba(0,0,0,.55) !important;
}

.offcanvas-backdrop{
  z-index:3990 !important;
  background:rgba(0,0,0,.55) !important;
  opacity:1 !important;
}

#mobileMenu.main-menu__offcanvas{ height:100vh !important; }
#mobileMenu.main-menu__offcanvas .offcanvas-header{
  flex:0 0 auto !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
}
#mobileMenu.main-menu__offcanvas .main-menu__mobile{
  height:calc(100vh - 64px) !important;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch;
  padding-bottom:24px !important;
}

#mobileMenu .btn-close,
#searchCanvas .btn-close{
  filter:invert(1) !important;
  opacity:.90 !important;
}

/* ===== BUTTON PILLS (contact / login / cart) ===== */
#_desktop_contact_link #contact-link a,
#_desktop_user_info .header-block__action-btn,
#_desktop_cart .header-block__action-btn{
  height:var(--btnH) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  padding:0 var(--padX) !important;
  border-radius:var(--pillR) !important;
  background:var(--pillBg) !important;
  border:1px solid var(--pillBorder) !important;
  box-shadow:var(--pillShadow) !important;
  font-weight:750 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  transition:transform .16s ease, background .16s ease, border-color .16s ease !important;
}

#_desktop_contact_link #contact-link a:hover,
#_desktop_user_info .header-block__action-btn:hover,
#_desktop_cart .header-block__action-btn:hover{
  background:var(--pillBgHover) !important;
  border-color:var(--pillBorderHover) !important;
  transform:translateY(-1px) !important;
}

#_desktop_user_info .header-block__icon,
#_desktop_cart .header-block__icon{
  font-size:var(--icon) !important;
  width:var(--icon) !important;
  height:var(--icon) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Badge panier (vert plus foncé) */
#_desktop_cart .header-block__badge{
  background:rgba(60,190,70,.95) !important;
  color:#06130a !important;
  border-radius:999px !important;
  font-weight:900 !important;
  line-height:1 !important;
  min-width:26px !important;
  height:22px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 8px !important;
}

/* ===== LANGUE (texte blanc + hover comme les autres) ===== */
#_desktop_language_selector .language-selector__wrapper{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
}

#_desktop_language_selector select#language-selector.form-select.js-language-selector{
  height:var(--btnH) !important;
  display:inline-flex !important;
  align-items:center !important;
  padding:0 42px 0 var(--padX) !important;
  border-radius:var(--pillR) !important;
  background:var(--pillBg) !important;
  border:1px solid var(--pillBorder) !important;
  box-shadow:var(--pillShadow) !important;
  color:var(--text) !important;
  font-weight:800 !important;
  outline:0 !important;
  -webkit-appearance:none !important;
  appearance:none !important;
  background-image:none !important;
  line-height:var(--btnH) !important;
  transition:transform .16s ease, background .16s ease, border-color .16s ease !important;
}

#_desktop_language_selector select#language-selector.form-select.js-language-selector:hover{
  background:var(--pillBgHover) !important;
  border-color:var(--pillBorderHover) !important;
  transform:translateY(-1px) !important;
}

#_desktop_language_selector .language-selector__wrapper::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  width:8px;
  height:8px;
  border-right:2px solid rgba(255,255,255,.85);
  border-bottom:2px solid rgba(255,255,255,.85);
  transform:translateY(-60%) rotate(45deg);
  pointer-events:none;
  opacity:.9;
}

/* ===== DESKTOP: FORCE SEARCH TO STRETCH FULL WIDTH (kills col-auto + ms-auto) ===== */
@media (min-width:768px){
  .header-bottom__row{
    flex-wrap:nowrap !important;
  }

  /* CRITICAL: override Bootstrap utilities directly on your element */
  .header-bottom__row > #_desktop_search.order-2.ms-auto.col-auto.d-none.d-md-flex.align-items-center{
    margin-left:0 !important;      /* cancels ms-auto */
    flex:1 1 0 !important;         /* cancels col-auto */
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    align-items:stretch !important;
  }

  .header-bottom__row > #_desktop_search.order-2.ms-auto.col-auto.d-none.d-md-flex.align-items-center > #search_widget{
    width:100% !important;
  }

  .header-bottom__row > #_desktop_search.order-2.ms-auto.col-auto.d-none.d-md-flex.align-items-center > #search_widget form{
    width:100% !important;
  }
}

/* ===== SEARCH: hover like buttons + no overlap (absolute icons) ===== */
#_desktop_search #search_widget.search-widgets form{
  height:var(--searchH) !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 14px 34px rgba(0,0,0,.24) !important;
  position:relative !important;
  display:block !important;
  overflow:hidden !important;
  transition:transform .16s ease, background .16s ease, border-color .16s ease !important;
}

#_desktop_search #search_widget.search-widgets form:hover{
  background:rgba(255,255,255,.12) !important;
  border-color:rgba(215,255,74,.28) !important;
  transform:translateY(-1px) !important;
}

#_desktop_search #search_widget.search-widgets input[type="hidden"]{ display:none !important; }

#_desktop_search #search_widget.search-widgets i.material-icons.search.js-search-icon{
  position:absolute !important;
  left:var(--padX) !important;
  top:50% !important;
  width:34px !important;
  height:34px !important;
  transform:translateY(-50%) !important;
  display:grid !important;
  place-items:center !important;
  pointer-events:none !important;
}

#_desktop_search #search_widget.search-widgets i.material-icons.clear{
  position:absolute !important;
  right:var(--padX) !important;
  top:50% !important;
  width:34px !important;
  height:34px !important;
  transform:translateY(-50%) !important;
  display:grid !important;
  place-items:center !important;
}

#_desktop_search #search_widget.search-widgets input.js-search-input{
  width:100% !important;
  height:100% !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  margin:0 !important;
  font-weight:650 !important;
  color:var(--text) !important;
  text-align:left !important;
  text-indent:0 !important;
  padding:0 calc(var(--padX) + 34px + 12px) 0 calc(var(--padX) + 34px + 12px) !important;
}

#_desktop_search #search_widget.search-widgets input.js-search-input::placeholder{
  color:rgba(255,255,255,.68) !important;
}

/* ===== MENU hover underline lime ===== */
#top-menu.main-menu__tree .main-menu__tree__link{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  font-weight:750 !important;
  text-decoration:none !important;
  background:transparent !important;
  transition:transform .18s ease, background .18s ease !important;
}

#top-menu.main-menu__tree .main-menu__tree__link::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:7px;
  height:2px;
  border-radius:999px;
  background:var(--lime);
  opacity:0;
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .22s ease, opacity .22s ease;
}

#top-menu.main-menu__tree .main-menu__tree__link:hover{
  background:rgba(255,255,255,.06) !important;
  transform:translateY(-1px) !important;
}

#top-menu.main-menu__tree .main-menu__tree__link:hover::after{
  opacity:1;
  transform:scaleX(1);
}

/* ===== MOBILE: keep theme controls ===== */
@media (max-width:767.98px){
  #_desktop_search{ display:none !important; }
  .js-menu-desktop{ display:none !important; }
  .search__mobile{ display:flex !important; }
  #_desktop_contact_link{ display:none !important; }
}