/* ---- Interface Transporteur ---- */
#transporteur-section {
  padding-top: 8px;
  max-width: 480px;
  margin: 0 auto;
}

#tr-capture-cercles .hex-svg {
  width: 200px;
  height: 232px;
}
@media (max-width: 600px) {
  #tr-capture-cercles .hex-svg {
    width: 150px;
    height: 174px;
  }
}

.tr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tr-btn-retour {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.tr-btn-retour:active { border-color: var(--orange); color: var(--orange); }

.tr-btn-deconnexion {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}
.tr-btn-deconnexion:active { border-color: var(--red); color: var(--red); }

.tr-header {
  text-align: center;
  padding: 16px 0 8px;
}

.tr-header-projet {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.tr-header-titre {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}


#tr-analyse-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 16px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 600;
}
#tr-analyse-badge::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  animation: tr-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tr-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.tr-liste {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  overflow: hidden;
}

.tr-liste-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
}

.tr-liste-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.tr-empty {
  text-align: center;
  padding: 36px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.tr-bon-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.tr-bon-item:last-child { border-bottom: none; }
.tr-bon-pending { opacity: 0.6; }
.tr-bon-pending .tr-bon-statut { animation: tr-pulse 1.2s ease-in-out infinite; }

.tr-bon-statut {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.tr-bon-info { flex: 1; min-width: 0; }

.tr-bon-numero {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-bon-detail {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.tr-bon-type {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.tr-bon-type.type-A  { background: rgba(74,222,128,.15); color: var(--green); }
.tr-bon-type.type-T  { background: rgba(249,115,22,.15); color: var(--orange); }
.tr-bon-type.type-B  { background: rgba(249,115,22,.12); color: var(--orange); }
.tr-bon-type.type-E  { background: rgba(248,113,113,.12); color: var(--red); }
.tr-bon-type.type-GE { background: rgba(167,139,250,.12); color: var(--purple); }

.tr-bon-del {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.4;
  padding: 6px;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.tr-bon-del:active { opacity: 1; }

@media (max-width: 767px) {
  #transporteur-section { padding-top: 0; }
  .tr-btn-photo { padding: 26px; font-size: 1.2rem; }
}

/* ---- App mobile uniquement (iOS + Android) ---- */
body.capacitor-app .projets-cercles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 12px;
}
body.capacitor-app .projets-cercles .hex-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 100 / 116;
}
body.capacitor-app #tr-capture-cercles {
  display: flex;
  justify-content: center;
}
body.capacitor-app #tr-capture-cercles .hex-svg {
  width: 230px;
  height: 267px;
}
body.capacitor-app #transporteur-section {
  padding-top: 60px;
}
