/**
 * Styles pour le visualiseur d'articles
 */

.article-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.viewer-content {
    width: 90%;
    height: 90%;
    position: relative;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.viewer-header {
    background-color: #333;
    padding: 15px;
    display: flex;
    justify-content: flex-end;
}

.close-viewer {
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-viewer:hover {
    opacity: 1;
}

.viewer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.viewer-controls button {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

.viewer-controls button:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
}

/* Style pour les boutons désactivés */
.viewer-controls button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.viewer-controls button.disabled:hover {
    background-color: #ccc;
    transform: none;
}

.viewer-container {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    background-color: #f9f9f9;
}

#article-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center;
    margin: auto;
}

#article-pdf {
    width: 100%;
    height: 100%;
    border: none;
}

.viewer-footer {
    padding: 15px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-footer h3 {
    margin: 0;
    font-size: 16px;
    max-width: 70%;
}

#view-fullscreen {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#view-fullscreen:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Media queries pour la responsivité */
@media (max-width: 768px) {
    .viewer-content {
        width: 95%;
        height: 95%;
    }
    
    .viewer-controls {
        gap: 10px;
    }
    
    .viewer-controls button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .viewer-footer h3 {
        font-size: 14px;
        max-width: 60%;
    }
    
    #view-fullscreen {
        font-size: 12px;
    }
} 