/* FB Popup d'accueil */
.fbpa[hidden] { display: none !important; }
.fbpa {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.fbpa-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}
.fbpa-dialog {
	position: relative;
	width: 100%;
	max-width: var(--fbpa-width, 560px);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--fbpa-bg, #fff);
	color: var(--fbpa-color, #2B2823);
	border-radius: 14px;
	padding: 36px 32px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	outline: none;
}
.fbpa.is-open .fbpa-overlay { animation: fbpa-fade 0.25s ease-out; }
.fbpa.is-open .fbpa-dialog { animation: fbpa-pop 0.3s ease-out; }

.fbpa-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 28px;
	line-height: 36px;
	cursor: pointer;
	opacity: 0.7;
}
.fbpa-close:hover, .fbpa-close:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.08); }

/* Contenu rédigé dans l'éditeur */
.fbpa-content > :first-child { margin-top: 0; }
.fbpa-content > :last-child { margin-bottom: 0; }
.fbpa-content h1, .fbpa-content h2, .fbpa-content h3, .fbpa-content h4,
.fbpa-content p, .fbpa-content li { color: inherit; }
.fbpa-content img { max-width: 100%; height: auto; border-radius: 8px; }
.fbpa-content a { color: inherit; text-decoration: underline; }
.fbpa-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.fbpa-content .alignleft { float: left; margin: 0 1em 0.5em 0; }
.fbpa-content .alignright { float: right; margin: 0 0 0.5em 1em; }
.fbpa-content::after { content: ''; display: table; clear: both; }
.fbpa-content .wp-caption { max-width: 100%; }

@keyframes fbpa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fbpa-pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.fbpa.is-open .fbpa-overlay, .fbpa.is-open .fbpa-dialog { animation: none; }
}
@media (max-width: 480px) {
	.fbpa-dialog { padding: 32px 20px 22px; }
}
