/* Popup Agences — styles du front */

.pa-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.55 );
	animation: pa-fade 0.2s ease;
}

.pa-overlay[hidden] {
	display: none;
}

.pa-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-height: 100%;
	overflow-y: auto;
}

.pa-modal {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	max-width: 480px;
	background: #fff;
	border-radius: 10px;
	border-top: 6px solid var( --pa-accent, #c1272d );
	box-shadow: 0 15px 45px rgba( 0, 0, 0, 0.3 );
	padding: 32px 28px 28px;
	box-sizing: border-box;
	text-align: center;
	animation: pa-pop 0.25s ease;
}

.pa-title {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.3;
	color: var( --pa-accent, #c1272d );
}

.pa-message {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}

.pa-message p {
	margin: 0 0 10px;
}

.pa-message p:last-child {
	margin-bottom: 0;
}

.pa-button {
	display: inline-block;
	padding: 11px 26px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var( --pa-accent, #c1272d );
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.pa-button:hover {
	opacity: 0.9;
}

.pa-close {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 34px;
	height: 34px;
	font-size: 26px;
	line-height: 1;
	color: #888;
	background: none;
	border: none;
	cursor: pointer;
}

.pa-close:hover {
	color: #333;
}

@keyframes pa-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes pa-pop {
	from { opacity: 0; transform: translateY( 12px ) scale( 0.98 ); }
	to   { opacity: 1; transform: translateY( 0 ) scale( 1 ); }
}
