/* Votre avis (vues/avis) — the card, state box, button and phone help are the shared .tlc__* (css/components.css.php);
   here: the 5 stars (radios in natural order: a star lights up with every star before it, by :has), the caption, the
   comment box and the save note. Square, like the rest of the site. */
.avis__form { display: flex; flex-direction: column; gap: var(--space-2); }
.avis__form.is-loading { opacity: .7; pointer-events: none; }
.avis__rate { margin: 0; padding: 0; border: 0; min-width: 0; }
.avis__q { margin: 0 0 var(--space-1); padding: 0; font-size: 1rem; font-weight: 600; color: #1d2939; }
.avis__stars { display: flex; gap: 2px; }
.avis__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.avis__star { display: inline-flex; padding: 4px; cursor: pointer; color: #d0d5dd; transition: color .12s, transform .12s; }
.avis__star .icon { width: 40px; height: 40px; }
/* given: the checked star and every star before it */
.avis__radio:checked + .avis__star, .avis__star:has(~ .avis__radio:checked) { color: #f5a623; }
/* hovered: that star and the ones before it, the others dimmed */
@media (hover: hover) {
	.avis__stars:hover .avis__star { color: #d0d5dd; }
	.avis__stars .avis__star:hover, .avis__stars .avis__star:has(~ .avis__star:hover) { color: #f5a623; }
	.avis__star:hover { transform: scale(1.08); }
}
.avis__radio:focus-visible + .avis__star { outline: 2px solid var(--brand); outline-offset: 0; }
.avis__cap { margin: var(--space-1) 0 0; min-height: 1.4em; font-size: 14px; font-weight: 600; color: #475467; }
.avis__lbl { margin: var(--space-1) 0 0; font-size: 14px; font-weight: 600; color: #1d2939; }
.avis__lbl small { font-weight: 400; color: #667085; }
.avis__form textarea { width: 100%; min-height: 6.5rem; padding: var(--space-1) var(--space-2); border: 1px solid #d0d5dd; font: inherit; font-size: 15px; resize: vertical; }
.avis__form textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.avis__note { display: flex; gap: var(--space-1); align-items: flex-start; margin: 0; padding: var(--space-1) var(--space-2); font-size: 14px; line-height: 1.4; }
.avis__note .icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.avis__note--ok { background: #ecfdf3; color: #067647; }
.avis__note--err { background: #fef3f2; color: #b42318; }
.avis__msg:empty { display: none; }
