/* Section "Avis Google" - accueil. Palette du thème : #4fa9d3 (bleu), #0F2454 (marine). */
.gr-area {
    background: #ffffff;
}

/* Bloc de synthèse (note moyenne) */
.gr-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: fit-content;
    max-width: 100%;
    margin: 10px auto 40px;
    padding: 16px 28px;
    background: #F3F7FA;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgb(15 36 84 / 8%);
}

.gr-summary-score {
    font-family: 'Barlow', sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    color: #0F2454;
}

.gr-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gr-summary-count {
    font-size: 14px;
    color: #5b6b8c;
}

/* Étoiles */
.gr-stars {
    display: flex;
    gap: 2px;
}

.gr-stars svg.is-on {
    fill: #FBBC05;
}

.gr-stars svg.is-off {
    fill: #dfe5ee;
}

/* Grille de cartes */
/* Flex centré : une dernière ligne incomplète reste centrée au lieu de laisser un vide à droite */
.gr-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.gr-grid .gr-card {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 280px;
}

@media (max-width: 991px) {
    .gr-grid .gr-card {
        flex-basis: calc(50% - 12px);
    }
}

@media (max-width: 639px) {
    .gr-grid .gr-card {
        flex-basis: 100%;
    }
}

.gr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgb(15 36 84 / 6%);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.gr-card::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    right: 22px;
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    color: #4fa9d3;
    opacity: .12;
    pointer-events: none;
}

.gr-card:hover {
    transform: translateY(-6px);
    border-color: #4fa9d3;
    box-shadow: 0 16px 40px rgb(15 36 84 / 12%);
}

.gr-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gr-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4fa9d3, #0F2454);
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.gr-author {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.gr-author strong {
    color: #0F2454;
    font-size: 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gr-author span {
    font-size: 13px;
    color: #7a879f;
}

.gr-google-sm {
    flex: 0 0 22px;
}

.gr-text {
    margin: 0;
    color: #4a5775;
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Boutons */
.gr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

.gr-btn-outline {
    display: inline-block;
    padding: 11px 24px;
    border: 2px solid #4fa9d3;
    border-radius: 8px;
    color: #0F2454;
    font-size: 16px;
    font-weight: 500;
    transition: all .35s ease;
}

.gr-btn-outline:hover {
    background: #4fa9d3;
    color: #ffffff;
}

@media (max-width: 575px) {
    .gr-summary {
        flex-wrap: wrap;
        border-radius: 24px;
        padding: 16px 20px;
    }

    .gr-summary-score {
        font-size: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gr-card,
    .gr-btn-outline {
        transition: none;
    }

    .gr-card:hover {
        transform: none;
    }
}
