/* ---- Formulaire d'avis ---- */
.ac-avis-form-wrapper {
	max-width: 520px;
}

.ac-avis-form .ac-field {
	margin-bottom: 16px;
}

.ac-avis-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.ac-avis-form input[type="text"],
.ac-avis-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
}

.ac-avis-form .ac-avis-submit {
	padding: 10px 24px;
	border: none;
	border-radius: 6px;
	background: #222;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
}

.ac-avis-form .ac-avis-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.ac-avis-message {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}

.ac-avis-message.ac-success {
	background: #e6f6ea;
	color: #1e7e34;
}

.ac-avis-message.ac-error {
	background: #fdecec;
	color: #c0392b;
}

/* ---- Étoiles cliquables (ordre inversé en HTML pour un CSS simple) ---- */
.ac-star-rating {
	display: inline-flex;
	flex-direction: row-reverse;
	font-size: 26px;
}

.ac-star-rating input {
	display: none;
}

.ac-star-rating label {
	display: inline-block;
	margin: 0 2px;
	color: #ddd;
	cursor: pointer;
	transition: color .15s ease;
}

.ac-star-rating input:checked ~ label,
.ac-star-rating label:hover,
.ac-star-rating label:hover ~ label {
	color: #f5a623;
}

/* ---- Affichage des avis (widget Elementor) ---- */
.ac-avis-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, 1fr);
}

.ac-avis-cols-1 { grid-template-columns: repeat(1, 1fr); }
.ac-avis-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ac-avis-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ac-avis-cols-4 { grid-template-columns: repeat(4, 1fr); }

.ac-avis-card {
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 10px;
	background: #fff;
}

.ac-card-stars {
	font-size: 16px;
	color: #f5a623;
	margin-bottom: 10px;
}

.ac-card-text {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 12px;
}

.ac-card-name {
	font-weight: 600;
	font-size: 13px;
	margin: 0;
}

@media (max-width: 768px) {
	.ac-avis-grid {
		grid-template-columns: 1fr !important;
	}
}
