/* ═══════════════════════════════════════════════
   Synapsya Reviews — Avis Vérifiés custom styles
   ═══════════════════════════════════════════════ */

/* ─── Étoiles ──────────────────────────────────── */
.synrev-stars {
    display: inline-flex;
    gap: 1px;
    line-height: 1;
}
.synrev-stars .star       { color: #e0e0e0; }
.synrev-stars .star-full,
.synrev-stars .star-half  { color: #f69876; }
.synrev-stars--md { font-size: 1.1em; }
.synrev-stars--lg { font-size: 1.5em; }

/* ─── Badge ────────────────────────────────────── */
.synrev-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    letter-spacing: 0.02em;
}

/* ─── Section boutique (homepage) ─────────────── */
.synrev-boutique {
    padding: 20px 0 40px;
}
.synrev-boutique__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.synrev-boutique__score {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.synrev-boutique__note {
    font-size: 1.8em;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}
.synrev-boutique__note small {
    font-size: 0.55em;
    font-weight: 500;
    color: #666;
}
.synrev-boutique__count {
    color: #555;
    font-size: 0.9em;
}
.synrev-boutique__logo {
    margin-left: auto;
    height: 36px;
    width: auto;
}
.synrev-boutique__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

/* ─── Carte avis boutique ──────────────────────── */
.synrev-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s;
}
.synrev-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.synrev-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.synrev-card__text {
    color: #333;
    font-size: 0.88em;
    line-height: 1.65;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.synrev-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #888;
    margin-top: auto;
}
.synrev-card__meta strong {
    color: #555;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   Widget avis produit — style Avis Vérifiés
   ═══════════════════════════════════════════════ */

.synrev-widget {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 32px 0;
    border-top: 2px solid #f69876;
    margin-top: 24px;
    font-family: inherit;
}

/* ─── Sidebar ───────────────────────────────────── */
.synrev-widget__sidebar {
    width: 260px;
    min-width: 220px;
    flex-shrink: 0;
}

.synrev-widget__score-block {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.synrev-widget__score-num {
    font-size: 2.8em;
    font-weight: 800;
    color: #f69876;
    line-height: 1;
    margin-bottom: 6px;
}
.synrev-widget__score-num span {
    font-size: 0.45em;
    font-weight: 500;
    color: #999;
}

.synrev-widget__score-block img {
    display: block;
    margin: 10px auto 8px;
}

.synrev-widget__score-sub {
    font-size: 0.78em;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

.synrev-widget__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #aaa;
    font-size: 0.7em;
    color: #aaa;
    cursor: help;
    vertical-align: middle;
    margin-left: 3px;
}

/* ─── Barres de distribution ────────────────────── */
.synrev-widget__bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.synrev-widget__bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: #555;
}

.synrev-widget__bar-label {
    width: 56px;
    white-space: nowrap;
    flex-shrink: 0;
}

.synrev-widget__bar-track {
    flex: 1;
    height: 8px;
    background: #ececec;
    border-radius: 4px;
    overflow: hidden;
}

.synrev-widget__bar-fill {
    height: 100%;
    background: #f69876;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.synrev-widget__bar-count {
    width: 16px;
    text-align: right;
    color: #888;
    flex-shrink: 0;
}

/* ─── Contrôles (tri + recherche) ───────────────── */
.synrev-widget__controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.synrev-widget__sort-label {
    font-size: 0.82em;
    font-weight: 600;
    color: #444;
}

.synrev-widget__sort {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.85em;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.synrev-widget__search-wrap {
    position: relative;
}

.synrev-widget__search {
    width: 100%;
    padding: 7px 32px 7px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.85em;
    color: #333;
    box-sizing: border-box;
}
.synrev-widget__search:focus {
    outline: none;
    border-color: #f69876;
}

.synrev-widget__search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1em;
    pointer-events: none;
}

/* ─── Liste des avis ────────────────────────────── */
.synrev-widget__list {
    flex: 1;
    min-width: 0;
}

.synrev-widget__empty {
    color: #888;
    font-size: 0.9em;
    padding: 20px 0;
}

/* ─── Carte avis individuel ─────────────────────── */
.synrev-review {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}
.synrev-review:first-child {
    padding-top: 0;
}
.synrev-review:last-of-type {
    border-bottom: none;
}

.synrev-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.synrev-review__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.synrev-review__note {
    font-size: 1em;
    font-weight: 700;
    color: #f69876;
}

.synrev-review__verified {
    font-size: 0.78em;
    color: #2e7d32;
    font-weight: 600;
    white-space: nowrap;
}

.synrev-review__content {
    font-size: 0.92em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.5;
}

.synrev-review__meta {
    font-size: 0.78em;
    color: #888;
    margin: 0 0 8px;
    line-height: 1.5;
}
.synrev-review__meta strong {
    color: #555;
    font-weight: 600;
}

.synrev-review__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78em;
    color: #aaa;
}

.synrev-review__useful,
.synrev-review__report {
    color: #888;
    cursor: default;
}

.synrev-review__sep {
    color: #ddd;
}

/* ─── Pagination ────────────────────────────────── */
.synrev-widget__pagination {
    grid-column: 2;
}
.synrev-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 4px;
    border-top: 1px solid #eee;
}
.synrev-pager__btn {
    padding: 7px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.15s;
}
.synrev-pager__btn:hover:not(:disabled) {
    border-color: #f69876;
    color: #f69876;
}
.synrev-pager__btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.synrev-pager__info {
    font-size: 0.82em;
    color: #888;
    white-space: nowrap;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .synrev-widget {
        flex-direction: column;
        gap: 24px;
    }
    .synrev-widget__sidebar {
        width: 100%;
        min-width: unset;
    }
    .synrev-boutique__grid    { grid-template-columns: 1fr; }
    .synrev-boutique__logo    { margin-left: 0; }
}
