/* ==================================================================
   POP-UP PEGASYS — chargé uniquement sur les pages 938 (EN) / 958 (FR)
   Markup : functions.php > acx_popup_markup() | Logique : js/acx-popup.js
   ================================================================== */

.acx-popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000; /* au-dessus de l'en-tête fixe Divi (99999) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .25s ease;
}
.acx-popup[hidden] {
	display: none;
}
.acx-popup.is-visible {
	opacity: 1;
}
.acx-popup__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(11, 30, 74, .85);
	cursor: pointer;
}
.acx-popup__dialog {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-top: 5px solid #044afa;
	border-radius: 6px;
	padding: 36px 40px 32px;
	transform: translateY(12px);
	transition: transform .25s ease;
}
.acx-popup.is-visible .acx-popup__dialog {
	transform: none;
}

/* Bouton X */
.acx-popup__x {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #888780;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.acx-popup__x:hover,
.acx-popup__x:focus {
	color: #044afa;
	outline: none;
}
.acx-popup__x:focus-visible {
	outline: 2px solid #044afa;
	outline-offset: 2px;
	border-radius: 3px;
}

/* Textes */
.acx-popup__label {
	margin: 0 0 8px;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.5px;
	line-height: 1.4;
	text-transform: uppercase;
	color: #044afa;
}
.acx-popup__title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: #0c33ad;
}
.acx-popup__body {
	margin: 0 0 24px;
	padding: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #303030;
}

/* Actions */
.acx-popup__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.acx-popup__cta {
	display: inline-block;
	box-sizing: border-box;
	padding: 8px 22px;
	border: 2px solid #044afa;
	border-radius: 3px;
	color: #044afa;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	transition: all .2s;
}
.acx-popup__cta:hover,
.acx-popup__cta:focus {
	background: #044afa;
	color: #fff;
}
.acx-popup__close {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #5f5e5a;
	font-family: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.acx-popup__close:hover,
.acx-popup__close:focus {
	color: #044afa;
}

/* Bloque le défilement de la page pendant l'affichage */
body.acx-popup-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.acx-popup,
	.acx-popup__dialog {
		transition: none;
	}
}

/* Tablette */
@media only screen and (max-width: 980px) {
	.acx-popup__dialog {
		padding: 32px 30px 28px;
	}
}

/* Mobile */
@media only screen and (max-width: 767px) {
	.acx-popup {
		padding: 12px;
	}
	.acx-popup__dialog {
		max-height: calc(100vh - 24px);
		padding: 28px 22px 24px;
	}
	.acx-popup__title {
		font-size: 19px;
		padding-right: 24px;
	}
	.acx-popup__body {
		font-size: 14px;
		line-height: 1.65;
	}
	.acx-popup__cta {
		width: 100%;
		text-align: center;
	}
}
