/* lhs-tracking — styles publics
   Mobile-first, sobre, lisible. Pas de framework.
*/

.lhs-tracking-wrap {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}

.lhs-tracking-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lhs-tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.lhs-tracking-order-num {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.lhs-tracking-status-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}

.lhs-tracking-status-pill.is-progress { background: #dbeafe; color: #1e40af; }
.lhs-tracking-status-pill.is-delivered { background: #d1fae5; color: #065f46; }
.lhs-tracking-status-pill.is-cancelled { background: #fee2e2; color: #991b1b; }

.lhs-tracking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
}

.lhs-tracking-meta strong {
  color: #1f2937;
  font-weight: 600;
}

.lhs-tracking-anomalies {
  margin: 16px 0;
}

.lhs-tracking-anomaly {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}

.lhs-tracking-delay-note {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #1e3a8a;
  margin-bottom: 20px;
}

.lhs-tracking-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lhs-tracking-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.lhs-tracking-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 30px;
  bottom: -6px;
  width: 2px;
  background: #e5e7eb;
}

.lhs-tracking-step.is-reached:not(:last-child)::after {
  background: #10b981;
}

.lhs-tracking-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  border: 3px solid #f9fafb;
  box-shadow: 0 0 0 2px #d1d5db;
  position: relative;
  z-index: 1;
}

.lhs-tracking-step.is-reached .lhs-tracking-step-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px #10b981;
}

.lhs-tracking-step-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.lhs-tracking-step-label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.lhs-tracking-step.is-reached .lhs-tracking-step-label {
  color: #065f46;
  font-weight: 600;
}

.lhs-tracking-step.is-pending .lhs-tracking-step-label {
  color: #9ca3af;
}

.lhs-tracking-step-date {
  font-size: 13px;
  color: #6b7280;
}

.lhs-tracking-cathedis-link {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  color: #4b5563;
}

.lhs-tracking-cathedis-link a {
  color: #2563eb;
  text-decoration: underline;
}

.lhs-tracking-cta {
  margin-top: 24px;
  text-align: center;
}

.lhs-tracking-btn,
.lhs-tracking-btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.lhs-tracking-btn {
  background: #10b981;
  color: #ffffff;
}

.lhs-tracking-btn:hover {
  background: #059669;
}

.lhs-tracking-btn-outline {
  background: transparent;
  color: #10b981;
  border-color: #10b981;
}

.lhs-tracking-btn-outline:hover {
  background: #10b981;
  color: #ffffff;
}

.lhs-tracking-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lhs-tracking-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #111827;
}

.lhs-tracking-sub {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 14px;
}

.lhs-tracking-label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.lhs-tracking-label input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

.lhs-tracking-label input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

.lhs-tracking-hint {
  margin-top: 16px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

.lhs-tracking-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.lhs-tracking-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

@media (max-width: 480px) {
  .lhs-tracking-wrap { margin: 16px auto; }
  .lhs-tracking-card { padding: 18px; border-radius: 10px; }
  .lhs-tracking-header { flex-direction: column; align-items: flex-start; }
  .lhs-tracking-step-date { display: block; flex-basis: 100%; padding-left: 50px; }
}
