/* Charte Ops-Devices « ligne claire », reprise de platform/01-web-frontend (tailwind.config.js, app.css) :
   aplats, contour d'encre d'épaisseur constante, aucun dégradé ni flou.
   Trois matières : le pupitre (gris), la plaque (blanc cassé, vissée aux quatre coins), l'écran (noir). */
:root {
  --ink: #14151a; --space: #0b0c10; --paper: #f1f0ec; --trace: #5fd38d;
  --signal: #f28c28; --signal-100: #fde7cf; --signal-300: #f9bd7d; --signal-700: #a8540a; --signal-800: #8a4408;
  --steel-50: #eceef0; --steel-100: #dfe1e5; --steel-200: #cdd0d5; --steel-300: #b6bac1; --steel-400: #9a9fa8;
  --steel-500: #6b7079; --steel-600: #555a63; --steel-700: #40444c; --steel-800: #2c2f36; --steel-900: #1c1e23;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--steel-200); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Barre d'état noire, puis en-tête en plaque : comme sur ops-devices.eu. */
.etat { background: var(--space); border-bottom: 2px solid var(--ink); color: var(--steel-400); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.etat .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); vertical-align: middle; margin-right: 6px; background: var(--trace); }
.etat .led { border-color: var(--space); width: 8px; height: 8px; }
.entete { background: var(--paper); border-bottom: 2px solid var(--ink); }
.entete .wrap { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.entete img { width: 28px; height: 28px; display: block; }
.marque { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.entete .eu { font: 10px var(--mono); text-transform: uppercase; color: var(--steel-500); }
.entete .outil { margin-left: auto; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--steel-700); }

/* Sections en bandes alternées, séparées par un trait d'encre. */
.sec { border-bottom: 2px solid var(--ink); padding: 28px 0 32px; }
.sec-a { background: var(--steel-200); } .sec-b { background: var(--steel-300); }
.sec-head { margin-bottom: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.kicker { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); border: 1.5px solid var(--ink); flex-shrink: 0; }
.h-sec { margin: 6px 0 4px; font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.lede, .aide { font-size: 14.5px; color: var(--steel-800); max-width: 880px; line-height: 1.6; margin: 4px 0 10px; }

/* La plaque : blanc cassé, contour d'encre, quatre vis. */
.plate, .bloc, .fichiers label {
  position: relative; background-color: var(--paper); border: 2px solid var(--ink); border-radius: 8px; color: var(--ink);
  --vis: radial-gradient(circle, var(--ink) 0 1.5px, var(--steel-200) 1.5px 3.5px, var(--ink) 3.5px 4.5px, transparent 5px);
  background-image: var(--vis), var(--vis), var(--vis), var(--vis); background-size: 10px 10px; background-repeat: no-repeat;
  background-position: left 5px top 5px, right 5px top 5px, left 5px bottom 5px, right 5px bottom 5px;
}
.bloc { margin: 16px 0; padding: 18px 22px; }
.fichiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
.fichiers label { display: block; padding: 14px 18px 16px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--steel-600); }
.fichiers input { display: block; width: 100%; margin-top: 6px; padding: 7px 10px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; font: 13px var(--sans); text-transform: none; letter-spacing: 0; }
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--signal); }

button { display: inline-block; border: 2px solid var(--ink); background: var(--signal); padding: 9px 16px; min-height: 40px; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); border-radius: 6px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; transition: transform .1s; }
button:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
button.second { background: var(--paper); }
a { color: var(--signal-800); font-weight: 600; }

table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 8px 0; }
th { padding: 9px 12px; text-align: left; vertical-align: bottom; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--steel-600); border-bottom: 2px solid var(--ink); }
td { padding: 9px 12px; vertical-align: top; font-family: var(--mono); color: var(--steel-800); border-bottom: 1px solid rgba(20, 21, 26, .15); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 600; }
select { font: 13px var(--sans); padding: 5px 8px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; max-width: 100%; }

/* Encadré : plaque avec une barre à gauche. Signal = à regarder, gris = information. */
.note { background: var(--paper); border: 2px solid var(--ink); border-left: 10px solid var(--steel-500); border-radius: 6px; padding: 12px 18px; margin: 12px 0; font-size: 14px; }
.note.alerte { border-left-color: var(--signal); }
.note.ok { border-left-color: var(--trace); }
.note table { background: transparent; }

