/* Console praticien (maquette "Espace praticien") : colonne de gauche,
   questions dans leur ordre d'arrivée, deux états distingués par un mot et
   jamais par une couleur. */

body { height: 100vh; height: 100dvh; }
.desk { display: flex; height: 100%; }

.nav { flex: 0 0 286px; padding: 26px 18px; display: flex; flex-direction: column; gap: 3px;
       border-right: 1px solid var(--hairline); overflow-y: auto; overflow-x: hidden; }
.nav .mark { padding: 0 10px; margin-bottom: 26px; }
.navlab { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--teal);
          padding: 20px 12px 8px; display: flex; align-items: center; gap: 8px; }
.navlab::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--mint); flex: 0 0 auto; }
.navitem { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: transparent; border: 0;
           font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-radius: 999px; cursor: pointer; }
.navitem svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
               stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.navitem .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navitem:hover { color: var(--ink); }
.navitem.on { background: var(--neutral); color: var(--ink); }
.navitem.on svg { opacity: 1; color: var(--teal); }
.navitem .count { font-size: 12.5px; font-weight: 700; color: var(--teal); background: var(--neutral);
                  border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.navitem.on .count { background: var(--white); }
.navitem:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav .spacer { flex: 1; min-height: 20px; }
.nav .switch { padding: 10px 12px; }
.nav .id { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); padding: 14px 12px 0;
           border-top: 1px solid var(--hairline); margin-top: 6px; }
.nav .id span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.top { flex: 0 0 auto; padding: 20px 40px 0; background: var(--white); border-bottom: 1px solid var(--hairline); }
.toprow { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 16px; }
.toprow h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.toprow .sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.filters { display: flex; gap: 8px; padding-bottom: 16px; flex-wrap: wrap; }
.ghostb { background: transparent; border: 0; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 11px 4px; }
.ghostb:hover { color: var(--ink); }
.scroll { flex: 1; overflow-y: auto; padding: 30px 40px 40px; }
.foot { flex: 0 0 auto; padding: 13px 40px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--muted); }

.rule { font-size: 13.5px; color: var(--muted); margin: 0; padding: 0 0 18px; }
.qrow { padding: 18px 0; border-bottom: 1px solid var(--hairline); display: grid;
        grid-template-columns: 150px 1fr 220px; gap: 20px; align-items: baseline; cursor: pointer; }
.qrow:hover .q { color: var(--teal); }
.qrow .d { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qrow .q { font-size: 15px; line-height: 1.5; }
.qrow .q em { font-style: normal; display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.qrow .s { font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: right; }
.qrow .dist { display: block; font-size: 12px; font-weight: 500; font-family: ui-monospace, Consolas, monospace; margin-top: 3px; }
.qdetail { padding: 4px 0 22px 170px; border-bottom: 1px solid var(--hairline); }
.qdetail h5 { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.qdetail .answer { font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--neutral);
                   border-radius: 18px; border-bottom-left-radius: 6px; padding: 12px 16px; margin: 0; white-space: pre-wrap; }
.empty { font-size: 15px; color: var(--muted); padding: 30px 0; }

/* relevé */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat { padding: 26px 26px 24px 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--hairline); }
.stat .n { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 14.5px; font-weight: 700; margin-top: 10px; }
.stat .x { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.block { margin-top: 36px; }
.block h3 { font-size: 17px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 4px; }
.block .sub { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.kv { display: grid; grid-template-columns: 260px 1fr; gap: 0; }
.kv div { padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; }
.kv div:nth-child(odd) { color: var(--muted); }
.kv div:nth-child(even) { font-variant-numeric: tabular-nums; font-weight: 600; }
.never { margin-top: 36px; }
.never .nrow { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; }
.never .nrow span:last-child { font-weight: 700; color: var(--teal); }

@media (max-width: 900px) {
  .desk { flex-direction: column; }
  .nav { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--hairline); padding: 16px; }
  .nav .spacer, .nav .id { display: none; }
  .top, .scroll, .foot { padding-left: 20px; padding-right: 20px; }
  .qrow { grid-template-columns: 1fr; gap: 6px; }
  .qrow .s { text-align: left; }
  .qdetail { padding-left: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .kv { grid-template-columns: 1fr 1fr; }
}
