/**
 * Reviews / Témoignages — styles frontend
 * Maquette : box gris clair, coins arrondis, nom + poste en haut, citation en dessous.
 * Flèches carousel en haut à droite.
 */

.sgc-reviews {
	--sgc-reviews-gap: 24px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.sgc-reviews *,
.sgc-reviews *::before,
.sgc-reviews *::after {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   Navigation — haut droite
   ------------------------------------------------------------------------- */
.sgc-reviews-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	min-height: 40px;
}

.sgc-reviews:not(.is-carousel) .sgc-reviews-nav {
	display: none !important;
}

.sgc-reviews-pagination {
	position: relative !important;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: auto !important;
	bottom: auto !important;
	inset-inline-start: auto !important;
	inset-inline-end: auto !important;
	transform: none !important;
	flex: 1;
}

.sgc-reviews-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	background-color: #cccccc;
	opacity: 1;
	border-radius: 50%;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.sgc-reviews-pagination .swiper-pagination-bullet-active {
	background-color: #333333;
	transform: scale(1.15);
}

.sgc-reviews-nav__arrows {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-inline-start: auto;
}

.sgc-reviews-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	background-color: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 50%;
	color: #333333;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
	line-height: 0;
}

.sgc-reviews-nav__btn:hover {
	background-color: #f5f5f5;
	border-color: #bbbbbb;
	color: #111111;
}

.sgc-reviews-nav__btn:focus-visible {
	outline: 2px solid #333333;
	outline-offset: 2px;
}

.sgc-reviews-nav__btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* Icônes CSS (autonomes, même si frontend.css n'est pas chargé) */
.sgc-reviews-nav__btn .sgc-icon {
	display: block !important;
	box-sizing: border-box;
	flex-shrink: 0;
	pointer-events: none;
	opacity: 1 !important;
	visibility: visible !important;
	background: transparent !important;
}

.sgc-reviews-nav__btn .sgc-icon--chevron-left,
.sgc-reviews-nav__btn .sgc-icon--chevron-right {
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.sgc-reviews-nav__btn .sgc-icon--chevron-left {
	transform: rotate(-135deg);
	margin-left: 3px;
}

.sgc-reviews-nav__btn .sgc-icon--chevron-right {
	transform: rotate(45deg);
	margin-right: 3px;
}

/* -------------------------------------------------------------------------
   Grille statique
   ------------------------------------------------------------------------- */
.sgc-reviews-grid {
	display: grid;
	grid-template-columns: repeat(var(--sgc-reviews-cols, 3), minmax(0, 1fr));
	gap: var(--sgc-reviews-gap, 24px);
	width: 100%;
}

.sgc-reviews.is-carousel .sgc-reviews-grid {
	display: none;
}

@media (max-width: 1024px) {
	.sgc-reviews-grid {
		grid-template-columns: repeat(var(--sgc-reviews-cols-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.sgc-reviews-grid {
		grid-template-columns: repeat(var(--sgc-reviews-cols-mobile, 1), minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------
   Carousel Swiper
   ------------------------------------------------------------------------- */
.sgc-reviews-swiper {
	display: block;
	width: 100%;
	overflow: hidden;
	--sgc-reviews-gap: 24px;
}

.sgc-reviews-swiper .swiper-slide {
	height: auto;
	display: flex;
}

.sgc-reviews-swiper .swiper-slide .sgc-review {
	width: 100%;
}

/* -------------------------------------------------------------------------
   Box témoignage
   ------------------------------------------------------------------------- */
.sgc-review {
	display: flex;
	flex-direction: column;
	background-color: #f2f2f2;
	border-radius: 18px;
	padding: 28px;
	height: 100%;
	min-width: 0;
}

.sgc-review__header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.sgc-review__header--avatar-side {
	flex-direction: row;
	align-items: center;
}

.sgc-review__header--avatar-top {
	flex-direction: column;
	align-items: flex-start;
}

.sgc-review__avatar {
	flex-shrink: 0;
	overflow: hidden;
	width: 48px;
	height: 48px;
}

.sgc-review__avatar--circle {
	border-radius: 50%;
}

.sgc-review__avatar--square {
	border-radius: 8px;
}

.sgc-review__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sgc-review__identity {
	min-width: 0;
}

.sgc-review__name {
	margin: 0 0 4px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #111111;
	letter-spacing: -0.01em;
}

.sgc-review__role {
	margin: 0;
	padding: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	color: #8a8a8a;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sgc-review__quote {
	margin: 20px 0 0;
	padding: 0;
	border: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: #111111;
	quotes: none;
}

.sgc-review__quote-mark {
	font-weight: inherit;
}

/* Éditeur Elementor */
.elementor-editor-active .sgc-review {
	min-height: 0;
}
