/* Tableau de bord : menu fixe à gauche, contenu sur toute la largeur, chaque écran tient dans la fenêtre. */
@font-face { font-family: "Charis SIL"; font-weight: 400; font-style: normal; font-display: swap; src: url("polices/charis-sil-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Charis SIL"; font-weight: 700; font-style: normal; font-display: swap; src: url("polices/charis-sil-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Charis SIL"; font-weight: 400; font-style: italic; font-display: swap; src: url("polices/charis-sil-latin-400-italic.woff2") format("woff2"); }
:root {
  --paper: #ffffff; --soft: #f4f5f7; --ink: #1f2228; --muted: #5f646d; --line: #dfe2e7;
  --accent: #1f3bff; --accent-soft: #e9ecff; --quiet: #c3c7cf;
  --serif: "Charis SIL", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; }
body { background: var(--soft); color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.4; font-synthesis: none; }
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100%; }
.sub { color: var(--muted); font-size: 14px; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.side { background: var(--paper); border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding-left: max(14px, env(safe-area-inset-left, 0px)); }
.side h1 { font-size: 21px; line-height: 1.15; margin: 0 0 0 10px; }
.side nav { display: grid; gap: 6px; }
.side nav button { display: grid; gap: 1px; text-align: left; background: none; border: 1px solid transparent; border-radius: 6px; padding: 11px 10px; cursor: pointer; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); }
.side nav button:hover { background: var(--soft); }
.side nav button[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.side nav small { font-size: 13.5px; line-height: 1.3; font-weight: 400; color: var(--muted); }
.legend { display: grid; gap: 7px; font-size: 14px; margin-left: 10px; }
.dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--quiet); border-radius: 50%; }
.dot.a { background: var(--accent); }
.dot.r { box-shadow: 0 0 0 2px var(--ink); }
.foot { margin: auto 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }

