/* ═══════════════════════════════════════════════
   Avis Clients Pro — Front (fiche produit, dépôt d'avis, compte client)
   @author captainlinux.io
═══════════════════════════════════════════════ */
.pr-block { --pr-yellow: #ffc107; --pr-star: #f5a623; --pr-text: #1a1a1a; --pr-muted: #6b7280; --pr-border: #ececec;
  margin: 30px 0; color: var(--pr-text); font-size: 14px; clear: both; }
.pr-block .pr-star { color: #d1d5db; }
.pr-block .pr-star--full { color: var(--pr-star); }
.pr-block .pr-star--half { background: linear-gradient(90deg, var(--pr-star) 50%, #d1d5db 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Résumé : bloc note moderne + barres ── */
.pr-summary { display: flex; gap: 32px; align-items: center; margin-bottom: 28px; background: #16191f; border: 1px solid #272c36; border-radius: 12px; padding: 22px 26px; }
.pr-score-box { background: #1f242d; border: 1px solid #333a46; border-radius: 12px; width: 130px; padding: 16px 12px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.pr-score-value { font-size: 36px; font-weight: 800; line-height: 1; color: #ffffff; }
.pr-score-stars { font-size: 15px; letter-spacing: 2px; margin: 6px 0 4px; }
.pr-score-stars .pr-star--full { color: #f59e0b; }
.pr-score-stars .pr-star--half { background: linear-gradient(90deg, #f59e0b 50%, rgba(255,255,255,.2) 50%); -webkit-background-clip: text; background-clip: text; }
.pr-score-stars .pr-star--empty { color: rgba(255,255,255,.2); }
.pr-score-count { font-size: 12px; font-weight: 600; color: #94a3b8; }
.pr-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-bar-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #cbd5e1 !important; text-decoration: none !important; border-radius: 4px; }
.pr-bar-row:hover .pr-bar-track, .pr-bar-row.is-active .pr-bar-track { box-shadow: 0 0 0 2px rgba(245,158,11,.45); }
.pr-bar-label { width: 32px; flex-shrink: 0; font-weight: 600; color: #e2e8f0; }
.pr-bar-label .pr-star { font-size: 11px; color: #f59e0b; }
.pr-bar-track { flex: 1; height: 8px; background: #262c37; border-radius: 8px; overflow: hidden; }
.pr-bar-fill { display: block; height: 100%; background: #f59e0b; border-radius: 8px; min-width: 0; }
.pr-bar-pct { width: 40px; text-align: right; flex-shrink: 0; font-weight: 600; font-size: 12px; color: #94a3b8; }

/* ── Liste ── */
.pr-heading { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: #f8fafc; }
.pr-list { display: flex; flex-direction: column; gap: 14px; transition: opacity .2s; }
.pr-list.is-loading { opacity: .4; }
.pr-review { display: flex; gap: 16px; background: #16191f; border: 1px solid #272c36; border-radius: 12px; padding: 20px 22px; box-shadow: 0 2px 8px rgba(0,0,0,.2); color: #e2e8f0; }
.pr-review-body { flex: 1; min-width: 0; }
.pr-review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pr-review-author { font-weight: 700; font-size: 15px; color: #ffffff; }
.pr-review-meta { display: flex; align-items: center; gap: 10px; }
.pr-review-date { font-size: 12px; color: #94a3b8; }
.pr-verified { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.pr-review-stars { font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.pr-review-stars .pr-star--full { color: #f59e0b; }
.pr-review-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #f8fafc; }
.pr-review-text { margin: 0; font-size: 14px; line-height: 1.65; color: #cbd5e1; word-wrap: break-word; }
.pr-photos { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pr-photo { display: block; width: 68px; height: 68px; border: 1px solid #333a46; border-radius: 8px; overflow: hidden; transition: transform .15s, border-color .15s; }
.pr-photo:hover { transform: scale(1.05); border-color: #f59e0b; }
.pr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-photo:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

/* ── Réponse boutique ── */
.pr-response { background: #1c212a; border-left: 3px solid #dc2626; border-radius: 0 8px 8px 0; padding: 14px 18px; margin-top: 14px; }
.pr-response-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pr-response-avatar { width: 22px; height: 22px; border-radius: 50%; }
.pr-response-author { color: #f87171; font-weight: 700; font-size: 13px; }
.pr-response-text { color: #e2e8f0; font-size: 13.5px; margin: 0; line-height: 1.6; }

.pr-empty { color: #94a3b8; padding: 16px 0; }
.pr-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pr-page { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #333a46;
  background: #1c212a; border-radius: 8px; color: #ffffff !important; text-decoration: none !important; font-weight: 700; font-size: 14px; transition: all .15s; }
.pr-page:hover { border-color: #dc2626; background: #dc2626; color: #ffffff !important; transform: translateY(-1px); }
.pr-page.is-active { background: #dc2626; border-color: #dc2626; color: #ffffff !important; box-shadow: 0 4px 12px rgba(220,38,38,0.45); }

/* ── Lightbox ── */
.pr-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 100000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.pr-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.pr-lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

/* ── Page de dépôt d'avis ── */
.pr-form-page { max-width: 860px; margin: 20px auto; color: #e2e8f0; }
.pr-form-intro { margin-bottom: 24px; color: #94a3b8; font-size: 15px; font-weight: 600; }
.pr-order-summary { background: #16191f; border: 1px solid #272c36; border-radius: 12px; padding: 20px; margin-bottom: 22px; color: #cbd5e1; }
.pr-order-summary ul { margin: 10px 0 0; padding-left: 20px; }
.pr-product-card { background: #16191f; border: 1px solid #272c36; border-radius: 14px; padding: 24px; margin-bottom: 22px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); color: #e2e8f0; }
.pr-product-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #272c36; }
.pr-product-head img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid #333a46; background: #fff; }
.pr-product-name { font-weight: 700; font-size: 16px; color: #ffffff; }
.pr-product-attr { color: #94a3b8; font-size: 13px; margin-top: 2px; }
.pr-state { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px; margin-top: 6px; }
.pr-state--todo { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.pr-state--pending { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.pr-state--approved { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.pr-state--rejected { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.pr-field { margin-bottom: 16px; }
.pr-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 13.5px; color: #f8fafc; }
.pr-field input[type=text], .pr-field textarea { width: 100%; background: #1f242d; color: #ffffff; border: 1.5px solid #333a46; border-radius: 8px; padding: 11px 14px; font-size: 14px; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.pr-field input[type=text]:focus, .pr-field textarea:focus { border-color: #dc2626; outline: none; box-shadow: 0 0 0 3px rgba(220,38,38,0.25); background: #262c37; }
.pr-field input[type=file] { color: #94a3b8; font-size: 13px; margin-top: 4px; }

.pr-rating-input { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.pr-rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pr-rating-input label { font-size: 36px; color: #475569; cursor: pointer; margin: 0; line-height: 1; transition: color .1s, transform .1s; }
.pr-rating-input label:hover { transform: scale(1.1); }
.pr-rating-input input:checked ~ label, .pr-rating-input label:hover, .pr-rating-input label:hover ~ label { color: #f59e0b; }
.pr-rating-input input:focus-visible + label { outline: 2px solid #f59e0b; border-radius: 4px; }

.pr-photo-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pr-photo-previews img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid #333a46; }

.pr-submit { background: #dc2626; color: #ffffff; border: 0; border-radius: 8px; padding: 12px 28px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all .15s; box-shadow: 0 4px 14px rgba(220,38,38,0.35); }
.pr-submit:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(220,38,38,0.45); }

.pr-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.pr-alert--ok { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.pr-alert--error { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.pr-table { width: 100%; border-collapse: collapse; }
.pr-table th, .pr-table td { padding: 12px; border-bottom: 1px solid #272c36; text-align: left; color: #e2e8f0; }

@media (max-width: 640px) {
  .pr-summary { flex-direction: column; align-items: stretch; gap: 18px; }
  .pr-score-box { width: 100%; height: 110px; }
  .pr-review { padding: 12px; gap: 10px; }
}

/* ── Étoiles et avis sur les vignettes produits (listes / catégories / accueil) ── */
.pr-list-rating { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 6px 0 8px; font-size: 14px; line-height: 1; vertical-align: middle; }
.pr-list-stars { display: inline-flex; gap: 2px; font-size: 16px; letter-spacing: 0.5px; }
.pr-list-stars .pr-star { color: rgba(156,163,175,0.4); line-height: 1; }
.pr-list-stars .pr-star--full { color: #f59e0b; }
.pr-list-stars .pr-star--half { background: linear-gradient(90deg, #f59e0b 50%, rgba(156,163,175,0.4) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-list-score { font-weight: 700; color: inherit; opacity: .95; font-size: 14px; margin-left: 2px; }
.pr-list-count { color: inherit; opacity: .75; font-size: 13px; font-weight: 600; }

/* ── Hooks d'intégration inline ── */
.pr-stars-inline, .pr-count-inline, .pr-global-rating-inline { color: #ffffff !important; }
.pr-rating-val { color: #ffffff !important; }
.pr-stars-only { color: #f59e0b !important; }

