/* =========================================================
   GO DELIVERY — GOOGLE REVIEWS
   ========================================================= */


/* =========================================================
   SECTION / HEADING
   ========================================================= */

.google-reviews-section {
    padding:
        var(--gd-section-y, 80px)
        0;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f8fa 100%
        );
}

.google-reviews-heading {
    max-width: 760px;

    margin:
        0 auto
        clamp(36px, 5vw, 52px);

    text-align: center;
}

.google-reviews-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: #007bff;

    font-family:
        "Rajdhani",
        sans-serif;

    font-weight: 700;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.google-reviews-heading h2 {
    margin: 0;

    color: #0f1b24;

    font-size:
        clamp(
            36px,
            5vw,
            52px
        );

    text-transform: none;
}

.google-reviews-intro {
    max-width: 650px;

    margin:
        18px auto
        0;

    color: #66717a;

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   GOOGLE RATING SUMMARY
   ========================================================= */

.google-rating-summary {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        auto
        auto;

    align-items: center;

    gap: 32px;

    padding: 28px 32px;

    margin-bottom:
        clamp(
            28px,
            4vw,
            40px
        );

    background: #0f1b24;

    border-radius: 22px;

    box-shadow:
        0 16px 40px
        rgba(
            15,
            27,
            36,
            0.12
        );
}

.google-rating-brand {
    display: flex;

    align-items: center;

    gap: 16px;

    min-width: 0;
}

.google-g {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    background: #ffffff;

    color: #007bff;

    font-family:
        Arial,
        sans-serif;

    font-size: 26px;
    font-weight: 800;
}

.google-g.google-g-logo {
    overflow: hidden;

    padding: 6px;
}

.google-g.google-g-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.google-rating-brand > div {
    min-width: 0;
}

.google-rating-brand strong {
    display: block;

    color: #ffffff;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 20px;
}

.google-rating-brand span {
    display: block;

    margin-top: 3px;

    color: #aeb8c0;

    line-height: 1.4;
}

.google-rating-score {
    display: flex;

    align-items: center;

    gap: 15px;
}

.google-rating-value {
    color: #ffffff;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 48px;
    font-weight: 700;

    line-height: 1;
}

.google-rating-details {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.google-stars {
    display: flex;

    gap: 2px;

    color: #ffb400;

    font-size: 20px;

    line-height: 1;
}

.google-rating-count {
    color: #cbd2d7;

    font-size: 14px;
}


/* =========================================================
   REVIEWS CAROUSEL
   ========================================================= */

.google-reviews-grid {
    display: flex;

    gap:
        var(
            --gd-card-gap,
            28px
        );

    overflow-x: auto;

    overscroll-behavior-inline:
        contain;

    scroll-behavior: smooth;

    scroll-snap-type:
        x mandatory;

    scroll-padding-inline: 6%;

    scrollbar-width: none;

    -ms-overflow-style: none;

    -webkit-overflow-scrolling:
        touch;

    touch-action:
        pan-x pan-y;
}

.google-reviews-grid::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   REVIEW CARD
   Desktop = 3 cartes principales centrées
   avec aperçu à gauche et à droite
   ========================================================= */

.google-review-card {
    display: flex;

    flex-direction: column;

    flex:
        0 0
        calc(
            (
                88%
                - (
                    var(
                        --gd-card-gap,
                        28px
                    )
                    * 2
                )
            )
            / 3
        );

    min-width: 0;

    padding:
        clamp(
            26px,
            3vw,
            34px
        );

    background: #ffffff;

    border:
        1px solid
        #e6e9ec;

    border-radius: 20px;

    box-shadow:
        0 10px 30px
        rgba(
            15,
            27,
            36,
            0.06
        );

    scroll-snap-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

@media (
    hover: hover
) and (
    pointer: fine
) {

    .google-review-card:hover {
        transform:
            translateY(-5px);

        border-color:
            rgba(
                0,
                123,
                255,
                0.22
            );

        box-shadow:
            0 16px 38px
            rgba(
                15,
                27,
                36,
                0.10
            );
    }

}


/* =========================================================
   REVIEW HEADER
   ========================================================= */

.google-review-top {
    display: flex;

    align-items: center;

    gap: 12px;
}

.google-review-avatar {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    overflow: hidden;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background:
        rgba(
            0,
            123,
            255,
            0.10
        );

    color: #007bff;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 17px;
    font-weight: 700;
}

.google-review-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    object-fit: cover;
}

.google-review-author {
    min-width: 0;
}

.google-review-author strong {
    display: block;

    overflow: hidden;

    color: #0f1b24;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 20px;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.google-review-author span {
    display: block;

    margin-top: 2px;

    color: #89939b;

    font-size: 13px;
}

.google-review-source {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    margin-left: auto;

    border-radius: 50%;

    background: #f7f8fa;

    color: #007bff;

    font-family:
        Arial,
        sans-serif;

    font-weight: 800;
}


/* =========================================================
   REVIEW CONTENT
   ========================================================= */

.google-review-stars {
    margin-top: 22px;

    color: #ffb400;

    font-size: 18px;

    letter-spacing: 2px;
}

.google-review-text {
    display: -webkit-box;

    overflow: hidden;

    margin:
        18px 0
        28px;

    color: #53606a;

    line-height: 1.75;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 6;
}

.google-review-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: auto;

    padding-top: 18px;

    border-top:
        1px solid
        #edf0f2;

    color: #89939b;

    font-size: 13px;
}

.google-review-footer a {
    color: #007bff;

    font-weight: 600;
}

.google-review-date {
    display: block;

    margin-top: 3px;

    color: #89939b;

    font-size: 13px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.google-reviews-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 12px 22px;

    border-radius: 999px;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 16px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.google-reviews-button-outline {
    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.35
        );

    color: #ffffff;
}

.google-reviews-button-outline:hover {
    border-color: #ffffff;

    color: #ffffff;
}

.google-reviews-button-primary {
    margin: 0;

    border:
        1px solid
        #007bff;

    background: #007bff;

    color: #ffffff;
}

.google-reviews-button-primary:hover {
    border-color: #ff6600;

    background: #ff6600;

    color: #ffffff;
}


/* =========================================================
   CAROUSEL BOTTOM ACTIONS
   ←   Voir tous les avis Google   →
   ========================================================= */

.google-reviews-actions {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 22px;

    margin-top:
        clamp(
            30px,
            4vw,
            42px
        );
}

.google-reviews-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    margin: 0;
    padding: 0;

    border:
        1px solid
        #dce2e7;

    border-radius: 50%;

    background: #ffffff;

    color: #0f1b24;

    font-size: 21px;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(
            15,
            27,
            36,
            0.07
        );

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.google-reviews-arrow:hover {
    border-color: #007bff;

    background: #007bff;

    color: #ffffff;

    transform:
        translateY(-2px);
}

.google-reviews-arrow:focus-visible {
    outline:
        3px solid
        rgba(
            0,
            123,
            255,
            0.22
        );

    outline-offset: 3px;
}

.google-reviews-arrow.is-hidden {
    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   MOBILE DOTS
   ========================================================= */

.google-reviews-mobile-hint {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (
    max-width: 991.98px
) {

    .google-rating-summary {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 24px;
    }

    .google-rating-summary
    .google-reviews-button {
        grid-column:
            1 / -1;

        justify-self: start;
    }

    .google-reviews-grid {
        scroll-padding-inline: 8%;
    }

    .google-review-card {
        flex:
            0 0
            calc(
                (
                    84%
                    - var(
                        --gd-card-gap,
                        28px
                    )
                )
                / 2
            );

        scroll-snap-align: center;
    }

}


/* =========================================================
   TABLET ONLY
   ========================================================= */

@media (
    min-width: 768px
) and (
    max-width: 991.98px
) {

    .google-reviews-actions {
        gap: 18px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (
    max-width: 767.98px
) {

    .google-reviews-section {
        overflow: hidden;
    }

    .google-reviews-heading {
        padding:
            0 8px;

        margin-bottom: 34px;
    }

    .google-reviews-intro {
        font-size: 16px;
    }


/* ---------------------------------------------------------
   Mobile Google summary
   Premium compact layout
   --------------------------------------------------------- */

.google-rating-summary {
    display: block;

    padding: 22px 22px 20px;

    border-radius: 20px;

    background: #0f1b24;

    box-shadow:
        0 14px 34px
        rgba(
            15,
            27,
            36,
            0.14
        );
}

.google-rating-brand {
    display: flex;

    align-items: center;

    gap: 14px;

    width: 100%;
}

.google-rating-brand .google-g {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;
}

.google-rating-brand strong {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    line-height: 1.15;
}

.google-rating-brand span {
    margin-top: 4px;

    color: #b9c2c9;

    font-size: 13px;
    line-height: 1.35;
}

.google-rating-score {
    display: flex !important;

    align-items: center;

    gap: 10px;

    margin-top: 16px;

    padding: 0;

    border: 0;
}

.google-rating-value {
    flex: 0 0 auto;

    margin: 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.google-rating-details {
    display: flex;

    flex: 1;

    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    min-width: 0;
}

.google-stars {
    display: flex;

    gap: 1px;

    margin: 0;

    color: #ffb400;

    font-size: 16px;
    line-height: 1;
}

.google-rating-count {
    margin: 0;

    color: #d6dde2;

    font-size: 12px;
    font-weight: 500;

    line-height: 1;

    white-space: nowrap;
}

.google-rating-summary
.google-reviews-button {
    display: none !important;
}


    /* ---------------------------------------------------------
       Mobile carousel
       --------------------------------------------------------- */

    .google-reviews-grid {
        gap: 16px;

        margin:
            0 -15px;

        padding:
            4px 15px
            18px;

        scroll-padding-inline: 9%;
    }

    .google-review-card {
        flex:
            0 0
            82%;

        scroll-snap-align:
            center;
    }


    /* ---------------------------------------------------------
       Mobile dots
       --------------------------------------------------------- */

    .google-reviews-mobile-hint {
        display: flex;

        align-items: center;
        justify-content: center;

        gap: 7px;

        margin-top: 6px;
    }

    .google-reviews-mobile-hint span {
        width: 7px;
        height: 7px;

        border-radius: 999px;

        background: #cdd4d9;

        transition:
            width 0.2s ease,
            background-color 0.2s ease;
    }

    .google-reviews-mobile-hint
    span.is-active {
        width: 18px;

        background: #007bff;
    }


    /* ---------------------------------------------------------
       Mobile bottom CTA
       Swipe replaces arrows
       --------------------------------------------------------- */

    .google-reviews-actions {
        display: block;

        margin-top: 28px;
    }

    .google-reviews-actions
    .google-reviews-arrow {
        display: none !important;
    }

    .google-reviews-actions
    .google-reviews-button-primary {
        width: 100%;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .google-reviews-grid {
        scroll-behavior: auto;
    }

}


/* =========================================================
   CAROUSEL FRAME / EDGE FADE
   ========================================================= */

.google-reviews-carousel-frame {
    position: relative;

    overflow: hidden;
}

.google-reviews-carousel-frame::before,
.google-reviews-carousel-frame::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 90px;

    z-index: 3;

    pointer-events: none;
}

.google-reviews-carousel-frame::before {
    left: 0;

    background:
        linear-gradient(
            to right,
            rgba(247, 248, 250, 0.78) 0%,
            rgba(247, 248, 250, 0.55) 30%,
            rgba(247, 248, 250, 0.28) 60%,
            rgba(247, 248, 250, 0) 100%
        );
}

.google-reviews-carousel-frame::after {
    right: 0;

    background:
        linear-gradient(
            to left,
            rgba(247, 248, 250, 0.78) 0%,
            rgba(247, 248, 250, 0.55) 30%,
            rgba(247, 248, 250, 0.28) 60%,
            rgba(247, 248, 250, 0) 100%
        );
}

@media (
    max-width: 991.98px
) {

    .google-reviews-carousel-frame::before,
    .google-reviews-carousel-frame::after {
        width: 64px;
    }

}

@media (
    max-width: 767.98px
) {

    .google-reviews-carousel-frame::before,
    .google-reviews-carousel-frame::after {
        width: 34px;
    }

}