* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #222;
  --surface-hover: #202020;
  --border: #2a2a2a;
  --text: #fff;
  --muted: #a0a0a0;        /* était #888 — corrigé WCAG AA (ratio 4.8:1) */
  --green: #22c55e;
  --red: #ef4444;
  --red-text: #f87171;     /* rouge pour le texte uniquement — ratio 4.6:1 */
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --radius: 10px;
  --radius-lg: 14px;

  /* Couleurs de statut */
  --statut-a-traiter: #6b7280;
  --statut-en-cours: #3b82f6;
  --statut-en-attente: #f59e0b;
  --statut-termine: #22c55e;
  --statut-livre: #4ade80;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ─── SIDEBAR ──────────────────────────────────────────── */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  z-index: 10;
}

.sidebar-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s;
  position: relative;
}

.nav-item:hover { color: var(--text); background: var(--surface-hover); }
.nav-item.active { color: var(--text); border-left-color: var(--green); background: rgba(34,197,94,0.08); }

.nav-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.8;
}
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

.nav-item .badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  margin-left: auto;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}
.sidebar-footer:hover { color: var(--red-text); }

/* ─── BOTTOM NAV (tablette portrait / mobile) ──────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 50;
  padding: 0;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  position: relative;
  transition: color 0.15s;
}
.bottom-nav-item.active { color: var(--green); }
.bottom-nav-item .nav-icon { opacity: 1; }
.bottom-nav-item .badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
}

/* ─── MAIN ─────────────────────────────────────────────── */
.main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.section { display: none; flex: 1; flex-direction: column; }
.section.active { display: flex; }

