/* Bloc unique des avis : tous les styles sont limités à ce composant. */
.reviews-panel--live { position: sticky; top: 22px; min-width: 0; margin: 0; border: 0 !important; border-radius: 19px; box-shadow: none !important; overflow: hidden; background: var(--bg, #fcf6fa); color: var(--ink, #222c40); font: 17px/1.5 'Segoe UI', Arial, sans-serif; }
.reviews-panel--live, .reviews-panel--live * { box-sizing: border-box; }
.reviews-panel--live .reviews-list { min-height: 240px; max-height: calc(100vh - 230px); margin-top: 14px; padding: 0 12px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ddb9d0 transparent; background: var(--bg, #fcf6fa); }
.reviews-panel--live .review { position: relative; margin: 0 0 12px; padding: 16px; background: var(--surface, #fff); border: 1px solid var(--line, #e9e7ed) !important; border-left: 3px solid #e54199 !important; border-radius: 12px; box-shadow: 0 4px 12px #902c6710; }
.reviews-panel--live .review:nth-child(even) { border-left-color: #f3bd36 !important; }
.reviews-panel--live .review:last-child { margin-bottom: 0; }
.reviews-panel--live .review-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reviews-panel--live .review-stars { padding: 3px 7px; border-radius: 100px; background: #fff1cd; color: #d6a521 !important; font-size: 12px; }
.reviews-panel--live .review time { font-size: 11px; color: var(--muted, #667085); }
.reviews-panel--live .review-advisor { position: relative; margin: 9px 0; font-size: 13px; line-height: 1.5; color: var(--ink, #222c40); }
.reviews-panel--live .review-advisor strong { color: var(--pink, #be167d); font-weight: 650; }
.reviews-panel--live .review-advisor > span { display: block; color: var(--muted, #667085); font-size: 12px; margin-top: 2px; }
.reviews-panel--live blockquote { margin: 0; padding: 0; border: 0; color: var(--muted, #667085); text-align: left; }
.reviews-panel--live .reviews-list[data-carousel-ready="true"] { min-height: 0; max-height: none; padding: 0 10px 10px; }
.reviews-panel--live .reviews-list[data-carousel-ready="true"] .review { min-height: 0; margin: 0; padding: 12px; }
.reviews-panel--live .reviews-list[data-carousel-ready="true"] .review-advisor { margin: 7px 0; }
.reviews-panel--live .all-reviews { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line, #e9e7ed); background: var(--bg, #fcf6fa); color: var(--pink, #be167d); font-size: 13px; font-weight: 700; text-decoration: none; }
.reviews-panel--live .all-reviews:hover { background: var(--hero, #fbe5f3); }
/* Compatibilité si une ancienne version du script est encore en cache. */
.reviews-panel--live .reviews-carousel-controls { display: none !important; }
.reviews-panel--live .reviews-summary--live .reviews-average { color: var(--ink, #222c40); }
.reviews-panel--live .reviews-summary--live .reviews-average > span:not(.reviews-summary-stars) { color: var(--muted, #667085); font-weight: 600; }
.reviews-panel--live .reviews-summary-stars { color: #c79827 !important; }
.reviews-panel--live .reviews-summary--live .reviews-filter-label { display: block; margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--muted, #667085); font-size: 13px; line-height: 1.5; text-align: center; }
.msv-reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) calc(clamp(246px, 20vw, 292px) + 10px); gap: 28px; align-items: start; margin-block: 50px; }
.msv-reviews-layout > .msv-reviews-content { min-width: 0; margin-block: 0 !important; scroll-margin-top: 120px; }
@media (min-width: 1280px) {
  body .directory-layout:has(> .reviews-panel--live) { grid-template-columns: minmax(0, 1fr) calc(clamp(246px, 20vw, 292px) + 10px); }
}
@media (max-width: 1279px) {
  .msv-reviews-layout { grid-template-columns: minmax(0, 1fr); }
  .reviews-panel--live { position: static; margin-top: 8px; }
  .reviews-panel--live .reviews-list:not([data-carousel-ready="true"]) { max-height: none; min-height: 0; overflow: visible; }
}
html[data-theme="dark"] .reviews-panel--live .review-stars { background: #493b1b; color: #e3b83e !important; }
.reviews-panel--live .review-meta { flex-wrap: wrap; }
.reviews-panel--live .review-stars--live { display: inline-flex; align-items: center; gap: 2px; line-height: 1; letter-spacing: 0; }
.reviews-panel--live .review-star { position: relative; display: block; flex: 0 0 14px; width: 14px; height: 14px; }
.reviews-panel--live .review-star svg { display: block; width: 14px; height: 14px; max-width: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.reviews-panel--live .review-star-base { fill: transparent; }
.reviews-panel--live .review-star-fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; }
.reviews-panel--live .review-star-fill svg { fill: currentColor; }
.reviews-panel--live .review-advisor { min-height: 44px; padding-left: 54px; }
.reviews-panel--live .review-advisor > .review-avatar--live { display: block; position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: var(--hero); box-shadow: 0 0 0 3px var(--hero); }
.reviews-panel--live .review-avatar--live img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.reviews-panel--live .review-advisor-link { text-decoration: none; }
.reviews-panel--live .review-advisor-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.reviews-panel--live .review-advisor, .reviews-panel--live blockquote { overflow-wrap: anywhere; }
.reviews-panel--live blockquote,
.reviews-panel--live .reviews-list[data-carousel-ready="true"] .review blockquote { white-space: pre-line; font-size: 15px; line-height: 1.45; }
.reviews-panel--live .review-experience, .reviews-panel--live .review-experience time { font-size: 11px; color: var(--muted); }
.reviews-panel--live .reviews-empty { margin: 0; padding: 18px 8px; color: var(--muted); font-size: 14px; }
.reviews-panel--live .review-note-unavailable { font-size: 12px; color: var(--muted); }
.reviews-panel--live .reviews-list[data-carousel-ready="true"] { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; cursor: auto; touch-action: pan-y; user-select: text; -webkit-user-select: text; transition: none; }
.reviews-panel--live .reviews-list[data-carousel-ready="true"] .review { flex: 0 0 auto; }
.reviews-panel--live .reviews-carousel-controls[hidden], .reviews-panel--live .reviews-carousel-controls button[hidden] { display: none; }
.reviews-panel--live .reviews-list:focus-visible, .reviews-panel--live a:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* En-tête : moyenne et nombre total des avis publiés et validés.
   Présentation commune à toutes les pages ; seul le contenu peut être filtré. */
.reviews-panel--live .reviews-heading {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  margin: 0 10px;
  padding: 12px 14px;
  border: 1px solid #efbedb;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8e2ef 0%, #fdf3f9 42%, #fff 66%, #fff 100%);
  box-shadow: 0 6px 22px #8f1d6207;
}
.reviews-panel--live .reviews-satisfaction-title {
  display: flex; justify-content: center; align-items: center;
  gap: 5px; margin: 0; max-width: none; white-space: normal;
  color: var(--ink); font-size: 19px;
  font-weight: 700; line-height: 1.2; letter-spacing: -.5px; text-align: center;
}
.reviews-panel--live .reviews-satisfaction-star {
  display: none;
}
.reviews-panel--live .reviews-summary--live { display: flex; flex-direction: column; align-items: center; margin-top: 8px; text-align: center; }
.reviews-panel--live .reviews-summary--live .reviews-average {
  display: inline-flex; flex-wrap: nowrap; align-items: center; max-width: 100%;
  gap: 2px; margin: 0 0 4px; padding: 6px 9px; line-height: 1;
  border: 1px solid #ead9af; border-radius: 999px;
  background: var(--surface); box-shadow: 0 3px 10px #8c6a1608;
}
.reviews-panel--live .reviews-summary--live strong {
  flex: 0 0 auto; font-size: 24px;
  font-weight: 700; line-height: 1; letter-spacing: -1px;
}
.reviews-panel--live .reviews-summary--live p > span:not(.reviews-summary-stars) { font-size: 15px; }
.reviews-panel--live .reviews-summary--live .reviews-summary-stars {
  display: inline-flex; flex: 0 0 auto; align-self: center; align-items: center;
  gap: 2px; margin-left: 4px;
}
.reviews-panel--live .review-average-star { position: relative; display: block; width: 20px; height: 20px; }
.reviews-panel--live .review-average-star svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.reviews-panel--live .review-average-star-base { fill: transparent; opacity: .3; }
.reviews-panel--live .review-average-star-fill { fill: currentColor; }
.reviews-panel--live .reviews-summary--live small { display: block; margin: 0; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.35; }
.reviews-panel--live .reviews-summary--live .reviews-average-empty { font-size: 14px; line-height: 1.5; }
.reviews-panel--live .reviews-list-heading { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.reviews-panel--live .reviews-heading .footer-kicker {
  display: flex; justify-content: center; align-items: center;
  gap: 5px; margin: 0 0 7px; color: var(--pink);
  font-size: 17px; font-weight: 400; line-height: 1.35;
  letter-spacing: 0; text-transform: none; text-align: center;
}
.reviews-panel--live .reviews-heading .review-heart { flex: 0 0 auto; margin: 0; font-size: 30px; line-height: 1; }
.reviews-panel--live .reviews-list-heading h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.reviews-panel--live .reviews-heading .review-heading-dot { color: #000; }
html[data-theme="dark"] .reviews-panel--live .reviews-heading { border-color: #6d3153; background: linear-gradient(145deg, #351629, #27131f); box-shadow: none; }
html[data-theme="dark"] .reviews-panel--live .reviews-summary--live .reviews-average { border-color: #675535; background: #211b12; }
html[data-theme="dark"] .reviews-panel--live .reviews-summary-stars { color: #e0b54a !important; }
html[data-theme="dark"] .reviews-panel--live .reviews-heading .review-heading-dot { color: var(--ink); }

/* Sous-couche commune : ces règles importantes priment sur les réglages de
   typographie des pages, même si leur CSS est chargé après ce composant. */
@layer msv-typographie.msv-avis-communs {
  .reviews-panel--live { margin-block-start: var(--reviews-align-column-offset, 0px) !important; }
  /* Même corps que la description au dos des vignettes : 15 px / 1.45.
     Le style éditorial d'une page ne doit pas agrandir les témoignages. */
  .reviews-panel--live .review blockquote,
  .reviews-panel--live .review blockquote :is(p,span,a,strong,em,b,i) {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  .reviews-panel--live .reviews-heading :is(h2,h3,p,span,small,strong) {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-synthesis: none;
  }
  .reviews-panel--live .reviews-satisfaction-title,
  .reviews-panel--live .reviews-satisfaction-title > span {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #111 !important;
  }
  .reviews-panel--live .reviews-list-heading h3 {
    font-size: 17px !important;
    color: #111 !important;
  }
  .reviews-panel--live .reviews-list-heading h3::first-line { font-weight: 700 !important; }
  .reviews-panel--live .reviews-heading .footer-kicker,
  .reviews-panel--live .reviews-heading .footer-kicker > span:not(.review-heart) { font-size: 17px !important; }
  .reviews-panel--live .reviews-heading .review-heart { font-size: 30px !important; }
  .reviews-panel--live .reviews-total { font-size: 15px !important; }
  .reviews-panel--live .reviews-average > span:not(.reviews-summary-stars) { font-size: 15px !important; }
  .reviews-panel--live .reviews-average > strong {
    font-size: 24px !important;
    font-weight: 700 !important;
  }
  html[data-theme="dark"] .reviews-panel--live .reviews-satisfaction-title,
  html[data-theme="dark"] .reviews-panel--live .reviews-satisfaction-title > span,
  html[data-theme="dark"] .reviews-panel--live .reviews-list-heading h3 { color: #fff !important; }
}
