/* ============================ MarkitDown — Style Palette : blanc/gris + violet #7C3AED ============================ */ /* Reset & base */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; -webkit-font-smoothing: antialiased; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f5f5; color: #1a1a1a; min-height: 100vh; } /* Conteneur principal */ .app-container { max-width: 900px; margin: 0 auto; padding: 1.5rem; min-height: 100vh; display: flex; flex-direction: column; } /* Header */ .app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; } .app-title { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; letter-spacing: -0.02em; } /* Upload zone */ .upload-section { margin-bottom: 1.5rem; } .upload-zone { border: 2px dashed #ccc; border-radius: 12px; padding: 3rem 2rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: #fff; } .upload-zone:hover, .upload-zone.drag-over { border-color: #7C3AED; background: #faf5ff; } .upload-icon { font-size: 2.5rem; margin-bottom: 0.5rem; } .upload-text { font-size: 1.1rem; font-weight: 600; color: #333; } .upload-subtext { font-size: 0.875rem; color: #888; margin-top: 0.25rem; } .file-input { display: none; } .upload-status { margin-top: 0.75rem; font-size: 0.875rem; color: #666; } .upload-status.error { color: #dc2626; } .upload-status.success { color: #16a34a; } /* Filtres */ .filter-section { background: #fff; border-radius: 12px; border: 1px solid #e5e5e5; padding: 1rem 1.25rem; margin-bottom: 1.5rem; } .filter-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; } .filter-title { font-size: 0.95rem; font-weight: 600; color: #333; } .filter-actions { display: flex; gap: 0.75rem; } .btn-link { background: transparent; border: none; color: #7C3AED; font-size: 0.8rem; cursor: pointer; text-decoration: underline; } .btn-link:hover { color: #6d28d9; } .filter-checkboxes { display: flex; flex-wrap: wrap; gap: 1rem; } .filter-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; color: #444; cursor: pointer; user-select: none; } .filter-checkbox { cursor: pointer; accent-color: #7C3AED; } /* Résultats multi-fichiers */ .result-section { background: #fff; border-radius: 12px; border: 1px solid #e5e5e5; overflow: hidden; margin-bottom: 1.5rem; } .result-section.hidden { display: none; } .result-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e5e5; background: #fafafa; } .result-filename { font-weight: 600; font-size: 0.9rem; color: #333; } .result-actions-header { display: flex; gap: 0.5rem; } /* Liste de résultats */ .result-list { display: flex; flex-direction: column; } /* Item de résultat (accordéon) */ .result-item { border-bottom: 1px solid #e5e5e5; } .result-item:last-child { border-bottom: none; } .result-item-header { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.25rem; cursor: pointer; transition: background 0.15s; user-select: none; } .result-item-header:hover { background: #f5f5f5; } .result-item-filename { font-weight: 600; font-size: 0.875rem; color: #333; } .result-item-filename .file-size { font-weight: 400; font-size: 0.75rem; color: #888; margin-left: 0.5rem; } .collapse-icon { font-size: 0.75rem; color: #888; transition: transform 0.2s; } .collapse-icon.collapsed { transform: rotate(-90deg); } /* Corps d'un item (rétractable) */ .result-item-body { padding: 0 1.25rem 1rem; } .result-item-body.hidden { display: none; } /* Onglets par item */ .result-item-tabs { display: flex; gap: 0.25rem; margin-bottom: 0.75rem; } .tab-button { padding: 0.35rem 0.75rem; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 0.78rem; cursor: pointer; color: #666; transition: all 0.15s; } .tab-button:hover { background: #f0f0f0; color: #333; } .tab-button.active { background: #7C3AED; color: #fff; border-color: #7C3AED; } .result-body-content { min-height: 120px; max-height: 400px; overflow-y: auto; border: 1px solid #eee; border-radius: 8px; padding: 1rem; background: #fcfcfc; } .tab-content { display: none; } .tab-content.active { display: block; } /* Actions par item */ .result-item-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; } .btn-small { padding: 0.4rem 0.9rem; border: none; border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s; } .btn-small:active { transform: scale(0.97); } .btn-small.btn-primary { background: #7C3AED; color: #fff; } .btn-small.btn-primary:hover { background: #6d28d9; } .btn-small.btn-secondary { background: #f0f0f0; color: #333; } .btn-small.btn-secondary:hover { background: #e5e5e5; } .rendered-preview h1, .rendered-preview h2, .rendered-preview h3, .rendered-preview h4 { margin: 1em 0 0.5em; line-height: 1.3; } .rendered-preview p { margin: 0.5em 0; line-height: 1.6; } .rendered-preview code { background: #f0f0f0; padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.875em; } .rendered-preview pre { background: #f5f5f5; padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 0.75em 0; } .rendered-preview pre code { background: none; padding: 0; } .rendered-preview ul, .rendered-preview ol { padding-left: 1.5em; margin: 0.5em 0; } .rendered-preview img { max-width: 100%; border-radius: 6px; } .raw-preview { font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace; font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; color: #333; } /* Actions */ .result-actions { display: flex; gap: 0.75rem; padding: 1rem 1.25rem; border-top: 1px solid #e5e5e5; } /* Boutons */ .btn { padding: 0.6rem 1.25rem; border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s; } .btn:active { transform: scale(0.97); } .btn-primary { background: #7C3AED; color: #fff; } .btn-primary:hover { background: #6d28d9; } .btn-secondary { background: #f0f0f0; color: #333; } .btn-secondary:hover { background: #e5e5e5; } .btn-ghost { background: transparent; color: #666; font-size: 0.85rem; padding: 0.4rem 0.85rem; border: 1px solid #ddd; border-radius: 6px; } .btn-ghost:hover { background: #f0f0f0; color: #333; } .btn-danger-small { background: transparent; color: #dc2626; font-size: 0.75rem; border: 1px solid #fca5a5; border-radius: 6px; padding: 0.3rem 0.7rem; cursor: pointer; } .btn-danger-small:hover { background: #fef2f2; } /* Historique */ .history-panel { background: #fff; border-radius: 12px; border: 1px solid #e5e5e5; overflow: hidden; } .history-panel.hidden { display: none; } .history-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e5e5; background: #fafafa; } .history-header h2 { font-size: 1rem; font-weight: 600; } .history-list { padding: 0.5rem 0; } .history-empty { padding: 1.5rem 1.25rem; text-align: center; color: #888; font-size: 0.875rem; } .history-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; border-bottom: 1px solid #f0f0f0; transition: background 0.1s; } .history-item:last-child { border-bottom: none; } .history-item:hover { background: #fafafa; } .history-item-info { flex: 1; min-width: 0; } .history-item-name { font-weight: 500; font-size: 0.875rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .history-item-date { font-size: 0.75rem; color: #888; margin-top: 0.15rem; } .history-item-actions { display: flex; gap: 0.5rem; flex-shrink: 0; } .btn-icon { background: transparent; border: 1px solid #ddd; border-radius: 6px; padding: 0.35rem 0.6rem; font-size: 0.8rem; cursor: pointer; color: #555; transition: background 0.15s; } .btn-icon:hover { background: #f0f0f0; color: #333; } /* Notification toast */ .toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #fff; padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.85rem; z-index: 1000; opacity: 0; transition: opacity 0.25s; pointer-events: none; } .toast.visible { opacity: 1; } /* Responsive */ @media (max-width: 800px) { .app-container { padding: 1rem; } .result-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .result-actions { flex-direction: column; } .history-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; } }