/* SAG Reviews Styles */
.sag-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.sag-reviews-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.sag-logo {
    margin-bottom: 20px;
}

.sag-logo img {
    max-width: 250px;
    height: auto;
}

.sag-reviews-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.sag-reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sag-average-rating {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.sag-rating-value {
    font-size: 48px;
    font-weight: bold;
    color: #f5a623;
}

.sag-rating-max {
    font-size: 24px;
    color: #999;
}

.sag-stars-large {
    margin-top: 10px;
}

.sag-stars-large .icon-star {
    font-size: 24px;
}

.sag-total-reviews {
    font-size: 16px;
    color: #666;
}

/* Review List - Grid */
.sag-reviews-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Review Item - Block */
.sag-review-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    padding-top: 25px;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: visible;
}

.sag-review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sag-cocarde {
    position: absolute;
    top: -10px;
    left: 10px;
    width: 25px;
    height: 25px;
    z-index: 2;
}

.sag-cocarde img {
    width: 100%;
    height: auto;
}

/* Citation - en haut à droite */
.sag-citation {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    opacity: 0.1;
    z-index: 1;
}

.sag-citation img {
    width: 100%;
    height: auto;
}

/* Stars SVG */
.sag-stars {
    display: flex;
    align-items: center;
    gap: 0px;
}
.sag-stars svg{
    width: 20px;
    height: 20px;
}

.sag-review-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    margin-left: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.sag-review-user {
    display: flex;
    align-items: center;
    gap: 8px;

}

.sag-user-icon {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-shrink: 0;
}

.sag-user-icon .icon-user {
    font-size: 14px;
}

.sag-user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sag-review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars-rating .icon-star {
    font-size: 14px;
}

.star-full {
    color: #f5a623;
}

.star-half {
    color: #f5a623;
}

.star-empty {
    color: #ddd;
}

.sag-rating-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.sag-review-date {
    color: #999;
    font-size: 12px;
}

.sag-review-content {
    color: #444;
    line-height: 1.5;
    font-size: 13px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    transition: max-height 0.4s ease-out;
    position: relative;
}

.sag-review-content.truncated {
    display: block;
}

.sag-review-content.truncated.expanded {
    -webkit-line-clamp: unset;
}

.sag-review-content.truncated:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

/* Reply */
.sag-review-reply {
    margin-top: auto;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #4a90d9;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
}

.sag-reply-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
    color: #4a90d9;
    font-size: 11px;
}

.sag-reply-header .icon-reply {
    transform: scaleX(-1);
}

.sag-reply-date {
    color: #999;
    font-weight: normal;
}

.sag-reply-content {
    color: #555;
    line-height: 1.5;
    font-size: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: max-height 0.4s ease-out;
    position: relative;
}

.sag-reply-content.truncated {
    display: block;
}

.sag-reply-content.truncated.expanded {
    -webkit-line-clamp: unset;
}

.sag-reply-content.truncated:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #f9f9f9);
    pointer-events: none;
}

/* Bloc cliquable avec contenu tronqué */
.sag-review-item.has-more {
    cursor: pointer;
}

.sag-review-item.has-more:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* No Reviews */
.sag-no-reviews {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Pagination */
.sag-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.sag-pagination .pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sag-pagination .page-item {
    display: inline-block;
}

.sag-pagination .page-link {
    display: block;
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sag-pagination .page-link:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.sag-pagination .page-item.active .page-link {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .sag-reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .sag-reviews-container {
        padding: 15px;
    }

    .sag-reviews-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .sag-reviews-header h1 {
        font-size: 20px;
    }

    .sag-rating-value {
        font-size: 36px;
    }

    .sag-review-item {
        padding: 12px;
    }

    .sag-review-content {
        -webkit-line-clamp: 4;
    }

    .sag-pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .sag-reviews-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .sag-review-item {
        padding: 10px;
    }

    .sag-user-icon {
        width: 28px;
        height: 28px;
    }

    .sag-user-name {
        font-size: 12px;
    }

    .stars-rating .icon-star {
        font-size: 12px;
    }

    .sag-review-content {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
}
