/* Style pour les cards PDF */
.pdf-card {
    width: 300px;
    height: 240px;
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.pdf-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-title {
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-footer {
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.pdf-btn {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-btn-view {
    background-color: #043f7a;
    color: white;
}

.pdf-btn-download {
    background-color: #28a745;
    color: white;
}

.pdf-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.pdf-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Animation retardée pour chaque carte */
.pdf-card:nth-child(1) { animation-delay: 0.1s; }
.pdf-card:nth-child(2) { animation-delay: 0.2s; }
.pdf-card:nth-child(3) { animation-delay: 0.3s; }
.pdf-card:nth-child(4) { animation-delay: 0.4s; }
.pdf-card:nth-child(5) { animation-delay: 0.5s; }
.pdf-card:nth-child(6) { animation-delay: 0.6s; }
.pdf-card:nth-child(7) { animation-delay: 0.7s; }
.pdf-card:nth-child(8) { animation-delay: 0.8s; }
.pdf-card:nth-child(9) { animation-delay: 0.9s; }
.pdf-card:nth-child(10) { animation-delay: 1.0s; }
.pdf-card:nth-child(11) { animation-delay: 1.1s; }
.pdf-card:nth-child(12) { animation-delay: 1.2s; }
.pdf-card:nth-child(13) { animation-delay: 1.3s; }
.pdf-card:nth-child(14) { animation-delay: 1.4s; }
.pdf-card:nth-child(15) { animation-delay: 1.5s; }
.pdf-card:nth-child(16) { animation-delay: 1.6s; }
.pdf-card:nth-child(17) { animation-delay: 1.7s; }
.pdf-card:nth-child(18) { animation-delay: 1.8s; }
.pdf-card:nth-child(19) { animation-delay: 1.9s; }
.pdf-card:nth-child(20) { animation-delay: 2.0s; }