/* Dedicated hero UI. No shared illustration, page-section or editorial selectors. */
.mh-demo {
  --mh-text: #e7e9f7;
  --mh-muted: #acb3cd;
  --mh-border: #b4b1e126;
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 1rem 0;
  color: var(--mh-text);
  font: 400 .8125rem/1.5 var(--font-body);
  color-scheme: dark;
}
.mh-demo::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 65% 45%, #6550aa16, transparent 70%);
}
.mh-surface {
  border: 1px solid var(--mh-border);
  border-radius: 16px;
  background: linear-gradient(125deg, #26253bda, #1c2033ed 48%, #23213ad9);
  box-shadow: inset 0 1px 0 #e3ddff07, 0 12px 28px -18px #0009;
}
.mh-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: end; gap: 12px; padding: 18px; }
.mh-field { min-width: 0; }
.mh-field label { display: block; color: var(--mh-muted); font: 500 .6875rem/1.5 var(--font-body); margin-bottom: 7px; }
.mh-select { position: relative; }
.mh-select select {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 29px 10px 12px;
  border: 1px solid #aaa5da2e;
  border-radius: 9px;
  background: linear-gradient(120deg, #37304c66, #15182b80);
  box-shadow: inset 0 1px 2px #05071338;
  color: var(--mh-text);
  font: inherit;
  cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.mh-select option { background: #202238; color: #e7e9f7; }
/* typography.css sets all native selects to 1rem with !important. Keep this UI compact locally. */
.mh-demo .mh-select select { font-size: .8125rem !important; }
.mh-select > svg { position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--mh-muted); pointer-events: none; }
.mh-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #c3bae636; border-radius: 9px; color: var(--mh-text); background: linear-gradient(#49405e80, #332e4970); box-shadow: inset 0 1px 0 #ddd3ff0a, 0 2px 3px #0002; font: 500 .75rem/1.5 var(--font-body); cursor: pointer; transition: background-color .18s, border-color .18s; }
.mh-refresh svg { width: 16px; height: 16px; flex: none; }
.mh-demo :is(button, select):focus-visible { outline: 2px solid #b5a6ff; outline-offset: 4px; }
.mh-demo :is(button, select):disabled { cursor: default; }
.mh-select select:hover, .mh-refresh:hover { border-color: #b7a9e565; background-color: #5e4d762b; }
.mh-refresh[aria-disabled="true"] { cursor: progress; }
.mh-filter-level { position: relative; padding: 30px 24px 34px; }
.mh-connection { position: absolute; top: 0; left: 26px; right: 46px; height: 53px; border: 1px dashed #9c89d536; border-top: 0; border-right: 0; border-radius: 0 0 0 15px; pointer-events: none; }
.mh-filters { display: flex; justify-content: space-between; gap: 10px; position: relative; }
.mh-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  padding: 9px 22px;
  border: 1px solid #ac9edb2d;
  border-radius: 999px;
  background: linear-gradient(180deg, #302841, #222039);
  color: #bfc0d8;
  box-shadow: 0 4px 0 #151528, 0 5px 0 #8e7dc12d, inset 0 1px 0 #e8ddff06;
  font: 500 .8125rem/1.5 var(--font-body);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.mh-filter::before { content: ""; position: absolute; left: -4px; top: calc(50% - 2px); width: 5px; height: 5px; background: #71608f; border-radius: 50%; pointer-events: none; }
.mh-filter > span { min-width: 20px; padding: 1px 5px; border-radius: 5px; background: #100e222e; color: #c9c2e6; font-size: .6875rem; font-variant-numeric: tabular-nums; }
.mh-filter[aria-pressed="true"] { color: #f0eaff; border-color: #bc9cff45; background: linear-gradient(180deg, #65508a, #493d70); box-shadow: 0 4px 0 #302747, 0 5px 0 #a086da5e, inset 0 1px 1px #e4caff21, inset 0 -7px 12px #aa8bf017; }
.mh-filter[aria-pressed="true"]::before { background: #b09ae4; }
.mh-filter[aria-pressed="true"] > span { color: #f0eaff; background: #c4aaff18; }
.mh-filter:hover { color: #fff; border-color: #b39dda75; }
.mh-panel { padding: 0 18px 14px; overflow: hidden; }
.mh-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 66px; }
.mh-panel-name { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; }
.mh-app-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #c0a9fa28; border-radius: 8px; color: #bbace6; background: linear-gradient(140deg, #8f73c22b, #62508110); }
.mh-app-mark svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.2; }
.mh-result { color: var(--mh-muted); font-size: .6875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 8px; margin-top: -8px; text-align: left; font-size: .8125rem; }
.mh-table thead th { padding: 4px 12px 2px; color: var(--mh-muted); font-size: .75rem; font-weight: 400; }
.mh-table thead th:nth-child(1) { width: 25%; }
.mh-table thead th:nth-child(2) { width: 23%; }
.mh-table thead th:nth-child(3) { width: 29%; }
.mh-table thead th:nth-child(4) { width: 23%; }
.mh-table tbody tr { background: linear-gradient(110deg, #51436630, #2a293e42 58%, #39304e2b); }
.mh-table tbody :is(th, td) { height: 54px; padding: 10px 12px; border-block: 1px solid #b3a2d51e; font-weight: 400; }
.mh-table tbody th { border-left: 1px solid #b3a2d526; border-radius: 9px 0 0 9px; }
.mh-table tbody td:last-child { border-right: 1px solid #b3a2d526; border-radius: 0 9px 9px 0; }
.mh-dossier { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; }
.mh-dossier svg { width: 16px; height: 18px; flex: none; color: #a69abd; }
.mh-team { color: #b9bdd2; }
.mh-progress { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.mh-track { height: 4px; flex: 1; border-radius: 6px; background: #090d2069; box-shadow: inset 0 1px 1px #0003; overflow: hidden; }
.mh-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #756499, #b4a1df); }
[data-status="done"] .mh-track > span { background: linear-gradient(90deg, #4a787a, #83b7ab); }
.mh-percent { min-width: 43px; text-align: right; font-size: .75rem; }
.mh-percent-sign { color: var(--mh-muted); }
.mh-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 7px; border: 1px solid #9c89c625; border-radius: 6px; background: #9d85db10; color: #cdc0f3; font-size: .6875rem; line-height: 1.5; white-space: nowrap; }
.mh-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.mh-badge--review { color: #f3b48e; background: #f1894e0d; border-color: #f1894e25; }
.mh-badge--done { color: #91cebd; background: #68b9a40c; border-color: #68b9a425; }
.mh-table .mh-empty td { height: 240px; border: 1px solid #b3a2d526; border-radius: 9px; text-align: center; padding: 24px; }
.mh-empty strong { display: block; font-size: .8125rem; font-weight: 500; }
.mh-empty td > span { display: block; color: var(--mh-muted); margin-top: 8px; font-size: .75rem; }
.mh-demo [hidden] { display: none !important; }
/* L'interface grandit par ses dimensions natives, sans zoom ni transformation.
   Les icônes et les cibles tactiles gardent leurs dimensions utiles. */
@media (min-width: 1920px) {
  .mh-demo { font-size: var(--type-ui-wide); }
  .mh-toolbar { padding: clamp(18px, 1vw, 36px); gap: clamp(12px, .7vw, 24px); }
  .mh-demo .mh-select select { font-size: var(--type-ui-wide) !important; min-height: clamp(44px, 2vw, 64px); }
  .mh-field label, .mh-refresh, .mh-table thead th { font-size: var(--type-ui-small-wide); }
  .mh-filter-level { padding: clamp(30px, 1.8vw, 60px) clamp(24px, 1.4vw, 48px); }
  .mh-connection { left: clamp(26px, 1.5vw, 52px); right: clamp(46px, 2.5vw, 90px); height: clamp(53px, 2.8vw, 96px); }
  .mh-filter { font-size: inherit; padding: .75em 1.5em; }
  .mh-filter > span, .mh-result, .mh-badge { font-size: var(--type-ui-small-wide); }
  .mh-panel { padding: 0 clamp(18px, 1vw, 36px) clamp(14px, .8vw, 28px); }
  .mh-panel-heading { min-height: clamp(66px, 3vw, 96px); }
  .mh-panel-name { font-size: var(--fs-small); }
  .mh-table { font-size: inherit; border-spacing: 0 clamp(8px, .4vw, 14px); }
  .mh-table tbody :is(th, td) { height: clamp(54px, 2.6vw, 90px); padding: .8em; }
  .mh-percent { font-size: var(--type-ui-small-wide); }
}
.mh-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mw-page .mh-noscript { margin-top: 12px; font-size: .75rem; color: var(--mh-muted); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes mh-enter { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes mh-refresh { to { transform: rotate(360deg); } }
  .mh-toolbar { animation: mh-enter .45s ease-out both; }
  .mh-filter-level { animation: mh-enter .45s .09s ease-out both; }
  .mh-panel { animation: mh-enter .45s .18s ease-out both; }
  .mh-demo.is-refreshing .mh-refresh svg { animation: mh-refresh .44s ease-in-out; }
}
@media (max-width: 1200px) and (min-width: 761px) {
  .mh-toolbar { gap: 8px; padding: 14px; }
  .mh-select select { font-size: .6875rem; padding-left: 9px; }
  .mh-refresh { padding-inline: 10px; }
  .mh-refresh span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mh-refresh { width: 44px; }
  .mh-filter-level { padding-inline: 16px; }
  .mh-filter { padding-inline: 14px; gap: 7px; }
  .mh-panel { padding-inline: 12px; }
  .mh-table :is(thead th, tbody th, tbody td) { padding-inline: 8px; }
  .mh-dossier { gap: 3px; }
  .mh-dossier svg { display: none; }
  .mh-progress { gap: 5px; }
}
/* Rearrange only the demo at constrained widths, retaining actual table semantics. */
@media (max-width: 980px) and (min-width: 761px), (max-width: 540px) {
  .mh-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 14px; gap: 12px 10px; }
  .mh-select select { font-size: .75rem; padding-left: 10px; }
  .mh-refresh { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .mh-refresh span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .mh-filter-level { padding: 26px 4px 30px; }
  .mh-filters { flex-wrap: wrap; gap: 10px 7px; justify-content: flex-start; }
  .mh-filter { flex: 1 1 auto; padding: 9px 11px; gap: 7px; font-size: .75rem; }
  .mh-filter::before { display: none; }
  .mh-connection { right: 24px; left: 19px; height: 48px; }
  .mh-panel { padding-inline: 12px; }
  .mh-panel-heading { min-height: 64px; gap: 8px; }
  .mh-panel-name { font-size: .8125rem; gap: 8px; }
  .mh-table { display: block; margin-top: 0; }
  .mh-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mh-table tbody { display: grid; gap: 8px; }
  .mh-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px 14px; padding: 13px 12px; border: 1px solid #b3a2d526; border-radius: 9px; }
  .mh-table tbody :is(th, td) { display: block; height: auto; padding: 0; border: 0; border-radius: 0; }
  .mh-table tbody th { grid-area: 1 / 1; }
  .mh-table tbody .mh-team { grid-area: 2 / 1; align-self: end; font-size: .6875rem; }
  .mh-table tbody td:nth-child(3) { grid-area: 2 / 2; min-width: 100px; align-self: center; }
  .mh-table tbody td:last-child { grid-area: 1 / 2; text-align: right; border: 0; border-radius: 0; }
  .mh-dossier { font-size: .8125rem; gap: 5px; }
  .mh-dossier svg { display: block; }
  .mh-progress { gap: 8px; }
  .mh-badge { font-size: .6875rem; }
  .mh-table tbody .mh-empty { display: block; }
  .mh-table .mh-empty td { padding: 28px 8px; height: auto; min-height: 272px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
}
@media (max-width: 760px) {
  .mh-demo { order: 3; margin-top: 2rem; padding: 0; }
}
@media (max-width: 360px) {
  .mh-toolbar { grid-template-columns: minmax(0, 1fr); }
  .mh-demo .mh-select select { font-size: 1rem !important; }
  .mh-filter { flex-grow: 0; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-demo *, .mh-demo *::before, .mh-demo *::after { animation: none !important; transition: none !important; }
}
