/* Pop-up éditable (menu « Pop-up » de l'admin). Reprend la charte du site :
   vert #37ab49, texte #373737, Montserrat, boutons en pilule. */

.bpop[hidden] { display: none; }

.bpop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .3s ease;
}
.bpop.is-open { opacity: 1; }

.bpop__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	cursor: pointer;
}

.bpop__box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	transform: translateY(16px);
	transition: transform .3s ease;
}
.bpop.is-open .bpop__box { transform: none; }

.bpop__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #373737;
	font: 400 26px/36px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
	transition: background .2s, color .2s;
}
.bpop__close:hover,
.bpop__close:focus-visible { background: #37ab49; color: #fff; }

.bpop__media { aspect-ratio: 16 / 9; overflow: hidden; background: #f5f5f5; }
.bpop__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.bpop__body {
	padding: 28px 32px 32px;
	text-align: center;
	color: #373737;
	font-family: 'Montserrat Regular', Montserrat, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

.bpop__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: 'Montserrat Bold', Montserrat, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.3;
	color: #373737;
}

.bpop__kicker {
	margin: 0 0 6px;
	padding: 0;
	color: #37ab49;
	font-family: 'Montserrat Bold', Montserrat, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.bpop__note {
	margin: 12px 0 0;
	padding: 0;
	color: #707070;
	font-size: 14px;
}

.bpop__text p { padding: 0; margin: 0 0 10px; }
.bpop__text p:last-child { margin-bottom: 0; }
.bpop__text a { color: #37ab49; text-decoration: underline; }

.bpop__button {
	display: inline-block;
	margin-top: 22px;
	padding: 10px 28px;
	border: 2px solid #37ab49;
	border-radius: 35px;
	background: #37ab49;
	color: #fff !important;
	font-family: 'Montserrat Bold', Montserrat, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.bpop__button:hover,
.bpop__button:focus-visible { background: #fff; color: #37ab49 !important; }

html.bpop-lock, html.bpop-lock body { overflow: hidden; }

/* Avec visuel, sur grand écran : visuel à gauche, texte à droite. */
@media (min-width: 800px) {
	.bpop__box--media {
		display: grid;
		grid-template-columns: 44% 1fr;
		max-width: 900px;
	}
	.bpop__box--media .bpop__media { aspect-ratio: auto; min-height: 100%; }
	.bpop__box--media .bpop__body {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 40px 44px;
	}
}

@media (max-width: 600px) {
	.bpop__body { padding: 22px 20px 24px; font-size: 15px; }
	.bpop__title { font-size: 20px; }
	.bpop__button { font-size: 14px; padding: 10px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.bpop, .bpop__box { transition: none; }
}
