/* Événements : encart date / lieu, formulaire d'inscription, liste des prochains. */
.vtr-evt-encart,
.vtr-evt-form,
.vtr-evt-liste {
	--vtr-evt-encre: var(--wp--preset--color--encre, #14171f);
	--vtr-evt-gris: var(--wp--preset--color--gris, #5a5f55);
	--vtr-evt-filet: var(--wp--preset--color--filet, #e6e6e1);
	--vtr-evt-sauge: var(--wp--preset--color--sauge, #e2e7da);
}

/* ---------- Encart ---------- */
.vtr-evt-encart {
	display: grid;
	gap: 14px;
	margin: 0 0 clamp(32px, 4vw, 48px);
	padding: clamp(20px, 3vw, 32px);
	background: var(--vtr-evt-sauge);
	color: var(--vtr-evt-encre);
}
.vtr-evt-encart__ligne {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 12px;
	font-size: 16px;
	line-height: 1.5;
}
.vtr-evt-encart__titre {
	padding-top: 3px;
	color: var(--vtr-evt-gris);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.vtr-evt-encart__etat {
	font-weight: 600;
}
.vtr-evt-encart a.vtr-evt-encart__bouton.wp-element-button {
	justify-self: start;
	margin-top: 6px;
	padding: 14px 24px;
	background: var(--vtr-evt-encre);
	color: #fff;
	font-size: 13px;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
}
.vtr-evt-encart a.vtr-evt-encart__bouton.wp-element-button:hover {
	background: #000;
	color: #fff;
}
/* Gabarit de l'extension : encart dans la colonne de côté (collante grâce au thème). */
.vtr-evt-page__cote .vtr-evt-encart {
	margin: 0;
}
.vtr-evt-page__cote .vtr-evt-encart__ligne {
	grid-template-columns: minmax(0, 1fr);
	gap: 2px;
}

/* ---------- Formulaire ---------- */
.vtr-evt-form {
	margin: clamp(40px, 5vw, 64px) 0 0;
	scroll-margin-top: 120px;
}
.vtr-evt-form__titre {
	margin: 0 0 20px;
}
.vtr-evt-form__intro {
	max-width: 760px;
	margin: 0 0 24px;
	color: var(--vtr-evt-gris);
}
.vtr-evt-avis {
	max-width: 760px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border-left: 3px solid currentColor;
	background: #f6f6f3;
	font-size: 15px;
	line-height: 1.55;
}
.vtr-evt-avis.is-ok {
	color: #4b5636;
	background: var(--vtr-evt-sauge);
}
.vtr-evt-avis.is-erreur {
	color: #b32d2e;
}
.vtr-evt-avis.is-info {
	color: var(--vtr-evt-encre);
}

/* ---------- Liste ---------- */
.vtr-evt-liste {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vtr-evt-carte {
	margin: 0;
	list-style: none;
}
.vtr-evt-carte::marker {
	content: none;
}
.vtr-evt-carte__lien {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--vtr-evt-encre);
	text-decoration: none;
}
.vtr-evt-carte__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--vtr-evt-sauge);
}
.vtr-evt-carte__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s ease;
}
.vtr-evt-carte__lien:hover .vtr-evt-carte__img {
	transform: scale(1.03);
}
.vtr-evt-carte__date {
	position: absolute;
	top: 14px;
	left: 14px;
	display: grid;
	place-items: center;
	min-width: 64px;
	padding: 8px 10px;
	background: #fff;
	line-height: 1.1;
	text-align: center;
}
.vtr-evt-carte__jour {
	font-size: 26px;
	font-weight: 300;
}
.vtr-evt-carte__mois {
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.vtr-evt-carte__corps {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding-top: 16px;
}
.vtr-evt-carte__titre {
	font-size: clamp(18px, 1.5vw, 22px);
	line-height: 1.25;
}
.vtr-evt-carte__infos {
	color: var(--vtr-evt-gris);
	font-size: 14px;
}
.vtr-evt-carte__etat {
	font-size: 13px;
	font-weight: 600;
}
.vtr-evt-carte__cta {
	margin-top: auto;
	padding-top: 10px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .06em;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-transform: uppercase;
}
/* Sans image : la date reste lisible dans le flux. */
.vtr-evt-carte__lien:not(:has(.vtr-evt-carte__media)) .vtr-evt-carte__date {
	position: static;
	justify-self: start;
	place-items: start;
	padding: 0;
	background: none;
}

@media (max-width: 600px) {
	.vtr-evt-encart__ligne {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}

/* Le thème masque la colonne de côté des articles sur petit écran : pour un événement,
   l'encart pratique reste visible, au-dessus du texte. Le thème la rend déjà collante. */
.vtr-evt-page__cote .vtr-evt-encart {
	position: static;
}
@media (max-width: 1100px) {
	.vtr-evt-page .wooh-ar__cote.vtr-evt-page__cote {
		display: block;
		position: static;
	}
}

/* ---------- Ouverture avec image de fond ---------- */
.vtr-evt-page .wooh-ar__ouv.vtr-evt-ouv--fond {
	position: relative;
	isolation: isolate;
	min-height: min(70svh, 620px);
	overflow: hidden;
	background: var(--wp--preset--color--encre, #14171f);
	color: #fff;
}
.vtr-evt-fond {
	position: absolute;
	inset: 0;
	z-index: -1;
}
.vtr-evt-fond__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Voile : plus sombre côté texte, pour la lisibilité quelle que soit la photo. */
.vtr-evt-fond::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 12, 16, .78) 0%, rgba(10, 12, 16, .55) 50%, rgba(10, 12, 16, .25) 100%);
}
.vtr-evt-ouv--fond .wooh-ar__ouv-texte {
	justify-content: flex-start;
}
.vtr-evt-ouv--fond .wooh-ar__titre,
.vtr-evt-ouv--fond .wooh-ar__chapo,
.vtr-evt-ouv--fond .wooh-jr-meta,
.vtr-evt-ouv--fond .wooh-ariane,
.vtr-evt-ouv--fond .wooh-ariane a,
.vtr-evt-ouv--fond .wooh-ariane span {
	color: #fff;
}
.vtr-evt-ouv--fond .wooh-ariane,
.vtr-evt-ouv--fond .wooh-ariane a {
	opacity: .85;
}
@media (max-width: 860px) {
	.vtr-evt-page .wooh-ar__ouv.vtr-evt-ouv--fond {
		min-height: 440px;
	}
	.vtr-evt-fond::after {
		background: linear-gradient(180deg, rgba(10, 12, 16, .45) 0%, rgba(10, 12, 16, .8) 100%);
	}
}

/* ---------- Formulaire paramétrable ---------- */
.vtr-evt-form .vtr-evt-accomp {
	padding: 18px 20px 4px;
	background: #f6f6f3;
}
.vtr-evt-form .vtr-evt-accomp[hidden] {
	display: none;
}
.vtr-evt-form .vtr-evt-accomp .vtr-form__grille {
	margin: 0;
}
