/**
 * Testimonials Slider — Cards de témoignages clients
 *
 * Design "Quote-first" : guillemet décorative, citation proéminente,
 * auteur en bas avec avatar (logo ou initiales).
 * Slider Swiper, navigation par flèches et dots.
 */

/* =============================================================================
   Layout
   ============================================================================= */
.block--testimonials-slider {
    padding: var(--space-3xl) 0;
}

.block--testimonials-slider .container {
    position: relative;
}

.testimonials-slider__title {
    text-align: center;
    color: var(--color-teal);
    margin-bottom: var(--space-2xl);
}

/* Dark backgrounds — section title adapts */
.bg-teal .testimonials-slider__title,
.bg-dark .testimonials-slider__title,
.bg-orange .testimonials-slider__title {
    color: var(--color-white);
}

/* =============================================================================
   Swiper overrides
   ============================================================================= */
.testimonials-slider {
    overflow: hidden;
    padding-bottom: var(--space-2xl);
}

.testimonials-slider .swiper-slide {
    height: auto;
    display: flex;
}

/* =============================================================================
   Testimonial Card — Quote-first with prominent logo
   ============================================================================= */
.testimonial-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-xl);
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* --- Header: quote mark left + logo right --- */
.testimonial-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.testimonial-card__quote-mark {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 800;
    color: var(--color-orange);
    opacity: 0.8;
    pointer-events: none;
    user-select: none;
}

.testimonial-card__logo {
    max-width: 160px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .testimonial-card__logo {
    opacity: 1;
}

/* --- Quote --- */
.testimonial-card__quote {
    flex: 1;
    margin: 0;
    padding: 0;
}

.testimonial-card__text {
    font-size: clamp(14px, 0.875rem + 0.15vw, 15px);
    line-height: 1.7;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
}

/* --- Author --- */
.testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.testimonial-card__name {
    font-weight: 600;
    font-size: .875rem;
    color: var(--color-dark);
}

.testimonial-card__role {
    font-size: .8125rem;
    color: #888;
}

.testimonial-card__company {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-orange);
}

/* =============================================================================
   Pagination dots — orange
   ============================================================================= */
.testimonials-slider .swiper-pagination {
    bottom: 0;
}

.testimonials-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    background: var(--color-dark);
    opacity: 0.2;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
    position: relative;
}

/* Zone tactile élargie (48px) invisible autour du dot */
.testimonials-slider .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
}

.testimonials-slider .swiper-pagination-bullet-active {
    background: var(--color-orange);
    opacity: 1;
    transform: scale(1.2);
}

/* =============================================================================
   Navigation arrows
   ============================================================================= */
.block--testimonials-slider .container {
    padding-left: calc(var(--space-lg) + 52px);
    padding-right: calc(var(--space-lg) + 52px);
}

.block--testimonials-slider .swiper-button-prev,
.block--testimonials-slider .swiper-button-next {
    color: var(--color-teal);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .95);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    top: 50%;
}

.block--testimonials-slider .swiper-button-prev {
    left: var(--space-lg);
}
.block--testimonials-slider .swiper-button-next {
    right: var(--space-lg);
}

.block--testimonials-slider .swiper-button-prev::after,
.block--testimonials-slider .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

.block--testimonials-slider .swiper-button-prev:hover,
.block--testimonials-slider .swiper-button-next:hover {
    opacity: 1;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1024px) {
    .testimonial-card {
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .block--testimonials-slider {
        padding: var(--space-2xl) 0;
    }

    .testimonial-card__logo {
        max-width: 120px;
        max-height: 44px;
    }

    .block--testimonials-slider .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    .block--testimonials-slider .swiper-button-prev,
    .block--testimonials-slider .swiper-button-next {
        display: none;
    }
}
