/* ==========================================================================
   En-tête Wouly — couleurs et proportions reprises de la boutique actuelle
   (vert sapin, police Inter, barre de 70 px + navigation de 42 px).
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
	--wh-primary: #138670;
	--wh-primary-hover: #117865;
	--wh-title: #08382f;
	--wh-link: #0b5143;
	--wh-text: #595959;
	--wh-nav: #333333;
	--wh-nav-hover: rgba(51, 51, 51, .6);
	--wh-border: rgba(0, 0, 0, .11);
	--wh-search-bg: #f5f5f5;
	--wh-font: "Inter", Arial, Helvetica, sans-serif;
	--wh-container: 1564px;
	--wh-top: var(--wp-admin--admin-bar--height, 0px);
}

/* Largeur du contenu alignée sur l'en-tête */
@media (min-width: 768px) {
	.col-full { max-width: calc(var(--wh-container) - 30px); padding-left: 15px; padding-right: 15px; }
}

.wh-container { max-width: var(--wh-container); margin: 0 auto; padding: 0 15px; box-sizing: border-box; }

.wh, .wh-sticky, .wh-drawer, .wh-toolbar { font-family: var(--wh-font); color: var(--wh-nav); }
.wh a, .wh-sticky a, .wh-drawer a, .wh-toolbar a { text-decoration: none; }
.wh-icon { width: 20px; height: 20px; flex: none; display: block; }
.wh :focus-visible, .wh-sticky :focus-visible, .wh-drawer :focus-visible, .wh-toolbar :focus-visible { outline: 2px solid var(--wh-primary); outline-offset: 2px; }

/* Boutons de l'en-tête : sans le style des boutons de la boutique */
.wh-btn, button.wh-btn, button.wh-btn:hover, button.wh-btn:active, button.wh-btn:focus {
	background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
	padding: 0; margin: 0; color: inherit; font: inherit; line-height: 1; cursor: pointer;
}

/* --------------------------------------------------------------------------
   Barre principale
   -------------------------------------------------------------------------- */
.wh { position: relative; z-index: 100; background: #fff; }
.wh-main { border-bottom: 1px solid var(--wh-border); }
.wh-main__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; min-height: 70px; }
.wh-col--left { justify-self: start; }
.wh-col--right { justify-self: end; }

.wh-logo { display: inline-flex; align-items: center; color: var(--wh-title); }
.wh-logo:hover, .wh-logo:focus { color: var(--wh-title); }
.wh-logo__text { font-family: var(--wh-font); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.035em; }
.wh-logo__img { display: block; width: auto; height: auto; max-width: 230px; max-height: 52px; }

/* Recherche */
.wh-search { position: relative; width: 380px; max-width: 100%; margin: 0; }
.wh-search input[type="search"] {
	width: 100%; height: 46px; margin: 0; padding: 0 20px 0 42px; box-sizing: border-box;
	background: var(--wh-search-bg); border: 1px solid var(--wh-search-bg); border-radius: 35px; box-shadow: none;
	font-family: var(--wh-font); font-size: 14px; color: var(--wh-text);
	-webkit-appearance: none; appearance: none;
}
.wh-search input[type="search"]::placeholder { color: var(--wh-text); opacity: 1; }
.wh-search input[type="search"]:focus { border-color: #e2e2e2; background: #fff; outline: none; }
.wh-search input[type="search"]:focus-visible { outline: 2px solid var(--wh-primary); outline-offset: 1px; }
.wh-search__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); display: flex; color: var(--wh-nav); pointer-events: none; }
.wh-search__icon .wh-icon { width: 18px; height: 18px; }

/* Compte, favoris, panier */
.wh-tools { display: flex; align-items: center; gap: 20px; }
.wh-tool {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--wh-nav); font-size: 14px; font-weight: 500; line-height: 1; text-transform: capitalize;
	transition: color .2s ease;
}
.wh-tool:hover, .wh-tool:focus, .wh-tool:focus-visible { color: var(--wh-nav-hover); }
.wh-tool__icon { position: relative; display: inline-flex; }
.wh-count {
	position: absolute; top: -5px; right: -9px;
	min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box; border-radius: 8px;
	background: var(--wh-primary); color: #fff;
	font-family: var(--wh-font); font-size: 9px; font-weight: 400; line-height: 15px; text-align: center;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.wh-nav { border-bottom: 1px solid var(--wh-border); }
.wh-nav__inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 42px; }
.wh-nav__cats:focus { outline: none; }

