@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* Full-bleed Elementor (accueil + page témoignages) */
body.home .elementor-element:has(.cns-tem-reel),
body.page-id-3557 .elementor-element:has(.cns-tem-reel),
body.home .elementor-top-section:has(.cns-tem-reel),
body.page-id-3557 .elementor-top-section:has(.cns-tem-reel),
body.page-id-5758 .elementor-element:has(.cns-tem-reel),
body.page-id-5758 .elementor-top-section:has(.cns-tem-reel) {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	background: #1f3a2a !important;
	background-color: #1f3a2a !important;
}

body.home .elementor-element:has(.cns-tem-reel) .elementor-widget-container,
body.page-id-3557 .elementor-element:has(.cns-tem-reel) .elementor-widget-container,
body.home .elementor-top-section:has(.cns-tem-reel) > .elementor-container,
body.page-id-3557 .elementor-top-section:has(.cns-tem-reel) > .elementor-container,
body.page-id-5758 .elementor-element:has(.cns-tem-reel) .elementor-widget-container,
body.page-id-5758 .elementor-top-section:has(.cns-tem-reel) > .elementor-container {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	background: transparent !important;
}

/* Temo shared tokens */
:root, .wpcursor-component[class*="wpcursor-temo-"] {
	--cns-lime: #c8f000;
	--cns-green: #1f3a2a;
	--cns-green-deep: #16291e;
	--cns-ink: #111;
	--cns-font: "Poppins", system-ui, sans-serif;
	--cns-hand: "Caveat", cursive;
}
.wpcursor-component[class*="wpcursor-temo-"],
.wpcursor-component[class*="wpcursor-temo-"] p,
.wpcursor-component[class*="wpcursor-temo-"] li,
.wpcursor-component[class*="wpcursor-temo-"] h1,
.wpcursor-component[class*="wpcursor-temo-"] h2,
.wpcursor-component[class*="wpcursor-temo-"] h3,
.wpcursor-component[class*="wpcursor-temo-"] a,
.wpcursor-component[class*="wpcursor-temo-"] button,
.wpcursor-component[class*="wpcursor-temo-"] span,
.wpcursor-component[class*="wpcursor-temo-"] select {
	font-family: "Poppins", system-ui, sans-serif !important;
	box-sizing: border-box;
}
/* —— Carrousel vidéos —— */
.cns-tem-reel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--cns-green);
	color: #fff;
	padding: clamp(2.5rem, 5.5vw, 4.25rem) clamp(1.15rem, 4vw, 3rem)
		clamp(2.5rem, 5vw, 3.75rem);
	width: 100%;
	max-width: 100%;
}

.cns-tem-reel__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 45% 55% at 88% 20%, rgba(200, 240, 0, 0.1), transparent 58%),
		radial-gradient(ellipse 35% 45% at 8% 90%, rgba(255, 255, 255, 0.05), transparent 50%);
}

.cns-tem-reel__inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.55fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.cns-tem-reel__eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.cns-tem-reel__title {
	margin: 0 0 1rem;
	font-size: clamp(1.7rem, 3.4vw, 2.65rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #fff;
	max-width: 11ch;
}

.cns-tem-reel__title span {
	display: block;
	color: #fff;
}

.cns-tem-reel__lead {
	margin: 0;
	max-width: 28rem;
	font-size: 1.02rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
}

.cns-tem-reel__stage {
	min-width: 0;
}

.cns-tem-reel__viewport {
	position: relative;
}

.cns-tem-reel__track {
	display: flex;
	gap: 0.9rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.2rem 0.15rem 0.85rem;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}

.cns-tem-reel__track::-webkit-scrollbar {
	display: none;
}

.cns-tem-reel__card {
	flex: 0 0 calc((100% - 2.7rem) / 4);
	min-width: 10.5rem;
	max-width: 16rem;
	scroll-snap-align: start;
	margin: 0;
}

.cns-tem-reel__media {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	aspect-ratio: 4 / 5;
	border-radius: 1.05rem;
	overflow: hidden;
	background: #0d1a12;
	cursor: pointer;
	appearance: none;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.cns-tem-reel__media img {
	width: 100%;
	height: 132%;
	object-fit: cover;
	object-position: center 22%;
	display: block;
	margin-top: -8%;
	transition: transform 0.35s ease;
}

.cns-tem-reel__media:hover img,
.cns-tem-reel__media:focus-visible img {
	transform: scale(1.05);
}

.cns-tem-reel__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(8, 16, 11, 0.72) 100%);
	pointer-events: none;
}

