/**
 * Header uniforme des pages d’aide (hors navbar landing).
 * Charge via asset() — pas besoin de rebuild Encore.
 */
:root {
	--cmz-help-topbar-h: 72px;
}

html {
	scroll-padding-top: calc(var(--cmz-help-topbar-h) + 20px) !important;
}

.nh,
.page-offset {
	padding-top: var(--cmz-help-topbar-h) !important;
	overflow: visible !important;
}

.cmz-help-topbar .topbar-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
}

.cmz-help-topbar .topbar-nav button {
	display: inline-flex;
	align-items: center;
	color: #0e3b33 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 8px 12px !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	text-transform: none !important;
	cursor: pointer;
	white-space: nowrap;
}

.cmz-help-topbar .topbar-nav button:hover {
	background: #e6f4ea !important;
	color: #165c4f !important;
}

.cmz-help-topbar.topbar,
header.cmz-help-topbar {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 200 !important;
	height: auto !important;
	min-height: var(--cmz-help-topbar-h);
	background: rgba(255, 255, 255, 0.96) !important;
	color: #0e3b33 !important;
	border-bottom: 1px solid #e0e0e0 !important;
	box-shadow: 0 8px 24px rgba(14, 59, 51, 0.06) !important;
	backdrop-filter: blur(10px);
}

.cmz-help-topbar .container.topbar-inner,
.cmz-help-topbar .topbar-inner {
	min-height: var(--cmz-help-topbar-h);
	height: auto !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	padding: 0 !important;
}

.cmz-help-topbar .topbar-left {
	display: flex !important;
	align-items: center !important;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
}

.cmz-help-topbar .nav.nav-desktop,
.cmz-help-topbar .nav-desktop {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-wrap: nowrap !important;
	gap: 6px !important;
	margin-left: auto !important;
	width: auto !important;
}

.cmz-help-topbar .nav-divider {
	width: 1px;
	height: 22px;
	background: #e0e0e0 !important;
	margin: 0 6px;
	flex-shrink: 0;
}

.cmz-help-topbar .nav-link {
	display: inline-flex;
	align-items: center;
	color: #0e3b33 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 8px 12px !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}

.cmz-help-topbar .nav-link:hover {
	background: #e6f4ea !important;
	color: #165c4f !important;
}

.cmz-help-topbar .cmz-help-login {
	color: #165c4f !important;
}

.cmz-help-topbar .btn-cta,
.cmz-help-topbar .btn.btn-cta,
.cmz-help-topbar a.btn-cta {
	display: inline-flex !important;
	align-items: center;
	background: #1f7a63 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 8px 16px !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	text-transform: none !important;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(31, 122, 99, 0.22) !important;
	margin-left: 4px;
}

.cmz-help-topbar .btn-cta:hover {
	background: #165c4f !important;
	color: #fff !important;
}

.cmz-help-topbar .burger-btn {
	display: none !important;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #e0e0e0 !important;
	border-radius: 12px;
	background: #fff !important;
	color: #0e3b33;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	box-shadow: none;
	flex-shrink: 0;
}

.cmz-help-topbar .burger-btn > span {
	display: block;
	width: 16px;
	height: 2px;
	border-radius: 999px;
	background: #0e3b33 !important;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.cmz-help-topbar .burger-btn.is-open > span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.cmz-help-topbar .burger-btn.is-open > span:nth-child(2) {
	opacity: 0;
}
.cmz-help-topbar .burger-btn.is-open > span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.cmz-help-topbar .mobile-nav-wrap {
	display: none;
	padding: 0 0 14px;
}

.cmz-help-topbar .mobile-nav-wrap.is-open {
	display: block;
}

.cmz-help-topbar .mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px 14px;
	background: #fff !important;
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	box-shadow: 0 12px 34px rgba(14, 59, 51, 0.1);
}

.cmz-help-topbar .mobile-nav-links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cmz-help-topbar .mobile-nav .nav-link,
.cmz-help-topbar .mobile-nav .btn-cta {
	width: 100%;
	justify-content: center;
	margin-left: 0;
}

.cmz-help-topbar .hide-tablet {
	display: inline-flex;
}

/* Les titres de section ne passent plus sous le header sticky */
.nh main [id],
.nh section[id],
.nh .hero[id],
.page-offset [id] {
	scroll-margin-top: calc(var(--cmz-help-topbar-h) + 20px);
}

@media (max-width: 1080px) {
	.cmz-help-topbar .hide-tablet {
		display: none;
	}
}

@media (max-width: 980px) {
	.cmz-help-topbar .container.topbar-inner,
	.cmz-help-topbar .topbar-inner {
		flex-direction: row !important;
		align-items: center !important;
	}

	.cmz-help-topbar .nav.nav-desktop,
	.cmz-help-topbar .nav-desktop {
		display: none !important;
	}

	.cmz-help-topbar .burger-btn {
		display: inline-flex !important;
		margin-left: auto;
	}
}

body.cmz-help-menu-open {
	overflow: hidden;
}
