/* atelier.css — VAGUE 2 : atelier (bons de travail). Réutilise les gros boutons de terrain.css (tr-btn, tr-seg, tr-photos…). */

.at-carte { display: block; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; color: inherit; }
.at-carte:hover { border-color: #4a4a55; }
.at-carte.prio-haute, .at-tete.prio-haute { border-left-color: var(--amber); }
.at-carte.prio-urgente, .at-tete.prio-urgente { border-left-color: var(--red); }
.at-tete { border-left: 5px solid var(--line-2); }
.at-num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.at-prob { margin-top: 6px; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-pied { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.at-pulse { animation: at-pulse 2s ease-in-out infinite; }
@keyframes at-pulse { 50% { opacity: .55; } }
.at-barre { margin-top: 14px; }
.at-alertes h2 { display: flex; gap: 8px; align-items: center; }
.at-alertes .pill { margin: 2px 0; }
.at-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); border: 1px solid rgba(245, 158, 11, .45); font-size: 14px; }

/* Chronomètre : le plus gros bouton de l'écran */
.at-chrono { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 12px; align-items: center; margin: 14px 0 10px; }
.at-temps small { display: block; color: var(--faint); font-size: 12px; }
.at-temps b { font-size: 26px; font-variant-numeric: tabular-nums; margin-right: 8px; }
.at-go, .at-stop { min-height: 72px; font-size: 20px; width: 100%; }
.at-go { background: var(--green-bg); border: 2px solid var(--green); color: #fff; }
.at-stop { background: var(--red); border: 2px solid var(--red); color: #fff; }
.at-stop span { font-variant-numeric: tabular-nums; margin-left: 8px; opacity: .9; }
.at-statuts { margin-top: 4px; }
.at-statuts button { font-size: 14px; min-height: 52px; padding: 0 4px; }

.at-sec { margin-top: 12px; }
.at-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.at-sec > summary::-webkit-details-marker { display: none; }
.at-sec > summary h2 { margin: 0; flex: 1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.at-sec > summary::after { content: "▾"; color: var(--faint); font-size: 18px; transition: transform .15s; }
.at-sec:not([open]) > summary::after { transform: rotate(-90deg); }
.at-sec[open] > summary { margin-bottom: 12px; }
.at-sec textarea.in { font-size: 16px; }

.at-point { padding: 10px 0; border-bottom: 1px solid var(--line); }
.at-point-t { font-weight: 600; margin-bottom: 8px; }
.at-point .tr-seg button { min-height: 50px; font-size: 15px; }
.at-note { margin-top: 8px; }
.at-docs { margin: 0 0 8px; padding-left: 0; list-style: none; }
.at-docs li { padding: 4px 0; }
.at-barre-l td { opacity: .55; }
.at-barre-l td b { text-decoration: line-through; }

.at-res { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.at-pieces { max-height: 46vh; overflow-y: auto; margin-top: 10px; display: grid; gap: 6px; }
.at-pc { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.at-pc input { width: 24px; height: 24px; accent-color: var(--red); flex: none; }
.at-pc small { display: block; }
.at-pc:has(input:checked) { border-color: var(--red); background: var(--red-bg); }

@media (max-width: 760px) {
  .at-chrono { grid-template-columns: 1fr; }
  .at-statuts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}
