﻿.vfm-portal-login,
.vfm-portal-login,
.vfm-portal-login *,
.vfm-portal,
.vfm-portal * {
	font-family: "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

:root {
	--vfm-qb-primary: #f2a072;
	--vfm-qb-primary-deep: #dc8a5e;
	--vfm-qb-bg-soft: #fff9f5;
	--vfm-qb-bg-soft-2: #fffdfb;
	--vfm-qb-ink: #2f2318;
	--vfm-qb-muted: #7a5d46;
	--vfm-qb-border: #f1dccd;
}

/* Supprime la marge par defaut du theme autour de la page portail */
body.vfm-client-portal-page {
	margin: 0;
	padding: 0;
	background:
		radial-gradient(circle at 14% 16%, rgba(242, 160, 114, 0.14), transparent 46%),
		radial-gradient(circle at 86% 84%, rgba(242, 160, 114, 0.1), transparent 40%),
		linear-gradient(145deg, var(--vfm-qb-bg-soft), var(--vfm-qb-bg-soft-2));
}

/* 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: 1040px;
	margin: 34px auto;
}

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

.vfm-portal-login-shell {
	padding: 20px;
	border-radius: 28px;
	background:
		radial-gradient(circle at 14% 18%, rgba(242, 160, 114, 0.28), transparent 46%),
		radial-gradient(circle at 86% 84%, rgba(242, 160, 114, 0.2), transparent 42%),
		linear-gradient(148deg, #fff6ef 0%, #fff4ea 45%, #fff9f4 100%);
	border: 2px solid rgba(220, 138, 94, 0.52);
	box-shadow: 0 16px 34px rgba(220, 138, 94, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.vfm-portal-login-layout {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vfm-portal-brand-panel {
	padding: 26px;
	border-radius: 20px;
	background: linear-gradient(160deg, rgba(242, 160, 114, 0.96) 0%, rgba(220, 138, 94, 0.96) 65%, rgba(191, 114, 74, 0.98) 100%);
	color: #fff7f1;
	border: 1px solid rgba(173, 103, 67, 0.4);
	box-shadow: 0 14px 35px rgba(144, 84, 55, 0.24);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.vfm-portal-brand-panel h2 {
	margin: 3px 0 8px;
	font-size: 1.85rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.vfm-portal-brand-panel p {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.9);
}

.vfm-portal-login-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 0;
}

.vfm-portal-login-logo img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-height: 116px !important;
	max-width: 430px !important;
	filter: drop-shadow(0 8px 14px rgba(220, 138, 94, 0.22));
	margin: 0 auto 14px;
}

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

.vfm-portal-logout-link {
	color: var(--vfm-qb-primary);
	text-decoration: none;
	font-weight: 700;
}

.vfm-portal-card {
	background: #ffffff;
	color: var(--vfm-qb-ink);
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 16px 38px rgba(220, 138, 94, 0.16);
	border: 1px solid var(--vfm-qb-border);
}

.vfm-portal-card h2 {
	margin-top: 0;
	margin-bottom: 10px;
	color: var(--vfm-qb-ink);
	font-size: 18px;
}

.vfm-portal-login-card {
	max-width: none;
	margin: 0;
	padding: 24px;
	border: 2px solid rgba(220, 138, 94, 0.36);
	box-shadow: 0 12px 30px rgba(144, 84, 55, 0.12);
}

.vfm-portal-login-card h3 {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--vfm-qb-ink);
}

.vfm-portal-login-subtitle {
	margin: 6px 0 16px;
	font-size: 0.88rem;
	color: var(--vfm-qb-muted);
}

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

.vfm-portal-login-form label {
	color: #5b3f2d;
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.vfm-portal-login-form input[type="text"],
.vfm-portal-login-form input[type="password"] {
	width: 100%;
	min-height: 42px;
	border-radius: 10px;
	border: 1px solid var(--vfm-qb-border);
	background: #fff9f2;
	color: var(--vfm-qb-ink);
	padding: 9px 11px;
	font-size: 0.89rem;
}

.vfm-portal-login-form input[type="text"]:focus,
.vfm-portal-login-form input[type="password"]:focus {
	outline: none;
	border-color: var(--vfm-qb-primary);
	box-shadow: 0 0 0 0.18rem rgba(242, 160, 114, 0.26);
}

.vfm-portal-card button {
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 11px;
	font-weight: 700;
	font-size: 14px;
	background: linear-gradient(135deg, var(--vfm-qb-primary), var(--vfm-qb-primary-deep));
	color: #fff;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(242, 160, 114, 0.30);
}

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

.vfm-portal-remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: #7a5d46;
	font-weight: 600;
}

.vfm-portal-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--vfm-qb-primary);
}

.vfm-portal-alert {
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 12px;
	font-weight: 600;
	background: #fff3e8;
	color: var(--vfm-qb-ink);
	font-size: 14px;
	border: 1px solid var(--vfm-qb-border);
}

.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: #ffffff;
	color: var(--vfm-qb-ink);
	padding: 10px 14px;
	border-radius: 0 0 12px 12px;
	border: 1px solid var(--vfm-qb-border);
	box-shadow: 0 12px 28px rgba(220, 138, 94, 0.16);
	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-lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--vfm-qb-border);
	border-radius: 8px;
	background: #ffffff;
}

.vfm-portal-lang-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	min-height: 28px;
	border-radius: 6px;
	color: var(--vfm-qb-muted);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.vfm-portal-lang-switch a:hover {
	background: var(--vfm-qb-bg);
	color: var(--vfm-qb-ink);
}

.vfm-portal-lang-switch a.is-active {
	background: var(--vfm-qb-ink);
	color: #ffffff;
}

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

.vfm-portal-top-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 0;
}

.vfm-portal-top-logo img {
	display: block;
	width: auto !important;
	height: 36px !important;
	max-height: 36px !important;
	max-width: 240px !important;
}

.vfm-portal-top-link {
	color: var(--vfm-qb-primary);
	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: #ffffff;
	color: var(--vfm-qb-ink);
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 14px 34px rgba(220, 138, 94, 0.14);
	border: 1px solid var(--vfm-qb-border);
	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-side-logo {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	text-decoration: none;
	line-height: 0;
}

.vfm-portal-side-logo img {
	display: block;
	width: auto !important;
	height: 48px !important;
	max-height: 48px !important;
	max-width: 300px !important;
}

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

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

.vfm-portal-nav a.is-active {
	background: linear-gradient(135deg, var(--vfm-qb-primary), var(--vfm-qb-primary-deep));
	border-color: var(--vfm-qb-primary);
	color: #fff;
}

.vfm-portal-nav a:hover {
	border-color: var(--vfm-qb-primary);
	color: var(--vfm-qb-primary);
}

.vfm-portal-user {
	margin-top: 14px;
	font-size: 13px;
	color: var(--vfm-qb-muted);
	display: grid;
	gap: 4px;
}

.vfm-portal-user a {
	color: var(--vfm-qb-primary);
	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-login {
		margin: 18px auto;
	}
	.vfm-portal-login-shell {
		padding: 14px;
		border-radius: 18px;
	}
	.vfm-portal-brand-panel,
	.vfm-portal-login-card {
		padding: 18px;
		border-radius: 14px;
	}
	.vfm-portal-login-logo img {
		max-width: 300px !important;
		max-height: 86px !important;
	}
	.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;
	}
}



