:root {
  --bleu: #2563eb;
  --bleu-fonce: #1d4ed8;
  --violet: #6366f1;
  --dore: #f59e0b;
  --fond: #eef2ff;
  --gris: #d1d5db;
  --texte-clair: #6b7280;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #e0e7ff 0, #eef2ff 45%, #f9fafb 100%);
  color: #111827;
}

/* Neumorphisme léger */
.neumorph {
  background: linear-gradient(145deg, #ffffff, #e5e7eb);
  box-shadow: 8px 8px 20px rgba(15,23,42,0.08), -6px -6px 16px rgba(255,255,255,0.85);
  border-radius: 24px;
}

/* Login overlay */
.login-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1d4ed8, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.login-card {
  padding: 24px 22px 20px;
  width: min(360px, 90%);
  text-align: center;
}
.login-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 6px;
}
.login-sub {
  font-size: 12px;
  color: var(--texte-clair);
  margin-bottom: 14px;
}
.login-card input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 10px;
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 20px;
  font-weight: 700;
  background: #f9fafb;
}
.login-btn {
  width: 100%;
  margin-top: 12px;
}
.login-error {
  margin-top: 8px;
  color: #ef4444;
  display: none;
}
body.logged .login-screen { display: none; }

/* HEADER iOS */
.ios-header {
  position: relative;
  background: linear-gradient(135deg, #1d4ed8, #6366f1);
  color: #fff;
  padding: 18px 18px 26px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 10px 32px rgba(15,23,42,0.3);
}
.ios-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ios-pill-time {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.25);
  font-size: 11px;
  backdrop-filter: blur(10px);
}
.ios-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f9fafb;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15,23,42,0.35);
}
.ios-header-bottom .ios-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ios-header-bottom .ios-subtitle {
  font-size: 11px;
  opacity: .9;
}

/* MAIN */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 14px 40px;
}

/* TABS */
.tabs {
  display: inline-flex;
  gap: 8px;
  margin: -26px auto 18px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15,23,42,0.12);
  backdrop-filter: blur(10px);
}
.tab-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}
.tab-btn.active {
  background: #f9fafb;
  color: #111827;
  box-shadow: 0 4px 12px rgba(15,23,42,0.25);
}

/* Tabs content */
.tab {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  display: none;
}
.tab.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.45s ease-out forwards;
}
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.13s; }
.delay-3 { animation-delay: 0.21s; }
.delay-4 { animation-delay: 0.29s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseSoft {
  0%   { transform: scale(1); box-shadow: 0 8px 20px rgba(79,70,229,0.35); }
  50%  { transform: scale(1.03); box-shadow: 0 10px 26px rgba(79,70,229,0.45); }
  100% { transform: scale(1); box-shadow: 0 8px 20px rgba(79,70,229,0.35); }
}
.pulse-on-change.pulse {
  animation: pulseSoft 0.5s ease-out;
}

/* Grid cartes stats */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 18px;
}
@media(max-width:900px){ .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(max-width:600px){ .grid { grid-template-columns: 1fr; } }

/* style.css – ajoute / adapte ces styles (par ex. après .grid {...}) */

/* ===== Cartes stats dashboard (4 cartes) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 18px;
}
@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  padding: 14px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
}

/* ===== Layout calendrier violet + colonne de droite ===== */
.calendar-dashboard {
  display: block;
  margin-bottom: 18px;
}

/* Carte calendrier violet */
.calendar-month {
  padding: 16px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, #312e81, #6366f1);
  color: #e5e7eb;
  box-shadow: 0 14px 30px rgba(15,23,42,0.35);
}

/* structure interne du calendrier mensuel */
#dash-month-calendar {
  font-size: 13px;
}

/* en-tête (mois + flèches) */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}
.cal-title {
  font-weight: 600;
}
.cal-nav {
  border: none;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15,23,42,0.35);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 11px;
}

/* jours de la semaine */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.85;
}
.cal-weekdays span {
  text-align: center;
}

/* grille des jours */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-cell {
  min-height: 34px;
  border-radius: 12px;
}
.cal-cell.empty {
  background: transparent;
}

/* chaque jour */
.cal-cell.day {
  border: none;
  background: rgba(15,23,42,0.16);
  color: #e5e7eb;
  cursor: pointer;
  padding: 3px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform 0.08s ease-out, box-shadow 0.12s ease-out, background 0.15s ease-out;
}
.cal-cell.day:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15,23,42,0.4);
}
.cal-day-number-sm {
  font-size: 12px;
  font-weight: 500;
}

/* aujourd'hui (contour) */
.cal-cell.day.is-today {
  box-shadow: 0 0 0 1px rgba(251,191,36,0.9);
}

