/* === Section Avis Clients === */
.review-section {
    background: #f5f8fa;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Motif de fond : lignes diagonales entrecroisées ACCENTUÉES */
.review-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(77, 163, 255, 0.08) 15px,
            rgba(77, 163, 255, 0.08) 16px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(77, 163, 255, 0.08) 15px,
            rgba(77, 163, 255, 0.08) 16px
        );
    pointer-events: none;
    z-index: 0;
}

.review-section .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
}

/* === En-tête avec layout flex === */
.reviews-header {
    display: flex;
    justify-content: center;
    align-items: center; /* Centrage vertical */
    gap: 50px;
    margin-bottom: 70px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-header-left {
    flex: 1;
    max-width: 650px;
}

.reviews-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center; /* Centrage vertical du widget */
}

/* Mobile */
@media (max-width: 768px) {
    .review-section {
        padding: 50px 50px !important;
    }

    .reviews-header {
        align-items: center;
        justify-content: center; /* Centrer tout le header */
        flex-direction: column; 
    }

    .reviews-header-left {
        text-align: center;
    }

    .reviews-header-right {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .google-rating {
        width: auto;
        max-width: fit-content;
    }

    .reviews-title {
        font-size: 1.5rem;
    }

    .review-grid {
        gap: 55px;
    }

    .review-card {
        padding: 50px 20px 28px 20px;
    }

    .avatar {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        top: -32px;
        border: 4px solid #ffffff;
    }
}





/* === Badge === */
.review-badge {
    display: inline-block;
    background: linear-gradient(135deg, 
        rgba(77, 163, 255, 0.2) 0%, 
        rgba(77, 163, 255, 0.15) 50%, 
        rgba(77, 163, 255, 0.25) 100%);
    color: #4DA3FF;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(77, 163, 255, 0.4);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(77, 163, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Texture métal brossé */
.review-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Brillance animée */
.review-badge::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: badgeShine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes badgeShine {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

.review-badge:hover {
    border-color: rgba(77, 163, 255, 0.6);
    box-shadow: 
        0 4px 12px rgba(77, 163, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* === Titres === */
.reviews-title {
    color: #1a2844;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.reviews-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4DA3FF 0%, #357ABD 100%);
    border-radius: 2px;
}

.reviews-title .highlight {
    color: #4DA3FF;
    position: relative;
    display: inline-block;
}

.reviews-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* === Google Rating Widget === */
.google-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 16px;
    border: 2px solid rgba(77, 163, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    min-width: 280px;
}

.google-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2844;
    line-height: 1;
}

.rating-number span {
    font-size: 1.1rem;
    opacity: 0.6;
    font-weight: 600;
}

.rating-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    margin: 2px 0;
}

.star {
    color: #FFD761;
}

.star.half {
    position: relative;
    display: inline-block;
    width: 1em;
}

.star-empty {
    color: rgba(255, 215, 97, 0.25);
}

.star-filled {
    color: #FFD761;
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
}

.rating-count {
    font-size: 0.9rem;
    color: #4a5568;
}

.rating-count a {
    color: #4DA3FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rating-count a:hover {
    color: #3182ce;
}

/* === Grid des avis === */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    padding-top: 50px;
}

/* === Card Avis === */
.review-card {
    background: #ffffff;
    border: 2px solid rgba(77, 163, 255, 0.15);
    border-radius: 20px;
    padding: 60px 30px 35px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    text-align: center;
}

.review-card:hover {
    border-color: #4DA3FF;
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(77, 163, 255, 0.15);
}

/* === Avatar === */
.avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    position: absolute;
    left: 50%;
    top: -42px;
    transform: translateX(-50%);
    user-select: none;
    z-index: 3;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
    border: 5px solid #ffffff;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.review-card:hover .avatar {
    transform: translateX(-50%) scale(1.12);
    box-shadow: 0 8px 24px rgb(38, 59, 78) 100%;
}

/* Cercle décoratif autour de l'avatar - PLUS VISIBLE */
.avatar::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(rgb(58, 86, 110) 0%, rgb(38, 59, 78) 100%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.4s ease;
}

.review-card:hover .avatar::before {
    transform: scale(1.08);
    border-color: #1a2844;
}

/* Halo blanc pour masquer la bordure */
.avatar::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: #f5f8fa;
    border-radius: 50%;
    z-index: -2;
    box-shadow: 0 0 0 6px #f5f8fa;
}

/* === Contenu === */
.review-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2844;
    margin-bottom: 10px;
}

.review-stars {
    color: #FFD761;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.review-text {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* === Responsive === */

/* Large desktop */
@media (min-width: 1400px) {
    .review-section .container {
        max-width: 1600px;
    }

    .review-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Tablette */
@media (max-width: 992px) {
    .review-section {
        padding: 80px 0;
    }

    .reviews-header {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .reviews-header-left {
        max-width: 100%;
    }

    .reviews-title {
        font-size: 2rem;
        display: block;
    }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding-top: 45px;
    }

    .avatar {
        width: 75px;
        height: 75px;
        font-size: 2rem;
        top: -37px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .review-section {
        padding: 60px 0;
    }

    .reviews-header {
        text-align: left;
        align-items: flex-start;
    }

    .reviews-title {
        font-size: 1.75rem;
        display: block;
    }

    .reviews-subtitle {
        font-size: 1rem;
    }

    .google-rating {
        padding: 20px 24px;
        min-width: auto;
        width: 100%;
    }

    .review-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-top: 40px;
    }

    .review-card {
        padding: 55px 25px 30px 25px;
    }

    .avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        top: -35px;
    }

    .review-name {
        font-size: 1.2rem;
    }

    .review-text {
        font-size: 0.95rem;
    }
}

/* Petit mobile */
@media (max-width: 576px) {
    .review-section {
        padding: 50px 0;
    }

    .reviews-title {
        font-size: 1.5rem;
    }

    .review-grid {
        gap: 55px;
    }

    .review-card {
        padding: 50px 20px 28px 20px;
    }

    .avatar {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        top: -32px;
        border: 4px solid #ffffff;
    }
}
