/* Reset des styles Motta sur les boutons du widget */
.vr-float button,
.vr-float input[type=button] {
  min-width: 0 !important;
  width: auto !important;
  line-height: 1 !important;
  height: auto !important;
}

/* ============================================================
   VerifReview — styles
   Les polices sont héritées du thème (font-family: inherit)
   ============================================================ */

.vr-section,
.vr-float,
.vr-badge {
  font-family: inherit;
  box-sizing: border-box;
}
.vr-section *,
.vr-float *,
.vr-badge * { box-sizing: border-box; }

.vr-stars { display: inline-flex; gap: 2px; vertical-align: middle; line-height: 0; }

/* ============================================================
   SECTION AVIS
   ============================================================ */

.vr-section {
  margin: 32px 0;
  padding: 22px 20px;
  background: #f8fafc;
  border: 1px solid #eaecf0;
  border-radius: 16px;
}

.vr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.vr-section-head-left { display: flex; align-items: center; gap: 10px; }
.vr-section-icon {
  width: 34px; height: 34px;
  background: rgba(22,163,74,0.1);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #16a34a; flex-shrink: 0;
}
.vr-section-title { font-weight: 700; font-size: 14px; color: #0f172a; line-height: 1.3; }
.vr-section-sub   { font-size: 12px; color: #64748b; margin-top: 1px; }

.vr-section-link {
  font-size: 12px; font-weight: 600;
  color: rgb(55,118,255); text-decoration: none;
  border: 1.5px solid rgb(55,118,255);
  padding: 5px 12px; border-radius: 8px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.vr-section-link:hover { background: rgb(55,118,255); color: #fff; }

/* Score global */
.vr-score {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: #fff;
  border: 1px solid #eaecf0; border-radius: 12px;
  margin-bottom: 14px;
}
.vr-score-num   { font-size: 38px; font-weight: 900; color: #0f172a; line-height: 1; }
.vr-score-stars { margin-bottom: 4px; }
.vr-score-label { font-size: 13px; font-weight: 700; color: #16a34a; }
.vr-score-count { font-size: 12px; color: #64748b; margin-top: 1px; }

/* Carte avis */
.vr-review {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
}
.vr-review:last-of-type { margin-bottom: 0; }

.vr-review-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; flex-wrap: wrap; margin-bottom: 6px;
}
.vr-review-author { display: flex; align-items: center; gap: 7px; min-width: 0; }
.vr-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.vr-review-name { font-weight: 700; font-size: 13px; color: #0f172a; }
.vr-certified {
  font-size: 10px; font-weight: 700; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 20px; padding: 1px 6px; white-space: nowrap;
}
.vr-review-title { font-weight: 700; font-size: 13px; color: #0f172a; margin-bottom: 3px; }
.vr-review-body  { font-size: 12.5px; color: #374151; line-height: 1.65; margin: 0; font-style: italic; }

.vr-powered {
  display: block; text-align: center;
  font-size: 11.5px; color: #94a3b8;
  margin-top: 14px; text-decoration: none;
}
.vr-powered strong { color: rgb(55,118,255); }

@media (max-width: 560px) {
  .vr-section { padding: 18px 14px; border-radius: 14px; }
  .vr-score-num { font-size: 32px; }
}

/* ============================================================
   BADGE COMPACT
   ============================================================ */

.vr-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  border-radius: 12px; padding: 11px 14px;
  text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.vr-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,163,74,0.16); }
.vr-badge-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(22,163,74,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #16a34a; flex-shrink: 0;
}
.vr-badge-body  { display: flex; flex-direction: column; gap: 1px; }
.vr-badge-top   { display: flex; align-items: center; gap: 6px; }
.vr-badge-label { font-weight: 700; font-size: 13px; color: #166534; }
.vr-badge-num   { font-size: 12px; font-weight: 800; color: #0f172a; }
.vr-badge-sub   { font-size: 11px; color: #16a34a; }

/* ============================================================
   SHIELD FLOTTANT — redesign avec logo Verified Business
   Panel blanc, logo centré, stats en dessous
   ============================================================ */

@keyframes vrProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes vrPop {
  0%   { transform: scale(.7); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.vr-float {
  position: fixed; bottom: 32px; left: 20px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-start;
  pointer-events: none;  /* le float lui-meme ne bloque pas les clics */
}

/* Reactiver les clics sur les elements interactifs */
.vr-panel,
.vr-pill,
.vr-circle,
.vr-cta-btn {
  pointer-events: auto;
}

/* --- Panneau blanc --- */
.vr-panel {
  width: 240px;
  background: #ffffff;
  border: 1px solid #E6E0D8;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden; transform-origin: bottom left;
  transform: scale(.82) translateY(10px); opacity: 0;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  margin-bottom: 10px; pointer-events: none;
}
.vr-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

/* Barre de progression en haut */
.vr-panel-progress {
  height: 3px; background: #E6E0D8;
  position: relative; overflow: hidden; display: none;
}
.vr-panel.open .vr-panel-progress { display: block; }
.vr-panel.open .vr-panel-progress::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #D9430E, #F08019);
  transform-origin: left; animation: vrProgress 4s linear forwards;
}

/* Corps du panel */
.vr-panel-body {
  padding: 14px 14px 13px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* Logo centré */
.vr-panel-logo-wrap {
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 8px;
}
.vr-panel-logo {
  width: 70px; height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}

/* Titre Avis Vérifiés */
.vr-panel-verified-title {
  font-size: 15px; font-weight: 800; color: #1C1815;
  letter-spacing: -.01em; margin: 0 0 7px;
}

/* Stats */
.vr-panel-stats {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-bottom: 8px;
}
.vr-panel-stats-avg {
  font-size: 24px; font-weight: 900; color: #1C1815; line-height: 1;
}
.vr-panel-stats-count {
  font-size: 11px; color: #6B615A; margin-top: 2px;
}

/* Séparateur */
.vr-panel-divider {
  width: 100%; height: 1px; background: #E6E0D8;
  margin: 3px 0 7px;
}

/* Points de réassurance — alignés à gauche */
.vr-panel-point {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: #374151; margin-bottom: 3px;
  align-self: flex-start; text-align: left;
}
.vr-tick {
  width: 16px; height: 16px; border-radius: 50%;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #16a34a; flex-shrink: 0;
}

/* Bouton CTA */
.vr-cta-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin-top: 8px;
  background: #F7F4F0; border: 1.5px solid #E6E0D8; border-radius: 10px;
  padding: 7px 10px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: #1C1815;
  line-height: 1 !important;
  height: auto !important;
  transition: background .15s, border-color .15s;
}
.vr-cta-btn:hover { background: #EDE6DA; border-color: #CFC6BB; }

/* --- Pill blanc --- */
.vr-pill {
  display: flex; align-items: center; gap: 9px;
  background: #ffffff;
  border: 1px solid #E6E0D8;
  border-radius: 50px;
  padding: 5px 10px 5px 5px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap; pointer-events: auto;
  font-family: inherit;
  line-height: 1 !important;
  height: auto !important;
  min-height: 0 !important;
}
.vr-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.vr-pill:active { transform: translateY(0) scale(.97); }

.vr-pill-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.vr-pill-icon img { width: 36px; height: 36px; object-fit: contain; }
.vr-pill-label { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.vr-pill-title { font-size: 12px; font-weight: 700; color: #1C1815; }
.vr-pill-sub   { font-size: 10.5px; color: #6B615A; }

/* --- Cercle (mobile) --- */
.vr-circle {
  display: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: #ffffff;
  border: 2px solid #E6E0D8; cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.1);
  pointer-events: auto; transition: transform .2s;
  overflow: hidden;
  padding: 6px;
  line-height: 1 !important;
  width: 70px !important;
  height: 70px !important;
  min-width: 0 !important;
}
.vr-circle:active { transform: scale(.93); }

/* --- Breakpoint mobile --- */
@media (max-width: 768px) {
  .vr-float { bottom: 20px; left: 14px; }
  .vr-panel { width: 224px; }

  .vr-float.step-0 .vr-circle { display: inline-flex; animation: vrPop .3s cubic-bezier(.34,1.56,.64,1); }
  .vr-float.step-0 .vr-pill   { display: none; }

  .vr-float.step-2 .vr-circle { display: none; }
  .vr-float.step-2 .vr-pill   { display: flex; }
}

/* Sur desktop le cercle n'existe jamais */
@media (min-width: 769px) {
  .vr-circle { display: none !important; }
  .vr-pill   { display: flex !important; }
}

/* ============================================================
   SCROLL TRAP — liste des avis
   ============================================================ */

.vr-reviews-scroll {
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  margin-right: -6px;
}

/* Scrollbar discrète */
.vr-reviews-scroll::-webkit-scrollbar { width: 4px; }
.vr-reviews-scroll::-webkit-scrollbar-track { background: transparent; }
.vr-reviews-scroll::-webkit-scrollbar-thumb {
  background: #CFC6BB;
  border-radius: 99px;
}
.vr-reviews-scroll::-webkit-scrollbar-thumb:hover { background: #9A8F86; }

/* Ombre en bas pour indiquer qu'il y a du contenu */
.vr-reviews-scroll-wrap {
  position: relative;
}
.vr-reviews-scroll-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

/* ============================================================
   FILTRES MEDIAS
   ============================================================ */

.vr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.vr-filter-btn {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  line-height: 1 !important;
  height: auto !important;
  min-width: 0 !important;
}
.vr-filter-btn:hover { border-color: rgb(55,118,255); color: rgb(55,118,255); background: rgba(55,118,255,0.06); }
.vr-filter-btn.active { background: rgb(55,118,255); border-color: rgb(55,118,255); color: #fff; }

/* ============================================================
   MEDIAS — galerie dans les cartes avis
   ============================================================ */

.vr-media-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.vr-media-thumb {
  padding: 0; border: none; background: none;
  cursor: pointer; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; line-height: 0;
}
.vr-media-thumb img {
  width: 72px; height: 72px;
  object-fit: cover; border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  display: block; transition: opacity .15s;
}
.vr-media-thumb:hover img { opacity: .85; }

.vr-media-video {
  border-radius: 8px; overflow: hidden;
  border: 1.5px solid #e2e8f0; margin-top: 4px;
  display: inline-block;
}
.vr-media-video video {
  width: 100%; max-width: 300px; height: auto;
  min-height: 160px;
  display: block; border-radius: 8px;
  background: #0f172a;
}

/* Lightbox */
.vr-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center;
  padding: 20px;
}
.vr-lightbox-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 36px !important; height: 36px !important; min-width: 0 !important;
  border-radius: 50%; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1 !important;
}
.vr-lightbox-img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px; object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
