/* =============================================
   SECTION AVIS GOOGLE — styles partagés
   ============================================= */
.google-reviews-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
    margin-top: 2.5rem;
    max-width: 1200px;
    margin-bottom: 2.5rem;
    padding: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(171, 160, 255, 0.513);
    box-shadow: 0 0px 30px rgb(171, 160, 255);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

[data-theme="dark"] .google-reviews-section {
    background: rgba(15, 10, 40, 0.6);
    border-color: rgba(111, 125, 255, 0.12);
}

.gr-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem clamp(1.25rem, 2.5vw, 2rem);
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 126, 224, 0.08), rgba(111, 125, 255, 0.1));
    border-bottom: 1px solid rgba(111, 125, 255, 0.12);
}

.gr-topbar-rating {
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff7ee0, #6f7dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gr-topbar-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.35));
}

.gr-topbar-sep {
    color: rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
}

[data-theme="dark"] .gr-topbar-sep {
    color: rgba(255, 255, 255, 0.2);
}

.gr-topbar-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
    letter-spacing: 0.02em;
}

[data-theme="dark"] .gr-topbar-count {
    color: rgba(255, 255, 255, 0.45);
}

.gr-track-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: clamp(0.85rem, 1.5vw, 1.1rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    will-change: scroll-position;
}

.gr-track-wrapper::-webkit-scrollbar {
    display: none;
}

.gr-track {
    display: flex;
    gap: 1rem;
    padding: 2px 2px 6px;
}

.gr-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(111, 125, 255, 0.14);
    box-shadow: 0 8px 28px rgba(16, 0, 63, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(16, 0, 63, 0.11);
}

[data-theme="dark"] .gr-card {
    background: rgba(20, 14, 50, 0.85);
    border-color: rgba(111, 125, 255, 0.12);
}

.gr-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.gr-avatar-img {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.gr-author-info {
    flex: 1 1 0;
    min-width: 0;
}

.gr-author-name {
    margin: 0;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-author-date {
    font-size: 0.72rem;
    color: rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .gr-author-date {
    color: rgba(255, 255, 255, 0.4);
}

.gr-g-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-left: auto;
    opacity: 0.85;
}

.gr-card-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.gr-card-text {
    margin: 0;
    font-size: 0.845rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.72);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-card-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

[data-theme="dark"] .gr-card-text {
    color: rgba(255, 255, 255, 0.7);
}

.gr-voir-plus {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6f7dff;
    cursor: pointer;
    letter-spacing: 0.01em;
    align-self: flex-start;
}

.gr-voir-plus:hover {
    color: #ff7ee0;
}

.gr-voir-plus.visible {
    display: inline;
}

.gr-card-tag {
    display: inline-block;
    margin-top: auto;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: rgba(111, 125, 255, 0.1);
    border: 1px solid rgba(111, 125, 255, 0.2);
    font-size: 0.68rem;
    font-weight: 700;
    color: #5d52ff;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    width: fit-content;
}

[data-theme="dark"] .gr-card-tag {
    background: rgba(111, 125, 255, 0.15);
    border-color: rgba(111, 125, 255, 0.25);
    color: #a5adff;
}

@media (max-width: 768px) {
    .gr-card {
        flex: 0 0 260px;
    }
    .google-reviews-section {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        border-radius: 20px;
    }
}

/* =============================================
   SCROLL ZONE & NAV ARROWS — section avis
   ============================================= */
.gr-scroll-zone {
    position: relative;
}

.gr-scroll-zone::before,
.gr-scroll-zone::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease;
}

.gr-scroll-zone::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 15%, transparent);
}

.gr-scroll-zone::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 15%, transparent);
}

[data-theme="dark"] .gr-scroll-zone::before {
    background: linear-gradient(to right, rgba(15, 10, 40, 0.75) 15%, transparent);
}

[data-theme="dark"] .gr-scroll-zone::after {
    background: linear-gradient(to left, rgba(15, 10, 40, 0.75) 15%, transparent);
}

.gr-scroll-zone.can-left::before  { opacity: 1; }
.gr-scroll-zone.can-right::after  { opacity: 1; }

.gr-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid rgba(185, 190, 255, 0.85);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(111, 125, 255, 0.22);
    color: #6f7dff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.gr-nav--prev { left: 12px; }
.gr-nav--next { right: 12px; }

.gr-nav:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 28px rgba(111, 125, 255, 0.5);
}

.gr-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

[data-theme="dark"] .gr-nav {
    background: rgba(15, 10, 40, 0.9);
    border-color: rgba(111, 125, 255, 0.35);
    color: #a5adff;
}

@media (hover: hover) and (pointer: fine) {
    .gr-nav {
        display: inline-flex;
    }
    .gr-scroll-zone .gr-track-wrapper {
        padding-left: 3.75rem;
        padding-right: 3.75rem;
    }
}

@media (max-width: 480px) {
    .google-reviews-section {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        border-radius: 16px;
    }
    .gr-card {
        flex: 0 0 240px;
    }
    .gr-track-wrapper {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* =============================================
   TOPBAR CTA & BARRE DE PROGRESSION
   ============================================= */
.gr-topbar-cta {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6f7dff;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0.82;
    flex-shrink: 0;
    transition: color 180ms ease, opacity 180ms ease;
}

.gr-topbar-cta::before {
    content: '·';
    margin-right: 0.45rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.25);
}

.gr-topbar-cta:hover {
    color: #ff7ee0;
    opacity: 1;
}

[data-theme="dark"] .gr-topbar-cta {
    color: #a5adff;
}

[data-theme="dark"] .gr-topbar-cta::before {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 560px) {
    .gr-topbar-cta { display: none; }
}

.gr-topbar-cta-icon {
    width: 11px;
    height: 11px;
    vertical-align: middle;
    margin-left: 0.2rem;
    opacity: 0.75;
    filter: none;
}

[data-theme="dark"] .gr-topbar-cta-icon {
    filter: invert(1) brightness(1.5);
}

.gr-progress {
    height: 3px;
    background: rgba(111, 125, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 clamp(1.25rem, 2.5vw, 2rem) 0.9rem;
    display: none;
}

.gr-progress.is-visible {
    display: block;
}

.gr-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #6f7dff, #ff7ee0);
    border-radius: 999px;
    transition: width 120ms linear;
}

[data-theme="dark"] .gr-progress {
    background: rgba(111, 125, 255, 0.08);
}

.gr-actions {
    display: flex;
    justify-content: center;
    margin: -0.75rem auto 2.25rem;
    padding: 0 1rem;
    position: relative;
    z-index: 20;
}

.gr-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 320px);
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 125, 255, 0.22);
    background: linear-gradient(135deg, #6f7dff, #ff7ee0);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 32px rgba(111, 125, 255, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    position: relative;
    z-index: 21;
    pointer-events: auto;
}

.gr-primary-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(111, 125, 255, 0.3);
    opacity: 0.98;
}

.gr-primary-cta:focus-visible {
    outline: 3px solid rgba(111, 125, 255, 0.25);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .gr-actions {
        margin-top: -0.35rem;
        padding: 0 0.75rem;
    }

    .gr-primary-cta {
        width: 100%;
        min-width: 0;
        padding: 0.9rem 1.1rem;
        font-size: 0.92rem;
    }
}
