/* En-tête 2 lignes (1.2.0). « body #header » : custom.css du thème est chargé après ce fichier. */
body .bdouin-site-description { display: none; }
body .bdh-util, body .bdh-burger, body .bdh-loupe, body .bdh-voile { display: none; }

@media (min-width: 768px) {
  body #header.bdh .header-nav { display: none; }

  /* Ligne 1 : bandeau + revendeur / langue / devise */
  body #header.bdh .bdlo-banner { display: flex; align-items: center; padding: 0 20px; min-height: 34px; position: relative; z-index: 1002; }
  body #header.bdh .bdh-pad, body #header.bdh .bdh-util { flex: 1 1 0; }
  body #header.bdh .bdh-promo { flex: 0 0 auto; }
  body #header.bdh .bdh-util { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-weight: 400; font-size: 13px; white-space: nowrap; }
  body #header.bdh .bdh-util > a { color: #1d2433; font-size: 13px !important; font-weight: 400 !important; text-transform: none !important; padding: 0; height: auto; line-height: normal; }
  body #header.bdh .bdh-util #_desktop_language_selector,
  body #header.bdh .bdh-util #_desktop_currency_selector { height: auto; padding: 0; margin: 0; }
  body #header.bdh .bdh-util .language-selector-wrapper,
  body #header.bdh .bdh-util .currency-selector { height: auto; padding: 0; margin: 0; display: flex; align-items: center; }
  body #header.bdh .bdh-util #currency-selector-label { display: none; }
  body #header.bdh .bdh-util button { font-size: 13px; padding: 0; height: auto; line-height: 1; color: #1d2433; }
  body #header.bdh .bdh-util button .expand-more { font-size: 13px; color: #1d2433; }
  body #header.bdh .bdh-util i.material-icons { font-size: 18px; width: auto; height: auto; }
  body #header.bdh .bdh-util .dropdown-menu { z-index: 1003; }

  /* Ligne 2 : barre bleue */
  body #header.bdh .header-top { height: auto; padding: 0; }
  body #header.bdh .header-top > .container > .row { display: flex; align-items: center; min-height: 64px; margin: 0; padding: 0 20px; flex-wrap: nowrap; }
  body #header.bdh #_desktop_logo { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
  body #header.bdh .header-top-right { flex: 1 1 auto; width: auto; max-width: none; display: flex; align-items: center; padding: 0; position: static; }
  body #header.bdh .header-top #_desktop_top_menu.adtm_menu_container { position: static; order: 0; margin: 0 auto; width: auto; max-width: none; background: transparent; top: auto; left: auto; padding: 0; }
  body #header.bdh .bdh-icons { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; margin-left: 24px; }
  body #header.bdh .bdh-loupe { display: flex; background: none; border: 0; padding: 0; cursor: pointer; }
  body #header.bdh .bdh-loupe svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
  body #header.bdh .bdh-icons #_desktop_user_info,
  body #header.bdh .bdh-icons #_desktop_cart { width: auto; height: auto; padding: 0; margin: 0; float: none; }
  body #header.bdh .bdh-icons .user-info, body #header.bdh .bdh-icons .user-info a { display: flex; align-items: center; height: auto; padding: 0; margin: 0; }
  body #header.bdh .bdh-icons .user-info a > span { display: none; }
  body #header.bdh .bdh-icons .user-info svg { width: 24px; height: 24px; }
  body #header.bdh .bdh-icons .user-info svg * { fill: #fff; stroke: #fff; }
  body #header.bdh .bdh-icons .blockcart { background: transparent; padding: 0; height: auto; min-height: 0; }
  body #header.bdh .bdh-icons .blockcart .header, body #header.bdh .bdh-icons .blockcart .header a { display: flex; align-items: center; padding: 0; margin: 0; height: auto; position: relative; }
  body #header.bdh .bdh-icons .blockcart .header span.hidden-sm-down { display: none; }
  body #header.bdh .bdh-icons .blockcart svg { width: 26px; height: 24px; }
  body #header.bdh .bdh-icons .blockcart svg * { stroke: #fff; }
  body #header.bdh .bdh-icons .cart-products-count { color: #fff; font-size: 14px; margin-left: 4px; }

  /* Recherche repliée derrière la loupe */
  body #header.bdh #search_widget { display: none; position: absolute; right: 20px; top: 100%; width: 360px; max-width: calc(100vw - 40px); margin: 0; padding: 10px; background: #51aabc; border-radius: 0 0 8px 8px; z-index: 1001; float: none; }
  body #header.bdh.bdh-cherche #search_widget { display: block; }
  body #header.bdh .header-top { position: relative; }

}

/* Fenêtre réduite : menu dans le ☰ */
@media (min-width: 768px) and (max-width: 1199px) {
  body #header.bdh .bdh-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-right: 12px; background: none; border: 0; padding: 8px; cursor: pointer; }
  body #header.bdh .bdh-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  body #header.bdh .bdh-icons { margin-left: auto; }
  body #header.bdh .header-top #_desktop_top_menu.adtm_menu_container { display: none; }
  body.bdh-tiroir #header.bdh .header-top #_desktop_top_menu.adtm_menu_container { display: block; position: fixed; top: 0; left: 0; bottom: 0; width: 300px; margin: 0; background: #fff; z-index: 2001; overflow-y: auto; padding: 16px 0; box-shadow: 2px 0 16px rgba(0,0,0,.2); }
  body.bdh-tiroir #header.bdh #_desktop_top_menu ul#menu { display: block; }
  body.bdh-tiroir #header.bdh #_desktop_top_menu li.li-niveau1 { display: block; float: none; width: 100%; height: auto; border-bottom: 1px solid #eef2f5; }
  body.bdh-tiroir #header.bdh #_desktop_top_menu li.li-niveau1 > a { display: block; height: auto; padding: 14px 22px; color: #1d2433; background: none; }
  body.bdh-tiroir #header.bdh #_desktop_top_menu li.li-niveau1 > a span { color: #1d2433; }
  body.bdh-tiroir #header.bdh #_desktop_top_menu .adtm_sub { display: none !important; }
  body.bdh-tiroir #header.bdh #_desktop_top_menu li.advtm_menu_toggle { display: none !important; }
  body.bdh-tiroir #header.bdh #_desktop_top_menu li.li-niveau1 > a, body.bdh-tiroir #header.bdh #_desktop_top_menu li.li-niveau1 > a .advtm_menu_span { height: auto !important; line-height: 1.3 !important; font-size: 15px; }
  body.bdh-tiroir .bdh-voile { display: block; position: fixed; inset: 0; background: rgba(29,36,51,.45); z-index: 2000; }
}
@media (min-width: 768px) and (max-width: 991px) {
  body #header.bdh .bdh-pad { display: none; }
  body #header.bdh .bdh-promo { flex: 1 1 auto; text-align: left; }
}
