/* 
 * Google Reviews Display - Style CSS
 * Inspiré du design Harmonie Mutuelle
 */

/* Container principal */
.grd-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

/* En-tête avec note globale */
.grd-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.grd-global-rating {
    display: inline-block;
}

.grd-rating-score {
    font-size: 48px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.grd-total-reviews {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

.grd-period {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

/* Étoiles */
.grd-stars {
    display: inline-flex;
    gap: 3px;
    font-size: 24px;
}

.grd-star {
    display: inline-block;
}

.grd-star-full {
    color: #ffa500;
}

.grd-star-empty {
    color: #ddd;
}

/* Liste des avis */
.grd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Item d'avis individuel */
.grd-review-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease;
}

.grd-review-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* En-tête de l'avis */
.grd-review-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 15px;
}

.grd-review-author {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Note de l'avis */
.grd-review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grd-review-rating .grd-stars {
    font-size: 18px;
}

.grd-rating-number {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Texte de l'avis - Style Harmonie Mutuelle SANS chevron */
.grd-review-text {
    margin-top: 15px;
}

.grd-review-text blockquote {
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Message pour les avis sans texte */
.grd-review-no-text {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 4px solid #ccc;
    font-size: 14px;
    color: #999;
}

/* Date de l'avis - en bas du bloc */
.grd-review-date {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
    text-align: right;
}

/* Footer */
.grd-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.grd-google-link {
    display: inline-block;
    margin-bottom: 15px;
    padding: 12px 24px;
    background: #4285f4;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.3s ease;
}

.grd-google-link:hover {
    background: #3367d6;
    color: #fff;
}

.grd-powered-by {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .grd-reviews-container {
        padding: 20px 15px;
    }
    
    .grd-header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .grd-rating-score {
        font-size: 36px;
    }
    
    .grd-review-item {
        padding: 20px;
    }
    
    /* Garde le header en row sur mobile */
    .grd-review-header {
        flex-direction: row;
        gap: 16px;
    }
    
    .grd-review-text blockquote {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Animation de chargement (optionnel) */
.grd-loading {
    text-align: center;
    padding: 40px;
}

.grd-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: grd-spin 1s linear infinite;
}

@keyframes grd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message d'erreur */
.grd-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
    text-align: center;
}

/* Message si aucun avis */
.grd-no-reviews {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}
