/* =============================================
   Refonte Article Contact Popup
   Affichée après ~1min30 de lecture ou sur exit-intent.
   IDs (#popupOverlay, #articleContactPopup, #closePopup)
   pilotés par /js/articlePopup.js.
   ============================================= */

/* Backdrop */
.article-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background-color: rgba(0, 51, 41, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	z-index: 1000;
	animation: articlePopupOverlayIn 0.25s ease;
}

@keyframes articlePopupOverlayIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Centering wrapper */
.article-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1001;
	justify-content: center;
	align-items: center;
	padding: 24px;
	box-sizing: border-box;
}

/* Card */
.article-popup-card {
	position: relative;
	background-color: var(--white);
	border-radius: 24px;
	padding: 48px 40px 40px;
	max-width: 440px;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 20px;
	box-shadow: 0 24px 64px rgba(0, 51, 41, 0.32);
	animation: articlePopupCardIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes articlePopupCardIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Close button */
.article-popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: #f0f2f1;
	color: var(--dark-green);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.article-popup-close:hover {
	background-color: #e0e4e2;
}

.article-popup-close svg {
	display: block;
}

/* Title */
.article-popup-title {
	font-family: var(--font-primary);
	font-size: 26px;
	font-weight: 600;
	color: var(--dark-green);
	line-height: 1.2;
	margin: 0;
	text-align: center;
}

/* Text */
.article-popup-text {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: #475467;
	margin: 0;
	text-align: center;
}

/* CTA button (refonte lime pill, aligné sur .btn-cta-primary) */
.article-popup-cta {
	margin-top: 4px;
	height: 44px;
	padding: 6px 20px 6px 6px;
	background-color: #e6ffa3;
	border-radius: 100px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-decoration: none;
	color: #003329;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	transition: background-color 0.2s ease;
}

.article-popup-cta:hover {
	background-color: #d2f073;
}

.article-popup-cta-avatars {
	display: flex;
	align-items: center;
}

.article-popup-cta-avatars img {
	height: 32px;
	width: auto;
	border-radius: 400px;
	display: block;
}

/* Responsive */
@media (max-width: 480px) {
	.article-popup-card {
		padding: 44px 24px 32px;
		border-radius: 20px;
	}

	.article-popup-title {
		font-size: 22px;
	}
}
