.file-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.file-header {
    padding: 1.5rem 0;
    border-bottom: 2px solid #10b981;
    margin-bottom: 0;
}

.file-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-count {
    font-size: 17px;
    color: #6b7280;
    font-weight: normal;
    margin-left: auto;
}

.file-list {
    background: white;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.file-item:hover {
    background: #f0fdf4;
}

.file-item:last-child {
    border-bottom: none;
}

.file-icon {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 17px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* Icônes avec couleurs spécifiques par type */
.file-icon.pdf { background: #ef4444; }
.file-icon.doc { background: #2563eb; }
.file-icon.docx { background: #2563eb; }
.file-icon.xls { background: #10b981; }
.file-icon.xlsx { background: #10b981; }
.file-icon.pptx { background: #ea580c; }
.file-icon.ppt { background: #ea580c; }
.file-icon.pptm { background: #ea580c; }
.file-icon.png { background: #7c3aed; }
.file-icon.jpg { background: #7c3aed; }
.file-icon.jpeg { background: #7c3aed; }
.file-icon.bmp { background: #7c3aed; }
.file-icon.avif { background: #7c3aed; }
.file-icon.zip { background: #6b7280; }
.file-icon.rar { background: #6b7280; }
.file-icon.tar { background: #6b7280; }
.file-icon.txt { background: #64748b; }
.file-icon.video { background: #dc2626; }
.file-icon.audio { background: #059669; }
.file-icon.code { background: #1e293b; }

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    word-break: break-word;
    font-size: 20px;
}

.file-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.file-size {
    font-weight: 500;
    color: #10b981;
    font-size: 15px;
}

.file-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 1;

}

/* CSS */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 1.2rem;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid #e2e8f0;
}

.download-btn:hover {
    background: #dcfce7;
    color: #059669;
    border-color: #a7f3d0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.15);
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Séparateurs de sections */
.section-separator {
    border-bottom: 1px solid #d1d5db;
    margin: 1rem 0;
    position: relative;
}

.section-separator::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background: #10b981;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0 0.5rem 0;
}

/* État vide sobre */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .file-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .file-item {
        padding: 0.75rem 0;
    }

    .file-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .file-actions {
        opacity: 1;
    }

    .action-btn {
        padding: 0.4rem;
    }
}
