/* Variables CSS pour la cohérence avec le site FP Service */
:root {
    --primary-color: #FF6B35; /* Orange du site FP Service */
    --secondary-color: #4A90A4; /* Bleu du site FP Service */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.testimonials-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
}

.star.filled {
    color: #FFD700;
}

.rating-text {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 24px;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.client-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.client-info h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 4px;
    font-weight: 600;
}

.client-info .company {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.client-info .website {
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
}

.client-info .website:hover {
    color: var(--primary-color);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.testimonial-rating .star {
    font-size: 1rem;
}

.testimonial-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.testimonial-content {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.testimonial-text {
    margin-bottom: 12px;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    text-decoration: underline;
}

.read-more-btn:hover {
    color: var(--secondary-color);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.prev-btn {
    left: -40px; /* Augmenter la marge négative pour les faire sortir davantage */
}

.next-btn {
    right: -40px; /* Augmenter la marge négative pour les faire sortir davantage */
}

/* Ajustement pour les écrans plus petits pour éviter que les flèches ne sortent trop */
@media (max-width: 1200px) {
    .prev-btn {
        left: 0px;
    }
    .next-btn {
        right: 0px;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-header h2 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        flex: 0 0 calc(100% - 16px);
    }
    
    .carousel-btn {
        display: none;
    }
    
    .testimonials-wrapper {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .testimonials-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .testimonial-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 16px);
    }
}