/* jour sélectionné (case blanche) */
.cal-cell.day.is-selected {
  background: #f9fafb;
  color: #111827;
}

/* jour avec au moins une intervention (case colorée) */
.cal-cell.day.has-intervention {
  background: rgba(34,197,94,0.28);
  box-shadow: 0 0 0 1px rgba(22,163,74,0.9);
}
.cal-cell.day.is-selected.has-intervention {
  background: #22c55e;
  color: #f9fafb;
}

/* Colonne de droite */
.calendar-today {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Liste du jour */
.calendar-today-list .list-row {
  margin-bottom: 6px;
}

.section-title.no-margin-top {
  margin-top: 2px;
}



.card {
  padding: 14px 14px 12px;
  border: 1px solid rgba(209,213,219,0.6);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15,23,42,0.13);
}

.card-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--texte-clair);
  margin-bottom: 2px;
}
.card-value {
  font-size: 18px;
  font-weight: 700;
}
.card-sub {
  font-size: 10px;
  color: #9ca3af;
}

/* Petites icônes rondes */
.card-icon.circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  margin-bottom: 4px;
  background-position: center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.6);
}
.card-icon.clients {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%232563eb"><circle cx="9" cy="9" r="3"/><circle cx="15" cy="9" r="3"/><path d="M4 18c0-2.2 2.2-4 5-4" stroke="%232563eb" stroke-width="1.3" fill="none"/><path d="M20 18c0-2.2-2.2-4-5-4" stroke="%232563eb" stroke-width="1.3" fill="none"/></svg>');
}
.card-icon.mpg {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23f59e0b"><path d="M5 20h14l-2-9H7z"/><path d="M9 9a3 3 0 116 0 3 3 0 01-6 0z"/></svg>');
}
.card-icon.interventions {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" stroke="%236366f1" fill="none" stroke-width="1.6"><rect x="4" y="4" width="16" height="16" rx="3"/><path d="M8 3v4M16 3v4M7 11h10"/></svg>');
}
.card-icon.prospects {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" stroke="%2310b981" fill="none" stroke-width="1.6"><path d="M12 3v18"/><path d="M5 9l7-6 7 6"/><circle cx="7" cy="17" r="2"/><circle cx="17" cy="17" r="2"/></svg>');
}
.card-icon.prime {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" stroke="%23f97316" fill="none" stroke-width="1.7"><circle cx="12" cy="12" r="5"/><path d="M12 7v10M9 10h5"/></svg>');
}

/* Carte calendrier */
.calendar-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.calendar-left {
  min-width: 76px;
  text-align: center;
  padding: 10px 8px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1, #22c1c3);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}
.cal-day-name {
  font-size: 11px;
  text-transform: uppercase;
  opacity: .9;
}
.cal-day-number {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}
.cal-month {
  font-size: 11px;
  opacity: .95;
}
.calendar-right { flex: 1; }
.calendar-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--texte-clair);
}
.calendar-count {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}
.calendar-helper {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

/* Sections & badges */
.section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 12px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e0e7ff;
  color: #4338ca;
}

/* Listes */
.list {
  background: transparent;
  border-radius: 20px;
  margin-bottom: 14px;
}
.list-row {
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 12px;
  margin-bottom: 6px;
  box-shadow: 0 6px 14px rgba(15,23,42,0.06);
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.list-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.12);
}
.list-row.terminated {
  background: #e5e7eb;
}
.list-row-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.row-main { flex: 1; }
.row-title { font-size: 14px; font-weight: 600; }
.row-sub { font-size: 11px; color: var(--texte-clair); }
.row-meta { font-size: 11px; color: var(--texte-clair); min-width: 100px; text-align: right; }
.details {
  display: none;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e5e7eb;
  font-size: 12px;
  color: #4b5563;
}

/* Pills & boutons */
.pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  display: inline-block;
  margin-bottom: 4px;
  background: #f3f4ff;
  color: #4338ca;
}
.pill.mpg {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.08s ease-out, box-shadow 0.12s ease-out, background 0.15s ease-out;
}
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  box-shadow: 0 8px 18px rgba(79,70,229,0.35);
}
.btn-outline {
  background: rgba(255,255,255,0.9);
  color: #111827;
  border: 1px solid #d1d5db;
}
.btn-mini {
  border-radius: 999px;
  border: 1px solid #9ca3af;
  background: #f9fafb;
  color: #111827;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  min-width: 110px;
  text-align: center;
  transition: transform 0.08s ease-out, box-shadow 0.12s ease-out;
}
.btn-danger {
  border-color: #ef4444;
  color: #b91c1c;
}
.btn:active,
.btn-mini:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(15,23,42,0.25) inset;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.two-col.align-end { align-items: flex-end; }
@media(max-width:600px){ .two-col { grid-template-columns: 1fr; } }

