.clients-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clients-sticky-toolbar.parametres-toolbar {
  z-index: 45;
}

.clients-toolbar-nav,
.clients-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clients-toolbar-nav {
  flex: 1;
  min-width: 0;
}

.clients-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.clients-kpi {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clients-kpi-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.clients-kpi strong {
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

.clients-topbar {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.clients-topbar-left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 340px;
  flex: 1;
}

.action-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  backdrop-filter: blur(10px);
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.action-btn.primary,
.action-btn.active {
  background: linear-gradient(135deg, rgba(236,72,153,0.24), rgba(139,92,246,0.24));
  border-color: rgba(236,72,153,0.35);
  box-shadow: 0 10px 25px rgba(236,72,153,0.15);
  color: #fff;
}

.action-btn.danger {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.28);
  color: #fca5a5;
}

.action-btn.danger:hover {
  background: rgba(239,68,68,0.18);
  color: #fff;
}

.clients-card {
  padding: 14px 16px 16px;
  width: 100%;
  min-width: 0;
}

.clients-table-wrap {
  overflow-x: auto;
}

.clients-table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.clients-table-modern thead th {
  text-align: left;
  padding: 0 16px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.50);
  border-bottom: none;
  white-space: nowrap;
}

.clients-table-modern tbody tr {
  transition: 0.2s ease;
}

.clients-table-modern tbody tr:hover {
  transform: translateY(-1px);
}

.clients-table-modern tbody td {
  padding: 18px 16px;
  border: none;
  color: #fff;
  font-size: 14px;
  vertical-align: middle;
  background: rgba(255,255,255,0.04);
}

.client-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(236,72,153,0.56), rgba(139,92,246,0.52));
  border: 1px solid rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.client-main-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-main-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-main-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.client-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f9a8d4;
  border: 1px solid rgba(236,72,153,0.35);
  background: rgba(236,72,153,0.14);
}

.clients-table-modern tbody td:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  width: 42px;
}

.clients-table-modern tbody td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.clients-table-modern tbody tr:hover td {
  background: rgba(255,255,255,0.06);
}

.clients-table-modern td:nth-child(2) {
  font-weight: 600;
  color: #fff;
}

.clients-table-modern td:nth-child(3),
.clients-table-modern td:nth-child(4) {
  color: rgba(255,255,255,0.88);
}

.clients-table-modern input,
.clients-table-modern select,
.clients-table-modern textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: 0.2s ease;
  box-sizing: border-box;
}

.clients-table-modern input:focus,
.clients-table-modern select:focus,
.clients-table-modern textarea:focus {
  border-color: rgba(236,72,153,0.35);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.12);
}

.clients-table-modern select option {
  background: #0f172a;
  color: #fff;
}

.empty-clients {
  text-align: center;
  padding: 44px 20px !important;
  color: rgba(255,255,255,0.62) !important;
  font-size: 14px;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 16px;
}

/* Boutons injectés éventuels */
.clients-table-modern .project-btn,
.clients-table-modern button.project-btn,
.clients-table-modern .delete-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clients-table-modern .project-btn:hover,
.clients-table-modern button.project-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.clients-table-modern .delete-btn {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.24);
  color: #fca5a5;
}

.clients-table-modern .delete-btn:hover {
  background: rgba(239,68,68,0.18);
  color: #fff;
}

/* Modales modernes réutilisables */
.modal-overlay-modern {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}

.modal-box-modern {
  width: min(460px, 92vw);
  background: rgba(12, 18, 34, 0.94);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
  position: relative;
}

.modal-box-modern h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.modal-box-modern .form-group {
  margin-bottom: 14px;
}

.modal-box-modern .form-group label {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  display: block;
}

.modal-box-modern .form-group input,
.modal-box-modern .form-group select,
.modal-box-modern .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
  backdrop-filter: blur(8px);
}

.modal-box-modern .form-group input:focus,
.modal-box-modern .form-group select:focus,
.modal-box-modern .form-group textarea:focus {
  border-color: rgba(236,72,153,0.35);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.12);
}

.modal-box-modern .form-group input::placeholder {
  color: rgba(255,255,255,0.32);
}

.modal-box-modern .form-group select option {
  background: #0f172a;
  color: #fff;
}

.modal-text-modern {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

.modal-actions-modern {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.modal-btn-modern {
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  backdrop-filter: blur(10px);
}

.modal-btn-modern:hover {
  transform: translateY(-1px);
}

.modal-btn-cancel {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.modal-btn-cancel:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
}

.modal-btn-confirm {
  border: 1px solid rgba(236,72,153,0.35);
  background: linear-gradient(135deg, rgba(236,72,153,0.24), rgba(139,92,246,0.24));
  color: #fff;
  box-shadow: 0 10px 25px rgba(236,72,153,0.15);
}

.modal-btn-confirm:hover {
  box-shadow: 0 14px 28px rgba(236,72,153,0.18);
}

.modal-close-modern {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 24px;
  color: rgba(255,255,255,0.56);
  transition: 0.2s ease;
  cursor: pointer;
}

.modal-close-modern:hover {
  color: #fff;
}

/* Résultats ville */
.client-city-group {
  position: relative;
}

#cityResults {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(12, 18, 34, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 12px 14px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.06);
}

@media (max-width: 1200px) {
  .clients-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-table-modern {
    min-width: 780px;
  }
}

@media (max-width: 980px) {
  .clients-sticky-toolbar.parametres-toolbar .clients-toolbar-nav,
  .clients-sticky-toolbar.parametres-toolbar .clients-toolbar-actions {
    width: 100%;
  }

  .clients-sticky-toolbar.parametres-toolbar .clients-toolbar-actions .action-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .clients-kpi-grid {
    grid-template-columns: 1fr;
  }
}