/* Page « Laisser un avis » */
.avis-page {
  padding: 140px 0 180px;
  background: #f5f7fa;
}
.avis-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(11, 46, 79, 0.08);
}
.avis-intro {
  margin: 8px 0 32px;
  font-size: 17px;
}
.avis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.avis-field {
  margin-bottom: 22px;
}
.avis-label {
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.avis-label em {
  color: #c0392b;
  font-style: normal;
}
.avis-card input[type='text'],
.avis-card select,
.avis-card textarea {
  width: 100%;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 16px;
  background: #fff;
  color: #1d2b3a;
  outline: none;
  transition: border-color 0.2s;
}
.avis-card input:focus,
.avis-card select:focus,
.avis-card textarea:focus {
  border-color: var(--secondary-color);
}
.avis-card textarea {
  resize: vertical;
  min-height: 130px;
}
/* Étoiles : ordre inversé pour que le survol colore les étoiles précédentes */
.avis-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.avis-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.avis-stars label {
  font-size: 40px;
  line-height: 1;
  color: #d5dbe2;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.avis-stars label:hover,
.avis-stars label:hover ~ label,
.avis-stars input:checked ~ label {
  color: var(--secondary-color);
}
.avis-stars label:hover {
  transform: scale(1.12);
}
.avis-stars input:focus-visible + label {
  outline: 2px solid var(--primary-color);
  border-radius: 4px;
}
.avis-hp {
  position: absolute;
  left: -9999px;
}
.avis-note {
  font-size: 14px;
  color: #6b7785;
  margin-bottom: 20px;
}
.avis-msg {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6c3;
}
.avis-thanks {
  text-align: center;
  padding: 20px 0;
}
.avis-thanks-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e6f9f0;
  color: #1a7a4a;
  font-size: 36px;
  line-height: 72px;
}
.avis-thanks p {
  margin-bottom: 26px;
}
@media (max-width: 767px) {
  .avis-page {
    padding: 32px 0 160px;
  }
  .avis-card {
    padding: 28px 20px;
  }
  .avis-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Avis sur la page d'accueil : étoiles et titre */
.review-stars {
  color: var(--secondary-color);
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.review-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.testimonial-cta {
  text-align: center;
  margin-top: 40px;
}

.testimonial-cta .main-btn i,
.avis-card .main-btn i {
  margin-left: 8px;
}
