/* Portail client : éléments communs aux trois pages publiques. */
.cmm-portal { color: var(--ui-text); padding: var(--ui-space-xl) 0; }

.cmm-portal-hero {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--ui-space-2xl);
	overflow: hidden;
	margin-bottom: var(--ui-space-2xl);
	padding: 56px 48px;
	border-radius: var(--ui-radius-xl);
	background: linear-gradient(120deg, var(--cmm-hero-from), var(--cmm-hero-via) 55%, var(--cmm-hero-to));
	background-size: 180% 180%;
	color: var(--ui-text-inverse);
	box-shadow: var(--ui-shadow-lg);
	animation: cmm-fade-up 0.5s var(--ease-out) both, cmm-portal-shift 14s ease-in-out infinite alternate;
}
.cmm-portal-hero__body { position: relative; flex: 1 1 380px; max-width: 640px; }
.cmm-portal-hero__art { position: relative; flex: 0 0 230px; width: 230px; }
.cmm-portal-empty__art { width: 180px; margin: 0 auto var(--ui-space-md); }
.cmm-portal-hero__eyebrow { margin: 0 0 var(--ui-space-sm); color: var(--cmm-gold); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cmm-portal-hero__title { margin: 0 0 var(--ui-space-md); color: var(--ui-text-inverse); font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.cmm-portal-hero__lead { margin: 0 0 var(--ui-space-xl); font-size: 17px; line-height: 1.6; opacity: 0.94; }
.cmm-portal-hero__actions { display: flex; flex-wrap: wrap; gap: var(--ui-space-md); }
.cmm-portal-hero__glow { position: absolute; border-radius: 50%; background: var(--cmm-gold); filter: blur(70px); opacity: 0.28; animation: cmm-portal-float 9s ease-in-out infinite alternate; }
.cmm-portal-hero__glow--one { top: -80px; right: 6%; width: 260px; height: 260px; }
.cmm-portal-hero__glow--two { bottom: -110px; right: 34%; width: 220px; height: 220px; background: var(--ui-cyan); animation-delay: -4s; }
@keyframes cmm-portal-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes cmm-portal-float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-26px, 20px, 0) scale(1.12); } }

.cmm-portal-stats { position: relative; display: flex; flex-wrap: wrap; gap: var(--ui-space-md); margin: 0; }
.cmm-portal-stats__item {
	min-width: 120px;
	padding: var(--ui-space-md) var(--ui-space-lg);
	border: 1px solid var(--cmm-glass-border);
	border-radius: var(--ui-radius-lg);
	background: var(--cmm-glass);
	backdrop-filter: blur(8px);
}
.cmm-portal-stats dt { font-size: 12px; font-weight: 500; opacity: 0.9; }
.cmm-portal-stats dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

.cmm-btn--outline { background: var(--ui-bg-card); border-color: var(--ui-border); }
html body a.cmm-btn--outline, html body a.cmm-btn--outline:hover, html body a.cmm-btn--outline:focus { color: var(--cmm-hero-from); }

.cmm-portal-empty { padding: 56px var(--ui-space-xl); border-radius: var(--ui-radius-lg); background: var(--ui-bg-card); box-shadow: var(--ui-shadow-sm); color: var(--ui-text-muted); text-align: center; }
.cmm-portal-empty i { margin-bottom: var(--ui-space-md); font-size: 36px; opacity: 0.6; }
.cmm-portal-empty p { margin-bottom: var(--ui-space-lg); font-size: 16px; }

.cmm-portal .form-control { min-height: 44px; border-radius: var(--ui-radius-md); }
.cmm-portal .form-control:focus { border-color: var(--cmm-hero-via); box-shadow: 0 0 0 3px var(--cmm-focus-ring); }
html body .cmm-portal .btn-primary { border-color: var(--cmm-hero-via); background: var(--cmm-hero-via); color: var(--ui-text-inverse); }
html body .cmm-portal .btn-primary:hover, html body .cmm-portal .btn-primary:focus { border-color: var(--cmm-hero-from); background: var(--cmm-hero-from); color: var(--ui-text-inverse); }

@media (max-width: 767.98px) {
	.cmm-portal-hero { padding: var(--ui-space-2xl) var(--ui-space-xl); }
	.cmm-portal-hero__title { font-size: 30px; }
	.cmm-portal-hero__art { order: -1; flex-basis: auto; width: 130px; margin: 0 auto; }
	.cmm-portal-hero__actions .cmm-btn { justify-content: center; width: 100%; }
	.cmm-portal-stats { width: 100%; }
	.cmm-portal-stats__item { flex: 1 1 100px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.cmm-portal *, .cmm-portal *::before, .cmm-portal *::after, .cmm-portal-hero {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
