/**
 * Block: Témoignages (testimonials-block)
 *
 * Cartes témoignages alignées sur la charte SG Conseil (navy #0a2540,
 * doré #d4a247) : guillemet décoratif doré en filigrane, barre d'accent
 * supérieure au hover, étoiles dorées, photo cerclée navy. Même langage
 * visuel que services-grid et faq-accordion.
 */

.testimonials-block {
	padding: 5rem 0 4rem;
	background-color: #ffffff;
}

/* ---------- Header ---------- */
.testimonials-header {
	margin-bottom: 3.5rem;
}

.testimonials-title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	color: #0a2540;
	letter-spacing: -0.01em;
}

.testimonials-intro {
	max-width: 42rem;
	margin: 0 auto;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: #5a6573;
}

.testimonials-intro > :last-child {
	margin-bottom: 0;
}

/* ---------- Grid (center orphan rows for 4 or 5 items) ---------- */
.testimonials-block .row {
	justify-content: center;
}

/* ---------- Card ---------- */
.testimonials-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 2.5rem 2rem 2rem;
	background-color: #ffffff;
	border: 1px solid #e6e9ee;
	border-radius: 1rem;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonials-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #d4a247 0%, #b88a35 100%);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s ease;
}

.testimonials-card:hover {
	transform: translateY(-6px);
	border-color: rgba(212, 162, 71, 0.45);
	box-shadow: 0 18px 40px rgba(10, 37, 64, 0.12);
}

.testimonials-card:hover::before {
	transform: scaleX(1);
}

/* ---------- Decorative quote mark ---------- */
.testimonials-mark {
	position: absolute;
	top: -1.25rem;
	right: 1.25rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 7rem;
	line-height: 1;
	color: rgba(212, 162, 71, 0.14);
	letter-spacing: -0.04em;
	pointer-events: none;
	transition: color 0.25s ease, transform 0.25s ease;
}

.testimonials-card:hover .testimonials-mark {
	color: rgba(212, 162, 71, 0.24);
	transform: scale(1.05);
}

/* ---------- Stars ---------- */
.testimonials-stars {
	display: inline-flex;
	gap: 0.125rem;
	margin-bottom: 1.25rem;
	font-size: 1.125rem;
	line-height: 1;
}

.testimonials-star {
	color: #e6e9ee;
}

.testimonials-star.is-filled {
	color: #d4a247;
}

/* ---------- Quote ---------- */
.testimonials-quote {
	position: relative;
	flex: 1 1 auto;
	margin: 0 0 1.75rem;
	padding: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #1f2a3a;
}

.testimonials-quote p {
	margin: 0;
}

.testimonials-quote p::before {
	content: "« ";
	color: #d4a247;
	font-weight: 600;
}

.testimonials-quote p::after {
	content: " »";
	color: #d4a247;
	font-weight: 600;
}

/* ---------- Author ---------- */
.testimonials-author {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding-top: 1.25rem;
	border-top: 1px solid #eef0f4;
}

.testimonials-author-photo {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background-color: #f4f6f9;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(10, 37, 64, 0.12);
}

.testimonials-author-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.testimonials-author-photo--initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #0a2540;
	color: #d4a247;
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1;
}

.testimonials-author-info {
	min-width: 0;
}

.testimonials-author-name {
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.3;
	color: #0a2540;
	letter-spacing: -0.005em;
}

.testimonials-author-profession {
	margin-top: 0.125rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: #5a6573;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.testimonials-card,
	.testimonials-card::before,
	.testimonials-mark {
		transition: none !important;
	}
}

/* ---------- Mobile fine-tuning ---------- */
@media (max-width: 575.98px) {
	.testimonials-block {
		padding: 3.5rem 0 2.5rem;
	}

	.testimonials-header {
		margin-bottom: 2.5rem;
	}

	.testimonials-card {
		padding: 2rem 1.5rem 1.5rem;
	}

	.testimonials-mark {
		font-size: 5.5rem;
		top: -0.875rem;
		right: 0.875rem;
	}
}

@media (min-width: 992px) {
	.testimonials-block {
		padding: 6rem 0 5rem;
	}

	.testimonials-card {
		padding: 2.75rem 2.25rem 2.25rem;
	}
}

/* Editor canvas — visible surface when fields are empty. */
.wp-block .testimonials-block {
	min-height: 10rem;
}
