/* LCH Événements — largeur proto + cartes / images soignées */

.lch-evenements {
	--lch-evt-ink: #1f1c18;
	--lch-evt-muted: #6b6560;
	--lch-evt-accent: #C39D7A;
	--lch-evt-bg: #ffffff;
	--lch-evt-cafe: #ebe3d4;
	--lch-evt-card: #ffffff;
	--lch-evt-radius: 1.35rem;

	position: relative;
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: var(--lch-evt-bg);
	color: var(--lch-evt-ink);
	font-family: "Outfit", system-ui, sans-serif;
	box-sizing: border-box;
	padding: clamp(0.35rem, 1.2vw, 0.85rem) 0 0;
	overflow-x: clip;
	overflow-y: visible;
}

.wpcursor-component.lch-evenements .lch-evenements__main,
.lch-evenements__main {
	position: relative;
	background: var(--lch-evt-cafe) !important;
	padding: clamp(2.25rem, 4.5vw, 3.5rem) clamp(1rem, 2.5vw, 2.25rem) clamp(3.25rem, 6vw, 4.75rem);
	box-sizing: border-box;
	overflow: visible;
}

.lch-evenements__foliage {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	width: clamp(11rem, 20vw, 17rem);
	pointer-events: none;
	z-index: 2;
	opacity: 0.9;
	transform: none;
}

.lch-evenements__foliage-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: right top;
}

.lch-evenements__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(1280px, 94vw);
	margin: 0 auto;
}

.lch-evenements__plan {
	margin: 0 auto clamp(1.25rem, 3vw, 2rem);
	max-width: min(920px, 100%);
	perspective: 900px;
}

.lch-evenements__plan-btn {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: #ffffff;
	cursor: zoom-in;
	border-radius: 0;
	overflow: hidden;
	transform-style: preserve-3d;
	will-change: transform;
	box-shadow: none;
}

.lch-evenements__plan-btn:hover,
.lch-evenements__plan-btn:focus-visible {
	outline: none;
}

.lch-evenements__plan-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	background: #ffffff;
	transform-origin: center center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	animation: lch-evt-plan-float 7s ease-in-out infinite;
}

.lch-evenements__plan.is-hover .lch-evenements__plan-img {
	animation-play-state: paused;
}

@keyframes lch-evt-plan-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	50% {
		transform: translate3d(0, -6px, 0) scale(1.012);
	}
}

.lch-evenements__header {
	max-width: 42rem;
	margin: 0 auto clamp(2.25rem, 4.5vw, 3.25rem);
	text-align: center;
}

.lch-evenements__header--plan {
	margin-top: 0;
	margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
}

.lch-evenements__subtitle {
	margin: 0 auto;
	max-width: 26rem;
	font-family: "Great Vibes", "Segoe Script", cursive;
	font-weight: 400;
	font-size: clamp(1.6rem, 2.9vw, 2.2rem);
	line-height: 1.15;
	color: var(--lch-evt-accent);
}

.lch-evenements__stars {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin: 0.6rem 0 0.7rem;
	color: var(--lch-evt-accent);
}

.lch-evenements__star {
	display: block;
	opacity: 0.85;
}

.lch-evenements__star--mid {
	opacity: 1;
}

.lch-evenements__title,
.wpcursor-component.lch-evenements .lch-evenements__title,
.lch-evenements h2.lch-evenements__title {
	margin: 0 0 1rem !important;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 500 !important;
	font-size: clamp(2.35rem, 4.2vw, 3.15rem) !important;
	line-height: 1.12 !important;
	text-transform: none !important;
	color: var(--lch-evt-ink) !important;
}

.lch-evenements__desc {
	margin: 0 auto;
	max-width: 38rem;
	font-size: clamp(0.95rem, 1.1vw, 1.05rem);
	line-height: 1.75;
	font-weight: 300;
	color: var(--lch-evt-muted);
}

.lch-evenements__seminaire {
	margin: 1.15rem auto 0;
	text-align: center;
}

.lch-evenements__seminaire-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--lch-evt-ink);
	text-decoration: underline;
	text-underline-offset: 0.22em;
	transition: color 0.25s ease;
}

.lch-evenements__seminaire-link:hover,
.lch-evenements__seminaire-link:focus-visible {
	color: var(--lch-evt-accent);
	outline: none;
}

.lch-evenements__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.35rem, 2.4vw, 2rem);
	align-items: stretch;
	width: 100%;
}

