/* ===== SECTION AVIS CLIENTS - NOUVELLE APPROCHE ===== */

/* Section principale */
.testimonials-section {
    background: transparent;
    padding: 80px 0;
}

/* Wrapper principal */
.testimonials-wrapper {
    max-width: 900px !important;
    width: 900px !important;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Slider */
.testimonials-slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100% !important;
    max-width: 900px !important;
}

/* Item d'avis */
.testimonial-item {
    min-width: 300px !important;
    width: 300px !important;
    flex-shrink: 0;
    padding: 10px;
}

/* Carte d'avis qui flotte */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 200px !important; /* Hauteur fixe pour tous les avis */
    width: 100% !important;
    max-width: 300px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(0);
    overflow: hidden; /* Cache le débordement */
}

/* Effet de flottement au hover */
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Guillemet */
.testimonial-quote {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0.1;
}

/* Texte de l'avis */
.testimonial-text {
    flex: 1;
    margin: 8px 0 10px 0;
    overflow: hidden; /* Cache le débordement */
    position: relative;
}

.testimonial-text p {
    font-size: 12px;
    line-height: 1.4;
    color: #444;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Limite à 6 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 100px; /* Hauteur maximale pour le texte */
}

/* Lien "voir plus" */
.testimonial-text .read-more {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, white 30%);
    padding-left: 20px;
    font-size: 11px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.testimonial-text .read-more:hover {
    color: #b30000;
}

/* Auteur */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Pousse l'auteur vers le bas */
}

/* Avatar de l'auteur */
.author-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(221, 0, 0, 0.2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Informations de l'auteur */
.author-info {
    flex: 1;
}

.author-info h4 {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    margin: 0 0 2px 0;
}

/* Étoiles */
.rating {
    display: flex;
    gap: 1px;
}

.rating .fas {
    font-size: 9px;
}

.star-filled {
    color: #ffc107;
}

.star-empty {
    color: #e0e0e0;
}

/* Logo Google */
.google-logo {
    width: 25px;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-left: auto;
}

.testimonial-card:hover .google-logo {
    opacity: 1;
}

/* Navigation */
.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    background: transparent;
}

/* Boutons de navigation */
.nav-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(221, 0, 0, 0.3);
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 18px rgba(221, 0, 0, 0.4);
}

.nav-btn i {
    font-size: 14px;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Points de navigation */
.nav-dots {
    display: flex;
    gap: 8px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(221, 0, 0, 0.3);
}

.nav-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Message pas d'avis */
.no-testimonials {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
}

.no-testimonials-content {
    max-width: 350px;
    margin: 0 auto;
}

.no-testimonials-content i {
    font-size: 50px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-testimonials-content h3 {
    font-size: 20px;
    color: #6c757d;
    margin-bottom: 12px;
}

.no-testimonials-content p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonial-card {
        padding: 12px;
        height: 180px !important; /* Hauteur réduite sur mobile */
    }
    
    .testimonial-text p {
        -webkit-line-clamp: 5; /* Moins de lignes sur mobile */
        max-height: 80px;
    }
    
    .testimonials-nav {
        flex-direction: column;
        gap: 15px;
        padding: 25px 0;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .author-avatar {
        width: 22px;
        height: 22px;
    }
    
    .author-info h4 {
        font-size: 10px;
    }
    
    .testimonial-text p {
        font-size: 11px;
    }
    
    .google-logo {
        width: 22px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 10px;
        height: 160px !important; /* Hauteur encore plus réduite */
    }
    
    .testimonial-text p {
        -webkit-line-clamp: 4; /* Encore moins de lignes */
        max-height: 70px;
    }
    
    .testimonial-author {
        gap: 6px;
    }
    
    .author-avatar {
        width: 20px;
        height: 20px;
    }
    
    .author-info h4 {
        font-size: 9px;
    }
    
    .testimonial-text p {
        font-size: 10px;
    }
    
    .google-logo {
        width: 20px;
    }
} 