.wh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
.wh-menu--info { gap: 0 14px; flex-wrap: nowrap; }
.wh-menu > li > a { white-space: nowrap; }
.wh-menu--cats { gap: 0 25px; justify-content: center; }
.wh-menu li { position: relative; margin: 0; }
.wh-menu > li > a {
	display: flex; align-items: center; gap: 4px; height: 42px;
	color: var(--wh-nav); font-size: 14px; font-weight: 500; line-height: 1; text-transform: capitalize;
	transition: color .2s ease;
}
.wh-menu--info > li > a:hover, .wh-menu--info > li > a:focus { color: var(--wh-nav-hover); }
.wh-menu--cats > li > a:hover, .wh-menu--cats > li > a:focus,
.wh-menu--cats > li:hover > a, .wh-menu--cats > li:focus-within > a,
.wh-menu--cats > li.current-menu-item > a, .wh-menu--cats > li.current-menu-ancestor > a { color: var(--wh-primary); }
.wh-caret { display: inline-flex; opacity: .7; }
.wh-caret .wh-icon { width: 11px; height: 11px; stroke-width: 2.2; }

/* Sous-menu simple */
.wh-menu .sub-menu {
	position: absolute; top: 100%; left: -20px; z-index: 30; min-width: 220px;
	list-style: none; margin: 0; padding: 12px 0; background: #fff;
	box-shadow: 0 0 3px rgba(0, 0, 0, .15);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.wh-menu li:hover > .sub-menu, .wh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.wh-menu .sub-menu a { display: block; padding: 8px 20px; color: var(--wh-text); font-size: 14px; }
.wh-menu .sub-menu a:hover, .wh-menu .sub-menu a:focus { color: var(--wh-nav); }

/* Méga-menu */
.wh-menu > li.wh-has-mega { position: static; }
.wh-mega {
	position: absolute; top: 100%; left: 50%; z-index: 30;
	width: min(1000px, calc(100vw - 30px)); box-sizing: border-box; padding: 30px;
	background: #fff; box-shadow: 0 0 3px rgba(0, 0, 0, .15);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	text-transform: none; cursor: default;
}
.wh-has-mega:hover > .wh-mega, .wh-has-mega:focus-within > .wh-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.wh-mega__grid { display: grid; grid-template-columns: repeat(var(--wh-mega-cols, 4), minmax(0, 1fr)) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
.wh-mega__card { display: flex; flex-direction: column; gap: 6px; color: var(--wh-title); }
.wh-mega__card:hover, .wh-mega__card:focus { color: var(--wh-primary); }
.wh-mega__img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin: 0 0 4px; transition: transform .25s ease; }
.wh-mega__img--empty { background: var(--wh-search-bg); }
.wh-mega__card:hover .wh-mega__img { transform: scale(1.04); }
.wh-mega__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.wh-mega__count { font-size: 13px; color: var(--wh-text); }
.wh-mega__all {
	display: flex; flex-direction: column; justify-content: center; gap: 10px;
	padding: 22px; border-radius: 10px; background: var(--wh-link); color: #fff;
}
.wh-mega__all strong { font-size: 18px; font-weight: 600; line-height: 1.3; }
.wh-mega__all span { font-size: 14px; line-height: 1.5; opacity: .85; }
.wh-mega__all a {
	align-self: flex-start; margin-top: 6px; padding: 10px 18px; border-radius: 35px;
	background: #fff; color: var(--wh-link); font-size: 13px; font-weight: 600; transition: background .2s ease;
}
.wh-mega__all a:hover, .wh-mega__all a:focus { background: #e1edeb; color: var(--wh-title); }

/* --------------------------------------------------------------------------
   En-tête compact au défilement (ordinateur)
   -------------------------------------------------------------------------- */
.wh-sticky {
	position: fixed; top: var(--wh-top); left: 0; right: 0; z-index: 99;
	background: #fff; border-bottom: 1px solid var(--wh-border);
	transform: translateY(-110%); visibility: hidden;
	transition: transform .3s ease, visibility 0s linear .3s;
}
.wh-sticky.is-visible { transform: none; visibility: visible; transition: transform .3s ease; }
.wh-sticky__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 30px; min-height: 70px; }
.wh-sticky .wh-logo__text { font-size: 26px; }
.wh-sticky .wh-logo__img { max-width: 150px; max-height: 40px; }
.wh-sticky__nav { position: static; }
.wh-sticky__inner { position: relative; }
.wh-sticky .wh-menu > li > a { height: 70px; }

/* --------------------------------------------------------------------------
   Tiroirs : menu mobile et panier
   -------------------------------------------------------------------------- */
body.wh-lock { overflow: hidden; }
.wh-overlay {
	position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .5);
	opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.wh-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.wh-drawer {
	position: fixed; top: 0; bottom: 0; z-index: 100001; width: min(340px, 86vw);
	display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
	background: #fff; color: var(--wh-text); font-size: 14px;
	visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.wh-drawer--left { left: 0; transform: translateX(-100%); }
.wh-drawer--right { right: 0; width: min(400px, 90vw); transform: translateX(100%); }
.wh-drawer.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
.wh-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--wh-border); }
.wh-drawer__title { color: var(--wh-title); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wh-drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--wh-nav); }
.wh-drawer__close:hover { color: var(--wh-primary); }
.wh-drawer .wh-search { width: auto; margin: 15px 20px; }

