/* Carte « billet » des sessions (shortcode [edp_billet]) */
.edp-billet {
	--edp-notch: 11px;
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--e-global-color-text, #231E1F);
	text-decoration: none;
	font-family: var(--e-global-typography-text-font-family, Poppins), sans-serif;
	filter: drop-shadow(0 10px 22px rgba(120, 30, 20, .09));
	transform: rotate(var(--tilt, 0deg));
	transition: transform .25s ease, filter .25s ease;
}
.edp-billet:hover,
.edp-billet:focus-visible {
	color: var(--e-global-color-text, #231E1F);
	transform: rotate(0deg) translateY(-6px);
	filter: drop-shadow(0 16px 30px rgba(120, 30, 20, .15));
	outline: none;
}
.edp-billet:focus-visible .edp-billet__head { outline: 3px solid var(--e-global-color-text, #231E1F); outline-offset: -3px; }

/* Encoches découpées (transparentes quel que soit le fond de la section) */
.edp-billet__head,
.edp-billet__body {
	-webkit-mask: radial-gradient(circle var(--edp-notch) at 0 var(--y), #0000 98%, #000) left / 51% 100% no-repeat,
	              radial-gradient(circle var(--edp-notch) at 100% var(--y), #0000 98%, #000) right / 51% 100% no-repeat;
	        mask: radial-gradient(circle var(--edp-notch) at 0 var(--y), #0000 98%, #000) left / 51% 100% no-repeat,
	              radial-gradient(circle var(--edp-notch) at 100% var(--y), #0000 98%, #000) right / 51% 100% no-repeat;
}
.edp-billet__head {
	--y: 100%;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 28px 24px 24px;
	background: var(--e-global-color-accent, #E51829);
	color: #fff;
	border-radius: 18px 18px 0 0;
}
.edp-billet__year {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .9;
}
.edp-billet__days {
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
	white-space: nowrap;
}
.edp-billet__month {
	font-size: 22px;
	font-weight: 600;
}
.edp-billet__perf {
	display: block;
	height: 0;
	background: #fff;
	border-top: 2px dashed #F1C9C4;
	margin: 0 calc(var(--edp-notch) + 6px);
	position: relative;
	z-index: 1;
}
.edp-billet__body {
	--y: 0%;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 22px 24px 26px;
	margin-top: -2px;
	padding-top: 24px;
	background: #fff;
	border-radius: 0 0 18px 18px;
}
.edp-billet__place {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	min-height: 50px;
}
.edp-billet__place svg { flex: none; margin-top: 3px; }
.edp-billet__place svg path { fill: currentColor !important; }
.edp-billet__cta {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.edp-billet__arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--e-global-color-text, #231E1F);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: background .2s;
}
.edp-billet:hover .edp-billet__arrow { background: var(--e-global-color-accent, #E51829); }

/* Inclinaisons alternées dans les carrousels */
.e-loop-item:nth-of-type(4n+1) .edp-billet { --tilt: -1.5deg; }
.e-loop-item:nth-of-type(4n+2) .edp-billet { --tilt: 1.2deg; }
.e-loop-item:nth-of-type(4n+3) .edp-billet { --tilt: -.8deg; }
.e-loop-item:nth-of-type(4n+4) .edp-billet { --tilt: 1.6deg; }

@media (max-width: 767px) {
	.edp-billet__days { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.edp-billet { transition: none; }
}

/* Carte événement (shortcode [edp_carte_evenement]) */
.edp-event {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	color: var(--e-global-color-text, #231E1F);
	text-decoration: none;
	font-family: var(--e-global-typography-text-font-family, Poppins), sans-serif;
	box-shadow: 0 10px 28px rgba(120, 30, 20, .10);
	transform: rotate(var(--tilt, 0deg));
	transition: transform .25s ease, box-shadow .25s ease;
}
.edp-event:hover,
.edp-event:focus-visible {
	color: var(--e-global-color-text, #231E1F);
	transform: rotate(0deg) translateY(-6px);
	box-shadow: 0 18px 40px rgba(120, 30, 20, .16);
	outline: none;
}
.edp-event:focus-visible { box-shadow: 0 0 0 3px var(--e-global-color-text, #231E1F); }
.edp-event__media {
	position: relative;
	display: block;
	aspect-ratio: 5 / 4;
	background: var(--e-global-color-primary, #231E1F);
}
.edp-event__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.edp-event:hover .edp-event__img { transform: scale(1.04); }
.edp-event__date {
	position: absolute;
	left: 20px;
	bottom: 0;
	transform: translateY(50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 72px;
	padding: 12px 12px 10px;
	background: var(--e-global-color-accent, #E51829);
	color: #fff;
	border-radius: 14px;
	box-shadow: inset 0 6px 0 rgba(35, 30, 31, .22), 0 8px 18px rgba(229, 24, 41, .30);
	line-height: 1;
	text-align: center;
}
.edp-event__days { font-size: 30px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.edp-event__month { margin-top: 4px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.edp-event__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 48px 24px 24px;
}
.edp-event__title {
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
}
.edp-event__place { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.edp-event__place svg { flex: none; }
.edp-event__place svg path { fill: currentColor !important; }
.edp-event__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
	color: #5A5354;
}
.edp-event__cta {
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.edp-event__arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--e-global-color-accent, #E51829);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: background .2s;
}
.edp-event:hover .edp-event__arrow { background: var(--e-global-color-text, #231E1F); }
.e-loop-item:nth-of-type(4n+1) .edp-event { --tilt: 1.2deg; }
.e-loop-item:nth-of-type(4n+2) .edp-event { --tilt: -1.4deg; }
.e-loop-item:nth-of-type(4n+3) .edp-event { --tilt: .9deg; }
.e-loop-item:nth-of-type(4n+4) .edp-event { --tilt: -1deg; }
@media (prefers-reduced-motion: reduce) {
	.edp-event, .edp-event__img { transition: none; }
}
