/* Testimonials Carousel Styles */
.testimonials-carousel-section {
    padding: 60px 0;
    background: #f8f9fa;
    position: relative;
}

.testimonials-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Carrousel principal */
.testimonials-swiper {
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
    position: relative;
    padding: 0 80px; /* Espace pour les boutons */
}

.testimonials-swiper .swiper-wrapper {
    align-items: center;
}

/* Items du carrousel */
.testimonial-slide {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px 20px;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: "«";
    font-size: 3rem;
    color: #007cba;
    position: absolute;
    left: -40px;
    top: -10px;
    font-weight: bold;
}

.testimonial-text::after {
    content: "»";
    font-size: 3rem;
    color: #007cba;
    position: absolute;
    right: -40px;
    bottom: -30px;
    font-weight: bold;
}

.testimonial-author {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    position: relative;
}

.testimonial-author::before {
    content: "–";
    margin-right: 8px;
    color: #007cba;
}

/* Boutons de navigation */
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #007cba;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #007cba;
    color: #fff;
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

/* Points de pagination */
.swiper-pagination {
    bottom: -50px;
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #007cba;
    transform: scale(1.2);
}

.swiper-pagination-bullet:hover {
    background: #007cba;
    opacity: 0.8;
}

/* Effet de fondu sur les côtés */
.slider-fade-out {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.slider-fade-out.left {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.slider-fade-out.right {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-swiper {
        padding: 0 60px;
    }
    
    .testimonial-text {
        font-size: 1.2rem;
        padding: 0 30px;
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 2rem;
    }
    
    .testimonial-text::before {
        left: -20px;
    }
    
    .testimonial-text::after {
        right: -20px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px;
    }
    
    .slider-fade-out {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .testimonials-swiper {
        padding: 0 50px;
    }
    
    .testimonial-slide {
        padding: 20px 10px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        display: none;
    }
    
    .swiper-button-prev {
        left: 5px;
    }
    
    .swiper-button-next {
        right: 5px;
    }
    
    .slider-fade-out {
        width: 50px;
    }
    
    .swiper-pagination {
        bottom: -40px;
        padding-top: 20px;
    }
}

/* Animation d'entrée */
.testimonials-carousel-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États de chargement */
.testimonials-swiper.loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials-swiper.loading::before {
    content: "Chargement...";
    font-size: 1.2rem;
    color: #666;
}

/* Accessibilité */
.swiper-button-prev:focus,
.swiper-button-next:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .testimonials-carousel-section {
        background: #1a1a1a;
    }
    
    .testimonial-text {
        color: #e0e0e0;
    }
    
    .testimonial-author {
        color: #b0b0b0;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        background: #333;
        color: #007cba;
    }
    
    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        background: #007cba;
        color: #fff;
    }
    
    .slider-fade-out.left {
        background: linear-gradient(to right, #1a1a1a, transparent);
    }
    
    .slider-fade-out.right {
        background: linear-gradient(to left, #1a1a1a, transparent);
    }
}