.wh-mnav ul { list-style: none; margin: 0; padding: 0; }
.wh-mnav .wh-menu { display: block; }
.wh-mnav .sub-menu {
	position: static; min-width: 0; padding: 0; box-shadow: none;
	opacity: 1; visibility: visible; transform: none; transition: none;
}
.wh-mnav .sub-menu[hidden] { display: none; }
.wh-mnav li { display: flex; flex-wrap: wrap; align-items: center; margin: 0; border-bottom: 1px solid var(--wh-border); }
.wh-mnav li > a { flex: 1; min-width: 0; padding: 14px 20px; color: var(--wh-nav); font-weight: 500; text-transform: capitalize; }
.wh-mnav li > a:hover, .wh-mnav li > a:focus { color: var(--wh-primary); }
.wh-mnav--info li > a { font-weight: 400; color: var(--wh-text); }
.wh-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 50px; align-self: stretch; min-height: 46px; border-left: 1px solid var(--wh-border) !important; color: var(--wh-nav); }
.wh-sub-toggle .wh-icon { width: 16px; height: 16px; transition: transform .2s ease; }
.wh-sub-toggle[aria-expanded="true"] .wh-icon { transform: rotate(180deg); }
.wh-mnav .sub-menu { flex-basis: 100%; background: #fafafa; border-top: 1px solid var(--wh-border); }
.wh-mnav .sub-menu li:last-child { border-bottom: 0; }
.wh-mnav .sub-menu a { padding: 12px 20px 12px 35px; font-size: 13px; text-transform: none; }
.wh-mnav--info { margin-top: 18px; border-top: 1px solid var(--wh-border); }
.wh-drawer__links { margin-top: auto; padding: 10px 0 20px; }
.wh-drawer__links a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--wh-nav); font-weight: 500; }
.wh-drawer__links a:hover, .wh-drawer__links a:focus { color: var(--wh-primary); }

