/* Page liste avis clients (/fr/avis-clients/) */
.main.avis-page {
  padding: 208px 32px 120px;
  margin: 0 auto;
  max-width: 900px;
}

.avis-page-header {
  text-align: center;
  margin-bottom: 48px;
}

.avis-page-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 16px;
  margin-bottom: 32px;
  font-size: 18px;
  color: rgba(29, 29, 29, 0.75);
}

.avis-page-summary strong {
  font-family: Medium, Regular, sans-serif;
  font-weight: 600;
  color: #1d1d1d;
}

.cl-new .avis-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 8px;
}

.cl-new .avis-sort {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cl-new .avis-sort-btn {
  padding: 12px 22px;
  border: 1px solid rgba(29, 29, 29, 0.08);
  border-radius: 50px;
  background: #f4f4f4;
  color: #1d1d1d;
  font-family: Regular, sans-serif;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cl-new .avis-sort-btn:hover {
  background: #e8e8e8;
  border-color: rgba(29, 29, 29, 0.12);
}

.cl-new .avis-sort-btn.is-active {
  background: #1d1d1d;
  border-color: #1d1d1d;
  color: #fff;
}

.avis-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avis-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.avis-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.avis-card__meta {
  font-family: Medium, Regular, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1d;
  line-height: 1.4;
}

.avis-card__meta a {
  color: #1d1d1d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.avis-card__meta a:hover {
  color: #000;
}

.avis-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(29, 29, 29, 0.65);
}

.avis-card__body {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(29, 29, 29, 0.85);
}

.avis-card__body b {
  font-family: Medium, Regular, sans-serif;
  font-weight: 600;
}

.avis-card__install {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(29, 29, 29, 0.85);
}

.avis-card__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.avis-card__photos a.avis-photo-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
}

.avis-card__photos img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.avis-card__photos a:hover img {
  transform: scale(1.05);
}

/* lightGallery au-dessus du header / bandeaux fixes */
.lg-container {
  z-index: 12000;
}

.avis-card__staff {
  margin-top: 12px;
  font-size: 13px;
}

.avis-card__staff a {
  text-decoration: underline;
}

.avis-empty {
  text-align: center;
  padding: 48px 24px;
  color: rgba(29, 29, 29, 0.6);
}

/* Étoiles (5 max - pas de doublon visible) */
.cl-stars {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  font-size: 1em;
  letter-spacing: 0.02em;
}

.cl-stars--lg {
  font-size: 28px;
}

.cl-stars--sm {
  font-size: 16px;
}

.cl-stars__bg,
.cl-stars__fill {
  display: block;
  white-space: nowrap;
}

.cl-stars__bg {
  color: rgba(29, 29, 29, 0.15);
}

.cl-stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #f8b82b;
  max-width: 100%;
}

@media (max-width: 768px) {
  .main.avis-page {
    padding: 120px 16px 80px;
  }

  .avis-page-summary {
    margin-bottom: 24px;
  }

  .cl-new .avis-page-toolbar {
    margin-bottom: 28px;
  }

  .cl-new .avis-sort {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cl-new .avis-sort-btn {
    width: 100%;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
  }

  .avis-card {
    padding: 16px;
  }

  .avis-card__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
