.tour { --tc-vert: #22c55e; --tc-jaune: #f5b301; --tc-rouge: #ff3b45; }
.tour:fullscreen { background: var(--bg); padding: 22px; overflow: auto; }
.tc-haut { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.tc-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px; display: flex; flex-direction: column; min-width: 110px; }
.tc-kpi b { font-size: 26px; line-height: 1.1; }
.tc-kpi span { color: var(--muted); font-size: 12px; }
.tc-kpi.jaune { border-color: var(--tc-jaune); } .tc-kpi.jaune b { color: var(--tc-jaune); }
.tc-kpi.rouge { border-color: var(--tc-rouge); } .tc-kpi.rouge b { color: var(--tc-rouge); }
.tc-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--tc-vert); }
.tc-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--tc-vert); box-shadow: 0 0 0 0 var(--tc-vert); animation: tc-pouls 1.6s infinite; }
@keyframes tc-pouls { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 100% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } }
.tc-bandeau { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
.tc-titre { margin: 14px 0 8px; font-weight: 700; }
.tc-attentes { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.tc-att { flex: 0 0 340px; display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--tc-jaune); border-radius: 12px; padding: 8px; color: inherit; text-decoration: none; }
.tc-att.tc-rouge { border-left-color: var(--tc-rouge); animation: tc-alerte 2.4s infinite; }
.tc-att-ph { width: 64px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--panel-2); display: flex; align-items: center; justify-content: center; flex: none; }
.tc-att-ph img { width: 100%; height: 100%; object-fit: cover; }
.tc-att-t { min-width: 0; flex: 1; font-size: 13px; } .tc-att-t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sugg { color: var(--text); margin-top: 2px; font-size: 12px; }
.tc-att-j { font-weight: 800; color: var(--tc-jaune); font-size: 15px; } .tc-att.tc-rouge .tc-att-j { color: var(--tc-rouge); }
@keyframes tc-alerte { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,69,0); } 50% { box-shadow: 0 0 18px 0 rgba(255,59,69,.35); } }
.tc-grille { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.tc-voies { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.tc-voie { flex: 1 0 176px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 160px; }
.tc-voie header { display: grid; grid-template-columns: 1fr auto; margin-bottom: 8px; } .tc-voie header small { grid-column: 1 / 3; color: var(--faint); font-size: 11px; }
.tc-n { background: var(--panel-2); border-radius: 99px; padding: 0 9px; font-weight: 700; font-size: 13px; }
.tc-pile { display: flex; flex-direction: column; gap: 8px; }
.tc-carte { position: relative; display: block; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; will-change: transform; }
.tc-carte.tc-jaune { border-color: var(--tc-jaune); } .tc-carte.tc-rouge { border-color: var(--tc-rouge); animation: tc-alerte 2.4s infinite; }
.tc-carte.tc-vert { border-color: rgba(34,197,94,.45); }
.tc-photo { position: relative; height: 92px; background: linear-gradient(135deg, #1b1b20, #0d0d0f); display: flex; align-items: center; justify-content: center; }
.tc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .tc-ph { font-size: 30px; font-style: normal; opacity: .5; }
.tc-minuteur { position: absolute; right: 6px; top: 6px; background: rgba(0,0,0,.72); border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 800; color: var(--tc-vert); backdrop-filter: blur(4px); }
.tc-jaune .tc-minuteur { color: var(--tc-jaune); } .tc-rouge .tc-minuteur { color: var(--tc-rouge); } .tc-minuteur.tc-ok { color: var(--tc-vert); }
.tc-info { padding: 7px 9px 9px; font-size: 12px; } .tc-info b { display: block; font-size: 13px; line-height: 1.2; }
.tc-inv { color: var(--faint); } .tc-client { color: var(--muted); margin-top: 2px; } .tc-etape { margin-top: 5px; display: inline-block; background: var(--blue-bg); color: #7aa7ff; border-radius: 99px; padding: 1px 9px; font-weight: 600; }
.tc-trace { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; color: #fff; background: var(--red-2); border-radius: 99px; padding: 0 8px; display: none; }
.tc-nouveau { box-shadow: 0 0 0 2px var(--red-2), 0 0 26px 2px rgba(255,59,69,.55); } .tc-nouveau .tc-trace:not(:empty) { display: block; }
.tc-vitrine { opacity: .9; } .tc-plus { text-align: center; padding: 4px; }
.tc-fil { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); column-gap: 18px; }
.tc-fil > .tc-titre, .tc-fil > .empty { grid-column: 1 / -1; }
.tc-mv { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 12px; }
.tc-mv img, .tc-mv i { width: 38px; height: 30px; object-fit: cover; border-radius: 6px; font-style: normal; text-align: center; background: var(--panel-2); }
.tc-mv b { display: block; font-size: 12px; } .tc-vers { color: var(--tc-vert); font-weight: 700; } .tc-mv small { color: var(--faint); }
.tour:fullscreen .tc-voie { flex-basis: 220px; } .tour:fullscreen .tc-photo { height: 120px; }

/* ===== Plan de Dany (17 nov. 2026) dans la Tour de contrôle : horaire des 2 camions (5 h à 17 h), 7 couleurs de peinture, choix des machines ===== */
#tourTransport { --tc-vert: #22c55e; --tc-jaune: #f5b301; --tc-rouge: #ff3b45; } #tourTransport:empty { display: none; }
.t3-machines .tp-ico { width: 22px; height: 16px; margin-right: 4px; vertical-align: -3px; } .t3-machines button { display: inline-flex; align-items: center; }
.t3-peinture .tp-couleurs { display: inline-flex; }
.tp-ico { display: inline-flex; width: 26px; height: 20px; flex: none; } .tp-ico svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; }
.tp-pastille { position: absolute; right: 2px; bottom: 2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(0,0,0,.6); }
.tp-couleurs { display: flex; gap: 5px; flex-wrap: wrap; }
.tp-coul { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); cursor: pointer; padding: 0; }
.tp-coul.on { border-color: #fff; box-shadow: 0 0 0 2px var(--red-2), 0 0 10px rgba(255,255,255,.4); transform: scale(1.12); }
.tp-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); } .tp-leg i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.tp-tr { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.tp-tr-haut { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.tp-jour { font-weight: 700; text-transform: capitalize; }
.tp-regle, .tp-voie { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: stretch; }
.tp-regle > div { position: relative; height: 18px; } .tp-regle i { position: absolute; transform: translateX(-50%); font-size: 11px; font-style: normal; color: var(--faint); white-space: nowrap; }
.tp-voie { margin-top: 8px; }
.tp-camion { display: flex; flex-direction: column; justify-content: center; background: var(--panel-2); border-radius: 10px; padding: 6px 10px; }
.tp-camion i { width: 54px; height: 24px; color: var(--red-2); } .tp-camion i svg { width: 100%; height: 100%; fill: currentColor; }
.tp-camion small { color: var(--faint); font-size: 11px; }
.tp-piste { position: relative; height: 68px; background: var(--panel-2); border-radius: 10px; cursor: copy; overflow: hidden;
  box-shadow: inset -3px 0 0 var(--tc-rouge); }
.tp-case { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(255,255,255,.08); }
.tp-bloc { position: absolute; top: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; padding: 0 8px; overflow: hidden; cursor: pointer; text-align: left;
  background: color-mix(in srgb, var(--c) 30%, transparent); border: 1px solid var(--c); border-left-width: 5px; border-radius: 8px; color: #fff; }
.tp-bloc:hover { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); z-index: 2; }
.tp-bloc span { min-width: 0; display: flex; flex-direction: column; } .tp-bloc b, .tp-bloc small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; } .tp-bloc small { font-size: 11px; opacity: .85; }
.tp-bloc .tp-ico { width: 30px; height: 24px; color: #fff; }
.tp-bloc.trop { border-color: var(--tc-rouge); } .tp-bloc em { font-style: normal; color: var(--tc-jaune); font-weight: 900; }
.tp-maint { position: absolute; top: 0; bottom: 0; width: 2px; background: #3ce1ff; box-shadow: 0 0 10px #3ce1ff; z-index: 3; pointer-events: none; }
.tp-maint span { position: absolute; top: 2px; left: 4px; font-size: 10px; font-style: normal; color: #3ce1ff; font-weight: 800; white-space: nowrap; }
.tp-form { margin-top: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.tp-form .row { display: flex; flex-wrap: wrap; gap: 10px; } .tp-form .row .f { min-width: 140px; } .tp-form .grow { flex: 1; }
@media (max-width: 760px) {
  .tp-tr { overflow-x: auto; } .tp-regle, .tp-voie { grid-template-columns: 90px 1fr; min-width: 820px; } .tp-camion small { display: none; }
}
/* Parcours de Dany sous la cour 3D : arc 01 → 12 en cartes, portes de l'atelier, palette (17 nov. 2026) */
#tourParcours { margin-top: 14px; } #tourParcours:empty { display: none; } .tp-kpis { margin-top: 0; }
.tp-arc { position: relative; height: 300px; margin: 18px 0 6px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 120%, rgba(227,29,29,.18), transparent 60%), radial-gradient(80% 60% at 50% 0%, rgba(60,225,255,.07), transparent 70%), var(--panel); border: 1px solid var(--line); }
.tp-arc-trait { position: absolute; left: 4%; right: 4%; top: 22px; height: 300px; border: 2px solid transparent; border-top-color: rgba(227,29,29,.55); border-radius: 50% 50% 0 0 / 100% 100% 0 0; filter: drop-shadow(0 0 8px rgba(227,29,29,.6)); pointer-events: none; }
.tp-place { position: absolute; z-index: 1; transform: translate(-50%, 34px) rotate(var(--rot)); width: calc(min(118px, 92% / var(--n) * 1.06)); min-height: 152px; padding: 8px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text); cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(6px); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tp-place:hover, .tp-place.on { transform: translate(-50%, 24px) rotate(var(--rot)) scale(1.06); border-color: var(--red-2); box-shadow: 0 0 22px rgba(227,29,29,.45); z-index: 3; }
.tp-place b { font-size: 12px; line-height: 1.15; min-height: 28px; }
.tp-num { font-size: 22px; font-weight: 900; letter-spacing: .02em; color: var(--faint); line-height: 1; }
.tp-place.pleine .tp-num { color: #fff; text-shadow: 0 0 12px rgba(60,225,255,.6); }
.tp-place.jaune { border-color: var(--tc-jaune); } .tp-place.jaune .tp-num { color: var(--tc-jaune); }
.tp-place.rouge { border-color: var(--tc-rouge); animation: tc-alerte 2.4s infinite; } .tp-place.rouge .tp-num { color: var(--tc-rouge); }
.tp-pile { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 34px; }
.tp-mini { position: relative; display: block; width: 32px; height: 30px; border-radius: 7px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.tp-mini.tc-jaune { border-color: var(--tc-jaune); } .tp-mini.tc-rouge { border-color: var(--tc-rouge); }
.tp-mini-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; } .tp-mini img { width: 100%; height: 100%; object-fit: cover; }
.tp-mini .tp-ico { width: 24px; height: 18px; }
.tp-plus { font-size: 11px; font-weight: 800; color: var(--muted); align-self: center; }
.tp-compte { margin-top: auto; background: var(--panel-2); border-radius: 99px; padding: 0 10px; font-weight: 800; font-size: 13px; }
.tp-place.pleine .tp-compte { background: var(--red-2); color: #fff; }
.tp-detail { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; }
.tp-detail-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tp-ligne { display: flex; flex-direction: column; gap: 6px; }
.tp-portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tp-porte { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.tp-porte header { display: flex; flex-direction: column; margin-bottom: 8px; } .tp-porte header small { color: var(--faint); font-size: 11px; }
.tp-baie { position: relative; min-height: 170px; border-radius: 10px 10px 4px 4px; border: 3px solid #2a2a31; border-bottom-width: 6px; background: linear-gradient(#141418, #0b0b0d); overflow: hidden; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.tp-volet { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; transition: height .8s cubic-bezier(.2,.8,.2,1);
  background: repeating-linear-gradient(180deg, #3a3a42 0 13px, #2b2b31 13px 16px); box-shadow: inset 0 -4px 0 #1b1b1f; }
.tp-porte.occupee .tp-volet { height: 14px; }
.tp-libre { margin: auto; color: var(--faint); font-weight: 700; position: relative; z-index: 1; text-shadow: 0 1px 2px #000; }
.tp-baie-m { position: relative; display: flex; align-items: center; justify-content: center; height: 92px; margin-top: 10px; border-radius: 8px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.tp-baie-m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .tp-baie-m .tp-ico { width: 60px; height: 46px; }
.tp-baie-m.tc-jaune { border-color: var(--tc-jaune); } .tp-baie-m.tc-rouge { border-color: var(--tc-rouge); }
.tp-baie-m .tp-pastille { width: 16px; height: 16px; right: 6px; bottom: 6px; }
.tp-baie-t { font-size: 13px; } .tp-baie-t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-baie-c small { display: block; color: var(--faint); font-size: 11px; margin-bottom: 3px; }
.tp-porte-lavage .tp-baie { box-shadow: inset 0 -30px 40px -30px rgba(60,160,255,.45); }
.tp-porte-sablage .tp-baie { box-shadow: inset 0 -30px 40px -30px rgba(217,199,161,.45); }
.tp-porte-peinture .tp-baie { box-shadow: inset 0 -30px 40px -30px rgba(244,123,32,.5); }
.tp-file { font-size: 12px; color: var(--muted); margin-top: 6px; }
.tp-palette { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 4px; font-size: 13px; }
@media (max-width: 760px) {
  .tp-arc { height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
  .tp-place { position: static; transform: none !important; width: auto; min-height: 0; } .tp-arc-trait { display: none; }
}
