/* ==========================================================================
   Page témoignages
   ========================================================================== */

.cv-testimonials-page {
	--cvt-black: #171717;
	--cvt-yellow: #ffb800;
	--cvt-yellow-soft: #ffe49c;
	--cvt-cream: #fff8e7;
	--cvt-orange: #ed4c13;
	--cvt-orange-soft: #ffd7be;
	--cvt-grey: #ececec;
	--cvt-max: 1380px;

	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	color: var(--cvt-black);
}

.cv-testimonials-page *,
.cv-testimonials-page *::before,
.cv-testimonials-page *::after {
	box-sizing: border-box;
}

.cvt-container {
	width: min(var(--cvt-max), calc(100% - 80px));
	margin-inline: auto;
}

.cvt-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-width: 240px;
	min-height: 38px;
	margin: 0 auto 38px;
	padding: 7px 30px;
	background: #fff;
	border: 1.5px solid var(--cvt-yellow);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.1;
	text-align: center;
}

.cvt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 28px;
	border: 1.5px solid transparent;
	border-radius: 4px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.cvt-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 7px 15px rgba(0,0,0,.10);
}

.cvt-button--yellow {
	background: var(--cvt-yellow);
	color: var(--cvt-black);
}

.cvt-button--outline {
	background: #fff;
	color: var(--cvt-black);
	border-color: var(--cvt-black);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.cvt-hero {
	background: var(--cvt-yellow-soft);
}

.cvt-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: center;
	min-height: 420px;
	gap: 80px;
}

.cvt-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	max-width: 880px;
}

.cvt-hero__content .cvt-pill {
	margin: 0 0 48px;
}

.cvt-hero__title {
	margin: 0 0 20px;
	font-size: clamp(48px, 4.5vw, 66px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.035em;
}

.cvt-hero__intro {
	max-width: 820px;
	margin: 0;
	font-size: 20px;
	line-height: 1.45;
}

.cvt-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
}

.cvt-heart-icon {
	position: relative;
	width: 170px;
	height: 140px;
	border-radius: 50% 50% 46% 46%;
	background: var(--cvt-yellow);
}

.cvt-heart-icon::after {
	content: "";
	position: absolute;
	left: 18px;
	bottom: -9px;
	width: 34px;
	height: 34px;
	background: var(--cvt-yellow);
	transform: rotate(35deg);
	border-radius: 4px;
}

.cvt-heart-icon span,
.cvt-heart-icon span::before,
.cvt-heart-icon span::after {
	position: absolute;
	display: block;
}

.cvt-heart-icon span {
	left: 50%;
	top: 50%;
	width: 50px;
	height: 44px;
	transform: translate(-50%, -50%) rotate(-45deg);
	background: var(--cvt-yellow-soft);
	border-radius: 0 0 0 10px;
}

.cvt-heart-icon span::before,
.cvt-heart-icon span::after {
	content: "";
	width: 50px;
	height: 44px;
	background: var(--cvt-yellow-soft);
	border-radius: 50%;
}

.cvt-heart-icon span::before {
	top: -25px;
	left: 0;
}

.cvt-heart-icon span::after {
	left: 25px;
	top: 0;
}

.cv-testimonials-hero__icon{
    display:flex;
    justify-content:center;
    align-items:center;
}

.cv-testimonials-hero__icon img{
    width:180px;
    height:auto;
    display:block;
}


/* ==========================================================================
   Témoignages
   ========================================================================== */

.cvt-testimonials {
	padding: 85px 0 100px;
	background: #fff;
}

.cvt-section-title {
	margin: 0;
	font-size: clamp(42px, 3.8vw, 58px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.03em;
	text-align: center;
}

.cvt-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 50px 0 65px;
}

.cvt-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 112px;
	min-height: 42px;
	padding: 8px 20px;
	border: 1px solid var(--cvt-yellow);
	border-radius: 999px;
	background: var(--cvt-cream);
	color: var(--cvt-black);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cvt-filter:hover {
	transform: translateY(-1px);
}

.cvt-filter.is-active {
	background: var(--cvt-black);
	border-color: var(--cvt-black);
	color: #fff;
}

.cvt-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 55px 55px;
	max-width: 1220px;
	margin: 0 auto;
	align-items: stretch;
}

.cvt-card {
	display: flex;
	flex-direction: column;
	min-height: 330px;
	padding: 30px 30px 28px;
	background: var(--cvt-cream);
	border: 1px solid var(--cvt-yellow);
	border-radius: 8px;
	box-shadow: 0 12px 22px rgba(0,0,0,.07);
	opacity: 1;
	transform: translateY(0) scale(1);
	transition:
		opacity .24s ease,
		transform .24s ease,
		box-shadow .2s ease;
}

.cvt-card.is-filtering-out {
	opacity: 0;
	transform: translateY(14px) scale(.98);
	pointer-events: none;
}

.cvt-card.is-hidden {
	display: none;
}

.cvt-card.is-filtering-in {
	opacity: 0;
	transform: translateY(14px) scale(.98);
}

.cvt-card--highlight {
	background: var(--cvt-orange);
	border-color: var(--cvt-orange);
	color: #fff;
}

.cvt-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	min-height: 58px;
	margin-bottom: 20px;
}

.cvt-card__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	overflow: hidden;
	background: var(--cvt-grey);
	border-radius: 50%;
}