main { padding: 18px 22px 30px; min-width: 0; padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 14px; }
.top h2 { font-size: 26px; margin: 0; line-height: 1.2; }
.ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctl button { font: inherit; font-size: 15px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; cursor: pointer; }
.ctl button:hover { border-color: var(--ink); }
.ctl button:disabled { color: var(--quiet); border-color: var(--line); cursor: default; }
.ctl strong { font-size: 18px; min-width: 12.5em; text-align: center; }
.cal { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cal button { width: 30px; height: 30px; padding: 0; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; color: var(--ink); background-color: var(--paper); background-image: linear-gradient(rgb(31 59 255 / var(--a)), rgb(31 59 255 / var(--a))); }
.cal button.dark { color: var(--paper); }
.cal button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.kpi { padding: 12px 16px 14px; }
.kpi b { display: block; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi.hot b { color: var(--accent); }
.kpi span { color: var(--muted); font-size: 15px; }
.card { padding: 14px 18px 16px; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; margin: 0; line-height: 1.25; }
.card > .sub { margin: 2px 0 12px; }
.take { margin: auto 0 0; padding: 12px 0 0; font-size: 16px; line-height: 1.35; }
.take b { color: var(--accent); }
.scroll { overflow-x: auto; }
svg { display: block; width: 100%; height: auto; }
svg text { font-family: var(--serif); font-size: 13px; fill: var(--muted); }
svg [data-k] { cursor: pointer; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: minmax(110px, 40%) 1fr 3.4em; gap: 10px; align-items: center; font-size: 15px; }
.bar .track { height: 14px; background: var(--soft); display: block; border-radius: 0 3px 3px 0; }
.bar .fill { display: block; height: 100%; background: var(--accent); border-radius: 0 3px 3px 0; min-width: 1px; }
.bar .fill.g { background: var(--quiet); }
.bar.ref { color: var(--muted); }
.bar .val { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pair { display: grid; gap: 3px; }
.keyline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.sq { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: var(--quiet); border-radius: 2px; }
.sq.a { background: var(--accent); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font-weight: 400; color: var(--muted); font-size: 14px; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); }
td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td.n, th.n { text-align: right; }
.alerts { max-height: 760px; overflow: auto; }
.alerts td:first-child, .alerts td:nth-child(3) { white-space: nowrap; width: 1%; }
.alerts table { table-layout: auto; }
.alerts td:nth-child(2) { max-width: 0; width: 98%; }
.alerts .l1, .alerts td small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alerts .score { grid-template-columns: 2em; }
.alerts .score .track { display: none; }
.alerts .score span:last-child { font-weight: 700; }
.alerts tr[data-i] { cursor: pointer; }
.alerts tr[data-i]:hover td { background: var(--soft); }
.alerts tr.sel td { background: var(--accent-soft); }
.score { display: grid; grid-template-columns: 70px 2.2em; gap: 8px; align-items: center; }
.score .track { height: 10px; background: var(--soft); display: block; border-radius: 5px; }
.score .fill { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 13.5px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.tag.ok { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.tag.miss { border-color: var(--accent); color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: 15px; margin-top: 12px; }
.facts p { margin: 2px 0 0; }
.slider { display: flex; align-items: center; gap: 12px; flex: 1 1 360px; max-width: 560px; font-size: 15px; color: var(--muted); }
.slider input { flex: 1; accent-color: var(--accent); }
.pic { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 28px; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.dots i { aspect-ratio: 1 / 1; background: var(--quiet); border-radius: 50%; }
.dots i.a { background: var(--accent); }
.dots.small { grid-template-columns: repeat(auto-fill, 16px); }
h4 { font-size: 16.5px; margin: 18px 0 6px; }
h4 .sub { font-weight: 400; margin-left: 6px; }
.pay { display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pay .big { font-size: 28px; line-height: 1.1; display: block; font-variant-numeric: tabular-nums; }
.scorebox { margin-left: auto; text-align: center; border: 1px solid var(--ink); border-radius: 6px; padding: 6px 14px; }
.scorebox b { font-size: 28px; display: block; line-height: 1.05; }
.scorebox span { font-size: 13px; color: var(--muted); }
.cmp td:first-child { color: var(--muted); white-space: nowrap; }
.cmp td { padding: 7px 12px 7px 0; }
.tag.warn { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 15px; }
.who span { color: var(--muted); display: block; font-size: 13.5px; }
.inl { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 6px; }
.dec { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dec button, .seg button { font: inherit; font-size: 15px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.dec button:hover, .seg button:hover { background: var(--soft); }
.dec button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.seg button { display: grid; gap: 2px; text-align: left; padding: 10px 14px; }
.seg button b { font-size: 20px; }
.seg button small { font-size: 13.5px; opacity: .8; }
select { font: inherit; font-size: 16px; padding: 7px 10px; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; font-size: 15.5px; }
.steps b { display: block; font-size: 17px; }
.empty { color: var(--muted); font-style: italic; margin: 0; }
#tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 13.5px; padding: 6px 9px; z-index: 5; max-width: 300px; border-radius: 4px; }
/* affichage compact : tout tient dans la fenêtre sur un écran d'ordinateur */
.app { grid-template-columns: 210px minmax(0, 1fr); }
main { padding: 12px 16px 16px; }
.top { margin-bottom: 10px; gap: 8px 16px; }
.top h2 { font-size: 22px; }
.kpis { gap: 10px; margin-bottom: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 8px 14px 10px; }
.kpi b { font-size: 26px; }
.kpi span { font-size: 14px; }
.grid { gap: 10px; }
.c3 { grid-column: span 3; }
.card { padding: 12px 16px; }
.card h3 { font-size: 17px; }
.card > .sub { margin: 1px 0 8px; font-size: 13.5px; }
.take { font-size: 15px; padding-top: 8px; }
h4 { margin: 10px 0 4px; font-size: 15.5px; }
.filt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; margin: 0 0 8px; }
.filt select { font-size: 14.5px; padding: 4px 8px; }
.filt button { font: inherit; font-size: 14px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; }
.filt button:hover { border-color: var(--ink); }
.alerts td small, .cmp td small { display: block; color: var(--muted); font-size: 13.5px; white-space: normal; }
.alerts td, .cmp td { padding: 5px 10px 5px 0; }
.cmp td:last-child { padding-right: 0; text-align: right; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 20px; flex: 1; min-height: 0; }
.dgrid > div { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.who { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 0; font-size: 14.5px; }
.who dt { color: var(--muted); }
.who dd { margin: 0; }
.dec button { padding: 5px 9px; font-size: 14px; }
.dec { gap: 6px; }
.seg button { padding: 8px 12px; }
.seg button b { font-size: 17px; }
.steps { grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: 14.5px; }
.steps b { font-size: 15.5px; }
.pic { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 18px; }
.chart { min-height: 0; }
.pill { display: inline-block; min-width: 2.6em; text-align: center; padding: 2px 6px; border-radius: 20px; font-weight: 700; font-size: 14px; border: 1.5px solid var(--ink); }
.pill.hi { background: var(--ink); color: var(--paper); }
.pill.low { border-style: dashed; border-color: var(--muted); color: var(--muted); font-weight: 400; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.chips button { font: inherit; font-size: 14px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.done td { opacity: .55; }
.done.sel td { opacity: 1; }
.outcome { margin: 8px 0 0; font-size: 15px; }
.outcome b { color: var(--accent); }
.list2 { display: grid; gap: 6px; align-content: start; }
.list2 button b { font-variant-numeric: tabular-nums; }
.list2 button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; text-align: left; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.list2 button:hover { border-color: var(--ink); }
.list2 small { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
.sq.l { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cmp th { font-size: 13px; }
.cmp td:first-child { white-space: normal; }
.wbar { display: block; width: 64px; height: 10px; background: var(--soft); border-radius: 5px; margin-left: auto; }
.wbar i { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.tag.sm { padding: 0 7px; font-size: 12.5px; margin-left: 4px; }
.recent { min-height: 0; overflow: auto; }
.recent td { padding: 4px 10px 4px 0; font-size: 14.5px; }
.recent td:first-child { white-space: nowrap; color: var(--muted); }
.recent tr.cur td { background: var(--accent-soft); color: var(--ink); }
@media (min-width: 1101px) and (min-height: 600px) {
  .app { height: 100%; min-height: 0; overflow: hidden; }
  .side { height: 100%; position: static; overflow: auto; }
  main { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
  main > section { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .grid { flex: 1; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
  .card { min-height: 0; overflow: auto; }
  .chart { flex: 1 1 0; overflow: hidden; }
  .alerts { max-height: none; flex: 1 1 0; min-height: 0; }
}
@media (max-width: 1100px) { .c3 { grid-column: span 12; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; } .steps, .facts, .pic, .seg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding-right: max(14px, env(safe-area-inset-right, 0px)); gap: 10px; }
  .side nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } .side nav small, .foot { display: none; }
  .side nav button { font-size: 15px; } .legend { display: flex; gap: 14px; flex-wrap: wrap; }
  main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .ctl strong { min-width: 0; }
}
/* Ajouts du tableau de bord branché sur l'API */
.tag.live { border-color: var(--accent); color: var(--accent); border-style: dashed; }
.cal button.live { box-shadow: inset 0 0 0 2px var(--accent); }
.cal button:disabled { color: var(--quiet); cursor: default; background-image: none; }
.eff { display: grid; grid-template-columns: 64px auto; gap: 8px; align-items: center; justify-content: end; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.eff .wbar { margin-left: 0; }
.foot span { color: var(--ink); }

/* Liste d'alertes et fiche : des blocs séparés, peu de gras, le bleu réservé à la fraude */
#detail { padding: 0; overflow: hidden; }
.alerts { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px 9px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer; }
.row:hover { background: var(--soft); }
.row.sel { background: var(--accent-soft); border-left-color: var(--accent); }
.row.done { opacity: .6; }
.row.done.sel { opacity: 1; }
.r-main { min-width: 0; }
.r1 { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.r1 b { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.r1 span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.r2 { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.r-side { text-align: right; display: grid; gap: 2px; justify-items: end; }
.sc { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc.bas { color: var(--muted); font-weight: 400; }
.vd { font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.vd::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--quiet); }
.vd.ok { color: var(--accent); }
.vd.ok::before { background: var(--accent); }
.vd.miss { color: var(--accent); }
.vd.miss::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.vd.live::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.f-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); }
.f-lab { color: var(--muted); font-size: 13.5px; }
.f-amount { font-size: 28px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.f-meta { color: var(--muted); font-size: 14.5px; }
.f-score { text-align: right; display: grid; justify-items: end; gap: 2px; }
.f-score .n { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.f-score .n span { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.f-score .l { color: var(--muted); font-size: 13.5px; }
#detail .dgrid { gap: 0; }
.f-why { padding: 12px 20px 14px; }
.f-side { padding: 12px 20px 14px; border-left: 1px solid var(--line); }
.f-side .blk + .blk { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.f-side .blk.grow { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
#detail h4 { margin: 0 0 2px; font-size: 16px; }
.f-sub { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.why-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 118px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.why-row .k { color: var(--muted); font-size: 14px; }
.why-row .v b { font-weight: 700; font-size: 15px; }
.why-row .v small { display: block; color: var(--muted); font-size: 13.5px; }
.why-row .e { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.why-row .bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.why-row .bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.why-row .x { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.who { gap: 4px 16px; font-size: 14.5px; }
#detail .recent { overflow: auto; min-height: 0; }
.rp { display: grid; grid-template-columns: 8.6em 5.6em minmax(0, 1fr) 3.4em; gap: 10px; padding: 4px 6px; font-size: 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rp .d { color: var(--muted); white-space: nowrap; }
.rp .m { text-align: right; }
.rp .c { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp .s { text-align: right; color: var(--muted); }
.rp .s.al { color: var(--accent); font-weight: 700; }
.rp.cur { background: var(--accent-soft); }
.rp.cur .d { color: var(--ink); font-weight: 700; }
#detail .dec button { font-size: 14px; padding: 6px 12px; border-color: var(--line); }
#detail .dec button:hover { border-color: var(--ink); background: var(--paper); }
#detail .dec button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
#detail .dgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.f-why, .f-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.why-row { grid-template-columns: 6.6em minmax(0, 1fr) 104px; }
.rp { grid-template-columns: 7.6em 5.4em minmax(0, 1fr) 3.2em; gap: 8px; }
#detail .dec { flex-wrap: nowrap; }
#detail .dec button { padding: 6px 10px; white-space: nowrap; }
#detail .dec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#detail .dec button { width: 100%; padding: 6px 4px; font-size: 13.5px; text-align: center; overflow: hidden; text-overflow: ellipsis; }

/* Démonstration : l'horloge de la journée rejouée */
.mini-horloge { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; text-align: left; margin: -4px 0 0 10px; padding: 7px 10px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent-soft); color: var(--ink); font: inherit; cursor: pointer; }
.mini-horloge b { font-size: 20px; font-variant-numeric: tabular-nums; }
.mini-horloge span:last-child { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.mini-horloge .pt, .horloge.actif::before { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pouls 1.6s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: .25; } }
.horloge-bloc { display: flex; align-items: center; gap: 28px; margin: 6px 0 16px; }
.horloge { font-size: 76px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; display: flex; align-items: center; gap: 16px; }
.horloge.actif::before { content: ""; width: 14px; height: 14px; }
.horloge-info { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.horloge-info b { color: var(--ink); font-size: 19px; }
.frise { margin-bottom: 18px; }
.frise-barre { position: relative; height: 8px; background: var(--soft); border-radius: 4px; }
.frise-barre i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; }
.frise-barre span { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.frise-heures { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.chaine { display: flex; align-items: stretch; gap: 8px; }
.chaine .fl { align-self: center; color: var(--muted); font-size: 18px; }
.etape { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.etape.a { border-color: var(--accent); }
.etape .t { font-weight: 700; font-size: 15px; }
.etape .n { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.etape.a .n { color: var(--accent); }
.etape .l { font-size: 13.5px; color: var(--muted); }
.etape .d { font-size: 13px; color: var(--muted); margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.pilote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; margin: 4px 0 12px; font-size: 15px; }
.pilote select { width: 100%; font-size: 15px; }
.pilote-boutons { display: flex; gap: 8px; }
.pilote-boutons button { flex: 1; }
.pilote-boutons button:disabled { color: var(--quiet); border-color: var(--line); cursor: default; background: var(--paper); }
.demo-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
h4.sep { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.journal { font-size: 13.5px; color: var(--muted); margin-top: 8px; display: grid; gap: 3px; }
.reset { margin-top: auto; padding-top: 10px; }
.reset code { font-size: 12.5px; }
.horloge.vide { color: var(--quiet); }
#demo .card.c8 h4.sep { margin-top: 16px; }
.remise-barre { display: block; height: 6px; background: var(--soft); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.remise-barre i { display: block; height: 100%; background: var(--accent); }
.pilote-boutons #d-lancer { flex: 1.6; }
