/**
 * Blow'Up - PopUp
 */

.blowup-popup-ouverte {
	overflow: hidden;
}

.blowup-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.65 );
	opacity: 0;
	transition: opacity 0.25s ease;
	overflow-y: auto;
}

.blowup-popup--visible {
	opacity: 1;
}

.blowup-popup__boite {
	position: relative;
	max-width: 620px;
	width: 100%;
	max-height: calc( 100vh - 40px );
	overflow-y: auto;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.3 );
	transform: translateY( 12px );
	transition: transform 0.25s ease;
}

.blowup-popup--visible .blowup-popup__boite {
	transform: none;
}

.blowup-popup__fermer {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 26px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	background: rgba( 0, 0, 0, 0.55 );
	border: 0;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.blowup-popup__fermer:hover,
.blowup-popup__fermer:focus {
	background: rgba( 0, 0, 0, 0.8 );
}

.blowup-popup__fermer:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.blowup-popup__lien {
	display: block;
}

.blowup-popup__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px 6px 0 0;
}

/* Sans texte en dessous, l'image occupe toute la boîte. */
.blowup-popup__image:only-child,
.blowup-popup__lien:only-child .blowup-popup__image {
	border-radius: 6px;
}

.blowup-popup__corps {
	padding: 20px 24px 24px;
	text-align: center;
}

.blowup-popup__titre {
	margin: 0 0 8px;
	font-size: 1.25em;
	font-weight: 700;
}

.blowup-popup__texte {
	margin: 0;
}

.blowup-popup__bouton {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 26px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	background: #b5121b;
	border-radius: 4px;
	transition: opacity 0.2s ease;
}

.blowup-popup__bouton:hover,
.blowup-popup__bouton:focus {
	color: #fff;
	opacity: 0.85;
}

@media ( max-width: 600px ) {
	.blowup-popup {
		padding: 12px;
	}

	.blowup-popup__corps {
		padding: 16px 18px 20px;
	}
}

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