/* PDF Library Display - Styles */

.pdf-library-wrapper {
    margin: 2rem 0;
}

/* Header avec compteur */
.pdf-library-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pdf-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease;
}

.pdf-counter .emoji {
    font-size: 1.8rem;
}

/* Grille des PDFs */
.pdf-grid {
    display: grid;
    gap: 2rem;
}

/* Card PDF */
.pdf-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pdf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Badge PDF */
.pdf-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Icône PDF */
.pdf-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

/* Titre du PDF */
.pdf-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
    line-height: 1.4;
    word-wrap: break-word;
    flex-grow: 1;
    min-height: 2.8rem;
}

/* Métadonnées */
.pdf-meta {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 2px solid #f3f4f6;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-item .icon {
    font-size: 1.1rem;
}

.meta-item .value {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

/* Boutons d'action */
.pdf-actions {
    display: flex;
    gap: 0.75rem;
}

.pdf-actions a {
    flex: 1;
    text-align: center;
    padding: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-view {
    background: #f3f4f6;
    color: #374151;
}

.btn-view:hover {
    transform: scale(1.02);
}

.btn-download {
    flex: 1.5;
    color: white;
}

.btn-download:hover {
    transform: scale(1.05);
}

.btn-download:active {
    transform: scale(0.98);
}

/* État vide */
.pdf-library-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 16px;
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pdf-library-empty h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.pdf-library-empty p {
    color: #6b7280;
    font-size: 1rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .pdf-counter {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pdf-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
