/* NicoPhoto Widgets — carrousel de témoignages */
.npw-tc {
	--npw-per-view: 1;
	--npw-gap: 24px;
	--npw-radius: 12px;
	--npw-card-bg: transparent;
	--npw-star-color: #c9a227;
	--npw-star-size: 18px;
	--npw-avatar-size: 56px;
	--npw-nav-color: currentColor;
	--npw-align: center;
	--npw-justify: center;
	--npw-n: var(--npw-per-view);
	position: relative;
	width: 100%;
	min-width: 0;
}

@media (max-width: 1024px) {
	.npw-tc { --npw-n: var(--npw-per-view-tablet, min(var(--npw-per-view), 2)); }
}

@media (max-width: 767px) {
	.npw-tc { --npw-n: var(--npw-per-view-mobile, 1); }
}

.npw-tc__viewport {
	overflow: hidden;
	border-radius: var(--npw-radius);
	outline-offset: 4px;
}

.npw-tc__viewport:focus-visible {
	outline: 2px solid var(--npw-star-color);
}

.npw-tc__track {
	display: flex;
	gap: var(--npw-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.npw-tc__track::-webkit-scrollbar { display: none; }

.npw-tc__slide {
	flex: 0 0 calc((100% - (var(--npw-n) - 1) * var(--npw-gap)) / var(--npw-n));
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 32px 28px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: var(--npw-justify);
	gap: 18px;
	text-align: var(--npw-align);
	background: var(--npw-card-bg);
	border-radius: var(--npw-radius);
}

.npw-tc__rating {
	display: flex;
	gap: 2px;
	font-size: var(--npw-star-size);
	line-height: 1;
}

.npw-tc__star { color: var(--npw-star-color); opacity: .25; }
.npw-tc__star.is-on { opacity: 1; }

.npw-tc__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: italic;
	font-size: 1.125em;
	line-height: 1.6;
	color: var(--npw-quote-color, inherit);
	quotes: "« " " »";
}

.npw-tc__quote p {
	margin: 0;
	white-space: pre-line;
}

.npw-tc__quote p::before { content: open-quote; }
.npw-tc__quote p::after { content: close-quote; }

.npw-tc__author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	text-align: left;
}

.npw-tc__avatar {
	width: var(--npw-avatar-size);
	height: var(--npw-avatar-size);
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.npw-tc__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.npw-tc__name {
	font-weight: 600;
	color: var(--npw-name-color, inherit);
}

.npw-tc__role {
	font-size: .875em;
	opacity: .75;
	color: var(--npw-role-color, inherit);
}

.npw-tc__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
	color: var(--npw-nav-color);
}

.npw-tc__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s;
}

.npw-tc__arrow:hover,
.npw-tc__arrow:focus-visible { opacity: 1; background: transparent; color: inherit; }

.npw-tc__arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.npw-tc__dots {
	display: flex;
	gap: 8px;
}

.npw-tc__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: currentColor;
	opacity: .25;
	cursor: pointer;
	transition: opacity .2s, transform .2s;
}

.npw-tc__dot:hover { opacity: .5; background: currentColor; }
.npw-tc__dot[aria-current="true"] { opacity: 1; transform: scale(1.25); }

.npw-tc__dot:focus-visible,
.npw-tc__arrow:focus-visible {
	outline: 2px solid var(--npw-star-color);
	outline-offset: 2px;
}

.npw-tc__empty {
	margin: 0;
	padding: 24px;
	border: 1px dashed currentColor;
	border-radius: var(--npw-radius);
	text-align: center;
	opacity: .7;
}

.npw-tc.is-static .npw-tc__nav { display: none; }

@media (prefers-reduced-motion: reduce) {
	.npw-tc__track { scroll-behavior: auto; }
}
