/* Avis clients — styles isolés (préfixe avc-) */
html body .avc {
  --avc-accent: #ee9b80;
  --avc-ink: #2f4a6a;
  --avc-card: #ffffff;
  --avc-accent-txt: color-mix(in srgb, var(--avc-accent) 72%, #7a2e14);
  --avc-line: color-mix(in srgb, var(--avc-ink) 10%, transparent);
  --avc-muted: color-mix(in srgb, var(--avc-ink) 62%, #8a8079);
  --avc-gap: 22px;
  --avc-serif: var(--e-global-typography-primary-font-family, "DM Serif Display"), Georgia, "Times New Roman", serif;
  position: relative; max-width: 1180px; margin: 0 auto; color: var(--avc-ink); font-size: 16px; line-height: 1.6;
}
html body .avc *, html body .avc *::before, html body .avc *::after { box-sizing: border-box; }

/* ---------- Résumé ---------- */
html body .avc-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  margin: 0 auto 30px; width: fit-content; max-width: 100%;
  padding: 10px 22px; border-radius: 99px; background: var(--avc-card);
  border: 1px solid var(--avc-line);
}
html body .avc-score { font-family: var(--avc-serif); font-size: 28px; line-height: 1; color: var(--avc-ink); }
html body .avc-summary .avc-stars svg { width: 18px; height: 18px; }
html body .avc-count { font-size: 15px; color: var(--avc-muted); }
html body .avc-glink { font-size: 15px; font-weight: 700; color: var(--avc-ink); text-decoration: underline; text-decoration-color: var(--avc-accent); text-underline-offset: 3px; }
html body .avc-glink:hover { color: var(--avc-accent-txt); }

/* ---------- Carrousel ---------- */
html body .avc-viewport { position: relative; margin: 0 -10px; }
html body .avc-track {
  list-style: none; margin: 0; padding: 14px 10px 22px;
  display: flex; gap: var(--avc-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
html body .avc-track::-webkit-scrollbar { display: none; }
html body .avc-track:focus-visible { outline: 2px solid var(--avc-accent); outline-offset: 4px; border-radius: 28px; }

html body .avc-card {
  flex: 0 0 calc((100% - 2 * var(--avc-gap)) / 3);
  scroll-snap-align: start; margin: 0; padding: 0; list-style: none;
  display: flex;
}
html body .avc-card figure {
  position: relative; margin: 0; width: 100%;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--avc-card); color: var(--avc-ink);
  border-radius: 28px; padding: 28px 28px 24px;
  border: 1px solid var(--avc-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
html body .avc-card figure:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px color-mix(in srgb, var(--avc-ink) 55%, transparent); }

html body .avc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
html body .avc-stars { display: inline-flex; gap: 3px; }
html body .avc-stars svg { width: 17px; height: 17px; display: block; }
html body .avc-stars svg.on { fill: var(--avc-accent); }
html body .avc-stars svg.off { fill: color-mix(in srgb, var(--avc-ink) 14%, transparent); }
html body .avc-src {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--avc-muted); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--avc-line); white-space: nowrap;
}

html body .avc-quote {
  display: block; height: 30px; margin: 4px 0 -6px; pointer-events: none; overflow: visible;
  font-family: var(--avc-serif); font-size: 72px; line-height: 1; color: var(--avc-accent);
}
html body .avc-card blockquote { margin: 0; padding: 0; border: 0; flex: 1; quotes: none; background: none; }
html body .avc-card blockquote::before, html body .avc-card blockquote::after { content: none; }
html body .avc-card blockquote p {
  margin: 0; font-size: 16px; line-height: 1.65; font-style: normal; color: inherit;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--avc-lines, 7); line-clamp: var(--avc-lines, 7); overflow: hidden;
}
html body .avc-card.is-open blockquote p { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
html body .avc-more {
  align-self: flex-start; margin: -6px 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: inherit;
  text-decoration: underline; text-decoration-color: var(--avc-accent); text-underline-offset: 3px;
}
html body .avc-more[hidden] { display: none; }
html body .avc-more:hover, html body .avc-more:focus { background: none; color: var(--avc-accent-txt); }
html body .avc-card.is-ink .avc-more:hover, html body .avc-card.is-ink .avc-more:focus { color: var(--avc-accent); }
html body .avc-more:focus-visible { outline: 2px solid var(--avc-accent); outline-offset: 3px; }

html body .avc-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--avc-line); margin: 0; }
html body .avc-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--avc-accent) 22%, var(--avc-card)); color: var(--avc-accent-txt);
  font-family: var(--avc-serif); font-size: 19px; line-height: 1;
}
html body .avc-avatar.has-logo { background: #fff; border: 1px solid var(--avc-line); padding: 5px; }
html body .avc-avatar img.avc-logo { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; border-radius: 0; box-shadow: none; }
html body .avc-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
html body .avc-who strong { font-weight: 700; font-size: 16px; color: inherit; }
html body .avc-who span { font-size: 14px; color: var(--avc-muted); overflow-wrap: anywhere; }

/* Carte bleu nuit */
html body .avc-card.is-ink figure { background: var(--avc-ink); color: #fbf3ec; border-color: transparent; }
html body .avc-card.is-ink .avc-who span { color: color-mix(in srgb, #fbf3ec 70%, var(--avc-ink)); }
html body .avc-card.is-ink figcaption { border-top-color: color-mix(in srgb, #fbf3ec 18%, transparent); }
html body .avc-card.is-ink .avc-src { color: color-mix(in srgb, #fbf3ec 75%, var(--avc-ink)); border-color: color-mix(in srgb, #fbf3ec 25%, transparent); }
html body .avc-card.is-ink .avc-stars svg.off { fill: color-mix(in srgb, #fbf3ec 22%, transparent); }
html body .avc-card.is-ink .avc-avatar:not(.has-logo) { background: color-mix(in srgb, #fbf3ec 12%, var(--avc-ink)); color: var(--avc-accent); }

/* ---------- Navigation ---------- */
html body .avc-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
html body .avc-nav[hidden] { display: none; }
html body .avc-prev, html body .avc-next {
  flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; color: var(--avc-ink); border: 1px solid color-mix(in srgb, var(--avc-ink) 22%, transparent);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, opacity .2s;
}
html body .avc-prev svg { transform: rotate(180deg); }
html body .avc-prev svg, html body .avc-next svg { width: 18px; height: 18px; }
html body .avc-prev:hover, html body .avc-next:hover { background: var(--avc-ink); color: var(--avc-accent); border-color: var(--avc-ink); transform: scale(1.06); }
html body .avc-prev:focus-visible, html body .avc-next:focus-visible { outline: 2px solid var(--avc-accent); outline-offset: 3px; }
html body .avc-prev[disabled], html body .avc-next[disabled] { opacity: .3; cursor: default; transform: none; background: transparent; color: var(--avc-ink); border-color: color-mix(in srgb, var(--avc-ink) 22%, transparent); }

html body .avc-dots { display: flex; align-items: center; gap: 8px; }
html body .avc-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: color-mix(in srgb, var(--avc-ink) 25%, transparent); transition: width .3s ease, background-color .3s;
}
html body .avc-dot.is-on { width: 26px; background: var(--avc-accent); }
html body .avc-dot:focus-visible { outline: 2px solid var(--avc-accent); outline-offset: 3px; }

html body .avc-leave { text-align: center; margin: 22px 0 0; font-size: 15px; }
html body .avc-leave a { color: var(--avc-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--avc-accent); text-underline-offset: 4px; }
html body .avc-leave a:hover { color: var(--avc-accent-txt); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  html body .avc-card { flex-basis: calc((100% - var(--avc-gap)) / 2); }
}
@media (max-width: 640px) {
  html body .avc { --avc-gap: 14px; }
  html body .avc-card { flex-basis: 86%; }
  html body .avc-card figure { padding: 22px 20px 20px; border-radius: 22px; }
  html body .avc { --avc-lines: 6; }
  html body .avc-summary { padding: 10px 18px; border-radius: 22px; }
  html body .avc-viewport { margin: 0 -16px; }
  html body .avc-track { padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .avc-track { scroll-behavior: auto; }
  html body .avc * { transition: none !important; }
}

/* ---------- Protection contre les styles du thème ---------- */
html body .avc button, html body .avc button:hover, html body .avc button:focus { text-transform: none; letter-spacing: normal; min-height: 0; min-width: 0; line-height: 1; box-shadow: none; background-image: none; }
html body .avc a, html body .avc a:hover, html body .avc a:focus { box-shadow: none; text-transform: none; letter-spacing: normal; }
html body .avc ul, html body .avc li { list-style: none; }
html body .avc li::before { content: none; }
html body .avc-dot:hover, html body .avc-dot:focus { background: color-mix(in srgb, var(--avc-ink) 45%, transparent); }
html body .avc-dot.is-on:hover, html body .avc-dot.is-on:focus { background: var(--avc-accent); }
html body .avc-prev:focus, html body .avc-next:focus { background: transparent; color: var(--avc-ink); }
html body .avc-prev:hover, html body .avc-next:hover { background: var(--avc-ink); color: var(--avc-accent); }
html body .avc-prev[disabled], html body .avc-next[disabled], html body .avc-prev[disabled]:hover, html body .avc-next[disabled]:hover { opacity: .3; cursor: default; transform: none; background: transparent; color: var(--avc-ink); border-color: color-mix(in srgb, var(--avc-ink) 22%, transparent); }
