/* =============================================================
   Colver – Testimonials Carousel  |  colver-carousel.css
   ============================================================= */

.cvc-block { box-sizing: border-box; }

/* ── Wrapper principal ────────────────────────────────────── */
.cvc-wrap {
    position: relative; 
    width: 100%;
}

/* ── Fond ─────────────────────────────────────────────────── */
.cvc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* ── Overlay ──────────────────────────────────────────────── */
.cvc-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Colonne (largeur + alignement réglables) ─────────────── */
.cvc-col {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* ── Container : reçoit les guillemets + Swiper ───────────── */
.cvc-container {
    position: relative;
}

/* ── Guillemets SVG sur le CONTAINER ─────────────────────── */
.cvc-quote {
    position: absolute;
    display: block;
    pointer-events: none;
    z-index: 0;       /* derrière le contenu du slide */
    line-height: 0;
    transition: 0.3s all ease;
}
.cvc-quote svg,
.cvc-quote img {
    width: 100%;
    height: 100%;
}

/* ── Swiper ───────────────────────────────────────────────── */
.cvc-swiper {
    position: relative;
    z-index: 1;   /* au-dessus des guillemets */
    width: 100%;
    overflow: hidden;
}

/* ── Slide ────────────────────────────────────────────────── */
.cvc-slide {
    box-sizing: border-box;
    border: 1px solid transparent;
    height: auto !important;   /* autoHeight Swiper */
}

/* ── Texte ────────────────────────────────────────────────── */
.cvc-text {
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
}
.cvc-author {
    margin: 0;
    position: relative;
    z-index: 1;
}
.cvc-role {
    margin: 3px 0 0;
    position: relative;
    z-index: 1;
}

/* ── Pagination ───────────────────────────────────────────── */
.cvc-pagination {
    /* position:static géré par le JS frontend */
    /* text-align géré dynamiquement via data-pg-align */
    line-height: 1;
}

/* Overrides Swiper : on laisse les custom props faire le travail */
.cvc-swiper .swiper-pagination-bullet {
    opacity: 1;
    transition: transform .2s ease, background-color .2s ease;
    margin: 0 5px;
}
.cvc-swiper .swiper-pagination-bullet-active {
    transform: scale(1.3);
}

/* Évite que Swiper remette position:absolute via son CSS */
.cvc-swiper .swiper-pagination-horizontal {
    position: static !important;
    bottom: auto !important;
    margin-top: 14px;
    display: block;
}

/* ── Dots preview (éditeur uniquement) ────────────────────── */
.cvc-pagination-preview {
    margin-top: 12px;
    line-height: 1;
}
.cvc-dot {
    display: inline-block;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 0 4px;
    cursor: pointer;
    vertical-align: middle;
    transition: transform .2s;
    outline: none;
}
.cvc-dot.is-active {
    transform: scale(1.3);
}

/* ── Items inspecteur ─────────────────────────────────────── */
.cvc-editor__item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
}
.cvc-editor__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.cvc-editor__item-num {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.cvc-editor__item-actions { display: flex; gap: 4px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .cvc-col {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cvc-quote.cvc-quote--open {
        top: -46px !important;
        left: -1px !important;
    }

    .cvc-quote.cvc-quote--close {
        right: -10px !important;
    }
}
