#pdf-viewer-container {
    text-align: center;
    margin: 20px auto;
    max-width: 900px;
    padding: 20px;
    background: #FFF7E6;
    border: 4px solid #FF6F00;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Conteneur du livre pour éviter le dépassement */
#pdf-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    background: white;
    border: 4px solid #66C3B8; /* Remplace l'orange par la couleur des boutons */
    border-radius: 10px;
    padding: 10px;
}

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

/* Miniatures plus grandes et mieux alignées */
#pdf-thumbnails {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px;
    background: #FFF3E0;
    border-radius: 8px;
    width: 90%;
}

/* Effet de transition pour les miniatures */
.thumbnail {
    display: block;
    border: 3px solid transparent;
    transition: border-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
    max-width: 100%;
    height: auto;
}

/* Miniature sélectionnée avec effet animé */
.thumbnail.selected {
    border-color: #66C3B8 !important; /* Nouvelle couleur */
    transform: scale(1.1); /* Effet de zoom subtil */
    box-shadow: 0px 0px 8px rgba(102, 195, 184, 0.6); /* Effet lumineux */
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.thumbnail:hover, .thumbnail.selected {
    border-color: #FF6F00;
    transform: scale(1.1);
}

/* Navigation adaptée */
#pdf-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    margin: 15px 0;
}

/* Boutons plus adaptés */
button {
    padding: 12px 18px;
    cursor: pointer;
    background: #FF6F00;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

button:hover {
    background: #E65C00;
}

#page-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 111, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    display: none;
    z-index: 1000;
    animation: fadeInOut 1s infinite alternate;
}

/* Animation fluide */
@keyframes fadeInOut {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 1;
    }
}

#thumbnail-loading-indicator {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #FF6F00;
    padding: 10px;
    display: none;
    animation: fadeInOut 1s infinite alternate;
}

/* Effet de transition sur les miniatures */
.thumbnail {
    display: block;
    border: 3px solid transparent;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
    max-width: 100%;
    height: auto; /* Permet de garder le ratio naturel */
}

.thumbnail.loaded {
    opacity: 1;
    transform: scale(1);
    border-color: #FF6F00;
}

/* Conteneur du texte et des points animés */
.loading-text {
    display: flex;
    align-items: center;
    gap: 5px; /* Espacement entre le texte et les points */
}

/* Styles des points */
.loading-text span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

/* Dégradé des couleurs */
.loading-text .dot1 {
    background-color: red;
    animation-delay: 0s;
}
.loading-text .dot2 {
    background-color: green;
    animation-delay: 0.3s;
}
.loading-text .dot3 {
    background-color: blue;
    animation-delay: 0.6s;
}

/* Animation des points */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

button#print-pdf {
    padding: 12px 18px;
    cursor: pointer;
    background: #66C3B8;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 20px; /* Ajoute un espace entre le bouton et le cadre PDF */
}


#print-loading-indicator {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #0073aa;
    padding: 10px;
    display: none;
    animation: fadeInOut 1s infinite alternate;
}

/* Points animés */
#print-loading-indicator .dot1, 
#print-loading-indicator .dot2, 
#print-loading-indicator .dot3 {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

#print-loading-indicator .dot1 {
    background-color: red;
    animation-delay: 0s;
}
#print-loading-indicator .dot2 {
    background-color: green;
    animation-delay: 0.3s;
}
#print-loading-indicator .dot3 {
    background-color: blue;
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}


