/* Avis Google statiques (remplacent les widgets Elfsight). Généré dans public/static/ par tools/avis.py. */

/* --- étoiles : rangée grise + rangée jaune rognée à la note ------------------------------------------------ */
.pz-stars {
  --taille: 18px;
  position: relative;
  display: inline-block;
  flex: none;
  width: calc(var(--taille) * 5);
  height: var(--taille);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23dadce0' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") repeat-x 0 0 / var(--taille) var(--taille);
}
.pz-stars::before {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--note) / 5 * 100%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fbbc04' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") repeat-x 0 0 / var(--taille) var(--taille);
  animation: pz-remplir 1.2s cubic-bezier(.22, 1, .36, 1) .2s both;
}
.pz-stars--grand { --taille: 22px; }
@keyframes pz-remplir { from { width: 0; } }

.pz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- badge dans l'en-tête (/, /locataire, /partenaires/qeeps) ---------------------------------------------- */
.pz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black, #151515);
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.pz-badge__note { font-size: 20px; font-weight: 700; }
.pz-badge__nb { font-size: 14px; color: var(--dim-grey, #525252); }

/* --- bloc « Merci à nos utilisateurs pour leur confiance » ------------------------------------------------- */
.section_avis_google,
.section_avis_google_index { height: auto; }
.container_avis_google > .w-embed { align-self: stretch; width: 100%; min-width: 0; }

.pz-avis { width: 100%; min-width: 0; font-family: inherit; }

.pz-avis__resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 0 32px;
  color: var(--black, #151515);
}
.pz-avis__google { display: block; width: auto; height: 26px; }
.pz-avis__score { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.pz-avis__note { font-size: 28px; font-weight: 700; line-height: 1; }
.pz-avis__nb { font-size: 16px; color: var(--dim-grey, #525252); }
.pz-avis__lien {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--midnight-blue, #242089);
  border-radius: 999px;
  color: var(--midnight-blue, #242089);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.pz-avis__lien:hover,
.pz-avis__lien:focus-visible { background-color: var(--midnight-blue, #242089); color: #fff; }

/* défilement continu : la piste contient deux fois les avis et glisse de la moitié de sa largeur */
.pz-defile {
  position: relative;
  overflow: hidden;
  padding: 6px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.pz-defile__piste {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: pz-defiler 70s linear infinite;
}
.pz-defile:hover .pz-defile__piste,
.pz-defile:focus-within .pz-defile__piste { animation-play-state: paused; }
@keyframes pz-defiler { to { transform: translateX(-50%); } }

.pz-carte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 300px;
  margin: 0 20px 0 0;
  padding: 22px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(21, 21, 21, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pz-carte:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(21, 21, 21, .1); }

.pz-carte__haut { display: flex; align-items: center; gap: 12px; }
.pz-carte__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.pz-c1 { background: var(--midnight-blue, #242089); color: #fff; }
.pz-c2 { background: var(--cyan, #00ebeb); color: var(--midnight-blue, #242089); }
.pz-c3 { background: var(--light-pink, #ffb0cc); color: var(--midnight-blue, #242089); }
.pz-carte__id { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.pz-carte__nom { color: var(--black, #151515); font-size: 16px; font-weight: 700; line-height: 1.2; }
.pz-carte__src { color: var(--dim-grey-2, #6c6c6c); font-size: 13px; line-height: 1.2; }
.pz-carte__g { display: block; flex: none; width: 20px; height: 20px; }
.pz-carte__texte { margin: 0; color: var(--dim-grey, #525252); font-size: 15px; line-height: 1.55; }

@media screen and (max-width: 479px) {
  .pz-avis__note { font-size: 24px; }
  .pz-avis__resume { margin-bottom: 24px; }
  .pz-carte { width: 260px; margin-right: 14px; padding: 18px; }
  .pz-defile__piste { animation-duration: 60s; }
}

/* mouvement réduit : pas d'animation, défilement manuel au doigt / à la molette */
@media (prefers-reduced-motion: reduce) {
  .pz-stars::before { animation: none; }
  .pz-defile { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .pz-defile__piste { animation: none; }
  .pz-carte { scroll-snap-align: start; transition: none; }
  .pz-carte:hover { transform: none; }
  .pz-carte[aria-hidden="true"] { display: none; }
}
