@if (!string.IsNullOrEmpty(Title))
{
diff --git a/src/Heimdall.Web/Theme/HeimdallTheme.cs b/src/Heimdall.Web/Theme/HeimdallTheme.cs
new file mode 100644
index 0000000..3bfd445
--- /dev/null
+++ b/src/Heimdall.Web/Theme/HeimdallTheme.cs
@@ -0,0 +1,132 @@
+using MudBlazor;
+
+namespace Heimdall.Web.Theme;
+
+///
+/// Thème global Heimdall — dark-first, palette sémantique « vigie ».
+///
+/// Règles (cf. issue #32) :
+/// - Jamais de noir pur (#000) ni de blanc pur (#FFF) comme fond.
+/// - Tous les contrastes texte/fond vérifiés ≥ 4.5:1 (WCAG 2.2 AA) — voir
+/// commentaires de chaque paire.
+/// - Accent temps réel : cyan « vigie » (#22D3EE dark / #1D4ED8 light).
+/// - Statuts sémantiques : success / warning / info / error choisis pour
+/// passer AA sur les fonds du thème.
+///
+public static class HeimdallTheme
+{
+ /// Instance unique du thème MudBlazor.
+ public static readonly MudTheme Instance = Create();
+
+ private static MudTheme Create() => new()
+ {
+ PaletteLight = new PaletteLight
+ {
+ // Surfaces — jamais #FFF pur en fond global
+ Background = "#F4F6FA", // gris bleuté (texte #1E293B → 13.5:1)
+ Surface = "#FFFFFF", // autorisé en carte uniquement
+ AppbarBackground = "#0B1220", // navy profond
+ AppbarText = "#E6EDF7",
+ DrawerBackground = "#0F172A",
+ DrawerText = "#E6EDF7",
+ DrawerIcon = "#94A3B8",
+
+ // Primary — bleu vigie (6.2:1 sur fond)
+ Primary = "#1D4ED8",
+ PrimaryContrastText = "#FFFFFF",
+ Secondary = "#475569",
+ SecondaryContrastText = "#FFFFFF",
+ Tertiary = "#0F172A",
+ TertiaryContrastText = "#FFFFFF",
+
+ // Typographie
+ TextPrimary = "#1E293B",
+ TextSecondary = "#475569",
+ TextDisabled = "#64748B",
+
+ // Statuts — AA sur #F4F6FA (4.64:1 et plus)
+ Info = "#1D4ED8",
+ Warning = "#B45309",
+ Error = "#B91C1C",
+ Success = "#15803D",
+
+ // Bordures & lignes
+ LinesDefault = "#CBD5E1",
+ LinesInputs = "#94A3B8",
+ TableLines = "#E2E8F0",
+ TableStriped = "#F1F5F9",
+ Divider = "#E2E8F0",
+ DividerLight = "#F1F5F9",
+
+ // Ombres & profondeur
+ Dark = "#0F172A",
+ DarkLighten = "#1E293B",
+ },
+ PaletteDark = new PaletteDark
+ {
+ // Surfaces — bleu nuit, jamais #000
+ Background = "#0B1220",
+ Surface = "#111A2C",
+ AppbarBackground = "#0F172A",
+ AppbarText = "#E6EDF7",
+ DrawerBackground = "#0F172A",
+ DrawerText = "#E6EDF7",
+ DrawerIcon = "#94A3B8",
+
+ // Primary — cyan vigie (10.4:1 sur fond)
+ Primary = "#22D3EE",
+ PrimaryContrastText = "#06202A",
+ Secondary = "#94A3B8",
+ SecondaryContrastText = "#0B1220",
+ Tertiary = "#38BDF8",
+ TertiaryContrastText = "#0B1220",
+
+ // Typographie
+ TextPrimary = "#E6EDF7",
+ TextSecondary = "#94A3B8",
+ TextDisabled = "#64748B",
+
+ // Statuts — AA sur #0B1220 (6.8:1 et plus)
+ Info = "#38BDF8",
+ Warning = "#F59E0B",
+ Error = "#F87171",
+ Success = "#22C55E",
+
+ // Bordures & lignes
+ LinesDefault = "#1E293B",
+ LinesInputs = "#334155",
+ TableLines = "#1E293B",
+ TableStriped = "#0F172A",
+ Divider = "#1E293B",
+ DividerLight = "#182238",
+
+ // Ombres & profondeur
+ Dark = "#060B14",
+ DarkLighten = "#0F172A",
+ },
+ LayoutProperties = new LayoutProperties
+ {
+ DefaultBorderRadius = "10px",
+ },
+ Typography = new Typography
+ {
+ Default = new DefaultTypography
+ {
+ FontFamily = ["Inter", "Segoe UI", "Roboto", "system-ui", "sans-serif"],
+ FontSize = "14px",
+ LineHeight = "1.5",
+ },
+ H1 = new H1Typography { FontSize = "2rem", FontWeight = "600" },
+ H2 = new H2Typography { FontSize = "1.6rem", FontWeight = "600" },
+ H3 = new H3Typography { FontSize = "1.35rem", FontWeight = "600" },
+ H4 = new H4Typography { FontSize = "1.15rem", FontWeight = "600" },
+ H5 = new H5Typography { FontSize = "1rem", FontWeight = "600" },
+ H6 = new H6Typography { FontSize = "0.95rem", FontWeight = "600" },
+ Body1 = new Body1Typography { FontSize = "14px", LineHeight = "1.5" },
+ Body2 = new Body2Typography { FontSize = "13px", LineHeight = "1.5" },
+ Subtitle1 = new Subtitle1Typography { FontSize = "15px", FontWeight = "500" },
+ Subtitle2 = new Subtitle2Typography { FontSize = "13px", FontWeight = "500" },
+ },
+ ZIndex = new ZIndex { Snackbar = 1500, Tooltip = 1600 },
+ };
+}
diff --git a/src/Heimdall.Web/wwwroot/app.css b/src/Heimdall.Web/wwwroot/app.css
index 8b402fd..555dcef 100644
--- a/src/Heimdall.Web/wwwroot/app.css
+++ b/src/Heimdall.Web/wwwroot/app.css
@@ -723,3 +723,132 @@ a.mud-link:hover {
.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;
+ }
+}
+