/* Mini-panier */
.wh-drawer .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; padding: 0 20px 20px; }
.wh-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.wh-drawer .woocommerce-mini-cart-item {
	position: relative; min-height: 95px; margin: 0; padding: 15px 30px 15px 80px; box-sizing: border-box;
	border-bottom: 1px solid var(--wh-border); font-size: 14px; line-height: 1.4;
}
.wh-drawer .woocommerce-mini-cart-item img {
	position: absolute; left: 0; top: 15px; width: 65px; height: 65px; margin: 0;
	object-fit: cover; border-radius: 6px; float: none;
}
.wh-drawer .woocommerce-mini-cart-item a:not(.remove) { display: block; color: var(--wh-title); font-weight: 500; margin-bottom: 4px; }
.wh-drawer .woocommerce-mini-cart-item a:not(.remove):hover { color: var(--wh-primary); }
.wh-drawer .woocommerce-mini-cart-item .remove {
	position: absolute; right: 0; top: 15px; width: 22px; height: 22px; line-height: 20px; text-align: center;
	border-radius: 50%; color: var(--wh-nav) !important; font-size: 18px; background: none;
}
.wh-drawer .woocommerce-mini-cart-item .remove:hover { background: var(--wh-search-bg); }
.wh-drawer .woocommerce-mini-cart-item .quantity { color: var(--wh-text); font-size: 13px; }
.wh-drawer .woocommerce-mini-cart-item .amount { color: var(--wh-primary); font-weight: 600; }
.wh-drawer .woocommerce-mini-cart-item dl.variation { margin: 0 0 4px; font-size: 12px; }
.wh-drawer .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; margin: auto 0 0; padding: 18px 0;
	border-top: 1px solid var(--wh-border); color: var(--wh-title); font-weight: 600;
}
.wh-drawer .woocommerce-mini-cart__total .amount { color: var(--wh-primary); }
.wh-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.wh-drawer .woocommerce-mini-cart__buttons a.button {
	display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 13px 20px;
	border-radius: 35px; background: #f7f7f7; color: var(--wh-nav); box-shadow: none; transform: none;
	font-family: var(--wh-font); font-size: 13px; font-weight: 600; text-align: center; letter-spacing: 0;
}
.wh-drawer .woocommerce-mini-cart__buttons a.button:hover { background: #efefef; color: var(--wh-nav); box-shadow: none; transform: none; }
.wh-drawer .woocommerce-mini-cart__buttons a.button.checkout { background: var(--wh-primary); color: #fff; }
.wh-drawer .woocommerce-mini-cart__buttons a.button.checkout:hover { background: var(--wh-primary-hover); color: #fff; }
.wh-drawer .woocommerce-mini-cart__empty-message { margin: 40px 0; text-align: center; color: var(--wh-text); }

/* --------------------------------------------------------------------------
   Barre d'icônes mobile
   -------------------------------------------------------------------------- */
.wh-toolbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 390;
	display: none; background: #fff; box-shadow: 0 0 9px rgba(0, 0, 0, .12);
	padding-bottom: env(safe-area-inset-bottom);
}
.wh-toolbar__item {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
	height: 55px; color: var(--wh-nav); font-family: var(--wh-font); font-size: 11px; font-weight: 600;
}
button.wh-toolbar__item { height: 55px; font-size: 11px; font-weight: 600; line-height: 1; }
.wh-toolbar__item:hover, .wh-toolbar__item:focus { color: var(--wh-primary); }

/* --------------------------------------------------------------------------
   Tablette et mobile (moins de 1025 px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
	.wh-only-mobile { display: none !important; }
}
@media (max-width: 1024px) {
	.wh-only-desktop, .wh-nav, .wh-sticky { display: none !important; }
	.wh { position: sticky; top: var(--wh-top); border-bottom: 0; }
	.wh-main__inner { min-height: 60px; gap: 10px; }
	.wh-burger, .wh-col--right .wh-tool { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
	.wh-burger .wh-icon { width: 24px; height: 24px; }
	.wh-logo__text { font-size: 28px; }
	.wh-logo__img { max-width: 150px; max-height: 42px; }
	.wh-toolbar { display: flex; }
	body { padding-bottom: calc(55px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
	/* La barre d'administration n'est plus fixe sur petit écran. */
	.wh { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.wh-sticky, .wh-drawer, .wh-overlay, .wh-mega, .wh-menu .sub-menu { transition: none !important; }
}
