/* ====================================================
   PDF Communicator — Carousel Style (imite l'image)
   ==================================================== */

/* ── Outer wrapper ── */
.pdfc-carousel-outer {
    position: relative;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    margin: 0 0 16px;
    min-height: 80px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── Slide ── */
.pdfc-slide {
    display: none;
    flex-direction: column;
}
.pdfc-slide-active {
    display: flex;
}

/* ── Row 1 : icône PDF + titre ── */
.pdfc-row-title {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.pdfc-thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 8px 10px;
    flex-shrink: 0;
    transition: opacity .2s;
}
.pdfc-thumb-link:hover { opacity: .82; }

.pdfc-pdf-thumb {
    position: relative;
    width: 40px;
    height: 40px;
    background: #ef4444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.pdfc-thumb-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #b91c1c;
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 3px;
    letter-spacing: .5px;
    line-height: 1.2;
}

.pdfc-title-link {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 8px 12px 8px 6px;
    font-size: .82rem;
    font-weight: 700;
    color: #111827 !important;
    text-decoration: none !important;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: color .2s;
}
.pdfc-title-link:hover { color: #1d4ed8 !important; }

/* ── Row 2 : boutons share + voir plus + compteur ── */
.pdfc-row-actions {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
    background: #f9fafb;
    flex-wrap: wrap;
}

/* Social buttons */
.pdfc-social-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pdfc-soc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    transition: filter .2s, transform .15s;
    flex-shrink: 0;
}
.pdfc-soc-btn:hover {
    filter: brightness(1.15);
    transform: scale(1.08);
}
.pdfc-soc-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Voir plus */
.pdfc-voir-plus {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #374151;
    color: #fff !important;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}
.pdfc-voir-plus:hover { background: #1f2937; color: #fff !important; }

/* Counter */
.pdfc-counter {
    margin-left: auto;
    background: #374151;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
    text-align: center;
    letter-spacing: .03em;
}

/* ── Nav arrows ── */
.pdfc-nav {
    position: absolute;
    top: 14px;
    transform: none;
    background: rgba(0,0,0,.18);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
    z-index: 5;
    padding: 0;
}
.pdfc-nav:hover { background: rgba(0,0,0,.40); }
.pdfc-nav-prev { left: 4px; }
.pdfc-nav-next { right: 4px; }

/* ── Error ── */
.pdfc-error {
    color: #dc2626;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: .88rem;
    margin: 8px 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .pdfc-title-link { font-size: .76rem; }
    .pdfc-soc-btn { width: 32px; height: 32px; }
    .pdfc-soc-btn svg { width: 15px; height: 15px; }
    .pdfc-voir-plus { padding: 6px 10px; font-size: .75rem; }
    .pdfc-counter { padding: 4px 8px; font-size: .76rem; }
}
