/* =========================================================================
   TCRV — Widgets de la page Événement
   Couleurs de la charte : #003B3B, #DD5400, #EDF3F1.
   Les boutons pleins portent la classe elementor-button : ils suivent le CTA
   global du site et ne sont pas stylés ici.
   ====================================================================== */

.tcrv-evt-entete,
.tcrv-evt-infos,
.tcrv-evt-participation,
.tcrv-evt-prevoir,
.tcrv-evt-presentation,
.tcrv-evt-programme,
.tcrv-evt-prochains {
	--e-vert: var(--tcrv-vert, #003b3b);
	--e-orange: var(--tcrv-orange, #dd5400);
	--e-fond: var(--tcrv-fond-doux, #edf3f1);
	--e-bordure: var(--tcrv-bordure-claire, #d5e0dd);
	--e-texte: #406c6c;
}

/* -------------------------------------------------------------------------
   Éléments communs
   ---------------------------------------------------------------------- */

.tcrv-evt__titre {
	margin: 0 0 0.6rem;
	color: var(--e-vert);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
}

.tcrv-evt__accent {
	color: var(--e-orange);
}

.tcrv-evt__intro {
	margin: 0 0 1.5rem;
	color: var(--e-texte);
	font-size: 0.875rem;
	line-height: 1.6;
}

.tcrv-evt__etiquette {
	margin: 0 0 0.55rem;
	color: var(--e-orange);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tcrv-evt-bouton-contour {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.4rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/* Encart de l'éditeur pour un bloc sans données : jamais visible en ligne. */
.tcrv-bloc-vide {
	padding: 1rem 1.25rem;
	border: 1px dashed #b9c7c4;
	border-radius: 8px;
	background: repeating-linear-gradient(45deg, #f7faf9, #f7faf9 10px, #edf3f1 10px, #edf3f1 20px);
	color: #406c6c;
	font-size: 0.875rem;
	line-height: 1.5;
}

.tcrv-bloc-vide span {
	color: #7d918d;
	font-size: 0.8125rem;
}

/* -------------------------------------------------------------------------
   En-tête
   ---------------------------------------------------------------------- */

.tcrv-evt-entete {
	max-width: 760px;
}

.tcrv-evt-entete__retour {
	display: inline-block;
	margin-bottom: 1.1rem;
	font-size: 0.8125rem;
	text-decoration: none;
	opacity: 0.85;
}

.tcrv-evt-entete__retour:hover {
	opacity: 1;
	text-decoration: underline;
}

.tcrv-evt-entete__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tcrv-evt-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
}

.tcrv-evt-badge--plein {
	border-color: var(--e-orange);
	background: var(--e-orange);
	color: #fff;
}

.tcrv-evt-entete__titre {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.12;
}

.tcrv-evt-entete__extrait {
	margin: 0 0 1.75rem;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.tcrv-evt-entete__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Thème sombre : sur le fond vert de la maquette. */
.tcrv-evt-entete--sombre .tcrv-evt-entete__retour,
.tcrv-evt-entete--sombre .tcrv-evt-entete__titre,
.tcrv-evt-entete--sombre .tcrv-evt-bouton-contour {
	color: #fff;
}

.tcrv-evt-entete--sombre .tcrv-evt-entete__extrait {
	color: rgb(255 255 255 / 78%);
}

.tcrv-evt-entete--sombre .tcrv-evt-badge--contour {
	border-color: rgb(255 255 255 / 55%);
	color: #fff;
}

.tcrv-evt-entete--sombre .tcrv-evt-bouton-contour {
	border-color: rgb(255 255 255 / 55%);
}

.tcrv-evt-entete--sombre .tcrv-evt-bouton-contour:hover,
.tcrv-evt-entete--sombre .tcrv-evt-bouton-contour:focus-visible {
	background: #fff;
	color: var(--e-vert);
}

/* Thème clair : sur fond blanc ou vert d'eau. */
.tcrv-evt-entete--clair .tcrv-evt-entete__retour,
.tcrv-evt-entete--clair .tcrv-evt-entete__titre,
.tcrv-evt-entete--clair .tcrv-evt-bouton-contour {
	color: var(--e-vert);
}

.tcrv-evt-entete--clair .tcrv-evt-entete__extrait {
	color: var(--e-texte);
}

.tcrv-evt-entete--clair .tcrv-evt-badge--contour {
	border-color: var(--e-vert);
	color: var(--e-vert);
}

.tcrv-evt-entete--clair .tcrv-evt-bouton-contour:hover,
.tcrv-evt-entete--clair .tcrv-evt-bouton-contour:focus-visible {
	background: var(--e-vert);
	color: #fff;
}

/* -------------------------------------------------------------------------
   Informations clés
   ---------------------------------------------------------------------- */

.tcrv-evt-infos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
	margin: 0;
}

.tcrv-evt-info {
	padding: 1.25rem 1.35rem;
	border-radius: 8px;
	background-color: var(--e-fond);
}

.tcrv-evt-info dd {
	margin: 0;
}

.tcrv-evt-info__principal {
	color: var(--e-vert);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
}

.tcrv-evt-info__precision {
	margin-top: 0.35rem !important;
	color: var(--e-texte);
	font-size: 0.75rem;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Participation
   ---------------------------------------------------------------------- */

.tcrv-evt-participation {
	padding: 1.75rem;
	border-radius: 10px;
	background-color: var(--e-vert);
	color: #fff;
}

.tcrv-evt-participation__prix {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.tcrv-evt-participation__montant {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.tcrv-evt-participation__unite {
	color: rgb(255 255 255 / 65%);
	font-size: 0.8125rem;
}

.tcrv-evt-participation__texte {
	color: rgb(255 255 255 / 75%);
	font-size: 0.8125rem;
	line-height: 1.6;
}

.tcrv-evt-participation__texte p {
	margin: 0 0 0.5rem;
}

.tcrv-evt-participation__texte p:last-child {
	margin-bottom: 0;
}

.tcrv-evt-participation__inscription {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 16%);
}

/* Sans tarif, l'inscription devient le seul contenu : pas de filet au-dessus. */
.tcrv-evt-participation--sans-tarif .tcrv-evt-participation__inscription {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.tcrv-evt-participation__sous-titre {
	margin: 0 0 0.4rem;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
}

.tcrv-evt-participation__bouton {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 1.25rem;
	text-align: center;
}

.tcrv-evt-participation__cloture,
.tcrv-evt-participation__ferme {
	margin: 0.75rem 0 0;
	color: rgb(255 255 255 / 60%);
	font-size: 0.75rem;
	text-align: center;
}

.tcrv-evt-participation__ferme {
	margin-top: 0;
	font-size: 0.875rem;
}

/* -------------------------------------------------------------------------
   À prévoir et contact
   ---------------------------------------------------------------------- */

.tcrv-evt-prevoir {
	padding: 1.5rem 1.75rem;
	border-radius: 10px;
	background-color: var(--e-fond);
}

.tcrv-evt-prevoir__liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcrv-evt-prevoir__liste li {
	padding: 0.65rem 0;
	border-top: 1px solid var(--e-bordure);
	color: var(--e-vert);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.tcrv-evt-prevoir__liste li::marker {
	content: none;
}

.tcrv-evt-prevoir__contact {
	margin-top: 0.75rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--e-bordure);
}

.tcrv-evt-prevoir__contact--seul {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.tcrv-evt-prevoir__titre {
	margin: 0 0 0.25rem;
	color: var(--e-vert);
	font-size: 0.8125rem;
	font-weight: 700;
}

.tcrv-evt-prevoir__qui {
	margin: 0;
	color: var(--e-texte);
	font-size: 0.8125rem;
}

.tcrv-evt-prevoir__tel {
	display: inline-block;
	margin-top: 0.35rem;
	color: var(--e-orange);
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
}

.tcrv-evt-prevoir__tel:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Présentation
   ---------------------------------------------------------------------- */

.tcrv-evt-presentation__contenu {
	color: var(--e-texte);
	font-size: 0.9375rem;
	line-height: 1.75;
}

.tcrv-evt-presentation__contenu > :first-child {
	margin-top: 0;
}

.tcrv-evt-presentation__contenu > :last-child {
	margin-bottom: 0;
}

.tcrv-evt-presentation__contenu a {
	color: var(--e-orange);
}

.tcrv-evt-presentation__figure {
	margin: 1.75rem 0 0;
}

.tcrv-evt__titre + .tcrv-evt-presentation__figure {
	margin: 0 0 1.5rem;
}

.tcrv-evt-presentation__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.tcrv-evt-presentation__legende {
	margin-top: 0.5rem;
	color: #7d918d;
	font-size: 0.75rem;
}

/* -------------------------------------------------------------------------
   Programme
   ---------------------------------------------------------------------- */

.tcrv-evt-programme {
	scroll-margin-top: 7rem; /* Sous l'en-tête fixe au clic sur « Voir le programme ». */
}

.tcrv-evt-programme__grille {
	display: grid;
	grid-template-columns: repeat(var(--nb-jours, 3), minmax(0, 1fr));
	gap: 1.25rem;
	align-items: start;
}

.tcrv-evt-jour {
	padding: 1.5rem;
	border-radius: 10px;
	background-color: #fff;
}

.tcrv-evt-jour__titre {
	margin: 0 0 0.9rem;
	color: var(--e-vert);
	font-size: 1.0625rem;
	font-weight: 700;
}

.tcrv-evt-jour__liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcrv-evt-jour__ligne {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--e-bordure);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.tcrv-evt-jour__ligne::marker {
	content: none;
}

.tcrv-evt-jour__heure {
	color: var(--e-orange);
	font-weight: 700;
	white-space: nowrap;
}

.tcrv-evt-jour__texte {
	color: var(--e-vert);
}

/* -------------------------------------------------------------------------
   Prochains rendez-vous
   ---------------------------------------------------------------------- */

.tcrv-evt-prochains__grille {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.tcrv-evt-carte {
	position: relative; /* Repère du lien étendu à toute la carte. */
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 10px;
	background-color: var(--e-fond);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tcrv-evt-carte::marker {
	content: none;
}

.tcrv-evt-carte:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgb(0 59 59 / 10%);
}

.tcrv-evt-carte__media {
	position: relative;
	aspect-ratio: 16 / 7.5;
	background-color: var(--e-vert);
}

.tcrv-evt-carte__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tcrv-evt-carte__date {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 2.6rem;
	padding: 0.3rem 0.45rem;
	border-radius: 6px;
	background: #fff;
	line-height: 1.05;
	text-align: center;
}

.tcrv-evt-carte__jour {
	color: var(--e-vert);
	font-size: 1.0625rem;
	font-weight: 700;
}

.tcrv-evt-carte__mois {
	color: var(--e-orange);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tcrv-evt-carte__corps {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.25rem 1.35rem 1.35rem;
}

.tcrv-evt-carte__categorie {
	margin: 0 0 0.4rem;
	color: #7d918d;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tcrv-evt-carte__titre {
	margin: 0 0 0.45rem;
	color: var(--e-vert);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.tcrv-evt-carte__resume {
	flex: 1 1 auto;
	margin: 0 0 1rem;
	color: var(--e-texte);
	font-size: 0.8125rem;
	line-height: 1.55;
}

.tcrv-evt-carte__lien {
	color: var(--e-orange);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.tcrv-evt-carte__lien::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tcrv-evt-carte__lien:focus-visible::after {
	outline: 3px solid var(--e-orange);
	outline-offset: -3px;
	border-radius: 10px;
}

/* -------------------------------------------------------------------------
   Tablette et mobile
   ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.tcrv-evt-programme__grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.tcrv-evt-prochains__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tcrv-evt-infos,
	.tcrv-evt-prochains__grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.tcrv-evt-entete__actions a {
		flex: 1 1 100%;
		justify-content: center;
		text-align: center;
	}

	.tcrv-evt-participation,
	.tcrv-evt-prevoir,
	.tcrv-evt-jour {
		padding: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcrv-evt-carte,
	.tcrv-evt-bouton-contour {
		transition: none;
	}
}
