/* ── CSFV Intervenants Slider – Front ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset plugin scope ── */
.csfv-carousel,
.csfv-carousel *,
.csfv-carousel *::before,
.csfv-carousel *::after,
.csfv-controls,
.csfv-controls *,
.csfv-controls *::before,
.csfv-controls *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    list-style: none;
}

/* ── Carousel wrapper ── */
.csfv-carousel {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ── Viewport & Track ── */
.csfv-carousel .csfv-viewport {
    overflow: hidden;
    border-radius: 20px;
}
.csfv-carousel .csfv-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* ── Group (slide page) ── */
.csfv-carousel .csfv-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex-shrink: 0;
    width: 100%;
    padding: 4px;
}
@media (max-width: 768px) {
    .csfv-carousel .csfv-group {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .csfv-carousel .csfv-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Card ── */
.csfv-carousel .csfv-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    cursor: default;
}
.csfv-carousel .csfv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,75,102,0.12);
}
.csfv-carousel .csfv-card-inner {
    padding: 24px;
}

/* ── Top row : avatar + name ── */
.csfv-carousel .csfv-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* ── Avatar ── */
.csfv-carousel .csfv-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 1;
}
.csfv-carousel .csfv-avatar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 -10px 16px rgba(0,0,0,0.1);
    pointer-events: none;
}
.csfv-carousel .csfv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 0;
}

/* ── Name & role ── */
.csfv-carousel .csfv-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #1e293b;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}
.csfv-carousel .csfv-role {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    margin: 3px 0 0 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* ── Specialty tags ── */
.csfv-carousel .csfv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.csfv-carousel .csfv-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #e8f4f8;
    color: #004b66;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* ── Description ── */
.csfv-carousel .csfv-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
    padding: 12px 0 0 0;
    border-top: 1px solid #f1f5f9;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ══════════════════════════════
   CONTROLS
   ══════════════════════════════ */
.csfv-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

/* ── Arrows ── */
.csfv-controls .csfv-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #004b66;
    padding: 0;
    outline: none;
    line-height: 1;
    box-shadow: none;
    text-shadow: none;
    font-size: 0;
}
.csfv-controls .csfv-arrow:hover {
    background: #e8f4f8;
    border-color: #004b66;
}
.csfv-controls .csfv-arrow:focus {
    outline: 2px solid #004b66;
    outline-offset: 2px;
}
.csfv-controls .csfv-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

/* ── Dots ── */
.csfv-controls .csfv-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.csfv-controls .csfv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    outline: none;
    display: block;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
.csfv-controls .csfv-dot.active {
    background: #004b66;
    width: 28px;
    height: 8px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.csfv-controls .csfv-dot.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: rgba(255,255,255,0.35);
    border-radius: 4px;
}
.csfv-controls .csfv-dot.active.running::after {
    animation: csfv-dot-fill var(--csfv-duration, 5s) linear forwards;
}
.csfv-controls .csfv-dot.active.paused::after {
    animation-play-state: paused;
}

@keyframes csfv-dot-fill {
    0%   { width: 0%; }
    100% { width: 100%; }
}

/* ── Missing shortcode warning ── */
.csfv-carousel .csfv-missing-msg,
.csfv-controls .csfv-missing-msg {
    color: #dc2626;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    line-height: 1.6;
}
.csfv-carousel .csfv-missing-msg code,
.csfv-controls .csfv-missing-msg code {
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}
