/* =========================
   IMAGE AVIS DANS LE BANDEAU
========================= */

.google-review-image-card {
    width: 300px;
    height: 190px;
    background: white;
    border-radius: 16px;
    padding: 10px;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(247, 196, 0, 0.35);
    border-top: 5px solid #f7c400;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.google-review-image-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.google-review-image-open {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.google-review-image-open img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.google-review-image-open:hover img {
    transform: scale(1.03);
}


/* =========================
   MODAL IMAGE AVIS GOOGLE
========================= */

.google-review-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.google-review-modal.show {
    display: flex;
}

.google-review-modal-content {
    position: relative;
    max-width: 1100px;
    width: 92%;
}

.google-review-modal-content img {
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 18px;
    background: white;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.google-review-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #f7c400;
    color: #111;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
}


/* =========================
   BANDEAU AVIS GOOGLE
========================= */

.google-reviews-section {
    background: #f4f4f4;
    padding: 55px 0;
    overflow: hidden;
}

.google-reviews-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 20px;
}

.google-reviews-header span {
    display: inline-block;
    background: #f7c400;
    color: #111;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.google-reviews-header h2 {
    font-size: 34px;
    color: #111;
    margin-bottom: 8px;
}

.google-reviews-header p {
    color: #666;
    font-size: 16px;
}

.google-reviews-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 12px 0 24px;
}

/* Effet fondu à gauche et à droite */
.google-reviews-marquee::before,
.google-reviews-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.google-reviews-marquee::before {
    left: 0;
    background: linear-gradient(to right, #f4f4f4, transparent);
}

.google-reviews-marquee::after {
    right: 0;
    background: linear-gradient(to left, #f4f4f4, transparent);
}

.google-reviews-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: googleReviewsScroll 42s linear infinite;
}

.google-reviews-marquee:hover .google-reviews-track {
    animation-play-state: paused;
}

.google-review-card {
    width: 300px;
    height: 190px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(247, 196, 0, 0.35);
    border-top: 5px solid #f7c400;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.google-review-card:hover {
    transform: translateY(-6px);
    box-shadow:
            0 0 0 1px rgba(247, 196, 0, 0.35),
            0 16px 36px rgba(247, 196, 0, 0.28);
}

.google-review-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.google-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f7c400;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}

.google-review-top strong {
    display: block;
    color: #111;
    font-size: 16px;
    font-weight: 800;
}

.google-review-top span {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.google-review-stars {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.google-review-card p {
    color: #333;
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.google-reviews-link {
    text-align: center;
    margin-top: 12px;
}

.google-reviews-link a {
    display: inline-block;
    background: #f7c400;
    color: #111;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}

.google-reviews-link a:hover {
    background: #111;
    color: white;
    transform: translateY(-2px);
}

@keyframes googleReviewsScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================
   RESPONSIVE AVIS GOOGLE
========================= */

@media (max-width: 700px) {
    .google-reviews-section {
        padding: 40px 0;
    }

    .google-reviews-header h2 {
        font-size: 26px;
    }

    .google-review-card {
        width: 230px;
        height: 165px;
        padding: 12px;
    }

    .google-review-card p {
        font-size: 11px;
        line-height: 1.3;
        -webkit-line-clamp: 4;
    }

    .google-reviews-marquee::before,
    .google-reviews-marquee::after {
        width: 50px;
    }

    .google-review-image-card {
        width: 230px;
        height: 165px;
        padding: 8px;
    }
}