/* ===== VIEWER PDF.JS ===== */
#accreditationPdfViewer {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#accreditationPdfCanvas {
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: white;
    max-width: 100%;
    transition: transform 0.3s ease;
}

/* Effet de zoom sur le canvas */
.pdf-canvas-wrapper.zoomed #accreditationPdfCanvas {
    transform: scale(var(--zoom-scale, 1));
    transform-origin: top center;
}

#accreditationPageIndicator {
    min-width: 80px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

#accreditationPdfViewer:not(.d-none) {
    animation: fadeIn 0.5s ease-out;
}

/* ===== PLEIN ÉCRAN ===== */
:fullscreen #accreditationPdfCanvas,
:-webkit-full-screen #accreditationPdfCanvas,
:-moz-full-screen #accreditationPdfCanvas,
:-ms-fullscreen #accreditationPdfCanvas {
    max-width: 95vw;
    max-height: 95vh;
    margin: auto;
    box-shadow: none;
}

@media (max-width: 768px) {
    #accreditationPageIndicator {
        min-width: 70px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    #accreditationPageIndicator {
        min-width: 60px;
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}

/* ===== MODE SOMBRE (optionnel) ===== */
@media (prefers-color-scheme: dark) {
    #accreditationPdfCanvas {
        background: white;
    }

    #accreditationPageIndicator {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
}