.vfm-portal-login,
.vfm-portal,
.vfm-portal * {
	font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* Supprime la marge par defaut du theme autour de la page portail */
body.vfm-client-portal-page {
	margin: 0;
	padding: 0;
}

/* Neutralise le header / placeholders du theme (Impreza) sur la page portail */
body.vfm-client-portal-page .l-header,
body.vfm-client-portal-page .l-titlebar,
body.vfm-client-portal-page .l-subheader,
body.vfm-client-portal-page .l-header-placeholder,
body.vfm-client-portal-page #page-header {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.vfm-client-portal-page .vfm-portal {
	margin-top: 0;
	padding-top: 82px;
}

.vfm-portal-login {
	max-width: 440px;
	margin: 30px auto;
}

.vfm-portal-login .vfm-portal-alert {
	margin-bottom: 12px;
}

.vfm-portal-logout-top {
	text-align: right;
	margin-bottom: 8px;
}

.vfm-portal-logout-link {
	color: #b197fc;
	text-decoration: none;
	font-weight: 700;
}

.vfm-portal-card {
	background: #0f172a;
	color: #e2e8f0;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
	border: 1px solid #1e293b;
}

.vfm-portal-card h2 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #f8fafc;
	font-size: 18px;
}

.vfm-portal-card label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 14px;
}

.vfm-portal-card input[type="text"],
.vfm-portal-card input[type="password"] {
	width: 100%;
	border-radius: 10px;
	border: 1px solid #334155;
	background: #0b1220;
	color: #f8fafc;
	padding: 9px 11px;
	font-size: 14px;
}

.vfm-portal-card button {
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 11px;
	font-weight: 700;
	font-size: 14px;
	background: linear-gradient(135deg, #b197fc, #8c7ac9);
	color: #f8fafc;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(14, 165, 233, 0.3);
}

.vfm-portal-remember {
	margin: 8px 0 10px 0;
}

.vfm-portal-alert {
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 12px;
	font-weight: 600;
	background: #ecfeff;
	color: #0f172a;
	font-size: 14px;
}

.vfm-portal-alert.is-error {
	background: #fef2f2;
	color: #991b1b;
}

.vfm-portal {
	display: grid;
	grid-template-columns: 260px 1fr;
	grid-template-areas:
		"topbar topbar"
		"sidebar content";
	direction: ltr;
	gap: 16px;
	min-height: 60vh;
	margin-top: 0;
	padding-top: 82px;
}

.vfm-portal-topbar {
	grid-area: topbar;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #0f172a;
	color: #e2e8f0;
	padding: 10px 14px;
	border-radius: 0 0 12px 12px;
	border: 1px solid #1e293b;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
}

.vfm-portal-top-left,
.vfm-portal-top-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vfm-portal-top-title {
	font-weight: 800;
	letter-spacing: 0.01em;
	font-size: 15px;
}

.vfm-portal-top-link {
	color: #b197fc;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}

.vfm-portal-top-user {
	font-weight: 600;
	font-size: 14px;
}

.vfm-portal-sidebar {
	grid-area: sidebar;
	background: #0f172a;
	color: #e2e8f0;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
	border: 1px solid #1e293b;
	position: sticky;
	top: 20px;
	height: fit-content;
}

.vfm-portal-brand {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.02em;
	margin-bottom: 10px;
}

.vfm-portal-nav {
	display: grid;
	gap: 8px;
}

.vfm-portal-nav a {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	color: #e2e8f0;
	text-decoration: none;
	border: 1px solid transparent;
	font-size: 14px;
}

.vfm-portal-nav a.is-active {
	background: linear-gradient(135deg, #b197fc, #8c7ac9);
	border-color: #b197fc;
	color: #f8fafc;
}

.vfm-portal-nav a:hover {
	border-color: #b197fc;
	color: #f8fafc;
}

.vfm-portal-user {
	margin-top: 14px;
	font-size: 13px;
	color: #cbd5e1;
	display: grid;
	gap: 4px;
}

.vfm-portal-user a {
	color: #b197fc;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
}

.vfm-portal-content {
	grid-area: content;
	background: #ffffff;
	border-radius: 16px;
	padding: 16px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.vfm-portal-title {
	margin: 0 0 12px 0;
	font-size: 18px;
}

.vfm-portal-body {
	border-top: 1px solid #e5e7eb;
	padding-top: 10px;
}

body.vfm-client-portal-page #wpadminbar {
	display: none !important;
	height: 0 !important;
}

body.vfm-client-portal-page.admin-bar {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

@media (max-width: 960px) {
	.vfm-portal {
		grid-template-columns: 1fr;
		grid-template-areas:
			"topbar"
			"sidebar"
			"content";
		padding-top: 0;
	}
	.vfm-portal-sidebar {
		position: relative;
		top: auto;
	}
	.vfm-portal-topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}
