/**
 * ED Testimonials - Styles
 *
 * @author    Energiedin
 * @copyright 2024 Energiedin
 * @license   Commercial
 */

/* Section principale */
.ed-testimonials-section {
    background-color: #F0F0F0;
    padding: 60px 0;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-size: cover;
}

.ed-testimonials-title {
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    color: #1D1D1D;
    margin-bottom: 50px;
}

/* Wrapper du slider */
.ed-testimonials-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Slider */
.ed-testimonials-slider {
    overflow: hidden;
}

.ed-testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Slide */
.ed-testimonial-slide {
    flex: 0 0 25%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Card */
.ed-testimonial-card {
    background: #fff;
    border-radius: 0px;
    padding: 0;
    box-shadow: 0 16px 15px 0 rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Header avec avatar et infos */
.ed-testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    background-color: #F3F3F3;
    padding: 20px 20px 40px;
}

.ed-testimonial-avatar {
    flex-shrink: 0;
}

.ed-testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.ed-testimonial-info {
    flex: 1;
    min-width: 0;
}

.ed-testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.ed-testimonial-position {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Rating - Étoiles */
.ed-testimonial-rating {
    display: flex;
    gap: 4px;
    justify-content: center;
    width: fit-content;
    margin: -25px auto 0px;
    background-color: #FFF;
    padding: 5px 12px;
    font-size: 10px;
    box-shadow: 0 16px 60px 0 rgba(0, 0, 0, 0.06);
}

.ed-star {
    font-size: 12px;
    color: #ddd;
}

.ed-star.filled {
    color: #ffc107;
}

/* Contenu du témoignage */
.ed-testimonial-content {
    flex: 1;
    padding: 20px;
}

.ed-testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
    text-align: center;
}

/* Navigation */
.ed-testimonials-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 5px;
}

.ed-testimonial-nav {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: #333;
}

.ed-testimonial-nav:hover {
    background: #1a1a1a;
    color: #fff;
}

.ed-testimonial-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ed-testimonial-nav:disabled:hover {
    background: #fff;
    color: #333;
}

/* Pagination dots */
.ed-testimonials-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.ed-pagination-dot {
    width: 50px;
    height: 5px;
    background: #f5a623;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.ed-pagination-dot:hover {
    background: #bbb;
}

.ed-pagination-dot.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .ed-testimonial-slide {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 992px) {
    .ed-testimonial-slide {
        flex: 0 0 50%;
    }
    
    .ed-testimonials-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .ed-testimonials-section {
        padding: 40px 0;
    }
    
    .ed-testimonials-wrapper {
        padding: 0 15px;
    }
    
    .ed-testimonial-slide {
        flex: 0 0 100%;
    }
    
    .ed-testimonials-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .ed-testimonials-navigation {
        display: none;
    }
    
    .ed-testimonial-card {
        padding: 25px 20px;
    }
    
    .ed-testimonial-avatar img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .ed-testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ed-testimonial-rating {
        justify-content: center;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ed-testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.ed-testimonial-slide:nth-child(1) .ed-testimonial-card { animation-delay: 0.1s; }
.ed-testimonial-slide:nth-child(2) .ed-testimonial-card { animation-delay: 0.2s; }
.ed-testimonial-slide:nth-child(3) .ed-testimonial-card { animation-delay: 0.3s; }
.ed-testimonial-slide:nth-child(4) .ed-testimonial-card { animation-delay: 0.4s; }
