body.azl-app .azl-topbar {
	min-height: var(--azl-layout-topbar-height);
	position: relative;
	z-index: 10;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: var(--azl-space-4) var(--azl-layout-page-padding-x) var(--azl-space-3);
	display: flex;
	align-items: center;
	gap: var(--azl-space-4);
	width: 100%;
}

body.azl-app .azl-topbar__menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	background: var(--azl-neutral-100);
	border: none;
	border-radius: var(--azl-radius-md);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
	flex: 0 0 auto;
}

body.azl-app .azl-topbar__menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--azl-neutral-700);
}

body.azl-app .azl-topbar__search {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	max-width: 560px;
	margin: 0;
	position: relative;
	z-index: 12;
}

body.azl-app .azl-topbar__search input {
	width: 100%;
	height: auto;
	min-height: 48px;
	border: 1px solid var(--azl-line);
	border-radius: 11px;
	padding: 12px 16px 12px 48px;
	background: var(--azl-neutral-0);
	font-family: var(--azl-font-body);
	font-size: 13.5px;
	color: var(--azl-text);
	box-shadow: none;
}

body.azl-app .azl-topbar__search input:focus {
	outline: none;
	border-color: var(--azl-primary-500);
	box-shadow: 0 0 0 3px rgba(14, 143, 163, 0.1);
}

body.azl-app .azl-topbar__search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

body.azl-app .azl-topbar__search-icon {
	position: absolute;
	left: 18px;
	width: 18px;
	height: 18px;
	color: var(--azl-neutral-400);
	pointer-events: none;
	display: inline-flex;
}

body.azl-app .azl-topbar__search-icon svg {
	width: 18px;
	height: 18px;
}

body.azl-app .azl-topbar__search input::placeholder {
	color: var(--azl-neutral-400);
}

body.azl-app .azl-topbar__actions {
	flex: 0 0 auto;
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: var(--azl-space-2);
}

/* Widgets Fluent Community (profil, notifications, mode clair/sombre) */
body.azl-app .azl-topbar__fcom-actions .fcom_user_context_menu_items {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.azl-app .azl-topbar__fcom-actions .top_menu_item {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.azl-app .azl-topbar__fcom-actions .fcom_search_holder {
	display: none;
}

body.azl-app .azl-topbar__fcom-actions .fcom_color_mode {
	display: none !important;
}

body.azl-app .azl-topbar__fcom-actions .fcom_color_mode button,
body.azl-app .azl-topbar__fcom-actions .fcom_menu_button,
body.azl-app .azl-topbar__fcom-actions .fcom_theme_button {
	color: var(--azl-neutral-500);
	background: transparent;
	border: none;
	padding: 6px;
	border-radius: var(--azl-radius-md);
	min-width: 32px;
	min-height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color var(--azl-transition-fast), background var(--azl-transition-fast);
}

body.azl-app .azl-topbar__fcom-actions .fcom_color_mode button:hover,
body.azl-app .azl-topbar__fcom-actions .fcom_menu_button:hover,
body.azl-app .azl-topbar__fcom-actions .fcom_theme_button:hover {
	color: var(--azl-neutral-800);
	background: var(--azl-neutral-100);
}

body.azl-app .azl-topbar__fcom-actions .fcom_menu_item_user .user_name {
	color: var(--azl-neutral-800);
	font-size: var(--azl-text-sm);
	font-weight: var(--azl-weight-semibold);
}

body.azl-app .azl-topbar__fcom-actions .fcom_login_btn {
	border-radius: var(--azl-radius-md);
}

@media (max-width: 1023px) {
	body.azl-app .azl-topbar__menu-toggle {
		display: inline-flex;
	}
}

@media (max-width: 767px) {
	body.azl-app .azl-topbar {
		padding: var(--azl-space-3) var(--azl-space-4);
		gap: var(--azl-space-2);
	}

	body.azl-app .azl-topbar__fcom-actions .fcom_menu_item_user .user_name {
		display: none;
	}

	body.azl-app .azl-topbar__search input {
		height: 44px;
	}
}

/* Le menu utilisateur WordPress remplace le dropdown Fluent. */
body.azl-app .azl-topbar__fcom-actions .fcom_menu_item_user {
	display: none !important;
}

body.azl-app .azl-user-menu {
	position: relative;
}

body.azl-app .azl-user-menu__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px 4px 4px;
	border: none;
	background: transparent;
	border-radius: 999px;
	cursor: pointer;
	color: var(--azl-neutral-800);
	font-size: var(--azl-text-sm);
	font-weight: var(--azl-weight-semibold);
}

body.azl-app .azl-user-menu__trigger img,
body.azl-app .azl-user-menu__trigger .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

body.azl-app .azl-user-menu__chevron {
	color: var(--azl-neutral-500);
}

body.azl-app .azl-user-menu .azl-user-menu__list {
	display: none;
	list-style: none;
	margin: 0;
	padding: 8px;
	min-width: 220px;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1000;
	border-radius: 12px;
	border: 1px solid var(--azl-neutral-200, #e2e8f0);
	background: #fff;
	box-shadow: 0 12px 32px rgb(15 23 42 / 0.14);
}

body.azl-app .azl-user-menu.fcom_extend_menu .azl-user-menu__list {
	display: block;
}

body.azl-app .azl-user-menu__list .menu-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.azl-app .azl-user-menu__list .menu-item a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: #0f172a;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

body.azl-app .azl-user-menu__list .menu-item a:hover {
	background: #f1f5f9;
	color: #0f172a;
}

@media (max-width: 767px) {
	body.azl-app .azl-user-menu__name {
		display: none;
	}
}
