/*********
 * POPUP *
 *********/

.popup-event{
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.popup-event[hidden]{
	display: none;
}

.popup-event-fond{
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.75);
	opacity: 0;
	transition: opacity 0.3s ease-out;
}
.popup-event.ouvert .popup-event-fond{
	opacity: 1;
}

.popup-event-boite{
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
	background: #FFF;
	border-radius: 4px;
	box-shadow: 0 25px 60px rgba(0,0,0,0.5);
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.popup-event.ouvert .popup-event-boite{
	opacity: 1;
	transform: none;
}

.popup-event-boite img{
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 130px);
	max-height: calc(100dvh - 130px);
	object-fit: contain;
}

.popup-event-fermer{
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: #313131;
	color: #FFF;
	font-size: 18px;
	line-height: 1;
	transition: background 0.2s ease-out;
}
.popup-event-fermer:hover,
.popup-event-fermer:focus-visible{
	background: #94ba71;
}

.popup-event-cta{
	padding: 16px 20px 20px;
	text-align: center;
}
.popup-event-cta a{
	display: inline-block;
	padding: 12px 28px;
	border: 1px solid #94ba71;
	background: #94ba71;
	color: #FFF;
	font-family: 'Heebo', Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease-out, color 0.2s ease-out;
}
.popup-event-cta a:hover,
.popup-event-cta a:focus-visible{
	background: #FFF;
	color: #313131;
	text-decoration: none;
}

.popup-event-fermer:focus-visible,
.popup-event-cta a:focus-visible{
	outline: 3px solid #94ba71;
	outline-offset: 2px;
}

body.popup-ouvert{
	overflow: hidden;
}

@media screen and (max-width: 880px){

	.popup-event{
		padding: 12px;
	}

	.popup-event-boite img{
		max-height: calc(100vh - 110px);
		max-height: calc(100dvh - 110px);
	}

	.popup-event-fermer{
		top: 8px;
		right: 8px;
		width: 34px;
		height: 34px;
		font-size: 16px;
	}

	.popup-event-cta{
		padding: 12px 15px 16px;
	}

	.popup-event-cta a{
		padding: 10px 22px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce){

	.popup-event-fond,
	.popup-event-boite{
		transition: none;
	}
}
