/* Avis clients — les couleurs (--rrv-*) viennent du kit Elementor (rrv_palette_css). */
.rrv { --rrv-bg: #141210; --rrv-card: #1f1d1b; --rrv-soft: #3a3836; --rrv-line: #45423f; --rrv-ink: #f5f5f5; --rrv-muted: #8f8b87;
  --rrv-accent: #e0262b; --rrv-on-accent: #fff; --rrv-star: #f4a533;
  color: var(--rrv-ink); font-family: inherit; box-sizing: border-box; }
.rrv *, .rrv *::before, .rrv *::after { box-sizing: border-box; }
.rrv [hidden] { display: none !important; }

/* ── Grille ─────────────────────────────────────────────────────────── */
.rrv-list .rrv-grid { display: grid; grid-template-columns: repeat(var(--rrv-cols, 3), minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 960px) { .rrv-list .rrv-grid { grid-template-columns: repeat(min(var(--rrv-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .rrv-list .rrv-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.rrv-card { background: var(--rrv-card); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rrv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rrv-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rrv-name { font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.rrv-meta { color: var(--rrv-muted); font-size: 14.5px; }
.rrv-ava { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--rrv-soft); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; }
.rrv-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; }
.rrv-rate b { font-weight: 700; font-size: 17px; }
/* Étoiles serrées : le dessin d'une étoile laisse environ 3 px de vide de chaque côté de sa case.
   Les cases se chevauchent donc de 5 px, pour qu'il ne reste qu'un bon pixel entre deux pointes. */
.rrv-stars { display: inline-flex; gap: 0; margin-left: -3px; }
.rrv-stars i { width: 26px; height: 26px; display: block; color: var(--rrv-soft); }
.rrv-stars i + i { margin-left: -5px; }
.rrv-stars i.on { color: var(--rrv-star); }
.rrv-stars svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.rrv-prod { color: var(--rrv-muted); }
.rrv-text { margin: 2px 0 0; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
/* Vidéo et photos : toujours une seule ligne, quelle que soit la largeur de l'écran.
   - vidéo + photos : deux carrés égaux côte à côte, la vidéo à gauche, les photos (2 × 2) à droite ;
   - photos seules : jusqu'à 4 sur la même ligne ; vidéo seule : un carré. */
.rrv-media { display: flex; gap: 10px; margin-top: 4px; max-width: 380px; }
.rrv-video { width: 170px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #000; }
.rrv-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Bouton « lecture » : la vidéo n'est téléchargée qu'au clic. « .rrv .rrv-play » + remises à zéro : voir les cœurs
   (l'habillage du site stylait tous les boutons de ses pages). */
.rrv .rrv-play { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%;
  min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #3d3732 0%, #17130f 75%) center / cover no-repeat; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.rrv .rrv-play[style]::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }   /* avec une image de couverture : un voile pour garder le bouton lisible */
.rrv .rrv-play svg { position: relative; width: 46px; height: 46px; display: block; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); transition: transform .15s; }
.rrv .rrv-play span { position: relative; }
.rrv .rrv-play:hover svg, .rrv .rrv-play:focus-visible svg { transform: scale(1.08); }
.rrv .rrv-play:active svg { transform: scale(.94); }
.rrv-photos { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 84px)); gap: 8px; }
.rrv-photo { width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--rrv-soft); }
.rrv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rrv-both > .rrv-video, .rrv-both > .rrv-photos { flex: 1 1 0; width: auto; min-width: 0; }
.rrv-both > .rrv-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.rrv-both > .rrv-photos > .rrv-photo:only-child { grid-column: 1 / -1; border-radius: 12px; }
.rrv-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 520px; margin: 20px auto 0; padding: 12px 16px;
  border: 1px solid var(--rrv-line); border-radius: 10px; background: #fff; color: #6b6b6b; font: inherit; font-size: 15px; cursor: pointer; }
.rrv-more svg { width: 16px; height: 16px; }
.rrv-more[aria-busy="true"] svg { animation: rrv-spin .8s linear infinite; }
.rrv-empty { color: var(--rrv-muted); text-align: center; }
@keyframes rrv-spin { to { transform: rotate(360deg); } }

/* Photo en grand */
.rrv-box { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 20px; }
.rrv-box img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.rrv-box button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; cursor: pointer; }

/* ── Formulaire ─────────────────────────────────────────────────────── */
.rrv-formwrap { max-width: 560px; margin: 0 auto; }
.rrv-form { display: flex; flex-direction: column; gap: 18px; }
.rrv-field { display: flex; flex-direction: column; gap: 10px; }
.rrv-q { font-size: 20px; font-weight: 800; line-height: 1.3; }
.rrv-req { color: var(--rrv-accent); }
.rrv-in { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #d9d9d9; border-radius: 8px; background: #ececec; color: #1c1917;
  font: inherit; font-size: 16px; outline: none; }
.rrv-in:focus { border-color: var(--rrv-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rrv-accent) 25%, transparent); }
.rrv-in.bad { border-color: var(--rrv-accent); }
.rrv-select { -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background: #ececec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.rrv-textarea { min-height: 120px; resize: vertical; }
/* Cœurs : grands, ils se partagent la largeur du formulaire (76 px au plus chacun).
   « .rrv .rrv-heart » et les remises à zéro (marge, fond, hauteur mini, arrondi) sont
   voulus : sur la page « Donner mon avis », l'habillage du site stylait tous les boutons
   (fond rouge, 22 px de marge de chaque côté) et il ne restait que 5 px pour le cœur. */
.rrv-hearts { display: flex; gap: 6px; }
.rrv .rrv-heart { flex: 1 1 0; min-width: 0; max-width: 76px; width: auto; height: auto; min-height: 0; aspect-ratio: 1 / 1; display: block;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; color: #d6d6d6; transition: transform .12s, color .12s; }
.rrv .rrv-heart svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.rrv .rrv-heart.on { color: var(--rrv-accent); }
.rrv .rrv-heart:active { transform: scale(.9); }
.rrv-hearts.bad .rrv-heart:not(.on) { color: color-mix(in srgb, var(--rrv-accent) 35%, #d6d6d6); }
.rrv-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .rrv-uploads { grid-template-columns: 1fr; } }
.rrv-drop { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rrv-drop-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 14px;
  border: 3px dotted rgba(255,255,255,.85); border-radius: 12px; background: var(--rrv-soft); text-align: center; cursor: pointer; }
.rrv-drop-btn:focus-within { outline: 3px solid var(--rrv-accent); outline-offset: 2px; }
.rrv-drop-txt { font-size: 16px; }
.rrv-drop-sub { color: var(--rrv-muted); font-size: 12.5px; }
.rrv-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rrv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.rrv-thumbs:empty { display: none; }
.rrv-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #000; }
.rrv-thumb img, .rrv-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rrv-thumb.wide { width: auto; min-width: 64px; padding: 0 30px 0 10px; display: flex; align-items: center; background: var(--rrv-soft); font-size: 12.5px; color: var(--rrv-ink); }
/* Même protection contre l'habillage du site : sans elle, la croix devenait un ovale de 22 × 46. */
.rrv .rrv-thumb button { position: absolute; top: 3px; right: 3px; display: block; width: 22px; height: 22px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; font: 400 15px/22px inherit; font-family: inherit; text-align: center; cursor: pointer; }
.rrv-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rrv-alert { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--rrv-accent) 18%, var(--rrv-card)); color: var(--rrv-ink); font-size: 14.5px; }
.rrv-alert ul { margin: 0; padding-left: 18px; }
.rrv-send { width: 100%; min-height: 54px; border: 0; border-radius: 10px; background: var(--rrv-accent); color: var(--rrv-on-accent); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.rrv .rrv-send { justify-content: center; text-align: center; }   /* l'habillage du site collait le texte à gauche */
.rrv-send:disabled { opacity: .75; cursor: default; }
.rrv-done { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rrv-done b { font-size: 24px; font-weight: 800; }
.rrv-done p { margin: 0; color: var(--rrv-muted); font-size: 16px; }
.rrv-done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--rrv-accent); color: var(--rrv-on-accent); display: flex; align-items: center; justify-content: center; font-size: 32px; }
