/**
 * COSAR Testimonials — carrousel de témoignages (Swiper).
 */

 @font-face {
	font-family: 'Courgette';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/Courgette-Regular.ttf') format('truetype');
}

:root {
	--cosar-accent-color: #2967f0;
	--cosar-card-bg: #ffffff;
	--cosar-text-color: #333333;
	--cosar-name-color: #1a1a1a;
	--cosar-role-color: #1a1a1a;
	/* Police du nom/poste : mets ici la police script du site (voir note plus bas) */
	--cosar-name-font: 'Courgette', cursive;
	--cosar-arrow-bg: var(--cosar-accent-color);
	--cosar-arrow-color: #ffffff;
	--cosar-arrow-size: 48px;
	--cosar-dot-color: #d6dceb;
	--cosar-dot-active-color: var(--cosar-accent-color);
	--cosar-card-radius: 0px;        /* carré comme l'exemple */
	--cosar-card-shadow: none;       /* plat comme l'exemple */
	--cosar-photo-size: 240px;       /* grande photo comme l'exemple */
}

.cosar-testimonial-carousel {
	position: relative;
	padding: 0;
	box-sizing: border-box;
}

.cosar-testimonial-carousel .swiper {
	overflow: hidden;
	padding-bottom: 0;
}

.cosar-testimonial-carousel .swiper-wrapper {
	align-items: stretch;
}

/* La carte (.swiper-slide) = wrapper auto-généré par Divi ; contenu réel dans .et_pb_module_inner. */
.cosar-testimonial-item.swiper-slide {
	height: auto;
	align-self: stretch;
}

.cosar-testimonial-item > .et_pb_module_inner {
	display: flex;
	align-items: center;
	gap: 44px;
	height: 100%;
	background: var(--cosar-card-bg);
	border-radius: var(--cosar-card-radius);
	box-shadow: var(--cosar-card-shadow);
	padding: 48px 56px;
	box-sizing: border-box;
}

.cosar-testimonial-photo {
	flex: 0 0 auto;
	width: var(--cosar-photo-size);
	height: var(--cosar-photo-size);
}

.cosar-testimonial-photo img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.cosar-testimonial-body {
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

.cosar-testimonial-name {
	color: var(--cosar-name-color);
	font-family: var(--cosar-name-font);
	font-weight: 400;
	font-style: normal;
	font-size: 30px;
	line-height: 1.25;
}

.cosar-testimonial-role {
	color: var(--cosar-role-color);
	font-family: var(--cosar-name-font);
	font-style: normal;
	font-size: 23px;
	line-height: 1.3;
	margin-bottom: 22px;
}

.cosar-testimonial-text {
	color: var(--cosar-text-color);
	font-size: 16px;
	line-height: 1.7;
}

.cosar-testimonial-text p:first-child {
	margin-top: 0;
}

.cosar-testimonial-text p:last-child {
	margin-bottom: 0;
}

/* Flèches */
.cosar-testimonial-carousel .swiper-button-prev,
.cosar-testimonial-carousel .swiper-button-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: var(--cosar-arrow-size);
	height: var(--cosar-arrow-size);
	margin: 0;
	border-radius: 50%;
	background: var(--cosar-arrow-bg);
	color: var(--cosar-arrow-color);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.cosar-testimonial-carousel .swiper-button-prev::after,
.cosar-testimonial-carousel .swiper-button-next::after {
	font-size: 16px;
	font-weight: 700;
	color: var(--cosar-arrow-color);
}

.cosar-testimonial-carousel .swiper-button-prev {
	left: -24px;
}

.cosar-testimonial-carousel .swiper-button-next {
	right: -24px;
}

/* Pagination */
.cosar-testimonial-carousel .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	background: var(--cosar-dot-color);
	opacity: 1;
}

.cosar-testimonial-carousel .swiper-pagination-bullet-active {
	background: var(--cosar-dot-active-color);
}

@media (max-width: 768px) {
	.cosar-testimonial-carousel {
		padding: 0 16px;
	}

	.cosar-testimonial-carousel .swiper-button-prev,
	.cosar-testimonial-carousel .swiper-button-next {
		display: none;
	}

	.cosar-testimonial-item > .et_pb_module_inner {
		flex-direction: column;
		text-align: center;
		padding: 28px 24px;
	}

	:root {
		--cosar-photo-size: 150px;
	}
}

/* On supprime le chevron natif de Swiper... */
.swiper-navigation-icon {
	display: none;
}

/* ...et on le remplace par un chevron dessiné en bordure (toujours centré) */
.cosar-testimonial-carousel .swiper-button-prev::before,
.cosar-testimonial-carousel .swiper-button-next::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-top: 5.5px solid var(--cosar-arrow-color);
	border-right: 5.5px solid var(--cosar-arrow-color);
}

/* flèche droite : chevron pointant à droite */
.cosar-testimonial-carousel .swiper-button-next::before {
	transform: translateX(-2px) rotate(45deg);
}

/* flèche gauche : chevron pointant à gauche */
.cosar-testimonial-carousel .swiper-button-prev::before {
	transform: translateX(2px) rotate(-135deg);
}

/* Annule la marge inter-modules Divi sur les slides (cause un saut au défilement) */
.cosar-testimonial-carousel .swiper-wrapper > .et_pb_module.swiper-slide {
	margin-bottom: 0 !important;
	margin-top: 0 !important;
}

