/* ============================================================
   ktp-testimonial-carousel.css (v0.6.2)
   ------------------------------------------------------------
   Carrousel horizontal défilant en boucle infinie.
   Pure CSS animation (pas de JS lourd).
   Stratégie : items dupliqués (A B C A B C) + translateX -50%
   en boucle pour rendre le saut de fin invisible.
   Pause au survol (desktop) et au touch sustained (mobile).
   Palette Kartomanta : mauve #7c1c8e accent, gris pour les
   corps de texte.
   ============================================================ */

.ktp-testimonials-carousel {
	margin: 32px 0;
	padding: 8px 0;
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 40px,
		#000 calc(100% - 40px),
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 40px,
		#000 calc(100% - 40px),
		transparent 100%
	);
}

.ktp-testimonials-track {
	display: flex;
	gap: 16px;
	width: max-content;
	animation-name: ktp-testimonial-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

/* Animation : translation de 0 à -50% du conteneur. Comme on a
   dupliqué les items en pattern A B C A B C, à -50% on affiche
   exactement la même chose qu'à 0%, donc la transition (saut) est
   invisible et la boucle paraît infinie. */

@keyframes ktp-testimonial-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* Pause au survol pour permettre la lecture. */

.ktp-testimonials-carousel:hover .ktp-testimonials-track {
	animation-play-state: paused;
}

/* Carte témoignage individuelle */

.ktp-testimonial-card {
	flex-shrink: 0;
	width: 280px;
	padding: 20px 22px;
	background: #ffffff;
	border: 1px solid #f0eaf2;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(124, 28, 142, 0.04);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ktp-testimonial-stars {
	color: #f4b400;
	font-size: 14px;
	letter-spacing: 2px;
	line-height: 1;
}

.ktp-testimonial-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #2a2a2a;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	flex: 1;
}

.ktp-testimonial-author {
	margin: 0;
	font-size: 13px;
	color: #7c1c8e;
	font-weight: 600;
}

.ktp-testimonial-prenom {
	color: #7c1c8e;
}

.ktp-testimonial-date {
	color: #999;
	font-weight: 400;
	font-style: normal;
}

/* Sur les très petits écrans, on resserre légèrement la carte
   et on réduit la zone de mask pour gagner de la lisibilité. */

@media (max-width: 480px) {
	.ktp-testimonial-card {
		width: 240px;
		padding: 16px 18px;
	}

	.ktp-testimonial-text {
		font-size: 13px;
	}

	.ktp-testimonials-carousel {
		-webkit-mask-image: linear-gradient(
			to right,
			transparent 0,
			#000 20px,
			#000 calc(100% - 20px),
			transparent 100%
		);
		mask-image: linear-gradient(
			to right,
			transparent 0,
			#000 20px,
			#000 calc(100% - 20px),
			transparent 100%
		);
	}
}

/* Accessibilité : respect de la préférence utilisateur pour
   reduce-motion. Le carrousel reste affiché mais ne défile pas
   automatiquement (les items restent visibles statiques). */

@media (prefers-reduced-motion: reduce) {
	.ktp-testimonials-track {
		animation: none;
	}
}
