/* Task 244: the pages of the phones of the Toilettes de la station (maquette 244, taches/maquettes/244/, validated by Adrian on 21 November 2026). The components that are the Toilettes' own, in the tokens and units of
   style.css (var(--u), --card, --gold…) ; everything else (the band, the stage line, the banner, the tabs, the help, the sliders) is zeppelin.css's, as the screens carry the classes « screen game zeppelin toilettes ». */
/* Maquette 244 : composants propres aux Toilettes, dans les jetons et unités du vrai style (var(--u), --card, --gold...). */
.z-network-map { display: block; width: 100%; height: auto; }
.z-sect { cursor: pointer; color: #4a8fb0; }
.z-sect.z-sel { color: var(--gold); }
.z-sect:focus-visible { outline: calc(3 * var(--u)) solid var(--gold); outline-offset: calc(2 * var(--u)); }
.z-chips { display: flex; flex-wrap: wrap; gap: calc(7 * var(--u)); }
.z-chip { min-height: calc(44 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); border-radius: calc(9 * var(--u)); border: calc(1.5 * var(--u)) solid var(--idle-edge); background: var(--secondary-bg); color: var(--text); font: 800 calc(15 * var(--u)) var(--body); }
.z-chip[aria-pressed="true"] { background: var(--active); border-color: var(--active-edge); color: var(--on-gold); }
.z-steps { display: flex; flex-direction: column; }
.z-step { display: grid; grid-template-columns: calc(30 * var(--u)) 1fr auto; gap: calc(10 * var(--u)); align-items: center; padding: calc(9 * var(--u)) 0; border-top: calc(1 * var(--u)) solid var(--line); font-size: calc(16 * var(--u)); }
.z-step:first-child { border-top: 0; }
.z-step i { font-style: normal; font-weight: 800; display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; background: var(--idle); color: var(--muted); font-size: calc(14 * var(--u)); }
.z-step.done i { background: var(--done-bg); color: var(--ok); }
.z-step.now i { background: var(--gold); color: var(--on-gold); }
.z-step.now { color: var(--text); font-weight: 800; }
.z-step.todo { color: var(--muted); }
.z-step .pill { font-size: calc(12 * var(--u)); font-weight: 800; padding: calc(2 * var(--u)) calc(9 * var(--u)); border-radius: 99px; background: var(--idle); color: var(--muted); }
.z-pressure { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: calc(8 * var(--u)); }
.z-pressure strong { font: 800 calc(40 * var(--u)) var(--title); color: var(--gold); }
/* Task 260 (maquette 245 version 7): the big figure takes the colour of its zone: yellow under the window of the great flush, green inside it, orange over it, red from the red mark. */
.z-pressure strong.z-zone-low { color: var(--warn); }
.z-pressure strong.z-zone-ok { color: var(--ok); }
.z-pressure strong.z-zone-high { color: #ff9f3d; }
.z-pressure strong.z-zone-alert { color: var(--alert); }
.z-pressure span { color: var(--muted); font-size: calc(15 * var(--u)); }
.z-bar { position: relative; height: calc(20 * var(--u)); border-radius: calc(10 * var(--u)); background: #11191c; border: calc(1 * var(--u)) solid var(--idle-edge); overflow: hidden; }
.z-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--bar-ok), var(--warn)); border-radius: calc(10 * var(--u)); }
.z-bar span.hot { background: linear-gradient(90deg, var(--warn), var(--alert)); }
/* Task 260: the tank's bar is one yellow fill up to the red mark, then a softer red than the mark for what goes beyond it (the pump's bar keeps its own fill above). */
.z-bar.z-tank span.z-fill { background: var(--warn); }
.z-bar.z-tank span.z-fill.cut { border-radius: calc(10 * var(--u)) 0 0 calc(10 * var(--u)); }
.z-bar.z-tank span.z-over { background: #b8574a; border-radius: 0 calc(10 * var(--u)) calc(10 * var(--u)) 0; inset: 0 auto 0 auto; }
.z-bar em { position: absolute; top: 0; bottom: 0; width: calc(3 * var(--u)); background: var(--alert); }
.z-ends { display: flex; justify-content: space-between; gap: calc(8 * var(--u)); color: var(--muted); font-size: calc(13 * var(--u)); margin-top: calc(5 * var(--u)); }
.z-warnmark { color: var(--alert); text-align: center; }
.z-seg { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); }
.z-sens { min-height: calc(54 * var(--u)); border-radius: calc(10 * var(--u)); border: calc(1.5 * var(--u)) solid var(--idle-edge); background: var(--secondary-bg); color: var(--text); font: 800 calc(18 * var(--u)) var(--body); }
.z-sens[aria-pressed="true"] { background: var(--active); border-color: var(--active-edge); color: var(--on-gold); }
.z-last { display: grid; gap: calc(2 * var(--u)); margin: calc(10 * var(--u)) 0 0; }
/* Seul le mot « Dernier réglage » est en capitales : le nom de qui a réglé et « à l'instant » s'écrivent comme tout le reste (la règle de la maquette atteignait aussi la ligne qui les porte). */
.z-last > span:first-child { color: var(--muted); font-size: calc(13 * var(--u)); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.z-last strong { font-size: calc(17 * var(--u)); }
.z-last small { color: var(--muted); font-size: calc(13 * var(--u)); }
.z-methods { display: flex; flex-direction: column; }
.z-method { display: grid; gap: calc(2 * var(--u)); padding: calc(10 * var(--u)) 0; border-top: calc(1 * var(--u)) solid var(--line); }
.z-method:first-child { border-top: 0; }
.z-method strong { font: 800 calc(19 * var(--u)) var(--title); color: var(--gold); }
.z-method span { font-size: calc(16 * var(--u)); line-height: 1.35; }
.z-count { display: flex; align-items: baseline; gap: calc(12 * var(--u)); }
.z-clock { font: 800 calc(44 * var(--u)) var(--title); color: var(--gold); }
.z-code { display: flex; gap: calc(8 * var(--u)); justify-content: center; margin: calc(10 * var(--u)) 0; }
.z-code span { width: calc(46 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(9 * var(--u)); background: #11191c; border: calc(1.5 * var(--u)) solid var(--line); display: grid; place-items: center; font: 800 calc(28 * var(--u)) var(--title); color: var(--gold); }
.z-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(8 * var(--u)); }
.z-key { min-height: calc(50 * var(--u)); border-radius: calc(9 * var(--u)); border: calc(1.5 * var(--u)) solid var(--idle-edge); background: var(--secondary-bg); color: var(--text); font: 800 calc(20 * var(--u)) var(--body); }
.z-key.go { background: var(--primary-bg); border-color: #9a3d12; color: #fff; }
.z-key:disabled { opacity: .45; }

/* Retours d'Adrian du 21 novembre (maquette 244) */
.z-legend { display: flex; align-items: center; gap: calc(8 * var(--u)); color: var(--muted); font-size: calc(14 * var(--u)); margin: 0; }
.z-sw { display: inline-block; width: calc(26 * var(--u)); height: calc(8 * var(--u)); border-radius: 99px; margin-left: calc(6 * var(--u)); }
.z-sw.blue { background: #4a8fb0; } .z-sw.gold { background: var(--gold); }
.z-how { margin: 0; padding-left: calc(22 * var(--u)); display: grid; gap: calc(4 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.35; }
.z-explain { margin: calc(8 * var(--u)) 0 0; }
.z-lastrow { display: flex; justify-content: space-between; align-items: baseline; gap: calc(8 * var(--u)); }
.z-setting h2 { margin: 0; font-size: calc(22 * var(--u)); }
.z-red .z-clock { color: var(--alert); }
.z-red span { color: var(--alert-text); font-weight: 800; }
.z-slider::-webkit-slider-thumb { width: calc(34 * var(--u)); height: calc(38 * var(--u)); margin-top: calc(5 * var(--u) - 19 * var(--u)); border: calc(2 * var(--u)) solid #8a5f00; border-radius: calc(9 * var(--u)); background: linear-gradient(#5b3f00, #5b3f00) calc(10 * var(--u)) 50% / calc(3.5 * var(--u)) 48% no-repeat, linear-gradient(#5b3f00, #5b3f00) calc(18 * var(--u)) 50% / calc(3.5 * var(--u)) 48% no-repeat, linear-gradient(var(--gold), var(--gold)); }
.z-slider::-moz-range-thumb { width: calc(30 * var(--u)); height: calc(34 * var(--u)); border: calc(2 * var(--u)) solid #8a5f00; border-radius: calc(9 * var(--u)); background: linear-gradient(#5b3f00, #5b3f00) calc(8 * var(--u)) 50% / calc(3.5 * var(--u)) 48% no-repeat, linear-gradient(#5b3f00, #5b3f00) calc(16 * var(--u)) 50% / calc(3.5 * var(--u)) 48% no-repeat, linear-gradient(var(--gold), var(--gold)); }
/* Zone rouge du chemin : à partir de 85 % la pompe est « trop forte » (le curseur déborde de la piste de la demi-largeur de sa poignée, d'où le décalage). */
.z-slider::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--card-2) calc(var(--z-red-from, 85%) - 12 * var(--u)), var(--alert) calc(var(--z-red-from, 85%) - 12 * var(--u))); }
.z-slider::-moz-range-track { background: linear-gradient(90deg, var(--card-2) calc(var(--z-red-from, 85%) - 10 * var(--u)), var(--alert) calc(var(--z-red-from, 85%) - 10 * var(--u))); }

/* The drawing of the network (symbols of index.html laid over each other, labels written by toilettes.js). */
.z-pump-line { stroke: #6fdca0; }
.z-box { fill: var(--card); stroke: #4c5252; }
.z-valve-box { stroke: #ffc53a; stroke-width: 2; }
.z-map-label { font-size: 11px; font-weight: 800; fill: #fff4db; stroke: #20262a; stroke-width: 3; paint-order: stroke; }
.z-map-label.z-pump-text { fill: #6fdca0; stroke: none; }
.z-map-label.z-box-text { stroke: none; font-size: 13px; }
.z-map-label.z-valve-text { fill: #ffc53a; stroke: none; font-size: 12px; }
.z-network-map .z-sect { pointer-events: all; }
.z-network-map .z-sect text { pointer-events: none; }

/* Cinq onglets (le Superviseur d'un ou deux téléphones) : sur l'écran le plus étroit (320 px) le mot le plus long de l'anglais (« Pressure ») doit tenir sur une ligne. */
@media (max-width: 360px) { .z-tabbar.five .tab { font-size: calc(13 * var(--u)); padding: calc(5 * var(--u)) calc(2 * var(--u)); } }

/* Task 245 (maquette 245, validated 22 November 2026): the banner « grande chasse prête » (green inside the window of pressure, yellow under it, red over it: the red is the banner's own) and the window drawn on the pressure bar. */
.z-notice.gf-inside { background: var(--done-bg); border-color: var(--ok); }
.z-notice.gf-inside > .icon { color: var(--ok); }
.z-notice.gf-low { background: var(--refused-bg); border-color: var(--warn); }
.z-notice.gf-low > .icon { color: var(--warn); }
/* Task 263: inside the window with a puddle on the table: the banner is yellow too (not ready yet: wipe the puddle first). */
.z-notice.gf-puddle { background: var(--refused-bg); border-color: var(--warn); }
.z-notice.gf-puddle > .icon { color: var(--warn); }
.z-window { position: absolute; top: 0; bottom: 0; border-left: calc(2 * var(--u)) solid var(--ok); border-right: calc(2 * var(--u)) solid var(--ok); background: #6fdca033; pointer-events: none; }
.z-scale { position: relative; height: calc(18 * var(--u)); margin: calc(5 * var(--u)) calc(1 * var(--u)) 0; color: var(--muted); font-size: calc(13 * var(--u)); }
.z-scale span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.z-scale span.z-first { transform: none; }
.z-scale span.z-last { transform: translateX(-100%); }
.z-note { display: flex; align-items: baseline; gap: calc(6 * var(--u)); margin: calc(6 * var(--u)) 0 0; color: var(--muted); font-size: calc(13 * var(--u)); }
.z-note i { flex: none; width: calc(3 * var(--u)); height: calc(13 * var(--u)); background: var(--alert); transform: translateY(calc(1 * var(--u))); }

/* Task 284 (maquette 282, validated by Adrian): « Ta mission » at the head of the Superviseur's screen, from the start of the round until the first stopper has come out of its pipe. */
.z-mission { margin: calc(10 * var(--u)) calc(14 * var(--u)) 0; padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(12 * var(--u)); background: var(--card); border: calc(1.5 * var(--u)) solid var(--gold); display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.z-mission-title { font: 800 calc(19 * var(--u)) var(--title); color: var(--gold); line-height: 1.1; }
.z-mission-text { margin: 0; font-size: calc(16 * var(--u)); line-height: 1.35; }
@media (min-width: 900.02px) { .z-mission { width: min(calc(100% - 56 * var(--u)), 1116px); margin-left: auto; margin-right: auto; } }
