/* ─── Heimdall — Global Styles ────────────────────────────────── */ /* Monochrome theme · Dark/Light · Font Awesome */ /* ═══════════════════════════════════════════════════════════════════ CSS Custom Properties — switched by .mud-theme-dark on ═══════════════════════════════════════════════════════════════════ */ html { /* ── Surfaces & backgrounds ── */ --bg-app: #FAFAFA; --bg-surface: #FFFFFF; --bg-card: #FFFFFF; --bg-input: #F8F8F8; --bg-hover: rgba(0, 0, 0, 0.04); --bg-active: rgba(0, 0, 0, 0.06); /* ── Text ── */ --text-primary: #111111; --text-secondary: #555555; --text-tertiary: #888888; --text-disabled: #A3A3A3; --text-inverse: #FFFFFF; /* ── Borders ── */ --border-color: #E5E5E5; --border-light: #F0F0F0; --border-input: #D4D4D4; /* ── Shadows ── */ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04); --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* ── Scrollbar ── */ --scrollbar-thumb: #C4C4C4; --scrollbar-thumb-hover: #A0A0A0; --scrollbar-track: transparent; /* ── Auth page (light defaults) ── */ --auth-bg-start: #0A0A0A; --auth-bg-mid: #1A1A1A; --auth-bg-end: #0A0A0A; --auth-primary: #111111; --auth-primary-rgb: 17, 17, 17; --auth-primary-hover: #000000; --auth-accent: #333333; --auth-bg-card: rgba(255, 255, 255, 0.98); --auth-text-heading: #111111; --auth-text-body: #555555; --auth-text-link: #111111; --auth-text-link-hover: #000000; --auth-border: #E5E5E5; --auth-bg-input: #F8F8F8; --auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25); --auth-border-card: rgba(0, 0, 0, 0.06); --auth-accent-circle: rgba(17, 17, 17, 0.06); /* ── Blazor error ── */ --error-bg: #FFF8E1; --error-text: #8D6E00; } /* ═══════════════════════════════════════════════════════════════════ Dark mode — MudBlazor adds .mud-theme-dark to ═══════════════════════════════════════════════════════════════════ */ html.mud-theme-dark { --bg-app: #0A0A0A; --bg-surface: #1A1A1A; --bg-card: #1A1A1A; --bg-input: #222222; --bg-hover: rgba(255, 255, 255, 0.04); --bg-active: rgba(255, 255, 255, 0.06); --text-primary: #F5F5F5; --text-secondary: #A3A3A3; --text-tertiary: #777777; --text-disabled: #555555; --text-inverse: #000000; --border-color: #333333; --border-light: #2A2A2A; --border-input: #444444; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3); --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5); --scrollbar-thumb: #555555; --scrollbar-thumb-hover: #777777; --scrollbar-track: transparent; --auth-primary: #FFFFFF; --auth-primary-rgb: 255, 255, 255; --auth-primary-hover: #E5E5E5; --auth-accent: #CCCCCC; --auth-bg-card: rgba(26, 26, 26, 0.98); --auth-text-heading: #F5F5F5; --auth-text-body: #A3A3A3; --auth-text-link: #FFFFFF; --auth-text-link-hover: #CCCCCC; --auth-border: #333333; --auth-bg-input: #222222; --auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.6); --auth-border-card: rgba(255, 255, 255, 0.05); --auth-accent-circle: rgba(255, 255, 255, 0.05); --error-bg: #3A2A00; --error-text: #FFD966; } /* ═══════════════════════════════════════════════════════════════════ Base ═══════════════════════════════════════════════════════════════════ */ html { transition: background-color 0.3s ease, color 0.3s ease; } html.mud-theme-dark { transition: background-color 0.3s ease, color 0.3s ease; } html, body { font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif; height: 100%; margin: 0; background-color: var(--bg-app); color: var(--text-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ═══════════════════════════════════════════════════════════════════ Scrollbar ═══════════════════════════════════════════════════════════════════ */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--scrollbar-track); } ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; transition: background 0.2s ease; } ::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); } * { scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); scrollbar-width: thin; } /* ═══════════════════════════════════════════════════════════════════ MudBlazor overrides ═══════════════════════════════════════════════════════════════════ */ /* Cards arrondis propres */ .mud-dialog { border-radius: 14px !important; } .mud-table { border-radius: 12px !important; } .mud-paper { transition: box-shadow 0.2s ease, border-color 0.2s ease; } /* Papier avec bordure subtile plutôt qu'ombre portée */ .mud-paper.mud-elevation-1 { box-shadow: var(--shadow-sm); } .mud-paper.mud-elevation-2 { box-shadow: var(--shadow-md); } .mud-paper.mud-elevation-3 { box-shadow: var(--shadow-lg); } /* Boutons outline propres */ .mud-button-outlined { border-width: 1.5px !important; } /* Chips de statut */ .mud-chip { font-weight: 500 !important; } /* Navigation — espacement */ .mud-nav-item { border-radius: 8px !important; margin: 2px 8px !important; } .mud-nav-link { border-radius: 8px !important; padding: 8px 12px !important; } /* Drawer — fond propre */ .mud-drawer { border-right: 1px solid var(--border-color) !important; } /* ═══════════════════════════════════════════════════════════════════ Font Awesome fallback helper ═══════════════════════════════════════════════════════════════════ */ .fa, .fas, .far, .fab { font-family: 'Font Awesome 6 Free' !important; } /* ═══════════════════════════════════════════════════════════════════ Code blocks ═══════════════════════════════════════════════════════════════════ */ code { font-family: 'Fira Code', 'Cascadia Code', monospace; font-size: 0.9em; background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; } /* ═══════════════════════════════════════════════════════════════════ Validation ═══════════════════════════════════════════════════════════════════ */ .valid.modified:not([type=checkbox]) { outline: 1px solid #22C55E; } .invalid { outline: 1px solid #EF4444; } .validation-message { color: #EF4444; font-size: 0.8rem; margin-top: 2px; } /* ═══════════════════════════════════════════════════════════════════ Blazor error UI ═══════════════════════════════════════════════════════════════════ */ #blazor-error-ui { background: var(--error-bg); color: var(--error-text); bottom: 0; box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15); box-sizing: border-box; display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; font-size: 0.875rem; } #blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; } #blazor-error-ui .reconnect { font-weight: 600; text-decoration: underline; } /* ═══════════════════════════════════════════════════════════════════ User management cards ═══════════════════════════════════════════════════════════════════ */ .user-section-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; transition: border-color 0.2s ease; } /* ═══════════════════════════════════════════════════════════════════ Settings page ═══════════════════════════════════════════════════════════════════ */ .settings-type-chip { padding: 2px 8px !important; border-radius: 12px !important; display: inline-block !important; font-weight: 500 !important; } .settings-card { transition: box-shadow 0.2s ease, transform 0.15s ease; } .settings-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important; transform: translateY(-1px); } .settings-label { line-height: 1.3; } .settings-key { font-family: var(--mud-font-monospace), monospace; font-size: 0.72rem; opacity: 0.75; } /* ═══════════════════════════════════════════════════════════════════ Empty states ═══════════════════════════════════════════════════════════════════ */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1rem; text-align: center; color: var(--text-secondary); } .empty-state i { font-size: 3rem; margin-bottom: 1rem; color: var(--text-disabled); } /* ═══════════════════════════════════════════════════════════════════ Loading skeletons spacing ═══════════════════════════════════════════════════════════════════ */ .mud-skeleton { border-radius: 6px !important; } /* ═══════════════════════════════════════════════════════════════════ Auth pages (Login / Register) — Monochrome ═══════════════════════════════════════════════════════════════════ */ .auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; background: linear-gradient(135deg, var(--auth-bg-start) 0%, var(--auth-bg-mid) 50%, var(--auth-bg-end) 100%); position: relative; overflow: hidden; } /* Decorative background circles */ .auth-page::before { content: ''; position: absolute; top: -30%; right: -15%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, var(--auth-accent-circle) 0%, transparent 70%); pointer-events: none; } .auth-page::after { content: ''; position: absolute; bottom: -25%; left: -10%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, var(--auth-accent-circle) 0%, transparent 70%); pointer-events: none; } .auth-card { width: 100%; max-width: 420px; background: var(--auth-bg-card); border-radius: 20px; padding: 2.5rem 2rem; box-shadow: var(--auth-shadow-card), 0 0 0 1px var(--auth-border-card); position: relative; z-index: 1; animation: auth-card-enter 0.4s ease-out; backdrop-filter: blur(4px); } @keyframes auth-card-enter { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } .auth-header { text-align: center; margin-bottom: 2rem; } .auth-header .auth-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent)); color: var(--text-inverse); margin-bottom: 1.25rem; font-size: 1.5rem; box-shadow: 0 8px 24px rgba(var(--auth-primary-rgb), 0.2); } .auth-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--auth-text-heading); margin: 0 0 0.25rem; letter-spacing: -0.02em; } .auth-header p { font-size: 0.875rem; color: var(--auth-text-body); margin: 0; line-height: 1.5; } .auth-form { display: flex; flex-direction: column; gap: 0.75rem; } .auth-form .mud-input-outlined { background: var(--auth-bg-input); border-radius: 10px; } .auth-form .auth-submit-btn { height: 48px; font-size: 0.95rem; font-weight: 600; border-radius: 12px; text-transform: none; letter-spacing: 0.01em; margin-top: 0.5rem; } .auth-error { margin-bottom: 0.5rem; font-size: 0.85rem; } .auth-footer { text-align: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--auth-border); } .auth-footer p { font-size: 0.875rem; color: var(--auth-text-body); margin: 0; } .auth-footer a { color: var(--auth-text-link); font-weight: 600; text-decoration: none; transition: color 0.2s ease; } .auth-footer a:hover { color: var(--auth-text-link-hover); text-decoration: underline; } /* ─── Auth divider with "ou" text ─── */ .auth-divider { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0; color: var(--text-tertiary); font-size: 0.8rem; } .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-border); } /* ═══════════════════════════════════════════════════════════════════ Accessibility — reduced motion ═══════════════════════════════════════════════════════════════════ */ @media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } html, html.mud-theme-dark { transition: none !important; } .auth-footer a { transition: none; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } } /* ═══════════════════════════════════════════════════════════════════ Utility — gap helper (for flex gap where MudBlazor doesn't apply) ═══════════════════════════════════════════════════════════════════ */ .gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } /* ═══════════════════════════════════════════════════════════════════ Transitions globales pour le changement de thème ═══════════════════════════════════════════════════════════════════ */ .mud-theme-provider { transition: background-color 0.3s ease; } .mud-main-content { transition: background-color 0.3s ease; } /* ═══════════════════════════════════════════════════════════════════ Page transitions ═══════════════════════════════════════════════════════════════════ */ .mud-main-content { animation: page-enter 0.25s ease-out; } @keyframes page-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } /* ═══════════════════════════════════════════════════════════════════ KPI Stat Cards (Dashboard, AllAgents) ═══════════════════════════════════════════════════════════════════ */ .mud-paper.kpi-card, .mud-paper:has(> .d-flex > .mud-typography-h4) { transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: default; } .mud-paper:has(> .d-flex > .mud-typography-h4):hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } /* ═══════════════════════════════════════════════════════════════════ Tables — consistent look ═══════════════════════════════════════════════════════════════════ */ .mud-table-container { border-radius: 12px; } .mud-table-head { font-weight: 600; text-transform: none !important; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--mud-palette-text-secondary); } .mud-table-row { transition: background-color 0.15s ease; } /* ═══════════════════════════════════════════════════════════════════ Dialogs — cleaner look ═══════════════════════════════════════════════════════════════════ */ .mud-dialog-content { padding: 20px 24px !important; } .mud-dialog-title { padding: 16px 24px 8px !important; font-weight: 600 !important; } .mud-dialog-actions { padding: 8px 24px 16px !important; gap: 8px; } /* ═══════════════════════════════════════════════════════════════════ Buttons — clean hover states ═══════════════════════════════════════════════════════════════════ */ .mud-button-filled { transition: opacity 0.2s ease, box-shadow 0.2s ease !important; } .mud-button-filled:hover { opacity: 0.92; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; } html.mud-theme-dark .mud-button-filled:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important; } .mud-button-outlined { transition: background-color 0.2s ease, border-color 0.2s ease !important; } /* ═══════════════════════════════════════════════════════════════════ Navigation — active state bold ═══════════════════════════════════════════════════════════════════ */ .mud-nav-link.active { font-weight: 600 !important; } .mud-nav-link.active .mud-icon-root { color: var(--mud-palette-primary) !important; } /* ═══════════════════════════════════════════════════════════════════ MudChip in tables (status, type badges) ═══════════════════════════════════════════════════════════════════ */ .mud-chip-filled { font-weight: 500 !important; border-radius: 20px !important; } /* ═══════════════════════════════════════════════════════════════════ Links — clean underline on hover ═══════════════════════════════════════════════════════════════════ */ a.mud-link { text-decoration: none !important; transition: opacity 0.2s ease; } a.mud-link:hover { opacity: 0.75; text-decoration: underline !important; } /* ═══════════════════════════════════════════════════════════════════ Progress indicators ═══════════════════════════════════════════════════════════════════ */ .mud-progress-linear { border-radius: 4px !important; } /* ═══════════════════════════════════════════════════════════════════ Alerts — consistent border radius ═══════════════════════════════════════════════════════════════════ */ .mud-alert { border-radius: 10px !important; } /* ═══════════════════════════════════════════════════════════════════ Inputs — clean focus states ═══════════════════════════════════════════════════════════════════ */ .mud-input-outlined-border { transition: border-color 0.15s ease !important; } .mud-input:focus-within .mud-input-outlined-border { border-width: 1.5px !important; } /* ═══════════════════════════════════════════════════════════════════ Design tokens — échelle 4px (issue #32) ═══════════════════════════════════════════════════════════════════ */ :root { /* Espacements (4px scale) */ --hmd-space-1: 4px; --hmd-space-2: 8px; --hmd-space-3: 12px; --hmd-space-4: 16px; --hmd-space-5: 24px; --hmd-space-6: 32px; --hmd-space-7: 48px; /* Radius */ --hmd-radius-sm: 6px; --hmd-radius-md: 10px; --hmd-radius-lg: 16px; --hmd-radius-pill: 999px; /* Focus ring visible (WCAG 2.2 — jamais outline:none sans alternative) */ --hmd-focus-ring: 0 0 0 3px rgba(34, 211, 238, 0.45); /* Ombres */ --hmd-shadow-sm: 0 1px 3px rgba(11, 18, 32, 0.12); --hmd-shadow-md: 0 4px 12px rgba(11, 18, 32, 0.16); } /* ═══════════════════════════════════════════════════════════════════ Focus visible global (a11y, issue #41) ═══════════════════════════════════════════════════════════════════ */ :focus-visible { outline: 2px solid var(--mud-palette-primary) !important; outline-offset: 2px !important; border-radius: 4px; } /* ═══════════════════════════════════════════════════════════════════ Skip-link (a11y, issue #41) ═══════════════════════════════════════════════════════════════════ */ .skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--mud-palette-primary); color: var(--mud-palette-primary-contrasttext); padding: 10px 16px; border-radius: 0 0 var(--hmd-radius-md) 0; font-weight: 600; } .skip-link:focus { left: 0; top: 0; } /* ═══════════════════════════════════════════════════════════════════ Mouvement réduit (prefers-reduced-motion, a11y, issue #41) ═══════════════════════════════════════════════════════════════════ */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } /* ═══════════════════════════════════════════════════════════════════ Zones tactiles — minimum 44px (mobile, issue #41) ═══════════════════════════════════════════════════════════════════ */ @media (max-width: 600px) { .mud-icon-button { min-width: 44px !important; min-height: 44px !important; } } /* ═══════════════════════════════════════════════════════════════════ Cards & tiles — hover lift subtil (désactivé en reduced-motion) ═══════════════════════════════════════════════════════════════════ */ .hmd-tile { transition: transform 0.15s ease, box-shadow 0.15s ease; } .hmd-tile:hover { transform: translateY(-2px); box-shadow: var(--hmd-shadow-md); } @media (prefers-reduced-motion: reduce) { .hmd-tile:hover { transform: none; } } /* ═══════════════════════════════════════════════════════════════════ Pulse « live » — indicateur temps réel (désactivé en reduced-motion) ═══════════════════════════════════════════════════════════════════ */ @keyframes hmd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } } .hmd-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mud-palette-success); animation: hmd-pulse 2s ease-in-out infinite; display: inline-block; } @media (prefers-reduced-motion: reduce) { .hmd-live-dot { animation: none; } }