.cns-tem-reel__play {
	position: absolute;
	inset: 50% auto auto 50%;
	z-index: 1;
	width: 2.7rem;
	height: 2.7rem;
	margin: -1.35rem 0 0 -1.35rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.cns-tem-reel__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.38rem 0 0.38rem 0.64rem;
	border-color: transparent transparent transparent var(--cns-green);
	transform: translate(-50%, -50%);
}

.cns-tem-reel__caption {
	margin-top: 0.7rem;
}

.cns-tem-reel__hook {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cns-tem-reel__who {
	margin: 0.28rem 0 0;
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.72);
}

.cns-tem-reel__nav {
	position: absolute;
	top: 42%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	margin-top: -1.15rem;
	border: 0 !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94) !important;
	color: var(--cns-green) !important;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	outline: 0 !important;
}

.cns-tem-reel__nav--prev {
	left: -0.7rem;
}

.cns-tem-reel__nav--next {
	right: -0.7rem;
}

.cns-tem-reel__nav:hover {
	background: var(--cns-lime) !important;
	color: #111 !important;
}

.cns-tem-reel__nav[hidden] {
	display: none !important;
}

.cns-tem-reel__dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.35rem;
}

.cns-tem-reel__dot {
	width: 0.48rem;
	height: 0.48rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.32);
	cursor: pointer;
}

.cns-tem-reel__dot.is-on {
	background: var(--cns-lime);
	width: 0.85rem;
}

@media (max-width: 1100px) {
	.cns-tem-reel__card {
		flex-basis: calc((100% - 1.8rem) / 3);
	}
}

@media (max-width: 900px) {
	.cns-tem-reel__inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.cns-tem-reel__title {
		max-width: 14ch;
	}

	.cns-tem-reel__stage,
	.cns-tem-reel__viewport {
		min-width: 0;
		max-width: 100%;
	}

	.cns-tem-reel__card {
		flex-basis: calc((100% - 0.9rem) / 2);
		max-width: none;
	}

	.cns-tem-reel__nav--prev {
		left: 0.15rem;
	}

	.cns-tem-reel__nav--next {
		right: 0.15rem;
	}
}

@media (max-width: 600px) {
	.cns-tem-reel__card {
		flex-basis: 78%;
		max-width: 18rem;
	}

	.cns-tem-reel__dots {
		display: none;
	}
}


@media (max-width: 700px) {
	.cns-tem-reel__card {
		flex-basis: 82%;
		max-width: 19rem;
	}
}

.cns-tem-reel__title, .cns-tem-reel__title span { color: #fff !important; }
.cns-tem-reel__lead, .cns-tem-reel__eyebrow, .cns-tem-reel__who { color: #fff !important; }
.cns-tem-reel__hook { color: #fff !important; }

/* Lightbox (autonome si temo-feed absent, ex. accueil) */
.cns-tem-lightbox[hidden] {
	display: none !important;
}

.cns-tem-lightbox {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.cns-tem-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 14, 10, 0.78);
}

.cns-tem-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.cns-tem-lightbox__close {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	z-index: 2;
	width: 2.4rem;
	height: 2.4rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.cns-tem-lightbox__frame {
	aspect-ratio: 16 / 9;
	background: #000;
}

.cns-tem-lightbox__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

body.cns-tem-open {
	overflow: hidden;
}
