/* ============================================================
   DZCounter - Évaluations publiques
   ============================================================ */

.reviews-page {
    padding: 55px 20px 70px;
    color: #172033;
    background: #f3f7fb;
}

.reviews-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.reviews-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
    padding: 38px;
    border: 1px solid #d8e2ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 29, 49, .055);
}

.reviews-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #1769aa;
    background: #e8f3fb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.reviews-hero h1 {
    margin: 0 0 11px;
    color: #0f2948;
    font-size: 35px;
    line-height: 1.25;
}

.reviews-hero p {
    max-width: 720px;
    margin: 0;
    color: #51647d;
    font-size: 14px;
    line-height: 1.75;
}

.reviews-main-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 9px;
    color: #ffffff;
    background: #1769aa;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.reviews-main-action:hover {
    color: #ffffff;
    background: #12598f;
}

.reviews-registered-notice {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    padding: 14px 17px;
    border: 1px solid #bfe4ce;
    border-radius: 11px;
    color: #17633a;
    background: #effaf3;
}

.reviews-registered-notice > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #ffffff;
    background: #16a34a;
    font-size: 13px;
    font-weight: 800;
}

.reviews-registered-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

.reviews-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 18px;
    margin-bottom: 18px;
}

.reviews-global-card,
.reviews-distribution-card,
.reviews-list-section {
    border: 1px solid #d8e2ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 29, 49, .045);
}

.reviews-global-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
}

.reviews-global-card > span {
    color: #65778e;
    font-size: 12px;
    font-weight: 700;
}

.reviews-global-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: 8px;
}

.reviews-global-score strong {
    color: #0f2948;
    font-size: 48px;
    line-height: 1;
}

.reviews-global-score small {
    margin-inline-start: 4px;
    color: #76889f;
    font-size: 15px;
}

.reviews-stars {
    position: relative;
    display: inline-block;
    direction: ltr;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
    letter-spacing: 3px;
    white-space: nowrap;
}

.reviews-stars-large {
    margin-top: 13px;
    font-size: 25px;
}

.reviews-stars-empty {
    color: #d5dee8;
}

.reviews-stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #f7b928;
    white-space: nowrap;
}

.reviews-global-card p {
    margin: 13px 0 0;
    color: #74869c;
    font-size: 11px;
    line-height: 1.55;
}

.reviews-distribution-card {
    padding: 25px 27px;
}

.reviews-distribution-card h2 {
    margin: 0 0 18px;
    color: #0f2948;
    font-size: 17px;
}

.reviews-distribution-list {
    display: grid;
    gap: 11px;
}

.reviews-distribution-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 11px;
    color: #53667e;
    font-size: 11px;
    text-decoration: none;
}

.reviews-distribution-row:hover {
    color: #1769aa;
}

.reviews-distribution-row strong {
    color: #27384d;
    text-align: end;
}

.reviews-distribution-track {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.reviews-distribution-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f7b928, #f59e0b);
}

.reviews-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 13px;
    border: 1px solid #d8e2ee;
    border-radius: 12px;
    background: #ffffff;
}

.reviews-filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    color: #52667f;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.reviews-filters a:hover,
.reviews-filters a.active {
    border-color: #1769aa;
    color: #1769aa;
    background: #edf6fc;
}

.reviews-list-section {
    overflow: hidden;
}

.reviews-list-heading {
    padding: 20px 23px;
    border-bottom: 1px solid #e5ebf1;
}

.reviews-list-heading h2 {
    margin: 0;
    color: #0f2948;
    font-size: 19px;
}

.reviews-list-heading p {
    margin: 5px 0 0;
    color: #7a8ba0;
    font-size: 10px;
}

.reviews-list {
    display: grid;
}

.review-card {
    padding: 23px;
    border-bottom: 1px solid #e8edf3;
}

.review-card:last-child {
    border-bottom: 0;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.review-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 41px;
    height: 41px;
    border-radius: 11px;
    color: #1769aa;
    background: #e8f3fb;
    font-size: 16px;
    font-weight: 800;
}

.review-user strong,
.review-user small {
    display: block;
}

.review-user strong {
    color: #172a43;
    font-size: 13px;
}

.review-user small {
    margin-top: 4px;
    color: #8494a7;
    font-size: 9px;
}

.review-meta {
    flex: 0 0 auto;
    text-align: end;
}

.review-card-stars {
    display: block;
    direction: ltr;
    font-size: 16px;
    letter-spacing: 1px;
}

.review-card-stars i {
    color: #f7b928;
    font-style: normal;
}

.review-card-stars em {
    color: #d5dee8;
    font-style: normal;
}

.review-meta time {
    display: block;
    margin-top: 5px;
    color: #8b9aae;
    font-size: 9px;
}

.review-comment {
    margin: 17px 0 14px;
    color: #455b74;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.review-approved-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #19834b;
    font-size: 9px;
    font-weight: 700;
}

.review-approved-badge i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #ffffff;
    background: #22a45d;
    font-style: normal;
    font-size: 9px;
}

.reviews-empty {
    padding: 55px 20px;
    color: #72849a;
    text-align: center;
}

.reviews-empty span {
    display: block;
    margin-bottom: 10px;
    color: #a8b5c4;
    font-size: 38px;
}

.reviews-empty p {
    margin: 0;
    font-size: 12px;
}

.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 20px;
}

.reviews-pagination a,
.reviews-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 8px 13px;
    border: 1px solid #d5e0eb;
    border-radius: 8px;
    font-size: 11px;
}

.reviews-pagination a {
    color: #1769aa;
    background: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.reviews-pagination a:hover {
    border-color: #1769aa;
    background: #edf6fc;
}

.reviews-pagination span {
    color: #65778e;
    background: #f8fafc;
}

html[dir="rtl"] .reviews-page {
    text-align: right;
}

html[dir="rtl"] .reviews-stars-filled {
    right: auto;
    left: 0;
}

@media (max-width: 760px) {
    .reviews-page {
        padding: 30px 14px 48px;
    }

    .reviews-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 27px 22px;
    }

    .reviews-hero h1 {
        font-size: 28px;
    }

    .reviews-main-action {
        width: 100%;
    }

    .reviews-summary-grid {
        grid-template-columns: 1fr;
    }

    .review-card-header {
        flex-direction: column;
        gap: 13px;
    }

    .review-meta {
        text-align: start;
    }
}

@media (max-width: 480px) {
    .reviews-registered-notice {
        align-items: flex-start;
    }

    .reviews-global-card,
    .reviews-distribution-card {
        padding: 22px 18px;
    }

    .review-card {
        padding: 20px 17px;
    }

    .reviews-pagination {
        flex-wrap: wrap;
    }
}
