/* Section Avis Google */
.reviews-section {
    background: linear-gradient(to bottom,
        white 0%,
        #f8f9fa 10%,
        #f8f9fa 90%,
        white 100%);
    padding: 5rem 0;
}

.google-header {
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: fit-content;
    margin: 0 auto 3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.google-header img,
.google-header .google-logo {
    height: 2rem;
    width: auto;
}

.google-header .text-xl {
    font-size: 1.25rem;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
}

.rating .text-xl {
    font-size: 1.25rem;
    font-weight: 500;
}

.stars {
    display: flex;
    margin-left: 0.5rem;
}

.stars svg {
    width: 1.25rem;
    height: 1.25rem;
    display: inline;
}

.text-yellow-400 {
    color: #fbbf24;
}

.review-count {
    margin-left: 0.5rem;
    color: #6b7280;
}

/* Grille des avis */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .reviews-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

/* Carte d'avis */
.review-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Animation pour chaque carte */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }
.review-card:nth-child(7) { animation-delay: 0.7s; }
.review-card:nth-child(8) { animation-delay: 0.8s; }
.review-card:nth-child(9) { animation-delay: 0.9s; }
.review-card:nth-child(10) { animation-delay: 1s; }

/* Étoiles dans les cartes */
.review-card .stars {
    display: flex;
    margin-bottom: 0.75rem;
    gap: 2px;
}

.text-gray-300 {
    color: #d1d5db;
}

/* Texte de l'avis */
.review-text {
    color: #1f2937;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Revieweur */
.reviewer {
    display: flex;
    align-items: center;
}

.reviewer img {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reviewer .font-medium {
    font-weight: 700;
    font-size: 0.875rem;
}

.text-gray-500 {
    color: #6b7280;
}

.text-sm {
    font-size: 0.875rem;
}

/* Carousel mobile */
@media (max-width: 767px) {
    .reviews-grid {
        position: relative;
        overflow: hidden;
        display: block;
    }

    .review-card {
        display: none;
        animation: none;
    }

    .review-card.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .carousel-controls {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .carousel-btn {
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 20px;
        color: #6b7280;
    }

    .carousel-btn:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background: #6b7280;
        width: 24px;
        border-radius: 4px;
    }
}

/* Masquer les contrôles carousel sur desktop */
@media (min-width: 768px) {
    .carousel-controls,
    .carousel-dots {
        display: none;
    }
}

/* Responsive header */
@media (max-width: 768px) {
    .google-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .header-text {
        font-size: 1rem;
    }

    .reviews-section {
        padding: 3rem 0;
    }
}
