/* Carousel de témoignages - Styles CSS */


.testimonials-container {
    max-width: 80rem; /* max-w-7xl */
}


.testimonials-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    gap: 3rem; /* gap-12 */
    flex-direction: column;
}

@media (min-width: 768px) {
    .testimonials-wrapper {
        gap: 4rem; /* md:gap-16 */
    }
}

@media (min-width: 1024px) {
    .testimonials-wrapper {
        gap: 6rem; /* lg:gap-24 */
        align-items: center;
    }
}

.testimonials-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonials-controls {
    display: flex;
    gap: 1rem;
}

.testimonials-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 2.5rem; /* btn-square btn-sm */
    height: 2.5rem;
    background-color: #3b82f6; /* btn-primary */
    color: white;
}

.testimonials-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.testimonials-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e5e7eb;
    color: #6b7280;
}

.testimonials-btn:disabled:hover {
    transform: none;
}

.carousel-container {
    border-radius: 0.5rem; /* rounded-box */
    overflow: hidden;
    width: 100%;
}

.carousel-body {
    display: flex;
    gap: 1.5rem; /* gap-6 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-body.loaded {
    opacity: 1;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .carousel-slide {
        width: calc(50% - 0.75rem); /* md: 2 slides */
    }
}

.testimonial-card {
    border: 1px solid #e5e7eb; /* card-border */
    border-radius: 0.5rem;
    background-color: white;
    transition: border-color 0.3s ease;
    height: 100%;
    box-shadow: none; /* shadow-none */
}

.testimonial-card:hover {
    border-color: #3b82f6; /* hover:border-primary */
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* gap-5 */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* gap-3 */
}

.avatar {
    width: 2.5rem; /* size-10 */
    height: 2.5rem;
    border-radius: 50%; /* rounded-full */
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h4 {
    color: #374151; /* text-base-content */
    font-weight: 500;
    margin: 0;
}

.user-details p {
    color: rgba(55, 65, 81, 0.8); /* text-base-content/80 */
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.company-name {
    color: #374151; /* text-base-content */
    font-weight: 600;
}

.star-rating {
    display: flex;
    gap: 0.25rem; /* gap-1 */
}

.star-icon {
    width: 1.5rem; /* size-6 */
    height: 1.5rem;
    color: #f59e0b; /* text-warning */
    flex-shrink: 0;
}

.testimonial-content {
    color: rgba(55, 65, 81, 0.8); /* text-base-content/80 */
    line-height: 1.6;
    margin: 0;
}

/* Responsive pour petits écrans */
@media (max-width: 640px) {
    .testimonials-container {
        padding: 0 0.75rem;
    }
    
    .testimonials-wrapper {
        gap: 2rem;
    }
    
    .card-body {
        padding: 1rem;
        gap: 1rem;
    }
}

/* Animation pour le chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-slide {
    animation: fadeIn 0.6s ease forwards;
}

.carousel-slide:nth-child(2) {
    animation-delay: 0.1s;
}

.carousel-slide:nth-child(3) {
    animation-delay: 0.2s;
}

.carousel-slide:nth-child(4) {
    animation-delay: 0.3s;
}
