/* Customer reviews: honest empty state, then cards rendered by js/reviews.mjs.
   Sizes come from the --fs-* tokens of typography.css, like the rest of the page. */
.reviews-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 32px;
  background: #f4f6f7;
  border: 1px solid #e4e6e8;
  border-radius: 8px;
}
.reviews-empty h3 {
  margin: 0 0 10px;
  font-size: var(--fs-card);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.reviews-empty p {
  margin: 0;
  max-width: 560px;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.reviews-principles {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #52616c;
}
.reviews-principles li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-right: 12px;
  background: var(--orange);
  transform: skew(-24deg);
}
.reviews-cta { display: grid; gap: 14px; justify-items: start; }
.reviews-cta span { font-size: var(--fs-small); line-height: 1.5; font-weight: 700; }
.reviews-cta .outline-action { padding: 13px 18px; }

.reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.reviews-list article {
  height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e6e9;
  border-radius: 8px;
}
.reviews-list header { display: grid; gap: 4px; margin-bottom: 12px; }
.reviews-list b { font-size: var(--fs-body); line-height: 1.4; }
.reviews-list small { font-size: var(--fs-meta); line-height: 1.5; color: #5f6c74; }
.reviews-list p { margin: 0; font-size: var(--fs-small); line-height: 1.55; }

@media (max-width: 900px) {
  .reviews-empty { grid-template-columns: 1fr; gap: 24px; }
  .reviews-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .reviews-empty { padding: 22px 18px; }
  .reviews-list { grid-template-columns: 1fr; }
}

/* Summary computed from the reviews shown, demo notice, review details and footer. */
.reviews-summary { display: grid; gap: 10px; margin-bottom: 22px; }
.reviews-score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-size: var(--fs-body); line-height: 1.5; font-weight: 700; color: #18232c; }
.reviews-demo-note {
  margin: 0;
  max-width: 760px;
  padding: 12px 16px;
  background: #fff4ec;
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #6b3b17;
}
.reviews-list .rating-stars svg { width: 16px; height: 16px; }
.reviews-list p.reviews-no-text { font-style: italic; color: #6b747a; }
.reviews-list p.reviews-reply {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8ebee;
  font-size: var(--fs-meta);
  color: #52616c;
}
.reviews-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 24px; }
.reviews-footer .outline-action { padding: 13px 18px; background: #fff; color: #18232c; cursor: pointer; }

/* Review photos lead the card, edge to edge (each opens #reviewPhotoDialog).
   Ratios chosen so every photo block is 3/4 of the card width tall, whatever the photo count:
   1 photo: 4:3. 2: two 2:3 side by side. 3 or 4: a 2:1 first photo, the others below.
   Delete button of reviews added in this browser follows. */
.reviews-list article.has-photos { overflow: hidden; }
.reviews-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin: -24px -24px 20px;
  background: #e2e6e9;
}
.reviews-photos[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.reviews-photos[data-count="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reviews-photos button {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  background: #eef1f3;
  border: 0;
  cursor: zoom-in;
}
.reviews-photos[data-count="1"] button { aspect-ratio: 4 / 3; }
.reviews-photos[data-count="2"] button { aspect-ratio: 2 / 3; }
.reviews-photos[data-count="3"] button { aspect-ratio: 2 / 1; }
.reviews-photos[data-count="4"] button { aspect-ratio: 4 / 3; }
.reviews-photos[data-count="3"] button:first-child,
.reviews-photos[data-count="4"] button:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.reviews-photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.reviews-photos button:hover img { transform: scale(1.04); }
.reviews-photos button:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.reviews-photo-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(9, 16, 21, .78);
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.reviews-delete {
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  color: #9a3412;
  font-size: var(--fs-meta);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* "Laisser un avis": reuses the .quoteform layout of the quote form. */
.reviews-add { margin-top: 28px; }
.reviews-add > summary { display: inline-flex; align-items: center; padding: 13px 18px; cursor: pointer; list-style: none; }
.reviews-add > summary::-webkit-details-marker { display: none; }
.reviews-add[open] > summary { margin-bottom: 16px; }
.reviews-form { max-width: 860px; }
.reviews-form-note { grid-column: 1 / -1; margin: 0; font-size: var(--fs-small); line-height: 1.5; color: #52616c; }
.reviews-rating-input { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.reviews-rating-input legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: var(--fs-meta); font-weight: 800; }
.reviews-rating-input label { position: relative; }
.quoteform .reviews-rating-input input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.reviews-rating-input span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1px solid #d4dbe1;
  border-radius: 7px;
  font-size: var(--fs-body);
  font-weight: 800;
}
.reviews-rating-input span::after { content: "★"; margin-left: 2px; color: var(--orange); }
.reviews-rating-input input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.reviews-rating-input input:checked + span::after { color: #fff; }
.reviews-rating-input input:focus-visible + span { outline: 3px solid #ff9a62; outline-offset: 3px; }
.reviews-photo-input { grid-column: 1 / -1; }
.reviews-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.reviews-form-actions p { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: #52616c; }
@media (max-width: 600px) {
  .reviews-form { grid-template-columns: 1fr; }
}
