/* CNS Coach perte de poids en ligne — pel-avis */

.cns-pel-avis {
	--cns-ink: #111;
	--cns-muted: #555;
	--cns-lime: #c8f000;
	--cns-bg: #f4f6f3;
	--cns-font: "Poppins", system-ui, sans-serif;
	background: var(--cns-bg);
	color: var(--cns-ink);
	font-family: var(--cns-font);
	overflow-x: clip;
}

.cns-pel-avis__inner {
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
	padding: clamp(2.75rem, 5.5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
	box-sizing: border-box;
}

.cns-pel-avis__title {
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	font-size: clamp(1.45rem, 2.4vw, 2.05rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.03em;
	color: #111;
	max-width: 34rem;
}

.cns-pel-avis__empty {
	margin: 0;
	padding: 1.5rem 1.25rem;
	border-radius: 1rem;
	background: #fff;
	color: var(--cns-muted);
	font-size: 0.95rem;
	line-height: 1.5;
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
}

.cns-pel-avis__carousel {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: center;
}

.cns-pel-avis__viewport {
	overflow: hidden;
	min-width: 0;
	outline: none;
}

.cns-pel-avis__track {
	list-style: none;
	margin: 0;
	padding: 0.15rem 0.1rem;
	display: flex;
	gap: 1rem;
	transition: transform 0.35s ease;
	will-change: transform;
}

.cns-pel-avis__card {
	flex: 0 0 calc((100% - 2rem) / 3);
	min-width: 0;
	box-sizing: border-box;
	background: #fff;
	border-radius: 1.15rem;
	padding: 1.25rem 1.2rem 1.35rem;
	box-shadow: 0 10px 28px rgba(17, 17, 17, 0.07);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-height: 11.5rem;
}

.cns-pel-avis__card-head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.cns-pel-avis__quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	background: var(--cns-lime);
	color: #111;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	flex: 0 0 auto;
}

.cns-pel-avis__badge {
	font-size: 0.82rem;
	font-weight: 700;
	color: #111;
}

.cns-pel-avis__text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--cns-muted);
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cns-pel-avis__author {
	margin: auto 0 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: #111;
}

.cns-pel-avis__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	border: 1px solid rgba(17, 17, 17, 0.12);
	background: #fff;
	color: #111;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.cns-pel-avis__nav:hover,
.cns-pel-avis__nav:focus {
	background: var(--cns-lime);
	transform: translateY(-1px);
}

.cns-pel-avis__nav:disabled {
	opacity: 0.35;
	cursor: default;
	transform: none;
	background: #fff;
}

.cns-pel-avis__cta-wrap {
	margin: clamp(1.5rem, 3vw, 2rem) 0 0;
	text-align: center;
}

.cns-pel-avis__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.75rem 1.45rem;
	border-radius: 999px;
	background: #111;
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, background 0.18s ease;
}

.cns-pel-avis__cta:hover,
.cns-pel-avis__cta:focus {
	background: #222;
	transform: translateY(-1px);
	color: #fff !important;
}

.wpcursor-component.wpcursor-pel-avis .cns-pel-avis__title,
.wpcursor-component.wpcursor-pel-avis .cns-pel-avis__badge,
.wpcursor-component.wpcursor-pel-avis .cns-pel-avis__author {
	color: #111 !important;
}

@media (max-width: 960px) {
	.cns-pel-avis__card {
		flex-basis: calc((100% - 1rem) / 2);
	}
}

@media (max-width: 640px) {
	.cns-pel-avis__carousel {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"viewport viewport"
			"prev next";
		gap: 0.85rem;
	}

	.cns-pel-avis__viewport {
		grid-area: viewport;
		min-width: 0;
	}

	.cns-pel-avis__nav--prev {
		grid-area: prev;
		justify-self: start;
	}

	.cns-pel-avis__nav--next {
		grid-area: next;
		justify-self: end;
		margin-top: 0;
	}

	.cns-pel-avis__card {
		flex-basis: 100%;
	}

	.cns-pel-avis__title {
		overflow-wrap: anywhere;
		max-width: none;
	}
}