/* ═══════════════════════════════════════════════════════
   Testimonial Slider – slider.css
   ═══════════════════════════════════════════════════════ */

:root {
    --ts-green:      #1e3a2f;
    --ts-green-mid:  #2a5240;
    --ts-cream:      #f7f3ea;
    --ts-gold:       #c9a84c;
    --ts-white:      #ffffff;
    --ts-radius:     14px;
    --ts-gap:        24px;
    --ts-transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Outer (largeur container, ancre pour la nav) ────── */
.ts-outer {
    position: relative;
    width: 100%;
    padding-bottom: 56px;   /* espace pour la nav */
}

/* ── Wrapper (bleed droit) ───────────────────────────── */
/*
 * Bord gauche = bord gauche du container
 * Bord droit  = bord droit du viewport
 * width = calc(50% + 50vw) pour un container centré
 */
.ts-wrapper {
    width: calc(50% + 50vw);
    font-family: Georgia, "Times New Roman", serif;
}

/* ── Track ───────────────────────────────────────────── */
.ts-track-outer {
    overflow: hidden;   /* clips les slides qui dépassent à droite */
}

.ts-track {
    display: flex;
    gap: var(--ts-gap);
    transition: transform var(--ts-transition);
    will-change: transform;
}

/* ── Slides : taille fixe 600 × 600 ─────────────────── */
.ts-slide {
    flex: 0 0 600px;
    width: 600px;
}

/* ── Tablette 568–960px : 2 slides dans le container ────── */
@media (max-width: 960px) {
    .ts-wrapper {
        width: 100%;           /* annule le bleed droit */
    }

    .ts-slide {
        flex: 0 0 calc(50% - var(--ts-gap) / 2);
        width: calc(50% - var(--ts-gap) / 2);
    }
}

/* ── Mobile < 568px : 1 seule slide ─────────────────────── */
@media (max-width: 568px) {
    .ts-slide {
        flex: 0 0 100%;
        width: 100%;
    }

    .ts-card__image {
        height: 260px;
    }
}

/* ── Card ────────────────────────────────────────────── */
.ts-card {
    border-radius: var(--ts-radius);
    overflow: hidden;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    height: auto;
}


/* Image – 600 × 400 fixes */
.ts-card__image {
    position: relative;
    background: #d6d3cb;
    width: 100%;
    height: 400px;
    flex-shrink: 0;
    overflow: hidden;
}

@media (max-width: 640px) {
    .ts-card__image {
        height: 230px;
    }
}

.ts-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder */
.ts-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d0cec7;
}

.ts-card__image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.6;
}

/* Body */
.ts-card__body {
    background: #1C3A2A;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Quote */
.ts-card__quote {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    line-height: 22px;
    color: #F5EDD8;
    border: none;
    quotes: none;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: name + badge */
.ts-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.ts-card__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
    color: #F5EDD8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges */
.ts-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ts-badge svg {
    display: block;
}

/* ── Navigation bar (ancrée sur ts-outer = largeur container) */
.ts-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    height: 48px;
}

/* Dots */
.ts-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ts-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
}

.ts-dot.is-active {
    background: var(--ts-green);
    transform: scale(1.3);
}

/* Arrows */
.ts-arrows {
    display: flex;
    gap: 10px;
}

.ts-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    background: var(--ts-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    color: var(--ts-green);
}

.ts-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ts-arrow:hover {
    background: var(--ts-green);
    border-color: var(--ts-green);
    color: var(--ts-white);
    transform: scale(1.08);
}

.ts-arrow:disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ── Empty state ─────────────────────────────────────── */
.ts-empty {
    font-family: Georgia, serif;
    color: #666;
    font-style: italic;
    padding: 24px 0;
}

/* ── Accessibility ───────────────────────────────────── */
.ts-arrow:focus-visible,
.ts-dot:focus-visible {
    outline: 2px solid var(--ts-gold);
    outline-offset: 2px;
}
