/* ═══════════════════════════════════════════════════════════ FlowDeck Notion UI — Design System Référence: Notion Light Mode (par défaut) ═══════════════════════════════════════════════════════════ */ /* Inter auto-hébergé — remplace l'@import Google Fonts que la CSP bloque (style-src sans fonts.googleapis depuis v7.27). Police variable v20 : une face par sous-ensemble, font-weight 100-900. */ @font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/static/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; } @font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/static/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* ===== LIGHT THEME (default) ===== */ :root { --bg-primary: #FFFFFF; --bg-secondary: #FBFBFA; --bg-sidebar: #F7F6F3; --bg-tertiary: #EDEDEC; --bg-hover: #EFEFED; --bg-active: #E8E7E4; --bg-modal: #FFFFFF; --text-primary: #37352F; --text-secondary: #6B6B6B; --text-dim: #9B9A97; --text-muted: #B0B0B0; --text: #37352F; --border: #EDEDED; --border-color: rgba(0,0,0,0.06); --border-light: #EDEDEC; --border-strong: #D3D3D0; /* ===== Couleurs d'accent Notion ===== */ --accent: #2383E2; --accent-hover: #1a6bc0; --danger: #E03E3E; --danger-hover: #C93535; --blue: #3366CC; --blue-bg: #E8F0FE; --green: #00CC66; --green-bg: #E6F4EA; --yellow: #FFD700; --orange: #D9730D; --red: #E03E3E; --purple: #9B72F0; --pink: #E255A1; --gray: #787774; --brown: #9D6E4A; /* ===== Typographie ===== */ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-mono: 'SF Mono', 'Fira Code', monospace; --font-h1: 40px; --font-h2: 30px; --font-h3: 24px; --font-body: 16px; --font-small: 14px; --font-tiny: 12px; /* ===== Dimensions ===== */ --sidebar-width: 240px; --sidebar-collapsed: 0px; --topbar-height: 45px; --radius-sm: 3px; --radius-md: 4px; --radius-lg: 6px; --radius: 6px; /* ===== Espacements ===== */ --space-xs: 4px; --space-sm: 8px; --space-md: 12px; --space-lg: 16px; --space-xl: 24px; /* ===== Ombres ===== */ --shadow-popover: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.08); --shadow-modal: 0 12px 32px rgba(0,0,0,0.12); --shadow-drag: 0 8px 24px rgba(0,0,0,0.12); /* ===== Transitions ===== */ --transition: 0.1s ease; --transition-slow: 0.2s ease; /* ===== Toast colors ===== */ --toast-success-bg: #0F7B6C; --toast-success-text: #FFFFFF; --toast-error-bg: #E03E3E; --toast-error-text: #FFFFFF; --toast-info-bg: #2383E2; --toast-info-text: #FFFFFF; } /* ===== DARK THEME ===== */ [data-theme="dark"] { --bg-primary: #191919; --bg-secondary: #1F1F1F; --bg-sidebar: #202020; --bg-tertiary: #2D2D2D; --bg-hover: #2A2A2A; --bg-active: #2F2E2E; --bg-modal: #252525; --text-primary: #FFFFFF; --text-secondary: #A0A0A0; --text-dim: #6B6B6B; --text-muted: #4A4A4A; --text: #FFFFFF; --border: #333333; --border-color: rgba(255,255,255,0.06); --border-light: #3a3a3a; --border-strong: #4A4A4A; --blue-bg: #1a2744; --green-bg: #1a332a; } /* ===== Reset & Base ===== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body { height: 100%; overflow: hidden; font-family: var(--font-sans); font-size: 14px; color: var(--text-primary); background: var(--bg-primary); -webkit-font-smoothing: antialiased; } a { color: inherit; text-decoration: none; } button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; } input, select, textarea { font-family: inherit; color: inherit; } /* ===== Layout Principal ===== */ .app-layout { display: flex; height: 100vh; width: 100vw; } /* ═══════════════════════════════════════════════════════════ SIDEBAR ═══════════════════════════════════════════════════════════ */ .sidebar { position: relative; width: var(--sidebar-width); min-width: var(--sidebar-width); height: 100vh; background: var(--bg-sidebar); display: flex; flex-direction: column; overflow: visible; flex-shrink: 0; user-select: none; border-right: 1px solid var(--border); } .sidebar-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: var(--space-sm); } /* ── Hidden state: flush collapse, no separator ── */ .sidebar.collapsed { width: 0; min-width: 0; overflow: hidden; padding: 0; border-right: none; } /* ── Notion-style collapsed peek (hover the left edge) ── Floating card: inset from the screen, rounded corners, right shadow. */ .sidebar-peek-zone { position: fixed; top: 0; left: 0; bottom: 0; width: 8px; z-index: 1000; } .sidebar.peeking { position: fixed; top: 18px; left: 0; bottom: 18px; height: auto; width: var(--sidebar-width); min-width: var(--sidebar-width); max-width: calc(100vw - 16px); z-index: 1001; border-right: none; border-radius: 14px 20px 20px 14px; overflow: hidden; box-shadow: 8px 0 26px rgba(0, 0, 0, .16), 0 4px 16px rgba(0, 0, 0, .10); animation: fd-sidebar-peek-in .16s ease-out; } /* ── Right-edge resize handle (fixed + floating) ── */ .sidebar-resize-handle { position: absolute; top: 0; right: 0; bottom: 0; width: 6px; z-index: 40; cursor: col-resize; } .sidebar-resize-handle::before { content: ""; position: absolute; top: 0; bottom: 0; right: 2px; width: 2px; background: transparent; border-radius: 2px; transition: background .12s ease; } .sidebar-resize-handle:hover::before, body.fd-sidebar-resizing .sidebar-resize-handle::before { background: var(--accent); } body.fd-sidebar-resizing { cursor: col-resize !important; user-select: none; } body.fd-sidebar-resizing * { cursor: col-resize !important; } /* ── Resize / close contextual tooltip ── */ .sidebar-resize-tip { position: fixed; top: 50%; transform: translateY(-50%); z-index: 1200; min-width: 200px; padding: 8px 10px; background: var(--bg-primary); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-modal); pointer-events: none; font-size: 12px; line-height: 1.5; } .srt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 0; } .srt-key { color: var(--text); font-weight: 600; } .srt-action { color: var(--text-dim); white-space: nowrap; } .srt-kbd { display: inline-block; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; font-size: 10px; color: var(--text-secondary); } /* Statusbar follows the hidden sidebar */ html.fd-sidebar-collapsed .editor-statusbar { left: 0; } @keyframes fd-sidebar-peek-in { from { transform: translateX(-100%); } to { transform: translateX(0); } } /* Workspace header — Notion style */ .sidebar-workspace-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; margin: 4px 8px; border-radius: 6px; cursor: pointer; transition: background 150ms; min-height: 32px; position: relative; } .sidebar-workspace-header:hover, .sidebar-workspace-header.hover { background: var(--bg-hover); } .sidebar-collapse-inline { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 4px; color: var(--text-dim); cursor: pointer; flex-shrink: 0; opacity: 0; transition: opacity 150ms; } .sidebar-workspace-header:hover .sidebar-collapse-inline, .sidebar-workspace-header.hover .sidebar-collapse-inline { opacity: 1; } /* Floating state: the pin (>>) stays visible so it is easy to lock open */ .sidebar.peeking .sidebar-collapse-inline { opacity: 1; } .sidebar-collapse-inline:hover { background: var(--bg-active); color: var(--text); } .sidebar-workspace { /* keep for backward compat */ display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm) var(--space-md); min-height: var(--topbar-height); } .workspace-info { display: flex; align-items: center; gap: var(--space-sm); } .workspace-avatar { width: 22px; height: 22px; background: var(--bg-tertiary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-primary); } .workspace-name { font-size: 14px; font-weight: 600; color: var(--text-primary); } .workspace-chevron { font-size: 10px; color: var(--text-dim); transition: transform 0.2s ease; } .workspace-chevron.open { transform: rotate(180deg); } /* User menu dropdown */ .user-menu-dropdown { position: absolute; top: 100%; left: 8px; right: 8px; margin-top: 4px; background: var(--bg-primary); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-modal); z-index: 400; padding: 4px 0; overflow: hidden; } .um-user-info { display: flex; align-items: center; gap: 10px; padding: 10px 14px; } .um-avatar { width: 28px; height: 28px; background: var(--bg-tertiary); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--text); flex-shrink: 0; } .um-name { font-size: 14px; font-weight: 600; color: var(--text); } .um-plan { font-size: 12px; color: var(--text-dim); margin-top: 1px; } .um-sep { height: 1px; background: var(--border); margin: 3px 0; } .um-item { display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 13px; color: var(--text); text-decoration: none; cursor: pointer; transition: background 100ms; } .um-item svg { flex-shrink: 0; } .um-item:hover { background: var(--bg-hover); } .um-danger { color: var(--danger); } .um-danger:hover { background: rgba(255,80,80,.1); } .um-version { font-size: 11px; color: var(--text-dim); padding: 4px 14px 2px; } .um-section-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; padding: 4px 14px 2px; } /* Navigation items */ .sidebar-nav { display: flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-md); margin-bottom: var(--space-xs); } .sidebar-nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; } /* Navigation icon row (Notion top bar) */ .sidebar-nav-row { display: flex; align-items: center; gap: 3px; padding: 6px 6px; margin: 0 2px; } .nav-icon-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; color: var(--text-secondary); transition: background 0.15s, color 0.15s; border: none; background: none; cursor: pointer; font-family: inherit; text-decoration: none; } .nav-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); } .nav-icon-btn.active { background: var(--bg-active); color: var(--text-primary); } /* Home button: icon + text */ .nav-icon-btn.home-btn { padding: 6px 8px; gap: 8px; font-size: 14px; font-weight: 500; } /* Collapse button on the right */ .nav-icon-btn.collapse-btn { margin-left: auto; } /* ── Collapsible tabs (Home / Chat / Meeting / Inbox) ── The active tab expands into a pill showing icon + label, the inactive ones collapse to the bare icon so the row stays compact. */ .nav-tab-btn { gap: 0; padding: 6px; min-width: 30px; justify-content: center; border-radius: 15px; font-size: 13px; font-weight: 500; white-space: nowrap; flex-shrink: 0; } .nav-tab-btn .nav-tab-label { display: none; max-width: 110px; overflow: hidden; text-overflow: ellipsis; } .nav-tab-btn.active { background: var(--bg-active); color: var(--text-primary); gap: 7px; padding: 6px 12px 6px 10px; } .nav-tab-btn.active .nav-tab-label { display: inline-block; } .nav-tab-badge { position: absolute; top: -1px; right: -1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--text-dim); color: var(--bg-primary); font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; } .nav-tab-badge-accent { background: #E03E3E; color: #fff; } .nav-tab-btn.active .nav-tab-badge { display: none; } /* Tab panels — one replaces the whole sidebar content at a time */ .sidebar-tab-panel { display: flex; flex-direction: column; gap: 2px; } .sb-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px; } .sb-panel-title { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; } .sb-panel-count { color: var(--text-secondary); font-weight: 600; } .sb-panel-action { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border: none; border-radius: 5px; background: none; color: var(--text-secondary); font-size: 11px; cursor: pointer; } .sb-panel-action:hover { background: var(--bg-hover); color: var(--text-primary); } .sb-filter-row { display: flex; gap: 4px; padding: 2px 8px 6px; } .sb-filter-chip { padding: 3px 10px; border: 1px solid var(--border); border-radius: 12px; background: none; color: var(--text-secondary); font-size: 11px; cursor: pointer; } .sb-filter-chip.active { background: var(--bg-active); color: var(--text-primary); border-color: transparent; } .sb-quick-actions { display: flex; flex-direction: column; gap: 2px; padding: 2px 6px 8px; } .sb-quick-btn { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: none; border-radius: 6px; background: none; color: var(--text-secondary); font-size: 12px; text-align: left; cursor: pointer; } .sb-quick-btn:hover { background: var(--bg-hover); color: var(--text-primary); } .sb-hidden-input { display: none; } .sb-agent-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; } .sb-agent-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-hover); cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; } .sb-agent-avatar:hover { border-color: var(--accent); } .sb-item-meta { margin-left: auto; font-size: 11px; color: var(--text-dim); flex-shrink: 0; } .sb-item-sub { display: block; font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sb-item-unread { background: rgba(35, 131, 226, .10); } /* Empty hint */ .sidebar-item.empty-hint { color: var(--text-dim); font-size: 12px; cursor: default; } .sidebar-item.empty-hint:hover { background: none; } .sidebar-item.empty-hint .page-name { font-size: 12px; } /* Shared subgroups (Par moi / Avec moi) */ .sidebar-subgroup { padding-top: 2px; } .sidebar-subgroup + .sidebar-subgroup { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); } .sidebar-subgroup-label { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); } /* Sections */ .sidebar-section { padding: var(--space-xs) var(--space-md); } .sidebar-section-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); user-select: none; } .sidebar-section-header:hover { background: var(--bg-hover); } .sidebar-section-header:active { background: var(--bg-active); transform: scale(0.995); } .sidebar-section-title { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: none; letter-spacing: 0; min-width: 0; } .sidebar-section-title .chevron { font-size: 8px; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); transition: transform 180ms ease, color var(--transition); will-change: transform; } .sidebar-section-title .chevron.open { transform: rotate(90deg); color: var(--text-secondary); } .sidebar-section-title .section-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); transition: color var(--transition); } .sidebar-section-header:hover .section-icon { color: var(--text-secondary); } .sidebar-section-title .section-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); transition: color var(--transition); } .sidebar-section-header:hover .section-label { color: var(--text-secondary); } .sidebar-section-actions { display: flex; align-items: center; gap: 1px; opacity: 0; transition: opacity 120ms ease; } .sidebar-section-header:hover .sidebar-section-actions { opacity: 1; } .section-action-btn { width: 22px; height: 22px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; background: none; border: none; cursor: pointer; transition: background var(--transition), color var(--transition); } .section-action-btn:hover { background: var(--bg-tertiary); color: var(--text); } /* Section menu (⋮) button */ .section-menu-btn { font-size: 16px; font-weight: 700; letter-spacing: 1px; opacity: 0.6; } .section-menu-btn:hover { opacity: 1; } /* Section menu dropdown */ .section-menu-overlay { position: fixed; inset: 0; z-index: 999; } .section-menu { position: fixed; z-index: 1000; min-width: 200px; background: var(--bg-modal); border: 1px solid var(--border); border-radius: 8px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.15); } .section-menu-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; color: var(--text); transition: background 120ms; } .section-menu-item:hover { background: var(--bg-hover); } .section-menu-item .smi-icon { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; } .section-menu-item .smi-label { flex: 1; } .section-menu-item .smi-check { color: var(--accent); font-size: 14px; } .section-menu-sep { height: 1px; background: var(--border); margin: 4px 8px; } .section-menu-customize { border-top: 1px solid var(--border); margin-top: 2px; padding-top: 8px; } /* Customize Sidebar Panel */ .sidebar-customize-panel { padding: 8px 12px; } .scp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 4px 0; } .scp-title { font-size: 14px; font-weight: 600; color: var(--text); } .scp-done { font-size: 13px; color: var(--accent); background: none; border: none; cursor: pointer; padding: 4px 12px; border-radius: 6px; transition: background 120ms; font-weight: 500; } .scp-done:hover { background: var(--bg-hover); } .scp-list { display: flex; flex-direction: column; gap: 1px; } .scp-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 6px; cursor: pointer; transition: background 120ms; } .scp-item:hover { background: var(--bg-hover); } .scp-item-left { display: flex; align-items: center; gap: 8px; } .scp-item-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; } .scp-item-name { font-size: 13px; color: var(--text); } .scp-item-eye { font-size: 16px; opacity: 0.7; } .scp-item-eye-off { opacity: 0.3; } .customize-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 998; } /* x-cloak for Alpine.js */ [x-cloak] { display: none !important; } /* Sidebar items (pages) */ .sidebar-items { list-style: none; } .sidebar-item { position: relative; display: flex; align-items: center; gap: 4px; padding: 2px 4px; padding-left: 4px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-primary); cursor: pointer; transition: background var(--transition); min-height: 24px; } .sidebar-item:hover { background: var(--bg-hover); } /* Shared badge — black & white (grayscale) */ .page-shared-badge { flex-shrink: 0; margin-right: 2px; font-size: 11px; line-height: 1; filter: grayscale(1) brightness(1.6); } .sidebar-item.active { background: var(--bg-active); } /* Tree toggle button (▶/▼ chevron) */ .tree-toggle { width: 18px; height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 9px; flex-shrink: 0; transition: transform 0.15s ease, background var(--transition); padding: 0; margin: 0; background: none; border: none; } .tree-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); } .tree-toggle.expanded { transform: rotate(90deg); } .tree-toggle-placeholder { width: 18px; height: 18px; flex-shrink: 0; } /* Tree children wrapper */ .tree-children-wrapper { list-style: none; } .tree-children-wrapper .sidebar-items { padding-left: 0; } .sidebar-item .page-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; cursor: grab; } /* Outline SVG icons (from _icons.html / getSvgIcon) */ .page-icon-svg { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex-shrink: 0; } .page-icon-svg svg { vertical-align: middle; } .nav-icon-inline { margin-right: 6px; vertical-align: middle; display: inline-flex; align-items: center; } .nav-icon-inline svg { vertical-align: middle; } .sidebar-item:active .page-icon { cursor: grabbing; } .sidebar-item .page-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); text-decoration: none; font-size: 13px; } /* Tree chevron for expand/collapse */ .tree-chevron { width: 16px; height: 16px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 8px; padding: 0; border-radius: 3px; transition: transform 150ms, color 100ms; } .tree-chevron:hover { color: var(--text); background: var(--bg-hover); } .tree-chevron.open { transform: rotate(90deg); } /* Folder link styling */ .tree-folder-link { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); font-size: 13px; cursor: pointer; font-weight: 500; } .tree-folder-link:hover { color: var(--accent); } .sidebar-item .item-actions { display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity var(--transition); } .sidebar-item:hover .item-actions { opacity: 1; } .item-action-btn { width: 22px; height: 22px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; transition: background var(--transition); } .item-action-btn:hover { background: var(--bg-tertiary); } /* Sidebar footer */ .sidebar-footer { margin-top: auto; padding: var(--space-sm) var(--space-md); } .sidebar-new-chat .shortcut { font-size: 12px; color: var(--text-secondary); } /* ═══════════════════════════════════════════════════════════ CONTEXT MENU ═══════════════════════════════════════════════════════════ */ .context-menu { position: fixed; background: var(--bg-modal); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.4); width: max-content; max-width: 240px; padding: var(--space-xs) 0; z-index: 1000; display: none; } .context-menu.visible { display: block; } .context-menu-section { padding: 2px 0; } .context-menu-section + .context-menu-section { border-top: 1px solid var(--border); } .context-menu-item { display: flex; align-items: center; gap: var(--space-sm); padding: 6px var(--space-md); font-size: 13px; color: var(--text-primary); cursor: pointer; transition: background var(--transition); white-space: nowrap; } .context-menu-item:hover { background: var(--bg-hover); } .context-menu-item .menu-icon { width: 18px; text-align: center; font-size: 14px; } .context-menu-item .menu-shortcut { margin-left: auto; color: var(--text-dim); font-size: 12px; } .context-menu-label { padding: 4px var(--space-md); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; } /* ═══════════════════════════════════════════════════════════ TOOLTIP ═══════════════════════════════════════════════════════════ */ .tooltip { position: fixed; background: var(--bg-modal); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 4px 8px; font-size: 12px; color: var(--text-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 2000; pointer-events: none; display: none; white-space: nowrap; } /* ═══════════════════════════════════════════════════════════ MAIN CONTENT ═══════════════════════════════════════════════════════════ */ .main-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; } /* Conteneur standard des pages listes (Library, Trash, …) — largeur unique 1100px, centrée. Défini ici (global) et non dans le