/* ==========================================================================
   Popup "Home Management rejoint France Ermitage"
   ========================================================================== */

.hm-popup-fe {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

/* Classe ajoutée par le JS quand le popup doit s'afficher. */
.hm-popup-fe.is-open {
	display: flex;
}

.hm-popup-fe__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 34, 26, 0.55);
	cursor: pointer;
}

.hm-popup-fe__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 820px;
	background: #fbf9f4;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
	border-radius: 2px;
	overflow: hidden;
	animation: hm-popup-fe-in 0.25s ease-out;
}

@keyframes hm-popup-fe-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hm-popup-fe__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 38px;
	height: 38px;
	line-height: 34px;
	font-size: 26px;
	color: #222;
	background: #fff;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	transition: color 0.15s ease, background 0.15s ease;
}

.hm-popup-fe__close:hover {
	color: #6b7a35;
}

.hm-popup-fe__body {
	display: flex;
	align-items: stretch;
}

.hm-popup-fe__text {
	flex: 1 1 55%;
	padding: 48px 40px;
	text-align: center;
}

.hm-popup-fe__brand {
	margin: 0;
	font-size: 26px;
	letter-spacing: 6px;
	color: #1c2b4a;
	font-weight: 600;
}

.hm-popup-fe__subtitle {
	margin: 8px 0 0;
	font-size: 11px;
	letter-spacing: 3px;
	color: #8a8a8a;
	text-transform: uppercase;
}

.hm-popup-fe__divider {
	display: block;
	width: 90px;
	height: 2px;
	margin: 18px auto 26px;
	background: #c9a24a;
}

.hm-popup-fe__title {
	margin: 0 0 18px;
	font-size: 22px;
	line-height: 1.35;
	color: #6b7a35;
	font-weight: 700;
}

.hm-popup-fe__paragraph {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.6;
	color: #4a4a4a;
}

.hm-popup-fe__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 380px;
	padding: 16px 22px;
	background: #6b7a35;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.hm-popup-fe__cta:hover,
.hm-popup-fe__cta:focus {
	background: #59662b;
	color: #fff;
}

.hm-popup-fe__arrow {
	font-size: 20px;
	line-height: 1;
}

.hm-popup-fe__media {
	flex: 1 1 45%;
	min-height: 340px;
	background-size: cover;
	background-position: center;
	background-color: #d9d5cc;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
	.hm-popup-fe__body {
		flex-direction: column;
	}

	.hm-popup-fe__media {
		order: -1;
		min-height: 180px;
	}

	.hm-popup-fe__text {
		padding: 34px 24px 40px;
	}

	.hm-popup-fe__brand {
		font-size: 22px;
		letter-spacing: 4px;
	}
}