/* L'écran : noir, liseré intérieur, texte clair à chasse fixe. Il affiche ce que le Cube a vu. */
.screen { background: var(--space); border: 2px solid var(--ink); border-radius: 8px; color: var(--steel-100); font-family: var(--mono); padding: 14px 20px; box-shadow: inset 0 0 0 4px var(--steel-900), inset 0 0 0 5px var(--steel-700); }
.alerte-ligne { display: grid; grid-template-columns: 170px 1fr; gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--steel-800); font-size: 13px; }
.alerte-ligne:last-child { border-bottom: 0; }
.alerte-ligne .quand { color: var(--signal-300); }
.pastille { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; padding: 1px 8px; border: 1.5px solid var(--steel-500); border-radius: 999px; margin-right: 8px; color: var(--steel-300); }
.pastille.alerte { background: var(--signal); color: var(--ink); border-color: var(--signal); font-weight: 700; }
.pourquoi { color: var(--steel-400); margin-top: 3px; font-family: var(--sans); font-size: 13.5px; }

.porteur-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
h3 { margin: 0; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
h3 .aide, .porteur-tete > .aide { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--steel-600); margin: 0; }
.niveaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.niveau { display: block; padding: 10px 14px; background: #fff; border: 2px solid var(--steel-400); border-radius: 6px; cursor: pointer; font-size: 13px; }
.niveau:has(input:checked) { border-color: var(--ink); background: var(--signal-100); box-shadow: 0 3px 0 var(--ink); }
.niveau b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; } .niveau input { margin-right: 6px; accent-color: var(--signal-700); }
.niveau .chiffres { display: block; margin-top: 5px; color: var(--steel-700); font: 12px/1.5 var(--mono); }
.semaine, .heures { display: grid; grid-template-columns: 90px 1fr 120px; gap: 4px 12px; align-items: center; }
.semaine { font: 12px var(--mono); margin: 4px 0 10px; }
.semaine > span:first-of-type, .semaine > span:nth-of-type(odd) { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; color: var(--steel-700); }
.heures { font: 10px var(--mono); color: var(--steel-600); } .heures div { display: flex; justify-content: space-between; }
.piste { position: relative; height: 16px; background: var(--steel-100); border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.piste i { position: absolute; top: 0; bottom: 0; background: var(--steel-800); }
.piste i.planning { background: var(--signal); }
.legende { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--steel-700); display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
.legende span::before { content: ''; display: inline-block; width: 12px; height: 10px; margin-right: 6px; border: 1.5px solid var(--ink); vertical-align: -1px; background: var(--c); }
ul.phrases { margin: 8px 0; padding-left: 20px; font-size: 14px; } ul.phrases li { margin: 4px 0; }
summary { cursor: pointer; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
code, .mono, pre { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
pre.mono { background: var(--space); color: var(--steel-100); border: 2px solid var(--ink); border-radius: 8px; padding: 14px 18px; box-shadow: inset 0 0 0 4px var(--steel-900), inset 0 0 0 5px var(--steel-700); }
footer { background: var(--space); color: var(--steel-400); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
footer .wrap { padding-top: 14px; padding-bottom: 18px; }
[hidden] { display: none !important; }

/* ── Le schéma à suivre : quatre stations reliées par un trait ─────────────── */
.parcours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: st; }
.station { position: relative; }
.station:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -26px; width: 26px; border-top: 2px solid var(--ink); }
.station:not(:last-child)::before { content: ''; position: absolute; top: calc(50% - 5px); right: -8px; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); z-index: 1; }
.station a { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; height: 100%; padding: 14px 16px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 3px 0 var(--ink); color: var(--ink); text-decoration: none; font-weight: 400; }
.station a:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.station svg { grid-column: 1 / -1; width: 100%; max-width: 150px; height: 70px; margin: 0 auto 4px; }
.station .n { grid-row: span 2; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--steel-100); font: 700 14px var(--sans); }
.station b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.station .quoi { font-size: 13.5px; color: var(--steel-800); }
.station .ou { grid-column: 1 / -1; margin-top: 6px; padding-top: 8px; border-top: 1.5px solid var(--ink); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--steel-700); }
.station .ou::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--steel-300); margin-right: 7px; vertical-align: -1px; }
.station.encours .n { background: var(--signal); } .station.encours .ou::before { background: var(--signal); }
.station.fait .n { background: var(--trace); } .station.fait .ou::before { background: var(--trace); }
.station.attend a { background: var(--steel-100); box-shadow: none; } .station.attend svg { opacity: .45; }
.f-paper { fill: var(--paper); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; } .f-signal { fill: var(--signal); stroke: var(--ink); stroke-width: 2; }
.f-space { fill: var(--space); stroke: var(--ink); stroke-width: 2; } .f-steel { fill: var(--steel-100); stroke: var(--ink); stroke-width: 1.5; } .f-ink { fill: var(--steel-800); }
.trait { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .trait.gros { stroke-width: 4; } .trait.fin { stroke-width: 1.5; }
.trait-clair { fill: none; stroke: var(--steel-300); stroke-width: 2; stroke-linecap: round; }

/* ── Dans chaque étape : « à faire » à gauche, repère de lecture à droite ───── */
.deux { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.faire, .lecture { background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 14px 20px 16px; }
.faire { border-left: 10px solid var(--signal); }
.faire h3, .lecture h3 { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--steel-600); margin: 0 0 8px; }
.faire ol { margin: 0; padding: 0; list-style: none; counter-reset: f; }
.faire li { counter-increment: f; position: relative; padding: 5px 0 5px 34px; font-size: 14.5px; }
.faire li::before { content: counter(f); position: absolute; left: 0; top: 5px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--signal-100); font: 700 11px var(--sans); }
.faire p { margin: 12px 0 0; }
.liste { list-style: none; margin: 0; padding: 12px 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; }
.liste li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(20, 21, 26, .15); font-size: 14px; }
.liste li:last-child { border-bottom: 0; }
.liste li span:last-child { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--steel-600); }
.liste .led { background: var(--steel-100); margin: 0; } .liste .fait .led { background: var(--trace); } .liste .manque .led { background: var(--signal); }
.liste .manque span:last-child { color: var(--signal-800); font-weight: 700; }
.fichiers label em { float: right; font-style: normal; color: var(--steel-500); }
.fichiers.une { grid-template-columns: 1fr; margin: 14px 0 4px; }
.screen.mini { padding: 8px 16px; } .screen.mini .alerte-ligne { grid-template-columns: 140px 1fr; font-size: 12px; }
.legende-svg { width: 100%; height: auto; } .legende-svg text { font: 11px var(--mono); fill: var(--steel-800); } .legende-svg .gras { font-weight: 700; fill: var(--ink); }