.dash-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Formulaires */
input, select, textarea {
  width: 100%;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  background: #f9fafb;
}
label {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}
textarea { min-height: 60px; resize: vertical; }
.form-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.small { font-size: 11px; color: var(--texte-clair); }

/* Map */
#map {
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(209,213,219,0.8);
  box-shadow: 0 10px 25px rgba(15,23,42,0.1);
  margin-bottom: 16px;
}

/* Status badge */
.badge-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  color: #4338ca;
  background: #e0e7ff;
}
.badge-status.done {
  border-color: #16a34a;
  color: #166534;
  background: #dcfce7;
}

/* Liens adresse */
a.addr-link {
  color: #2563eb;
  text-decoration: underline;
}

/* Clients toggles + flags */
.clients-toggle-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
  margin-bottom: 14px;
}
.client-flags label { margin-top: 0; }



/* Nouveau layout header iOS-like */
.ios-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ios-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ios-logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(15,23,42,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.45);
}

.ios-title-block .ios-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ios-title-block .ios-subtitle {
  font-size: 11px;
  opacity: .95;
}

.ios-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ios-quick-btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8;
  background: #f9fafb;
  box-shadow: 0 8px 20px rgba(15,23,42,0.4);
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.ios-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.5);
}
.ios-quick-btn:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 6px 16px rgba(15,23,42,0.35);
}

/* Calendrier hebdomadaire */
.calendar-week-card {
  margin-top: 10px;
  padding: 16px 16px 18px;
}

.calendar-week-card .week-header,
.calendar-week-card .week-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-week-card .week-header {
  margin-bottom: 8px;
}

.week-col {
  text-align: center;
}

.week-day-name {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 2px;
}

.week-day-number {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.week-body .week-col {
  min-height: 46px;
}

.week-pill {
  background: #4f46e5;
  color: #fff;
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 6px;
  margin-bottom: 4px;
  box-shadow: 0 6px 14px rgba(79,70,229,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-empty {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 12px;
}



/* ===== Dashboard iOS-like layout ===== */
.dashboard-ios-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .dashboard-ios-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-left .stats-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.today-summary-card {
  padding: 18px 18px 18px;
  border-radius: 26px;
}

.today-summary-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.today-pill {
  min-width: 96px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(180deg, #4f46e5, #3730a3);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(15,23,42,0.45);
}

.today-day-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.today-day-number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.today-month {
  font-size: 12px;
  text-transform: lowercase;
  opacity: 0.9;
}

.today-summary-text {
  flex: 1;
}

.today-summary-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.today-summary-sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.today-summary-btn {
  padding-inline: 18px;
}

.today-list-card {
  margin-top: 14px;
  padding-top: 10px;
}

.today-list-card .section-title {
  margin-top: 0;
}



/* ==== Ajustements header & boutons pour rendu maquette iOS ==== */
.ios-header {
  position: relative;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  color: #fff;
  padding: 18px 18px 22px;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 14px 36px rgba(15,23,42,0.35);
}

.ios-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ios-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ios-logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.35);
}

.ios-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ios-pill-time {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.4);
  font-size: 11px;
  margin-bottom: 6px;
}

.ios-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ios-subtitle {
  font-size: 12px;
  opacity: 0.96;
}

.ios-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ios-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: none;
  padding: 6px 18px;
  background: #f9fafb;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15,23,42,0.45);
  transition: transform 0.08s ease-out, box-shadow 0.12s ease-out, background 0.15s ease-out;
}

.ios-quick-plus {
  font-size: 18px;
  line-height: 1;
}

.ios-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15,23,42,0.5);
}

.ios-quick-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 8px 18px rgba(15,23,42,0.4);
}

.ios-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f9fafb;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15,23,42,0.45);
}

/* Tabs légèrement plus petites sous le header */
.tabs {
  margin-top: -22px;
}
.tab-btn {
  padding: 6px 14px;
  font-size: 13px;
}

/* Boutons génériques un peu plus compacts */
.btn {
  padding: 6px 14px;
  font-size: 13px;
}



/* Carte du calendrier mensuel en bas de page */
.calendar-month-card {
  margin-top: 10px;
  padding: 16px 16px 18px;
}

.calendar-month-card #dash-month-calendar {
  max-width: 100%;
}



/* Texte miniature dans les cases du calendrier (nombre d'interventions) */
.cal-day-mini {
  font-size: 8px;
  line-height: 1;
  opacity: 0.9;
}

/* Actions dans les détails d'une intervention du jour */
.int-actions-label {
  margin-top: 6px;
  margin-bottom: 4px;
  font-weight: 600;
}

.int-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}



.stat-clients {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
}
.stat-mpg {
  background: linear-gradient(135deg, #fef9c3, #fffbeb);
}
