/*
 * Section "What our clients say" — avis Google (Lot 2)
 * Reprend la DA de la section "Our Services" de la page d'accueil :
 * fond noir, police Archivo, rayon de 20px / bordure blanche 1px (cartes),
 * couleur accent #DAB3A6 (icônes/boutons déjà utilisée ailleurs sur le site).
 */
.automoto-reviews {
	background-color: #000000;
	padding: 5em 1em 5em;
}

.automoto-reviews__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.automoto-reviews__title {
	margin: 0;
	text-align: center;
	font-family: 'Archivo', sans-serif;
	font-weight: 300;
	font-size: 48px;
	color: #FFFFFF;
}

.automoto-reviews__title span {
	font-weight: 500;
}

.automoto-reviews__summary {
	margin: 16px 0 0;
	display: flex;
	justify-content: center;
}

.automoto-reviews__divider {
	width: 20%;
	max-width: 160px;
	height: 1px;
	background-color: #FFFFFF;
	margin: 24px auto 48px;
}

/* align-items: start — essentiel : une carte qui se déplie ne doit jamais
   étirer ses voisines de la même ligne à sa propre hauteur. */
.automoto-reviews__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: start;
}

.automoto-reviews__card {
	position: relative;
	background-color: #000000;
	border: 1px solid #FFFFFF;
	border-radius: 20px;
	padding: 28px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.automoto-reviews__author {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.automoto-reviews__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.automoto-reviews__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #DAB3A6;
	color: #000000;
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 16px;
}

.automoto-reviews__author-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

/* !important : le thème applique une couleur de lien globale sombre sur tous
   les <a>, avec une spécificité suffisante pour passer devant une classe seule. */
.automoto-reviews__name {
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #FFFFFF !important;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.automoto-reviews__name:hover {
	text-decoration: underline;
}

.automoto-reviews__date {
	font-family: 'Archivo', sans-serif;
	font-weight: 400;
	font-size: 12px;
	color: #B6B5B5;
}

.automoto-reviews__rating {
	font-size: 16px;
	line-height: 1;
}

.automoto-reviews__star {
	color: #4D4D4D;
}

.automoto-reviews__star--filled {
	color: #DAB3A6;
}

.automoto-reviews__text {
	margin: 0;
	flex-grow: 1;
}

.automoto-reviews__text-short,
.automoto-reviews__text-full {
	margin: 0;
	font-family: 'Archivo', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	color: #FFFFFF !important;
}

.automoto-reviews__text-full {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.35s ease;
}

/*
 * Le style global des boutons du Kit Elementor actif (".elementor-kit-9
 * button") a une spécificité classe+élément, supérieure à une simple classe
 * — il gagne même sur "all: unset". On force donc les propriétés avec
 * !important. Pas de fond ni de bordure ici : juste du texte/une icône
 * dans la couleur accent du site (#DAB3A6), sans forme de bouton.
 */
.automoto-reviews__more-btn {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 13px;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: #DAB3A6 !important;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.automoto-reviews__more-btn:hover {
	opacity: 0.75;
}

.automoto-reviews__less-btn {
	all: unset;
	box-sizing: border-box !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	margin: 12px auto 0;
	border: 0 !important;
	background: none !important;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.automoto-reviews__less-btn:hover svg {
	opacity: 0.75;
}

.automoto-reviews__card.is-expanded .automoto-reviews__less-btn {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.automoto-reviews__less-btn svg {
	width: 16px;
	height: 16px;
	fill: #DAB3A6;
	transition: fill 0.2s ease;
}

.automoto-reviews__empty {
	text-align: center;
	font-family: 'Archivo', sans-serif;
	color: #B6B5B5;
	font-size: 15px;
}

.automoto-reviews__attribution {
	margin: 40px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	font-family: 'Archivo', sans-serif;
	font-size: 13px;
	color: #B6B5B5;
}

.automoto-reviews__cta {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 15px;
	background: linear-gradient(90deg, #DAB3A6BF, #996F60BF);
	color: #FFFFFF;
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
	.automoto-reviews {
		padding: 3em 1em;
	}

	.automoto-reviews__title {
		font-size: 36px;
	}

	.automoto-reviews__divider {
		width: 30%;
	}

	.automoto-reviews__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.automoto-reviews {
		padding: 2em 1em 1em;
	}

	.automoto-reviews__title {
		font-size: 28px;
	}

	.automoto-reviews__divider {
		width: 45%;
	}

	.automoto-reviews__grid {
		grid-template-columns: 1fr;
	}
}