/* Étapes verrouillées tant que l'étape 1 n'est pas faite : visibles, pour qu'on voie la suite. */
.attente { background: var(--steel-100); border: 2px dashed var(--steel-500); border-radius: 8px; padding: 14px 18px; font-size: 14px; color: var(--steel-700); margin: 0; }
.contenu { display: none; } body.pret .contenu { display: block; } body.pret .attente { display: none; }

/* Le trajet des règles, étape 4. */
.flux { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.flux li { position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 12px 14px; display: grid; gap: 3px; font-size: 13px; color: var(--steel-800); }
.flux li:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -26px; width: 26px; border-top: 2px solid var(--ink); }
.flux li:not(:last-child)::before { content: ''; position: absolute; top: calc(50% - 5px); right: -8px; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); z-index: 1; }
.flux svg { width: 60px; height: 50px; } .flux b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
#resume { margin: 0; }

@media (max-width: 900px) {
  .parcours, .flux { grid-template-columns: 1fr 1fr; gap: 16px; }
  .station::after, .station::before, .flux li::after, .flux li::before { display: none; }
  .deux { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .parcours, .flux { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .niveaux { grid-template-columns: 1fr; } .alerte-ligne { grid-template-columns: 1fr; } .semaine, .heures { grid-template-columns: 74px 1fr; } .semaine .txt, .heures .vide:last-child { display: none; } .entete .outil { margin-left: 0; width: 100%; } }

/* Prévisions tirées des sources brutes. */
h4 { margin: 18px 0 2px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink); }
td.source { font-family: var(--sans); font-size: 13.5px; max-width: 380px; } td.source span { font: 10.5px var(--mono); color: var(--steel-600); }
button.petit { min-height: 30px; padding: 3px 10px; font-size: 10.5px; box-shadow: 0 2px 0 var(--ink); margin: 2px 2px 2px 0; }
#previsions .pastille { color: var(--steel-700); border-color: var(--steel-500); } #previsions .pastille.alerte { color: var(--ink); border-color: var(--ink); }
.pastille.ok { background: var(--trace); color: var(--ink); border-color: var(--ink); font-weight: 700; }
#previsions td { vertical-align: middle; }

figure.scan{margin:14px 0 0;max-width:420px}figure.scan img{width:100%;display:block;border:1px solid var(--steel-300,#c9ced6);border-radius:4px}figure.scan figcaption{font-size:.82rem;opacity:.75;margin-top:6px}
#detail>summary{cursor:pointer;font-weight:600}

/* Étape 1 : deux entrées, pas un formulaire. */
.entrees { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; margin: 6px 0 14px; align-items: stretch; }
.entree { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 18px 22px 20px; }
.entree h3 { margin: 4px 0 10px; font-size: 19px; }
.entree .kicker { margin-bottom: 2px; }
.qr-cadre { background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 10px; width: 216px; max-width: 100%; position: relative; }
.qr-cadre svg { display: block; width: 100%; height: auto; }
.qr-cadre .sid { display: block; text-align: center; font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-600); margin-top: 6px; }
.entree.qr.large { margin-top: 14px; max-width: 520px; }
.maquette { border-left: 3px solid var(--signal); padding-left: 10px; }
.depot { border-style: dashed; border-width: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; min-height: 320px; transition: background .12s, border-color .12s; }
.depot { position: relative; }
.depot .kicker { position: absolute; top: 18px; left: 22px; }
.depot svg { width: 150px; height: auto; margin: 6px 0 4px; }
.depot h3 { font-size: 24px; margin: 6px 0 6px; }
.depot p { max-width: 520px; margin: 4px 0; }
.depot:hover, .depot:focus-visible, body.survol .depot { background: #fff; border-color: var(--signal); outline: none; }
body.survol .depot h3::after { content: " : lâchez"; }
.demo-ligne { margin: 0 0 14px; }
.recus { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.recus li { display: grid; grid-template-columns: 14px 1fr auto; column-gap: 8px; align-items: center; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.recus li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recus .nat, .recus .det { grid-column: 2 / 4; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-600); }
.recus .det { text-transform: none; letter-spacing: 0; font: 12px var(--sans); }
.recus button { grid-column: 3; grid-row: 1; }
.recus .led { width: 10px; height: 10px; border-radius: 50%; background: #2e9e5b; }
.recus li.image .led, .recus li.refus .led, .recus li.manque .led { background: var(--signal); }
.recus li.manque { border-style: dashed; }
@media (max-width: 760px) { .entrees { grid-template-columns: 1fr; } .depot { min-height: 220px; } }

/* La caméra : un papier, une photo, ce qui est reconnu s'allume. */
.entree.camera { margin: 0 0 14px; }
.cam-tete { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cam-tete > div { max-width: 640px; }
.cam-boutons { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.cam-scene { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.cam-scene[hidden] { display: none; }
.cam-cadre { position: relative; background: #0b0c10; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; line-height: 0; min-height: 120px; }
.cam-cadre video, .cam-cadre canvas { width: 100%; height: auto; display: block; }
.cam-cadre svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-cadre rect { fill-opacity: .28; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: cam-allume .35s ease-out forwards; }
.cam-cadre rect.date { fill: #f28c28; stroke: #f28c28; }
.cam-cadre rect.heure { fill: #1f6feb; stroke: #1f6feb; }
.cam-cadre rect.personne { fill: #2e9e5b; stroke: #2e9e5b; }
.cam-cadre rect.machine { fill: #8a93a1; stroke: #5b6472; }
.cam-cadre rect.illisible { fill: #14151a; fill-opacity: .12; stroke: #14151a; stroke-dasharray: 8 6; stroke-width: 2; }
@keyframes cam-allume { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: scale(1); } }
.cam-balayage { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(to bottom, rgba(242, 140, 40, 0), rgba(242, 140, 40, .55)); border-bottom: 3px solid #f28c28; display: none; }
.cam-cadre.lecture .cam-balayage { display: block; animation: cam-balaie 1.1s linear infinite; }
@keyframes cam-balaie { from { transform: translateY(-100%); } to { transform: translateY(460%); } }
.cam-legende { display: flex; gap: 14px; flex-wrap: wrap; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; margin: 10px 0; }
.cam-legende span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; background: currentColor; }
.cam-legende .date { color: #c96a10; } .cam-legende .heure { color: #1f6feb; } .cam-legende .personne { color: #2e9e5b; } .cam-legende .machine { color: #5b6472; }
.cam-cote table { font-size: 13.5px; }
.scans { display: flex; gap: 14px; flex-wrap: wrap; }
.scans figure.scan { max-width: 300px; }
@media (max-width: 860px) { .cam-scene { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cam-cadre rect { animation: none; opacity: 1; } .cam-cadre.lecture .cam-balayage { animation: none; } }

/* Lecture par le modèle */
.modele { border-top: 2px solid var(--ink); margin-top: 18px; padding-top: 12px; }
.modele h4 { margin: 0; }
.modele table td:first-child { max-width: 420px; }
.modele .note .led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); margin-right: 6px; animation: pouls 1s infinite; }
@keyframes pouls { 50% { opacity: .25; } }
button:disabled { opacity: .45; cursor: default; }

/* Liaison optique : codes plus grands, lus par un téléphone tenu devant l'écran. */
.qr-cadre.grand { width: 380px; }
.entree.optique { margin-top: 14px; max-width: 520px; }

/* La porte de la démonstration publique */
.porte { position: fixed; inset: 0; z-index: 50; background: rgba(11, 12, 16, .86); display: flex; align-items: center; justify-content: center; padding: 20px; }
.porte[hidden] { display: none; }
.porte-carte { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 26px 30px 22px; max-width: 520px; width: 100%; }
.porte-carte img { width: 44px; height: 44px; display: block; margin-bottom: 8px; }
.porte-carte h1 { font-size: 24px; margin: 4px 0 10px; }
.porte-carte label { display: block; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--steel-600); margin: 14px 0; }
.porte-carte input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 16px var(--sans); text-transform: none; letter-spacing: 0; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); box-sizing: border-box; }
.porte-carte button { width: 100%; }