.section-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.section-title { font-size: 20px; font-weight: 700; }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ─── BOUTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: #16a34a; }
.btn-primary:focus { outline: none; box-shadow: 0 0 0 3px rgba(34,197,94,0.3); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #2a2a2a; }
.btn-danger { background: transparent; color: var(--red-text); border: 1px solid var(--red); }
.btn-danger:hover { background: rgba(239,68,68,0.1); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ─── STATUTS ───────────────────────────────────────────── */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-a-traiter { background: rgba(107,114,128,0.15); color: #9ca3af; }
.status-en-cours { background: rgba(59,130,246,0.15); color: var(--blue); }
.status-en-attente { background: rgba(245,158,11,0.15); color: var(--yellow); }
.status-termine { background: rgba(34,197,94,0.15); color: var(--green); }
.status-livre { background: rgba(74,222,128,0.15); color: #4ade80; }

/* ─── INTERVENTIONS ─────────────────────────────────────── */
.interventions-list {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  width: 100%;
  align-self: center;
  box-sizing: border-box;
}

.intervention-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--statut-a-traiter);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.intervention-card:hover {
  border-color: #3a3a3a;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Barre de statut à gauche selon data-statut */
.intervention-card[data-statut="À traiter"]        { border-left-color: var(--statut-a-traiter); }
.intervention-card[data-statut="En cours"]         { border-left-color: var(--statut-en-cours); }
.intervention-card[data-statut="En attente client"]{ border-left-color: var(--statut-en-attente); }
.intervention-card[data-statut="Terminé"]          { border-left-color: var(--statut-termine); }
.intervention-card[data-statut="Livré"]            { border-left-color: var(--statut-livre); }

.intervention-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.intervention-client { font-size: 16px; font-weight: 600; }
.intervention-vehicule { font-size: 13px; color: var(--muted); margin-top: 2px; }
.intervention-probleme { font-size: 14px; color: #d1d5db; margin-bottom: 12px; line-height: 1.4; }

.intervention-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.meta-item { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.montant { font-size: 14px; font-weight: 600; color: var(--green); margin-left: auto; }

.status-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.status-select:hover { border-color: #444; }
.status-select:focus { border-color: var(--green); }

/* Résumé appel IA */
.resume-appel {
  margin-top: 12px;
  padding: 12px;
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 8px;
  font-size: 13px;
  color: #c4c4c4;
  line-height: 1.6;
}
.resume-label {
  font-size: 10px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* ─── SKELETON ──────────────────────────────────────────── */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.skeleton-line {
  background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 5px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── CLIENTS ───────────────────────────────────────────── */
.clients-search-wrap {
  padding: 24px 28px;
  max-width: 900px;
  width: 100%;
  align-self: center;
  box-sizing: border-box;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}

.search-hint { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Résultats de recherche */
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover .search-result-nom { color: var(--green); }

.search-result-nom { font-size: 15px; font-weight: 600; }
.search-result-type { font-size: 12px; color: var(--muted); margin-left: 10px; font-weight: 400; }
.search-result-contact { font-size: 13px; color: var(--muted); }
.search-no-result { color: var(--muted); font-size: 14px; }

/* ─── CARTE CLIENT ──────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.overlay.open {
  opacity: 1;
  pointer-events: all;
}
.overlay.open .carte-client {
  transform: translateY(0);
  opacity: 1;
}

.carte-client {
  background: var(--surface);
  border: 1px solid #333;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.carte-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.carte-nom { font-size: 20px; font-weight: 700; }
.carte-infos { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.carte-info { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }

.carte-stats {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.stat {
  flex: 1;
  text-align: center;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-val { font-size: 24px; font-weight: 700; color: var(--green); }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.4px; }

.carte-historique { padding: 20px 24px; }
.historique-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.histo-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.histo-item:last-child { border-bottom: none; }
.histo-left { flex: 1; }
.histo-date { font-size: 12px; color: var(--muted); }
.histo-vehicule { font-size: 13px; font-weight: 500; margin: 3px 0; }
.histo-probleme { font-size: 13px; color: #c4c4c4; }
.histo-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.histo-montant { font-size: 13px; font-weight: 600; color: var(--green); }

.carte-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
  padding: 0 2px;
}
.close-btn:hover { color: var(--text); }

/* ─── APPELS ─────────────────────────────────────────────── */
.appels-list {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 900px;
  width: 100%;
  align-self: center;
  box-sizing: border-box;
}

.appel-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.appel-item.non-lu { border-left: 3px solid var(--red); }
.appel-item:hover { border-color: #3a3a3a; }

.appel-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.appel-header:hover { background: var(--surface-hover); }

.appel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  transition: background 0.3s;
}
.appel-dot.lu { background: #3a3a3a; }

.appel-infos { flex: 1; min-width: 0; }
.appel-client { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appel-numero { font-size: 12px; color: var(--muted); margin-top: 2px; }

.appel-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.appel-date { font-size: 12px; color: var(--muted); }
.appel-duree { font-size: 11px; color: var(--muted); }

/* Accordéon animé */
.appel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  border-top: 0px solid var(--border);
}
.appel-body.open {
  max-height: 800px;
  border-top: 1px solid var(--border);
}

.appel-resume {
  padding: 14px 18px;
  background: rgba(34,197,94,0.05);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: #c4c4c4;
}
.appel-resume strong {
  color: var(--green);
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.appel-transcription {
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.9;
  color: #aaa;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}
.appel-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* ─── AVIS GOOGLE ────────────────────────────────────────── */
.avis-list {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  width: 100%;
  align-self: center;
  box-sizing: border-box;
}

.avis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.avis-card:hover { border-color: #3a3a3a; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }

.avis-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.avis-auteur { font-size: 15px; font-weight: 600; }
.avis-date { font-size: 12px; color: var(--muted); text-align: right; }
.avis-stars { color: var(--yellow); font-size: 15px; margin-top: 3px; letter-spacing: 1px; }
.avis-contenu { font-size: 14px; color: #d1d5db; line-height: 1.6; margin-bottom: 16px; }

.reponse-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.reponse-text {
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: #c4c4c4;
  line-height: 1.6;
  margin-bottom: 12px;
}
.reponse-edit {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
  display: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.reponse-edit:focus { border-color: var(--green); }

.avis-actions { display: flex; gap: 8px; align-items: center; }
.publie-badge { font-size: 12px; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 4px; }

.attente-ia { color: var(--muted); font-size: 13px; font-style: italic; }

/* ─── MODAL NOUVELLE INTERVENTION ───────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal.open .modal-box {
  transform: translateY(0);
  opacity: 1;
}

.modal-box {
  background: var(--surface);
  border: 1px solid #333;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ─── TOAST ─────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--surface);
  border: 1px solid #333;
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  max-width: 320px;
  animation: toastIn 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.toast.error { border-left-color: var(--red); }
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-sub { color: var(--muted); font-size: 12px; }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 14px;
}
.empty-icon { font-size: 36px; margin-bottom: 14px; opacity: 0.5; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ─── BOUTON EDIT INTERVENTION ───────────────────────────── */
.btn-edit {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.btn-edit:hover { color: var(--text); background: var(--surface2); }

.intervention-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── DROP ZONE PDF ──────────────────────────────────────── */
.dropzone-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.dropzone-modal.open {
  opacity: 1;
  pointer-events: all;
}
.dropzone-modal.open .dropzone-box {
  transform: translateY(0);
  opacity: 1;
}

.dropzone-box {
  background: var(--surface);
  border: 1px solid #333;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dropzone-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.dropzone-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.dropzone-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.dropzone-area:hover,
.dropzone-area.dragover {
  border-color: var(--green);
  background: rgba(34,197,94,0.04);
}
.dropzone-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.dropzone-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.dropzone-text strong { color: var(--text); }

/* État processing */
.dropzone-processing {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.dropzone-processing.active { display: block; }
.dropzone-area.hidden { display: none; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing-text { font-size: 14px; color: var(--muted); }
.processing-text strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

.dropzone-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ─── RESPONSIVE TABLETTE ────────────────────────────────── */
@media (max-width: 768px) {
  body { flex-direction: column; overflow: hidden; }

  .sidebar { display: none; }

  .bottom-nav {
    display: flex;
  }

  .main {
    flex: 1;
    padding-bottom: 64px; /* hauteur bottom-nav */
  }

  .section-header {
    padding: 16px 18px 14px;
  }
  .section-title { font-size: 17px; }

  .interventions-list,
  .appels-list,
  .avis-list {
    padding: 14px 16px;
  }

  .clients-search-wrap {
    padding: 16px;
  }

  .form-row { grid-template-columns: 1fr; }

  .toast-container { top: 12px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }

  .overlay { padding: 40px 12px; }
  .carte-client { max-height: 85vh; }
}
