/* Style de base pour le tableau public des fichiers */
.fm-files-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fm-files-table thead {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.fm-files-table thead th {
    padding: 0.85rem 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.fm-files-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.fm-files-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.fm-files-table tbody tr:hover {
    background: #eff6ff;
}

.fm-files-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #111827;
    border-top: 1px solid #e5e7eb;
}

.fm-files-table a.fm-download-link {
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    display: inline-block;
    border: 1px solid #2563eb;
    color: #2563eb;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fm-files-table a.fm-download-link:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

@media (max-width: 640px) {
    .fm-files-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .fm-files-table thead th,
    .fm-files-table td {
        padding: 0.6rem 0.75rem;
    }
}
