/* ============================================================
   COUVOIR DU COIN — Assistant Abattage
   main.css — Variables, reset, layout global
   © Couvoir du Coin — couvoirducoin.ca
   ============================================================ */

:root {
  --bg:      #0f1a12;
  --bg2:     #162019;
  --bg3:     #1e2d22;
  --green:   #4ade80;
  --green-dim:  #2d7a4f;
  --green-pale: #1a3a22;
  --amber:      #fbbf24;
  --amber-dim:  #92400e;
  --amber-pale: #2a1f00;
  --red:        #f87171;
  --red-dim:    #7f1d1d;
  --red-pale:   #2a0d0d;
  --blue:       #60a5fa;
  --blue-pale:  #0d1f3a;
  --purple:     #c084fc;
  --purple-pale:#2a1a2a;
  --text:       #e8f5ed;
  --text-dim:   #7aad8a;
  --text-muted: #4a7055;
  --border:        #1e3528;
  --border-bright: #2d5a3a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── ÉCRANS ── */
.screen {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
}
.screen.active { display: flex; }

/* ── UTILITAIRES ── */
.mono { font-family: 'IBM Plex Mono', monospace; }
.text-green  { color: var(--green); }
.text-amber  { color: var(--amber); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }

.tag-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.tag-badge.danger { background: var(--red-pale); color: var(--red); }
.tag-badge.warn   { background: var(--amber-pale); color: var(--amber); }
.tag-badge.tip    { background: var(--green-pale); color: var(--green); }
.tag-badge.info   { background: var(--blue-pale); color: var(--blue); }

/* ── CALLOUT ── */
.callout {
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.82rem;
  line-height: 1.65;
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 10px;
}
.callout .callout-ico { flex-shrink: 0; }
.callout.tip    { background: var(--green-pale); color: #7aad8a; border-left: 3px solid var(--green-dim); }
.callout.warn   { background: var(--amber-pale); color: #d4a017; border-left: 3px solid var(--amber-dim); }
.callout.danger { background: var(--red-pale);   color: #f87171; border-left: 3px solid var(--red-dim); }
.callout.info   { background: var(--blue-pale);  color: #93c5fd; border-left: 3px solid #1e4a8a; }

/* ── TOGGLE PILL ── */
.toggle-pill {
  width: 42px; height: 24px;
  border-radius: 12px;
  background: var(--green-pale);
  border: 1px solid var(--border-bright);
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
}
.toggle-pill.on { background: var(--green-dim); }
.toggle-pill::after {
  content: ''; width: 18px; height: 18px;
  background: var(--text-muted); border-radius: 50%;
  position: absolute; top: 2px; left: 2px;
  transition: all 0.2s;
}
.toggle-pill.on::after { background: var(--green); transform: translateX(18px); }

/* ── PROGRESS BAR ── */
.prog-track { background: var(--border); border-radius: 6px; overflow: hidden; }
.prog-fill  { height: 100%; background: var(--green); border-radius: 6px; transition: width 0.4s ease; }

/* ── CHECKLIST ── */
.mini-checklist { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 5px; }
.mini-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.86rem; color: var(--text-dim);
  cursor: pointer; padding: 7px 10px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: all 0.15s;
}
.mini-check:hover { background: var(--bg2); border-color: var(--border); }
.mini-check input { accent-color: var(--green); width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; cursor: pointer; }
.mini-check.checked-item { color: var(--text-muted); text-decoration: line-through; }

/* ── VERDICT GRID ── */
.verdict-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.verdict-card { border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.79rem; line-height: 1.6; }
.verdict-card .vt { font-weight: 700; font-size: 0.71rem; letter-spacing: 0.05em; margin-bottom: 4px; }
.verdict-card.ok  { background: var(--green-pale); color: #7aad8a; }
.verdict-card.ok .vt { color: var(--green); }
.verdict-card.nok { background: var(--red-pale);   color: #f87171; }
.verdict-card.nok .vt { color: var(--red); }
.verdict-card li { margin-left: 12px; margin-top: 2px; }

/* ── TEMP BLOCK ── */
.temp-big {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-top: 10px;
}
.temp-num { font-family: 'IBM Plex Mono', monospace; font-size: 1.8rem; font-weight: 600; color: var(--green); }
.temp-txt p { font-size: 0.77rem; color: var(--text-muted); }
.temp-txt strong { font-size: 0.87rem; color: var(--text-dim); }

/* ── MODE PAYSAGE ── */
@media (orientation: landscape) and (max-height: 500px) {
  .screen { overflow-y: auto; }
  .equip-body { max-height: calc(100vh - 160px); overflow-y: auto; }
  .main-area  { max-height: calc(100vh - 140px); }
}