.cvt-card__avatar-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cvt-card__avatar--empty {
	position: relative;
}

.cvt-card__avatar--empty span {
	width: 23px;
	height: 18px;
	border: 2px solid #555;
	border-radius: 3px;
}

.cvt-card--highlight .cvt-card__avatar--empty {
	background: rgba(255,255,255,.85);
}

.cvt-card__quote-mark {
	color: var(--cvt-yellow);
	font-family: Georgia, serif;
	font-size: 42px;
	line-height: .85;
	letter-spacing: -8px;
}



.cvt-card--highlight .cvt-card__quote-mark {
	color: #fff;
}

.cvt-card__text {
	margin-bottom: 32px;
	font-size: 18px;
	line-height: 1.45;
}

.cvt-read-more {
	display: inline;
	margin: 0 0 0 3px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .78em;
	font-weight: 800;
	text-decoration: underline;
	cursor: pointer;
}

.cvt-card__footer {
	margin-top: auto;
}

.cvt-card__name {
	margin-bottom: 3px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.15;
}

.cvt-card__meta {
	font-size: 12px;
	line-height: 1.3;
}

.cvt-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 85px;
}

.cvt-empty {
	grid-column: 1 / -1;
	text-align: center;
}


/* ==========================================================================
   Modale
   ========================================================================== */

.cvt-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 30px;
}

.cvt-modal.is-open {
	display: flex;
}

.cvt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.58);
	backdrop-filter: blur(2px);
}

.cvt-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(720px, 100%);
	max-height: min(760px, calc(100vh - 60px));
	overflow-y: auto;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.cvt-modal__close {
	position: absolute;
	z-index: 5;
	right: 18px;
	top: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(0,0,0,.18);
	border-radius: 50%;
	background: #fff;
	color: var(--cvt-black);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.cvt-modal-card {
	padding: 42px;
	background: var(--cvt-cream);
	border: 1px solid var(--cvt-yellow);
	border-radius: 12px;
}

.cvt-modal-card--highlight {
	background: var(--cvt-orange);
	border-color: var(--cvt-orange);
	color: #fff;
}

.cvt-modal-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 30px;
	padding-right: 50px;

}

.cvt-modal-card__avatar {
	width: 68px;
	height: 68px;
	overflow: hidden;
	border-radius: 50%;
}

.cvt-modal-card__avatar-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cvt-modal-card__name {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
}

.cvt-modal-card__meta {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.35;
}

.cvt-modal-card__quote-mark {
	color: var(--cvt-yellow);
	font-family: Georgia, serif;
	font-size: 52px;
	line-height: .8;
	letter-spacing: -10px;
}

.cvt-modal-card--highlight .cvt-modal-card__quote-mark {
	color: #fff;
}

.cvt-modal-card__text {
	font-size: 21px;
	line-height: 1.6;
}

body.cvt-modal-open {
	overflow: hidden;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {

	.cvt-container {
		width: calc(100% - 50px);
	}

	.cvt-grid {
		gap: 35px;
	}

	.cvt-card {
		padding: 26px;
	}

	.cvt-card__text {
		font-size: 17px;
	}
}

@media (max-width: 900px) {

	.cvt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cvt-hero__inner {
		grid-template-columns: minmax(0, 1fr) 220px;
		gap: 45px;
	}

	.cvt-heart-icon {
		transform: scale(.8);
	}
}

@media (max-width: 767px) {

	.cvt-container {
		width: calc(100% - 36px);
	}

	.cvt-pill {
		min-width: 190px;
		margin-bottom: 28px;
		font-size: 12px;
	}

	.cvt-hero__inner {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 50px 0;
	}

	.cvt-hero__content .cvt-pill {
		margin-bottom: 38px;
	}

	.cvt-hero__title {
		font-size: 43px;
	}

	.cvt-hero__intro {
		font-size: 17px;
	}

	.cvt-hero__visual {
		justify-content: flex-start;
	}

	.cvt-heart-icon {
		transform: scale(.7);
		transform-origin: left center;
	}

	.cvt-testimonials {
		padding: 65px 0 75px;
	}

	.cvt-section-title {
		font-size: 36px;
	}

	.cvt-filters {
		justify-content: flex-start;
		gap: 8px;
		margin: 38px 0 45px;
	}

	.cvt-filter {
		min-width: 0;
		min-height: 38px;
		padding: 7px 14px;
		font-size: 12px;
	}

	.cvt-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cvt-card {
		min-height: 0;
	}

	.cvt-actions {
		flex-direction: column;
		align-items: stretch;
		margin-top: 45px;
	}

	.cvt-actions .cvt-button {
		width: 100%;
	}

	.cvt-modal {
		padding: 15px;
	}

	.cvt-modal__dialog {
		max-height: calc(100vh - 30px);
	}

	.cvt-modal-card {
		padding: 28px 24px;
	}

	.cvt-modal-card__header {
		grid-template-columns: 54px minmax(0, 1fr);
		padding-right: 35px;
	}

	.cvt-modal-card__avatar {
		width: 54px;
		height: 54px;
	}

	.cvt-modal-card__quote-mark {
		display: none;
	}

	.cvt-modal-card__text {
		font-size: 18px;
		line-height: 1.55;
	}
}
