.grm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: transparent;
}

.grm-container.minimal {
    padding:0;
}

.grm-global-review {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 20px 30px;
    margin-bottom: 100px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.grm-global-review.minimal {
    background-color: transparent;  
    margin-bottom: 0; 
    box-shadow: none;
    padding: 0;
}

.grm-google-logo {
    display: flex;
    align-items: center;
}

.grm-google-logo img {
    width: 70px;
    margin-top: 4px;
    margin-right: 15px;
    object-fit: contain;
}

.grm-stars {
    color: #ffc107;
    font-size: 20px;
    margin-right: 15px;
}

.grm-total-reviews {
    font-size: 15px;
    color: #000;
}

.strong-total-reviews {
    font-weight: bold;
}

/* Disposition des cartes avec Flexbox */
.grm-review-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.grm-review-card {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: calc(33% - 40px);
    box-sizing: border-box;
    flex: 1 1 calc(33% - 40px);
    display: flex;
    flex-direction: column;
    transition: max-height .3s ease;
    max-height: 400px;
    overflow: hidden;
}

.grm-review-card:nth-child(2) {
    margin-top: 60px;
}

.grm-review-card.expanded {
    max-height: none;
}

.grm-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.grm-avatar {
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

.grm-review-info {
    flex-grow: 1;
    margin-left: 20px;
}

.grm-review-info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    color: #000;
	margin-bottom: -7px;
}

.grm-review-info .grm-review-date {
    font-size: 13px;
    color: #bcbcbc;
}

.grm-google-icon {
    width: 22px;
    height: 22px;
}

.grm-review-stars {
    color: #ffc107;
    font-size: 28px;
    margin-bottom: 10px;
}

.grm-review-text {
    color: #000;
    font-size: 16px;
    line-height: 1.28;
	margin-top: 0;
    margin-bottom: 10px;
}

.grm-review-text.grm-review-short {
    max-height: 85px;
    overflow: hidden;
}

.grm-review-text.grm-review-full {
    display: none;
}

.grm-review-card.expanded .grm-review-text.grm-review-full {
    display: block!important;
}

.grm-review-card.expanded .grm-review-text.grm-review-short {
    display: none;
}

.grm-read-more {
    color: #bcbcbc;
    font-size: 15px;
    text-decoration: none!important;
	font-weight: 400;
}

.grm-read-more:hover {
    color: #cc0f09;
}

.grm-stars .star {
    font-size: 22px;
    color: #ffc107;
}

.grm-stars .star.empty {
    color: #e0e0e0;
}

.grm-stars .star.half {
    position: relative;
    display: inline-block;
}

.grm-stars .star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

/* Responsive Design pour les petits écrans */
@media (max-width: 768px) {
    .grm-global-review {
        margin-bottom: 40px;
    }

    /* .grm-google-logo {
        flex-direction: column;
    } */

    /* .grm-google-logo img {
        margin-right: 0;
    } */

    /* .grm-stars {
        margin-right: 0;
    } */

    /* .grm-total-reviews {
        margin-left: 0;
    } */

    .grm-review-cards {
        flex-direction: column;
		gap: 5px;
    }

    .grm-review-card {
        width: 100%;
        margin-bottom: 20px;
        top: 0px;
    }

    .grm-review-card:nth-child(2) {
        margin-top: 0;
    }
}
/* ==========================================================================
   Badge de note [grm_reviews_minimal]
   ========================================================================== */

.grm-container.minimal {
    --grm-text: #1f2937;
    --grm-muted: #4d4d4d;
    --grm-faint: #6b7280;
    --grm-accent: #3396ab;
    --grm-star: #fbbc04;
    --grm-star-empty: #d9dde3;
    --grm-hover: #f0f8fa;
}

.grm-badge-wrap {
    position: relative;
    display: inline-block;
}

.grm-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 14px 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    color: var(--grm-text);
    font: inherit;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.grm-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.grm-badge:focus-visible,
.grm-badge-item:focus-visible {
    outline: 2px solid var(--grm-accent);
    outline-offset: 2px;
}

.grm-badge-g {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
}

.grm-badge-label {
    font-size: 14px;
    font-weight: 700;
}

.grm-badge-score {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.grm-badge-max {
    margin-left: 1px;
    color: var(--grm-faint);
    font-size: 13px;
    font-weight: 600;
}

.grm-stars-row {
    position: relative;
    display: inline-block;
    flex: none;
    line-height: 0;
    white-space: nowrap;
}

.grm-stars-row svg {
    width: 16px;
    height: 16px;
    margin-right: 1px;
}

.grm-stars-bg svg {
    fill: var(--grm-star-empty);
}

.grm-stars-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
}

.grm-stars-fill svg {
    fill: var(--grm-star);
}

.grm-badge-count {
    color: var(--grm-muted);
    font-size: 14px;
    font-weight: 600;
}

.grm-badge-chevron {
    flex: none;
    width: 15px;
    height: 15px;
    margin-left: -2px;
    color: var(--grm-accent);
    transition: transform 0.2s;
}

.grm-badge-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: none;
}

.grm-badge-toggle[aria-expanded="true"] .grm-badge-chevron {
    transform: rotate(180deg);
}

/* Menu des fiches */
.grm-badge-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    box-sizing: border-box;
    min-width: 100%;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    animation: grm-menu-in 0.16s ease-out;
}

.grm-badge-menu[hidden] {
    display: none;
}

@keyframes grm-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.grm-badge-menu-title {
    margin: 4px 10px 6px;
    color: var(--grm-faint);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.grm-badge-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Neutralise les puces du thème */
.grm-badge-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.grm-badge-menu li::before,
.grm-badge-menu li::marker {
    content: none;
    display: none;
}

.grm-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 2px;
    color: var(--grm-text);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.grm-badge-item:hover,
.grm-badge-item:focus-visible {
    background: var(--grm-hover);
    color: var(--grm-text);
}

.grm-badge-item-name {
    font-size: 14.5px;
    font-weight: 700;
}

.grm-badge-item-rate {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    color: var(--grm-muted);
    font-size: 13.5px;
    font-weight: 600;
}

.grm-badge-item-star {
    width: 13px;
    height: 13px;
    fill: var(--grm-star);
}

.grm-badge-item-dot {
    margin: 0 3px;
    color: #9ca3af;
}

.grm-badge-item-ext {
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--grm-accent);
}

.grm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Page d'accueil : badge sans cartouche, posé directement sur l'animation */
body.home .grm-badge,
body.home .grm-badge:hover,
body.home .grm-badge-toggle[aria-expanded="true"] {
    padding-right: 0;
    padding-left: 0;
    border-color: transparent;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
}

body.home .grm-badge-menu {
    left: 50%;
    transform: translateX(-50%);
}

body.home .grm-badge-menu {
    animation-name: grm-menu-in-centered;
}

@keyframes grm-menu-in-centered {
    from { opacity: 0; transform: translate(-50%, -4px); }
    to { opacity: 1; transform: translateX(-50%); }
}

@media (max-width: 480px) {
    .grm-badge {
        gap: 8px;
    }

    .grm-badge-label {
        display: none;
    }

    .grm-badge-score {
        font-size: 16px;
    }

    .grm-stars-row svg {
        width: 14px;
        height: 14px;
    }

    .grm-badge-count {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grm-badge,
    .grm-badge-chevron,
    .grm-badge-menu {
        transition: none;
        animation: none;
    }
}
