/* ============================================================
   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
   ============================================================ */

@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;
}

/* --- Panneau --- */
.vr-panel {
  width: 236px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18), 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; }

.vr-panel-head { background: linear-gradient(135deg,#0f172a,#1e293b); padding: 14px 16px 12px; }
.vr-panel-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.vr-panel-brand-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(34,197,94,.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: #4ade80; flex-shrink: 0;
}
.vr-panel-name { display: block; font-size: 13px; font-weight: 800; color: #fff; line-height: 1.25; }
.vr-panel-tag  { display: block; font-size: 10px; color: rgba(255,255,255,.5); margin-top: 1px; }
.vr-panel-rating { display: flex; align-items: center; gap: 7px; }
.vr-panel-avg   { font-size: 14px; font-weight: 900; color: #fff; }
.vr-panel-total { font-size: 10.5px; color: rgba(255,255,255,.45); }

.vr-panel-progress { height: 3px; background: rgba(0,0,0,.06); 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,#22c55e,#16a34a);
  transform-origin: left; animation: vrProgress 4s linear forwards;
}

.vr-panel-body  { padding: 13px 15px 15px; }
.vr-panel-intro { font-size: 11.5px; color: #64748b; line-height: 1.5; margin: 0 0 11px; }
.vr-panel-intro strong { color: rgb(55,118,255); font-weight: 700; }
.vr-panel-point { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #374151; margin-bottom: 5px; }
.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;
}

.vr-cta-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin-top: 11px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 10px;
  padding: 9px 12px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: #166534;
  transition: background .15s, border-color .15s;
}
.vr-cta-btn:hover { background: #dcfce7; border-color: #86efac; }

/* --- Pill --- */
.vr-pill {
  display: flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  border: none; border-radius: 50px;
  padding: 10px 16px 10px 11px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.14);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap; pointer-events: auto;
  font-family: inherit;
}
.vr-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.32); }
.vr-pill:active { transform: translateY(0) scale(.97); }
.vr-pill.green { background: linear-gradient(135deg,#16a34a,#15803d); }

.vr-pill-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.13);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; transition: background .2s;
}
.vr-pill:hover .vr-pill-icon { background: rgba(255,255,255,.2); }
.vr-pill-label { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.vr-pill-title { font-size: 12px; font-weight: 700; color: #fff; }
.vr-pill-sub   { font-size: 10.5px; color: rgba(255,255,255,.6); }

/* --- Cercle (mobile) --- */
.vr-circle {
  display: none;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  border: none; cursor: pointer; color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.15);
  pointer-events: auto; transition: transform .2s;
}
.vr-circle:active { transform: scale(.93); }

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

  .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; }
}
