.catalogue-viewer-container {
    padding: 50px 0;
    background-color: white;
    color: #333;
}

.catalogue-viewer-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.catalogue-viewer-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.catalogue-cover-container {
    max-width: 800px;
    margin: 0 auto;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.catalogue-cover-container:hover {
    transform: translateY(-10px);
}

.catalogue-cover {
    width: 100%;
    height: auto;
    display: block;
}

.catalogue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.catalogue-cover-container:hover .catalogue-overlay {
    opacity: 1;
}

.view-catalogue-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.view-catalogue-btn:hover {
    background-color: #c00000;
    transform: scale(1.05);
}

.catalogue-info {
    margin-top: 30px;
    text-align: center;
}

.catalogue-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.download-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.download-btn:hover {
    background-color: #222;
    transform: translateY(-3px);
}

.download-btn i {
    margin-right: 10px;
}

/* Styles pour la visionneuse PDF en plein écran */
#catalogue-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#pdf-viewer {
    width: 90%;
    height: 80%;
    background-color: white;
    border-radius: 5px;
    overflow: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pdf-viewer canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    width: 90%;
}

.pdf-control-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-control-btn:hover {
    background-color: #c00000;
}

.pdf-control-btn i {
    margin-right: 5px;
}

#page-info {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    min-width: 120px;
    text-align: center;
}

#close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

#close-viewer:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.loading-message, .error-message {
    color: #333;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

.error-message {
    color: #e60000;
}

/* Zones tactiles pour la navigation sur mobile */
.touch-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 10;
    cursor: pointer;
}

.left-zone {
    left: 0;
}

.right-zone {
    right: 0;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .pdf-controls {
        flex-wrap: wrap;
    }
    
    .pdf-control-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    #pdf-viewer {
        height: 70%;
    }
}

@media (max-width: 576px) {
    .pdf-control-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    #page-info {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
