/* En-tête MetHoshin par CEFAC (inc/methoshin-header.php, parts/header.html). Chargé après growaxis-home.css. */
.cefac-header .mh-logo { height: 46px; width: auto; display: block; }

/* Menu */
.cefac-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { color: #123B65 !important; font-weight: 600; }
.cefac-header .mh-domains > .wp-block-navigation-item__content { gap: 6px; }
.cefac-header .mh-domains .wp-block-navigation__submenu-icon { width: 12px; height: 12px; margin-left: 2px; color: #123B65; }
.cefac-header .wp-block-navigation__responsive-container:not(.is-menu-open) .mh-domains .wp-block-navigation__submenu-container {
	min-width: 260px;
	max-height: 70vh;
	overflow-y: auto;
	padding: 8px !important;
	border: 1px solid #EAECF0 !important;
	border-radius: 12px;
	background: #fff !important;
	box-shadow: 0 16px 36px -12px rgba(18, 59, 101, .25);
}
.cefac-header .wp-block-navigation__responsive-container:not(.is-menu-open) .mh-domains .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	min-height: 0;
	padding: 9px 12px !important;
	border-radius: 8px !important;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: none !important;
}
.cefac-header .mh-domains__all > .wp-block-navigation-item__content { font-weight: 700 !important; border-bottom: 1px solid #EAECF0; }

/* Actions à droite : recherche, Connexion, bouton turquoise */
.cefac-header .mh-actions { gap: 4px; align-items: center; }
.cefac-header .mh-actions .cefac-header__actions { flex-wrap: nowrap; }
.mh-search { position: relative; }
.mh-search__toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #123B65; cursor: pointer; }
.mh-search__toggle:hover, .mh-search__toggle[aria-expanded="true"] { background: rgba(18, 59, 101, .06); }
.mh-search__panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: min(440px, 90vw); padding: 12px; border: 1px solid #EAECF0; border-radius: 12px; background: #fff; box-shadow: 0 16px 36px -12px rgba(18, 59, 101, .25); }
.mh-search__panel .cefac-search { margin: 0; }
.cefac-header .cefac-btn-ghost .wp-block-button__link { font-weight: 600; }
.cefac-header .mh-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: radial-gradient(120% 140% at 50% 12%, rgba(255,255,255,.24), rgba(255,255,255,0) 55%), linear-gradient(135deg, #00B4C5, #008999) !important;
	color: #fff !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 8px rgba(0,0,0,.14), 0 8px 18px -8px rgba(0,120,135,.55);
	font: 700 15px/1 'Public Sans', sans-serif;
	white-space: nowrap;
	text-decoration: none;
}
.cefac-header .mh-cta .wp-block-button__link::after { content: "→"; font-size: 1.1em; }
.cefac-header .mh-cta .wp-block-button__link:hover { background: radial-gradient(120% 140% at 50% 12%, rgba(255,255,255,.32), rgba(255,255,255,0) 55%), linear-gradient(135deg, #00C2D4, #009AAC) !important; }

@media (max-width: 1100px) {
	.cefac-header .mh-cta .wp-block-button__link { padding: 0 16px !important; font-size: 14px; }
	.cefac-header .mh-logo { height: 40px; }
}
@media (max-width: 900px) {
	.cefac-header .mh-cta { display: none; }
	.cefac-header .cefac-btn-ghost { display: block !important; }
}
@media (max-width: 600px) {
	.cefac-header .mh-logo { height: 34px; }
	.mh-search__panel { position: fixed; top: 72px; left: 16px; right: 16px; width: auto; }
	.cefac-header .wp-block-navigation__responsive-container.is-menu-open .mh-domains .wp-block-navigation__submenu-container { padding-left: 16px !important; }
}