.lch-evenements__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--lch-evt-card);
	border-radius: var(--lch-evt-radius);
	box-shadow:
		0 4px 10px rgba(31, 28, 24, 0.04),
		0 18px 40px rgba(31, 28, 24, 0.08);
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lch-evenements__card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 8px 16px rgba(31, 28, 24, 0.05),
		0 22px 48px rgba(31, 28, 24, 0.11);
}

.lch-evenements__media {
	position: relative;
	margin: 0;
	/* Paysage : les photos events ne sont plus coupées en bandes verticales */
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8e2d8;
	line-height: 0;
	border-radius: var(--lch-evt-radius) var(--lch-evt-radius) 0 0;
}

.lch-evenements__zoom {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.lch-evenements__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.lch-evenements__card:nth-child(1) .lch-evenements__image {
	object-position: center 45%;
}

.lch-evenements__card:nth-child(2) .lch-evenements__image {
	object-position: center 60%;
}

.lch-evenements__card:nth-child(3) .lch-evenements__image {
	object-position: center 40%;
}

/* Photo 4 : fichier déjà recadré 4:3 (ambiance-live-4x3.jpg) */
.lch-evenements__card:nth-child(4) .lch-evenements__image {
	object-position: center center;
}

.lch-evenements__card:hover .lch-evenements__image {
	transform: scale(1.04);
}

.lch-evenements__lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	background: rgba(18, 14, 10, 0.82);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.lch-evenements__lightbox[hidden] {
	display: none !important;
}

.lch-evenements__lightbox-img {
	max-width: min(96vw, 1100px);
	max-height: min(88vh, 900px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0.5rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lch-evenements__lightbox-close {
	position: absolute;
	top: max(1rem, env(safe-area-inset-top));
	right: max(1rem, env(safe-area-inset-right));
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
}

.lch-evenements__lightbox-close:hover,
.lch-evenements__lightbox-close:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	outline: none;
}

html.lch-evt-lightbox-open,
html.lch-evt-lightbox-open body {
	overflow: hidden;
}

.lch-evenements__body {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1rem 1.15rem 1.15rem;
}

.lch-evenements__rule {
	display: block;
	width: 2.1rem;
	height: 1.5px;
	margin: 0 0 0.75rem;
	background: var(--lch-evt-accent);
	border-radius: 1px;
}

.lch-evenements__card-title,
.wpcursor-component.lch-evenements .lch-evenements__card-title,
.lch-evenements h3.lch-evenements__card-title {
	margin: 0 0 0.45rem !important;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 600 !important;
	font-size: clamp(1.2rem, 1.55vw, 1.4rem) !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	color: var(--lch-evt-ink) !important;
}

.lch-evenements__card-text {
	margin: 0 0 1.1rem;
	font-size: 0.86rem;
	line-height: 1.6;
	font-weight: 300;
	color: var(--lch-evt-muted);
}

.lch-evenements__card-foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
}

.lch-evenements__arrow {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2.45rem;
	height: 2.45rem;
	border: 1px solid var(--lch-evt-accent);
	border-radius: 50%;
	color: var(--lch-evt-accent) !important;
	text-decoration: none;
	background: transparent;
	transition: background 0.25s ease, color 0.25s ease;
}

.lch-evenements__arrow:hover,
.lch-evenements__arrow:focus-visible {
	background: var(--lch-evt-accent);
	color: #fff !important;
	outline: none;
}

.lch-evenements__card-deco {
	flex: 0 0 auto;
	width: clamp(2.75rem, 4vw, 3.4rem);
	margin-left: auto;
	pointer-events: none;
	opacity: 0.55;
}

.lch-evenements__card-deco-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

@media (max-width: 1100px) {
	.lch-evenements__inner {
		max-width: min(980px, 96vw);
	}
}

@media (max-width: 980px) {
	.lch-evenements__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.lch-evenements__media {
		aspect-ratio: 4 / 3;
	}

	.lch-evenements__foliage {
		width: 10rem;
		opacity: 0.85;
		right: 0;
		left: auto;
		top: 0;
	}
}

@media (max-width: 560px) {
	.lch-evenements__main {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}

	.lch-evenements__grid {
		grid-template-columns: 1fr;
		max-width: 22.5rem;
		margin-left: auto;
		margin-right: auto;
		gap: 1.35rem;
	}

	.lch-evenements__foliage {
		width: 8rem;
		opacity: 0.75;
		top: 0;
		right: 0;
		left: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lch-evenements__image,
	.lch-evenements__card,
	.lch-evenements__plan-img,
	.lch-evenements__plan-btn {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
}
