/* ===========================================================================
   GemardMeca — Espace client (tableau de bord & suivi en direct)
   Complète assets/css/style.css (mêmes variables de thème).
   =========================================================================== */

.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--accent); font-weight: 600; margin-left: 8px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(37,217,196,.6); animation: pulse 1.8s infinite; }

.appt-list { display: grid; gap: 18px; }
.appt-card {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s;
}
.appt-card:hover { border-color: var(--border-strong); }
.appt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.appt-head b { font-family: var(--font-display); font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.appt-head b svg { color: var(--primary-soft); }
.appt-head small { color: var(--muted); display: block; margin-top: 4px; }

.appt-badge { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 5px 12px; border-radius: 100px; white-space: nowrap; border: 1px solid; transition: background .3s, color .3s; }
.appt-badge.flash { animation: badgeflash 1.2s var(--ease); }
@keyframes badgeflash { 0% { transform: scale(1); } 30% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255,106,26,.12); } 100% { transform: scale(1); } }
.status-demande  { background: rgba(255,106,26,.15); color: var(--primary-soft); border-color: rgba(255,106,26,.35); }
.status-confirme { background: rgba(80,160,255,.15); color: #8ec1ff; border-color: rgba(80,160,255,.35); }
.status-en_cours { background: rgba(255,200,40,.13); color: #ffd24a; border-color: rgba(255,200,40,.35); }
.status-termine  { background: rgba(37,217,196,.13); color: var(--accent); border-color: rgba(37,217,196,.35); }
.status-annule   { background: rgba(255,90,90,.12);  color: #ff9d9d; border-color: rgba(255,90,90,.35); }

/* Suivi par étapes (barre de progression horizontale) */
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; }
.trk-step { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; position: relative; }
.trk-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.trk-step:first-child::before { display: none; }
.trk-step.done::before, .trk-step.active::before { background: linear-gradient(90deg, var(--primary), var(--primary-soft)); }
.trk-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 2px solid var(--border); color: var(--accent); transition: .35s var(--ease); }
.trk-step.done .trk-dot { background: rgba(37,217,196,.15); border-color: var(--accent); }
.trk-step.active .trk-dot { background: rgba(255,106,26,.18); border-color: var(--primary); box-shadow: 0 0 0 5px rgba(255,106,26,.12); }
.trk-label { font-size: .8rem; color: var(--muted); max-width: 90px; }
.trk-step.active .trk-label, .trk-step.done .trk-label { color: var(--text); }

.appt-cancelled { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.3); color: #ff9d9d; font-size: .9rem; }
.appt-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; }

.client-empty { text-align: center; padding: 60px 24px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border-strong); }
.client-empty svg { color: var(--primary-soft); margin: 0 auto 18px; }
.client-empty h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.client-empty p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 560px) {
  .trk-label { font-size: .68rem; }
  .trk-dot { width: 28px; height: 28px; }
}
