/**
 * Flyout « Plugins » — sous-menu déroulant à droite dans la sidebar WP.
 */

#adminmenu .toplevel_page_volade .volade-plugins-parent {
	position: relative;
}

#adminmenu .volade-plugins-parent > a {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

#adminmenu .volade-flyout-caret {
	opacity: 0.75;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

#adminmenu .volade-plugins-parent:hover .volade-flyout-caret,
#adminmenu .volade-plugins-parent:focus-within .volade-flyout-caret,
#adminmenu .volade-plugins-parent.is-open .volade-flyout-caret {
	transform: translateX(2px);
	opacity: 1;
}

#adminmenu .volade-plugins-flyout {
	display: none;
	position: absolute;
	left: 100%;
	top: -1px;
	min-width: 196px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #2c3338;
	border: 1px solid #1d2327;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.28);
	z-index: 100001;
	border-radius: 0 6px 6px 0;
}

#adminmenu .volade-plugins-parent:hover > .volade-plugins-flyout,
#adminmenu .volade-plugins-parent:focus-within > .volade-plugins-flyout,
#adminmenu .volade-plugins-parent.is-open > .volade-plugins-flyout {
	display: block;
}

#adminmenu .volade-plugins-flyout li {
	margin: 0;
	padding: 0;
}

#adminmenu .volade-plugins-flyout li a {
	display: block !important;
	padding: 9px 16px;
	font-size: 13px;
	line-height: 1.35;
	color: #c3c4c7;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.12s ease, color 0.12s ease;
}

#adminmenu .volade-plugins-flyout li a:hover,
#adminmenu .volade-plugins-flyout li a:focus {
	color: #fff;
	background: #4f46e5;
	box-shadow: none;
}

#adminmenu .volade-plugins-flyout li.current a {
	color: #fff;
	background: #4338ca;
	font-weight: 600;
}

#adminmenu .volade-flyout-header a {
	font-weight: 600;
	color: #f0f0f1 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 2px;
	padding-bottom: 10px;
}

#adminmenu .volade-flyout-divider {
	height: 1px;
	margin: 4px 12px;
	background: rgba(255, 255, 255, 0.08);
	padding: 0 !important;
	pointer-events: none;
}

/* Menu replié : le flyout reste à droite de la ligne « Plugins » */
#adminmenu.folded .volade-plugins-flyout {
	left: 100%;
}

/* Admin mobile */
@media screen and (max-width: 782px) {
	#adminmenu .volade-plugins-flyout {
		position: static;
		display: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		background: #1d2327;
		padding: 0 0 4px 12px;
		min-width: 0;
	}

	#adminmenu .volade-plugins-parent.is-open > .volade-plugins-flyout {
		display: block;
	}

	#adminmenu .volade-plugins-parent:hover > .volade-plugins-flyout {
		display: none;
	}

	#adminmenu .volade-plugins-parent.is-open:hover > .volade-plugins-flyout {
		display: block;
	}
}
