/* === TCP Testimonial Carousel Pro — Styles Frontend === */

/* --- Wrapper principal --- */
.tcp-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    box-sizing: border-box;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Piste --- */
.tcp-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.45s ease;
}

/* --- Slide --- */
.tcp-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 40px 30px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* --- Photo --- */
.tcp-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* --- Badge collé sous la photo --- */
.tcp-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: -14px;
    margin-bottom: 18px;
    background-color: #FF6B35;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

/* --- Texte témoignage --- */
.tcp-texte {
    font-size: 16px;
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 16px;
    font-style: italic;
}

/* --- Nom --- */
.tcp-nom {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 auto 12px;
}

/* --- Lien externe --- */
.tcp-lien {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.tcp-lien:hover {
    opacity: 0.7;
}

/* --- Flèches navigation --- */
.tcp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

.tcp-arrow:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.tcp-arrow-prev { left: 10px; }
.tcp-arrow-next { right: 10px; }

/* --- Dots --- */
.tcp-dots-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

/* --- Vidéo --- */
.tcp-video-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.tcp-video-container iframe,
.tcp-video-container video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
}

.tcp-video-container video {
    background: #000;
}

/* --- Capture d'écran --- */
.tcp-screenshot-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 10px 0;
}

.tcp-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: block;
}

/* --- Responsive mobile --- */
@media (max-width: 768px) {
    .tcp-carousel-wrapper {
        padding: 20px 0;
    }
    .tcp-slide {
        padding: 10px 50px 20px;
    }
    .tcp-photo {
        width: 90px;
        height: 90px;
    }
    .tcp-texte {
        font-size: 15px;
    }
    .tcp-arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
        opacity: 0.7;
    }
    .tcp-arrow-prev { left: 4px; }
    .tcp-arrow-next { right: 4px; }
}
/* --- Notation étoiles --- */
.tcp-rating {
    font-size: 20px;
    color: #FFB800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
/* ==========================================
   MODE MASONRY — layout="masonry"
========================================== */
.tcp-masonry-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.tcp-masonry-grid {
    columns: 3;
    column-gap: 20px;
}

.tcp-masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px 24px;
    box-sizing: border-box;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tcp-masonry-item:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.tcp-masonry-item .tcp-photo {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
}

.tcp-masonry-item .tcp-badge {
    margin-top: -10px;
    margin-bottom: 14px;
    font-size: 10px;
}

.tcp-masonry-item .tcp-texte {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 100%;
}

.tcp-masonry-item .tcp-nom {
    font-size: 13px;
    margin-bottom: 8px;
}

.tcp-masonry-item .tcp-rating {
    font-size: 14px;
    margin-bottom: 10px;
}

.tcp-masonry-item .tcp-video-container {
    max-width: 100%;
    margin-bottom: 12px;
}

.tcp-masonry-item .tcp-screenshot-container {
    max-width: 100%;
    padding: 0 0 12px;
}

@media (max-width: 900px) {
    .tcp-masonry-grid { columns: 2; }
}

@media (max-width: 560px) {
    .tcp-masonry-grid { columns: 1; }
}
