/*
 * Journal Plugin — liseuse PDF
 * Repris du thème Newspaper (fichier page-pdf-viewer.php) le 2026-11-13 : les mises à jour du thème ne l'effacent plus.
 * Seule différence : aucune (CSS sorti du modèle).
 */

/* =========================
   GLOBAL
========================= */

.modern-pdf-viewer{
    display:flex;
    justify-content:center;
    min-height:100vh;
    background:#222222;
    overflow:hidden;
    max-width:1068px;
    width:100%;
    margin: 12px auto 10px auto;
}

/* =========================
   SIDEBAR
========================= */

.pdf-sidebar{
    width:260px;
    min-width:260px;
    padding:40px 30px;
    background-color: #222222;
    border-right:1px solid rgba(255,255,255,0.06);
}

.pdf-logo-Viewer{
    width:110px;
    height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
    background-color:#bf2828;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:20px;
    backdrop-filter:blur(10px);
    text-align:center;
}

.pdf-logo-Viewer span{
    color:#fff;
    font-size:16px;
    font-weight:700;
    letter-spacing:1px;
}

.pdf-logo-Viewer strong{
    color:#000;
    font-size:16x;
    font-weight:700;
    letter-spacing:1px;
}

.pdf-meta{
    margin-top:40px;
}

/* =========================
   BADGE
========================= */

.pdf-badge{
    display:inline-flex;
    align-items:center;
    padding:8px 14px;
    border-radius:999px;
    background:#ffffff10;
    color:#cbd5e1;
    font-size:13px;
    font-weight:600;
    margin-bottom:20px;
}

/* =========================
   DESCRIPTION
========================= */

.pdf-meta p{
    margin:0;
    color:#94a3b8;
    line-height:1.7;
    font-size:15px;
}

/* =========================
   CONTENT
========================= */

.pdf-content{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
    background-color: #222222;
}

.pdf-frame-wrapper{
    width:100%;
    height:100%;
    min-height:calc(100vh - 60px);
    overflow:hidden;
    background:#222222;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.25);
}

.pdf-frame-wrapper iframe{
    width:100%;
    height:100%;
    min-height:calc(100vh - 60px);
    border:none;
}

/* =========================
   PDF ACTIONS - avec libellés
========================= */

.pdf-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
}

.btn-pdf-action {
    display: flex;
    gap: 10px;
    background-color: #222222;
    padding: 12px;
    float: right;
    border-radius: 10px;
    align-items: flex-start;
}

.pdf-action {
    display: flex;
    flex-direction: column;   
    align-items: center;
    justify-content: center;
    gap: 6px;                 
    min-width: 70px;          
    padding: 8px 4px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pdf-action svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #ffffff;
    transition: color 0.2s;
}

.pdf-action-label {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.pdf-action:hover {
    background-color: #333333;
    border-color: #444444;
    transform: translateY(-1px);
}

.pdf-action:hover .pdf-action-label {
    opacity: 1;
}

@media (max-width: 768px) {
    .btn-pdf-action {
        padding: 10px;
        gap: 8px;
    }
    .pdf-action {
        min-width: 60px;
        padding: 6px 2px;
        gap: 4px;
    }
    .pdf-action svg {
        width: 20px;
        height: 20px;
    }
    .pdf-action-label {
        font-size: 10px;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:980px){

    .modern-pdf-viewer{
        flex-direction:column;
    }

    .pdf-sidebar{
        width:100%;
        min-width:100%;
    }

    .pdf-content{
        padding:15px;
    }

    .pdf-frame-wrapper{
        width:100%;
        height:85vh;
        min-height:85vh;
    }

    .pdf-frame-wrapper iframe{
        width:100%;
        height:85vh;
    }
}
