/* ==========================================================================
   En-tête « Comptoir »
   Bandeau d'informations · barre principale (marque, recherche, devis,
   compte, panier avec total) · bande de navigation rouge avec déroulant.
   ========================================================================== */
.hx { position: sticky; top: calc(var(--hx-top, 38px) * -1); z-index: 100; font-family: var(--bhp-font-body); }
.admin-bar .hx { top: calc(32px - var(--hx-top, 38px)); }
@media (max-width: 782px) { .admin-bar .hx { top: calc(46px - var(--hx-top, 38px)); } }
@media (max-width: 600px) { .admin-bar .hx { top: calc(var(--hx-top, 38px) * -1); } }
.hx-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.hx .bhp-icon { width: 18px; height: 18px; flex: none; }

/* ---------- Bandeau d'informations ---------- */
.hx-top { background: var(--bhp-forest-dark); color: var(--bhp-on-dark); font-size: 0.84rem; }
.hx-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.hx-top__claim { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.hx-top__claim .bhp-icon { color: var(--bhp-resin); }
.hx-top__sep { opacity: 0.5; }
.hx-top__contact { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.hx-top__contact li, .hx-top__contact a { display: inline-flex; align-items: center; gap: 0.45rem; }
body .hx-top a { color: var(--bhp-on-dark) !important; text-decoration: none; }
body .hx-top a:hover { color: #FFFFFF !important; }
.hx-top__contact .bhp-icon { width: 15px; height: 15px; color: var(--bhp-resin); }

/* ---------- Barre principale ---------- */
.hx-bar { position: relative; z-index: 100; }
.hx-main { background: #FFFFFF; border-bottom: 1px solid var(--bhp-line); transition: box-shadow 0.25s ease; }
.hx-bar.is-stuck .hx-main { box-shadow: 0 10px 30px -22px rgba(var(--bhp-shadow-rgb), 0.6); }
.hx-main__inner { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; align-items: center; gap: 28px; min-height: 92px; transition: min-height 0.25s ease; }
.hx-bar.is-stuck .hx-main__inner { min-height: 68px; }

.hx-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--bhp-ink) !important; }
.hx-brand__logo { display: block; height: 56px; width: auto; }
.hx-brand__mark { display: grid; color: var(--bhp-forest); transition: transform 0.3s ease; }
.hx-brand:hover .hx-brand__mark { transform: rotate(-8deg); }
.hx-brand__mark svg { width: 48px; height: 48px; }
.hx-brand__text { display: grid; line-height: 1.1; }
.hx-brand__name { font-family: var(--bhp-font-head); font-weight: 700; font-size: 1.35rem; color: var(--bhp-ink); white-space: nowrap; }
.hx-brand__tag { margin-top: 3px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bhp-forest); white-space: nowrap; }

.hx-search { display: flex; align-items: center; height: 50px; max-width: 560px; width: 100%; justify-self: center; border: 2px solid var(--bhp-ink); background: #FFFFFF; transition: border-color 0.2s ease; }
.hx-search:focus-within { border-color: var(--bhp-forest); }
.hx-search > .bhp-icon { margin: 0 4px 0 14px; color: var(--bhp-muted); }
.hx-search input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 10px; font: inherit; font-size: 0.98rem; color: var(--bhp-ink); outline: none; box-shadow: none; }
.hx-search button { height: 100%; padding: 0 20px; border: 0; background: var(--bhp-ink); color: #FFFFFF; font: 700 0.9rem var(--bhp-font-body); letter-spacing: 0.04em; cursor: pointer; transition: background-color 0.2s ease; }
.hx-search button:hover { background: var(--bhp-forest); }

.hx-actions { display: flex; align-items: center; gap: 10px; }
.hx-quote { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border: 1.5px solid var(--bhp-line); font-weight: 700; font-size: 0.92rem; color: var(--bhp-ink) !important; text-decoration: none; white-space: nowrap; transition: border-color 0.2s ease, color 0.2s ease; }
.hx-quote:hover { border-color: var(--bhp-forest); color: var(--bhp-forest) !important; }
.hx-icon { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; height: 50px; padding: 0 6px; border: 0; background: transparent; color: var(--bhp-ink) !important; text-decoration: none; font-size: 0.72rem; font-weight: 600; cursor: pointer; }
.hx-icon .bhp-icon { width: 22px; height: 22px; }
.hx-icon:hover { color: var(--bhp-forest) !important; }
.hx-icon--search { display: none; }
.hx-cart { display: inline-flex; align-items: center; gap: 18px; height: 50px; padding: 0 16px 0 12px; background: var(--bhp-forest); color: #FFFFFF !important; text-decoration: none; transition: background-color 0.2s ease; }
.hx-cart:hover { background: var(--bhp-green); }
.hx-cart__icon { position: relative; display: grid; }
.hx-cart__count { position: absolute; top: -9px; right: -11px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #FFFFFF; color: var(--bhp-forest); font-size: 0.72rem; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--bhp-forest); }
.hx-cart__count.is-empty { background: var(--bhp-resin); color: var(--bhp-ink); }
.hx-cart__text { display: grid; line-height: 1.1; }
.hx-cart__label { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.hx-cart__total { font-weight: 800; font-size: 0.98rem; white-space: nowrap; }

/* ---------- Bande de navigation ---------- */
.hx-nav { background: var(--bhp-forest); }
.hx-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; }
.hx-drawer__head { display: none; }
.hx-menu__list { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.hx-menu__list > li { position: relative; }
body .hx-menu__list > li > a { display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 18px; color: #FFFFFF !important; text-decoration: none; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color 0.2s ease; }
.hx-menu__list > li:first-child > a { padding-left: 0; }
body .hx-menu__list > li > a:hover, .hx-menu__list > li:focus-within > a, .hx-menu__list > .current-menu-item > a, .hx-menu__list > .current-menu-ancestor > a { background: rgba(0, 0, 0, 0.16); }
.hx-menu__list > li:first-child > a:hover { background: transparent; box-shadow: inset 0 -3px 0 #FFFFFF; }
.hx-menu__list > .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
/* Déroulant : panneau blanc en grille (catégories de la boutique). */
.hx-menu__list .sub-menu { position: absolute; top: 100%; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 2px; min-width: 440px; margin: 0; padding: 14px; list-style: none; background: #FFFFFF; border-top: 3px solid var(--bhp-ink); box-shadow: 0 30px 50px -30px rgba(var(--bhp-shadow-rgb), 0.55); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.hx-menu__list > li:hover > .sub-menu, .hx-menu__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
body .hx-menu__list .sub-menu a { display: block; padding: 11px 14px; color: var(--bhp-ink) !important; text-decoration: none; font-weight: 600; border-left: 3px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease; }
body .hx-menu__list .sub-menu a:hover { background: var(--bhp-birch); border-left-color: var(--bhp-forest); }
.hx-nav__help { display: inline-flex; align-items: center; gap: 8px; color: #FFFFFF !important; text-decoration: none; font-size: 0.88rem; white-space: nowrap; }
.hx-nav__help strong { font-weight: 800; }
.hx-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.45); }
.hx-burger, .hx-close { display: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
	.hx-quote { display: none; }
	.hx-top__hours { display: none; }
}
/* ---------- Mobile : tiroir ---------- */
@media (max-width: 960px) {
	.hx-top__contact li:not(:first-child) { display: none; }
	.hx-top__claim span:not(:nth-child(2)) { display: none; }
	.hx-main__inner { grid-template-columns: auto 1fr auto; gap: 12px; min-height: 70px; }
	.hx-bar.is-stuck .hx-main__inner { min-height: 60px; }
	.hx-burger { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
	.hx-burger span[aria-hidden] { position: relative; width: 22px; height: 2px; background: var(--bhp-ink); box-shadow: 0 -7px 0 var(--bhp-ink), 0 7px 0 var(--bhp-ink); }
	.hx-brand { justify-self: start; }
	.hx-brand__mark svg { width: 38px; height: 38px; }
	.hx-brand__name { font-size: 1.05rem; }
	.hx-brand__tag { display: none; }
	.hx-search { position: absolute; left: 0; right: 0; top: 100%; max-width: none; height: 56px; border-width: 0 0 2px; display: none; }
	.hx-search.is-open { display: flex; }
	.hx-icon--search { display: inline-flex; }
	.hx-icon__label, .hx-cart__text { display: none; }
	.hx-icon { min-width: 44px; }
	.hx-cart { height: 44px; padding: 0 12px; }
	.hx-nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 110; width: min(86vw, 360px); transform: translateX(-102%); transition: transform 0.3s ease; overflow-y: auto; }
	.hx-nav.is-open { transform: none; }
	.hx-nav__inner, .hx-nav .hx-wrap { flex-direction: column; align-items: stretch; padding: 0 0 24px !important; min-height: 100%; max-width: none; }
	.hx-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: rgba(0, 0, 0, 0.16); }
	.hx-drawer__head .hx-brand__name { color: #FFFFFF; font-size: 1.1rem; }
	.hx-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: #FFFFFF; font-size: 2rem; line-height: 1; cursor: pointer; }
	.hx-menu__list { flex-direction: column; }
	body .hx-menu__list > li > a, .hx-menu__list > li:first-child > a { height: auto; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
	.hx-menu__list .sub-menu { position: static; display: grid; grid-template-columns: 1fr; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; background: rgba(0, 0, 0, 0.14); opacity: 1; visibility: visible; transform: none; }
	body .hx-menu__list .sub-menu a { padding: 11px 20px 11px 34px; color: #FFFFFF !important; border-left: 0; }
	body .hx-menu__list .sub-menu a:hover { background: rgba(0, 0, 0, 0.12); }
	.hx-menu__list > .menu-item-has-children > a::after { display: none; }
	.hx-nav__help { margin: 20px 20px 0; }
}
@media (max-width: 560px) {
	.hx-wrap { padding: 0 12px; }
	.hx-main__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
	.hx-brand { min-width: 0; gap: 8px; }
	.hx-brand__text { min-width: 0; }
	.hx-brand__name { overflow: hidden; text-overflow: ellipsis; font-size: 0.98rem; }
	.hx-brand__mark svg { width: 34px; height: 34px; }
	.hx-icon--account { display: none; }
	.hx-actions { gap: 4px; }
	.hx-top__claim span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.hx-top__contact { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hx-nav, .hx-menu__list .sub-menu, .hx-main__inner { transition: none !important; } }

