/* Styles pour les Documents Club */

.documents-section {
    padding: 4rem 5%;
    background: var(--light);
    min-height: 60vh;
}

.documents-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Barre de recherche */
.search-bar {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.2);
}

/* Barre de filtres */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Message vide */
.empty-message {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-message h3 {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-message p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Grille de documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Carte document */
.document-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
}

.document-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.document-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.document-badge {
    background: white;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.document-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.document-card-body h3 {
    font-family: 'Righteous', cursive;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.document-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.document-meta span {
    display: inline-block;
}

.document-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .filter-bar {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card-body {
        padding: 1rem;
    }
}