.pvcm-open-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.pvcm-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); /* modale noire */
    z-index: 99999;
    justify-content: center;
    align-items: center;
}
.pvcm-modal-overlay.active { display: flex; }

.pvcm-modal-window {
    width: 70vw;   /* 70% de large */
    height: 100vh; /* 100% de hauteur */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pvcm-modal-close {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    margin: 12px auto;
    display: block; /* centré horizontalement */
}

.pvcm-modal-frame {
    background: #fff; /* cadre blanc */
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

.pvcm-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 8px;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}
.pvcm-toolbar button {
    padding: 6px 14px;
    cursor: pointer;
}

.pvcm-pdf-container {
    flex: 1;
    overflow: auto;   /* scrolls quand le PDF dépasse */
    background: #eee;
    display: flex;
    justify-content: center;
    cursor: grab;
    touch-action: none; /* on gère nous-mêmes le pan/pinch tactile */
}

#pvcm-pdf-canvas {
    display: block;
    margin: auto;
}
.pvcm-pages-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.pvcm-pages-wrapper canvas {
    display: block;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
