/*
 * LA FRISE EN COULOIRS — le dessin de la frise de la Recherche (`research.css`, `.rech-piste`), un couloir par monde ou par file
 * (maquettes validées par Thomas le 2 octobre 2026, `plan/essais/frise.css`). C'est une prévision, et elle le dit.
 */
.frise { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.frise__tete { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.frise__corps { display: grid; grid-template-columns: var(--frise-noms, 118px) minmax(0, 1fr); gap: 10px; }
.frise__noms { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.frise__nom { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--discret); white-space: nowrap; overflow: hidden; }
.frise__nom small { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.frise__zone { position: relative; display: flex; flex-direction: column; gap: 4px; padding-bottom: 15px; min-width: 0; }
.frise__heure { position: absolute; top: 0; bottom: 14px; width: 1px; background: color-mix(in srgb, var(--gris) 14%, transparent); }
.frise__heure span { position: absolute; bottom: -15px; left: -18px; width: 36px; text-align: center; font-size: 9px; font-style: normal; color: var(--efface); font-variant-numeric: tabular-nums; }
.frise__maintenant { position: absolute; left: 0; top: 0; bottom: 14px; width: 2px; background: var(--signal); z-index: 2; }
.frise__couloir { position: relative; height: 22px; background: color-mix(in srgb, var(--gris) 2.5%, transparent); }
.frise__couloir.vide {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--signal) 5%, transparent) 0 5px, transparent 5px 9px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 28%, transparent);
}
.frise__vide { position: absolute; left: 8px; top: 3px; font-size: 10.5px; color: var(--efface); white-space: nowrap; }
.frise__couloir.vide .frise__vide { color: var(--signal); }

.frise__bloc {
  position: absolute; top: 2px; height: 18px; box-sizing: border-box; display: flex; align-items: center; overflow: hidden;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--signal) 12%, transparent) 0 5px, transparent 5px 9px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 55%, transparent);
}
.frise__bloc.court { background: color-mix(in srgb, var(--signal) 26%, transparent); box-shadow: inset 2px 0 0 var(--signal); }
.frise__bloc > button:first-child, .frise__bloc > .frise__lu {
  all: unset; flex: 1; min-width: 0; height: 100%; padding: 0 6px; box-sizing: border-box; display: flex; align-items: center; gap: 5px;
  overflow: hidden; white-space: nowrap; font-size: 10.5px; color: var(--encre); cursor: pointer;
}
.frise__bloc > button:first-child:hover { background: color-mix(in srgb, var(--encre) 8%, transparent); }
.frise__bloc > button:first-child:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.frise__bloc b { flex: none; font-weight: 600; color: var(--signalVif); font-variant-numeric: tabular-nums; }
.frise__bloc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Trop étroit pour son nom : le bloc reste, son nom se tait — le titre le porte entier. */
.frise__bloc > .frise__lu { cursor: default; }
.frise__bloc.etroit > button:first-child, .frise__bloc.etroit > .frise__lu { padding: 0; }
.frise__bloc.etroit > button:first-child > *, .frise__bloc.etroit > .frise__lu > * { display: none; }
.frise__retirer, .frise__geste { all: unset; flex: none; padding: 0 5px; font-size: 10px; color: var(--discret); cursor: pointer; }
.frise__retirer:hover, .frise__geste:hover { color: var(--encre); }
.frise__retirer:disabled, .frise__geste:disabled { opacity: 0.4; cursor: default; }
/* Les deux flèches se serrent : trois gestes au bout d'un bloc ne doivent pas manger son nom. */
.frise__geste { padding: 0 3px; }

/* Ce qui est trop court pour l'échelle se dit à côté, dans son couloir. */
.frise__dit { position: absolute; top: 3px; right: 0; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; color: var(--discret); white-space: nowrap; }
.frise__dit button:not(.frise__retirer):not(.frise__geste) { all: unset; cursor: pointer; }
.frise__dit button:not(.frise__retirer):not(.frise__geste):hover { color: var(--encre); }
.frise__dit b { color: var(--signalVif); font-weight: 600; }
