/* documents.css */

/* Styles généraux */
.section {
    padding: 2rem 5%;
    background-color: #f9f9f9;
    min-height: 70vh;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #003366; /* bleu foncé */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Filtres */
.doc-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #006633; /* vert */
    background-color: transparent;
    color: #006633; /* vert */
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #006633; /* vert */
    color: white;
}

/* Grille de documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.doc-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #003366; /* bleu foncé */
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.doc-icon {
    margin-bottom: 1rem;
}

.doc-icon svg {
    width: 40px;
    height: 40px;
    fill: #CC0000; /* rouge */
}

.doc-info {
    flex-grow: 1;
}

.doc-info h3 {
    font-size: 1.2rem;
    color: #003366; /* bleu foncé */
    margin-bottom: 0.5rem;
}

.doc-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.doc-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Bouton de téléchargement */
.download-btn {
    display: inline-block;
    padding: 0.7rem 1rem;
    background-color: #FFD700; /* jaune */
    color: #003366; /* bleu foncé */
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #e6c200;
}

/* Styles pour les types de documents */
.doc-card[data-category="rapports"] {
    border-left-color: #003366; /* bleu foncé */
}

.doc-card[data-category="projets"] {
    border-left-color: #006633; /* vert */
}

.doc-card[data-category="statuts"] {
    border-left-color: #CC0000; /* rouge */
}

/* Icônes selon le type de fichier */
.doc-card[data-category="rapports"] .doc-icon svg {
    fill: #003366; /* bleu foncé */
}

.doc-card[data-category="projets"] .doc-icon svg {
    fill: #006633; /* vert */
}

.doc-card[data-category="statuts"] .doc-icon svg {
    fill: #CC0000; /* rouge */
}

/* Responsive */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }
    
    .doc-card {
        padding: 1rem;
    }
}