/* AgendaChat — charte visuelle unifiée */
:root {
  color-scheme: light;
  --ac-ink: #17233c;
  --ac-muted: #667487;
  --ac-subtle: #8b97a7;
  --ac-line: #e4e9f0;
  --ac-line-strong: #d5deea;
  --ac-canvas: #edf1f7;
  --ac-surface: #fff;
  --ac-primary: #1e3a8a;
  --ac-primary-hover: #172f70;
  --ac-primary-soft: #edf2fc;
  --ac-ocean: #0284c7;
  --ac-orange: #f97316;
  --ac-orange-hover: #ea580c;
  --ac-navy: #0f172a;
  --ac-green: #39785c;
  --ac-green-soft: #edf5f0;
  --ac-amber: #95600b;
  --ac-amber-soft: #fff5df;
  --ac-red: #b33a3a;
  --ac-red-soft: #fff0ef;
  --ac-violet: #6a6587;
  --ac-violet-soft: #f1f0f6;
  --ac-radius: 14px;
  --ac-shadow: 0 8px 26px rgba(15, 23, 42, .055);
  --bs-primary: var(--ac-primary);
  --bs-primary-rgb: 30, 58, 138;
  --bs-body-font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --bs-body-color: var(--ac-ink);
  --bs-body-bg: var(--ac-canvas);
  --bs-border-color: var(--ac-line);
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  background: var(--ac-canvas) !important;
  color: var(--ac-ink) !important;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.container, .container-fluid { max-width: 1540px; }
::selection { color: #fff; background: var(--ac-primary); }
:focus-visible { outline: 3px solid rgba(30, 58, 138, .25); outline-offset: 2px; }

/* En-tête et navigation */
.dashboard-header {
  background: var(--ac-surface) !important;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius) !important;
  box-shadow: var(--ac-shadow) !important;
  padding: 20px 24px !important;
}
.dashboard-header h1 { color: var(--ac-ink) !important; font-size: 1.35rem; font-weight: 750; letter-spacing: -.035em; }
#header-user-role-badge {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 5px 10px; border-radius: 999px; background: var(--ac-primary-soft) !important;
  color: var(--ac-primary) !important; font-size: .67rem; letter-spacing: .075em;
}
#user-nav { flex-wrap: wrap; align-items: center; gap: 10px !important; }
#user-nav .btn { min-height: 38px; }

/* Boutons et champs */
.btn {
  border-radius: 10px; font-size: .88rem; font-weight: 650; letter-spacing: .005em;
  padding: .58rem .9rem; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 32px; border-radius: 8px; font-size: .8rem; padding: .38rem .7rem; }
.btn-primary, #booking-trigger-container .btn {
  color: #fff; background: var(--ac-primary); border-color: var(--ac-primary);
  box-shadow: 0 3px 8px rgba(49, 95, 206, .16);
}
.btn-primary:hover, #booking-trigger-container .btn:hover { color: #fff; background: var(--ac-primary-hover); border-color: var(--ac-primary-hover); }
.btn-dark { color: #fff; background: var(--ac-navy); border-color: var(--ac-navy); }
.btn-dark:hover { color: #fff; background: #263852; border-color: #263852; }
.btn-outline-primary { color: var(--ac-primary); border-color: #aabde8; }
.btn-outline-primary:hover { color: var(--ac-primary-hover); background: var(--ac-primary-soft); border-color: #8da8e1; }
.btn-outline-secondary, .btn-outline-dark { color: #536175; background: #fff; border-color: var(--ac-line-strong); }
.btn-outline-secondary:hover, .btn-outline-dark:hover { color: var(--ac-ink); background: #f5f7fa; border-color: #bdc8d7; }
.btn-success { background: var(--ac-green); border-color: var(--ac-green); }
.btn-warning { color: #513700; background: #f1c66a; border-color: #f1c66a; }
.btn-info { background: #397b9b; border-color: #397b9b; }
.btn-danger { background: var(--ac-red); border-color: var(--ac-red); }
.btn-light { color: #48566b; background: #f2f5f8; border-color: #e6ebf1; }
.form-label { display: block; color: #45536a !important; font-size: .78rem; font-weight: 700; margin-bottom: .42rem; }
.form-control, .form-select {
  min-height: 42px; padding: .62rem .78rem; color: var(--ac-ink); background-color: #fff;
  border: 1px solid var(--ac-line-strong); border-radius: 10px; font-size: .92rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control-sm, .form-select-sm { min-height: 38px; padding: .48rem .68rem; font-size: .87rem; }
.form-control::placeholder { color: #9aa5b4; }
.form-control:focus, .form-select:focus { border-color: #88a4e3; box-shadow: 0 0 0 .22rem rgba(49, 95, 206, .13); }
.form-control[type=file] { padding: .48rem .65rem; }
.form-check-input:checked { background-color: var(--ac-primary); border-color: var(--ac-primary); }

/* Connexion */
#login-section { min-height: 56vh; align-items: center; }
#login-section .card {
  border: 1px solid var(--ac-line) !important; border-radius: 20px !important;
  box-shadow: 0 18px 55px rgba(22, 37, 59, .10) !important;
}
#login-section h2 { color: var(--ac-ink) !important; font-size: 1.4rem; letter-spacing: -.025em; }
#login-section p { color: var(--ac-muted) !important; font-size: .9rem !important; }
#login-form button { min-height: 44px; font-size: .9rem; }

/* Actions en haut de l'agenda */
#app-container > .d-flex { margin-bottom: 18px !important; }
#admin-triggers-container { gap: 9px !important; }
#booking-trigger-container .btn, #admin-triggers-container .btn { border-radius: 10px !important; min-height: 40px; }

/* Calendrier */
.agenda-toolbar {
  min-height: 74px; padding: 16px 20px !important; background: #fff !important;
  border: 1px solid var(--ac-line) !important; border-radius: var(--ac-radius) var(--ac-radius) 0 0 !important;
  box-shadow: 0 3px 12px rgba(22, 37, 59, .035);
}
.agenda-month-navigation { gap: 12px !important; }
#current-month-title { color: var(--ac-ink) !important; font-size: 1.18rem; font-weight: 750 !important; letter-spacing: -.025em; text-transform: capitalize; }
.agenda-nav-button {
  width: 36px !important; height: 36px !important; padding: 0 !important; display: inline-flex;
  align-items: center; justify-content: center; color: #52627a !important;
  background: #fff !important; border: 1px solid var(--ac-line-strong) !important; border-radius: 10px !important;
  font-size: 1.2rem !important; line-height: 1;
}
.agenda-nav-button:hover { color: var(--ac-primary) !important; background: var(--ac-primary-soft) !important; border-color: #b6c8ed !important; }
#today-btn { min-height: 36px; }
.agenda-calendar {
  overflow: hidden; background: #fff !important; border: 1px solid var(--ac-line) !important;
  border-top: 0 !important; border-radius: 0 0 var(--ac-radius) var(--ac-radius) !important;
  box-shadow: var(--ac-shadow) !important;
}
.agenda-weekdays {
  display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 !important;
  padding: 0 !important; background: #f7f9fc; border-bottom: 1px solid var(--ac-line);
}
.agenda-weekdays > div {
  padding: 12px 6px !important; color: #68768a !important; text-align: center;
  font-size: .69rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase;
  border-right: 1px solid var(--ac-line);
}
.agenda-weekdays > div:last-child { border-right: 0; }
.agenda-days {
  display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(152px, auto); gap: 1px; margin: 0 !important; padding: 0 !important;
  background: var(--ac-line);
}
.agenda-day { position: relative; min-width: 0; padding: 10px; background: #fff; transition: background-color .15s ease; }
.agenda-day-outside { background: #f8fafc; }
.agenda-day.is-weekend { background: #fafbfd; }
.agenda-day:hover { background: #f8faff; }
.agenda-day.drag-over { background: var(--ac-primary-soft) !important; outline: 2px dashed #7897df; outline-offset: -4px; }
.agenda-day-header { display: flex; justify-content: space-between; align-items: center; min-height: 28px; margin-bottom: 8px; }
.agenda-day-number {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  color: #536176 !important; background: transparent; border-radius: 50%; font-size: .79rem; font-weight: 700;
}
.agenda-day-outside .agenda-day-number { color: #a2acb9 !important; }
.agenda-day-today { background: #fff !important; }
.agenda-day-today .agenda-day-number { color: #fff !important; background: var(--ac-primary); box-shadow: 0 2px 7px rgba(49, 95, 206, .25); }
.weekend-badge { padding: 3px 7px; color: #8c97a7; background: #f0f3f7; border-radius: 999px; font-size: .58rem; font-weight: 650; }
.agenda-day-events { display: flex; flex-direction: column; gap: 6px; }
.agenda-event {
  min-width: 0; padding: 8px 9px; overflow-wrap: anywhere; color: #3d4b60;
  background: #f8faff; border: 1px solid #e2e9f5; border-left: 3px solid #8aa4dc;
  border-radius: 8px; font-size: .73rem; box-shadow: 0 1px 2px rgba(22, 37, 59, .035);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.agenda-event:hover { border-color: #bdcbed; box-shadow: 0 3px 10px rgba(22, 37, 59, .08); }
.agenda-event[draggable=true] { cursor: grab; }
.agenda-event[draggable=true]:active { cursor: grabbing; }
.agenda-event-time { display: flex; align-items: center; gap: 4px; margin-bottom: 4px !important; color: #536c9c !important; font-size: .69rem !important; font-weight: 750; }
.agenda-event-client { min-width: 0; display: flex; align-items: center; color: #2d3b50 !important; font-size: .75rem !important; font-weight: 700 !important; }
.agenda-event-client > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.agenda-event-service { color: #69778b !important; font-size: .69rem !important; line-height: 1.4; }
.agenda-event.status-en_attente { background: #fffaf0; border-color: #f1e3c1; border-left-color: #d39a2f; }
.agenda-event.status-valide { background: #f2faf5; border-color: #d4eadc; border-left-color: #38875f; }
.agenda-event.status-annule, .agenda-event.status-bloque { background: #fff5f4; border-color: #f1d9d6; border-left-color: #cb5b53; }
.agenda-event.status-annulation_demandee, .agenda-event.status-decalage_demande { background: #f8f5fd; border-color: #e5dcf3; border-left-color: #8969b8; }
.agenda-event .alert { padding: 6px 8px !important; margin: 6px 0 0 !important; border: 1px solid transparent !important; border-radius: 7px !important; font-size: .67rem !important; line-height: 1.4; overflow-wrap: anywhere; }
.agenda-event .alert-warning { color: #74520f !important; background: #fff3d6 !important; border-color: #f1dfb6 !important; }
.agenda-event .alert-info { color: #285e79 !important; background: #eaf5fa !important; border-color: #d0e6ef !important; }
.agenda-event .alert-success { color: #35694c !important; background: #edf7f0 !important; border-color: #d8eadc !important; }
.event-actions { display: flex; flex-wrap: wrap; gap: 4px !important; margin-top: 7px !important; }
.event-actions .btn, .event-action-btn { min-height: 27px; padding: 3px 6px !important; border-radius: 6px !important; font-size: .64rem !important; }
.client-request-pending { display: inline-block; margin-top: 5px; padding: 4px 7px; color: var(--ac-violet); background: var(--ac-violet-soft); border-radius: 6px; font-size: .65rem; font-weight: 700; }

/* Modales et notifications — placées au-dessus de la messagerie */
.modal { z-index: 1055; }
.modal-backdrop { z-index: 1050; }
.modal-dialog { max-width: min(520px, calc(100vw - 24px)); }
.modal-content {
  overflow: hidden; color: var(--ac-ink); background: #fff;
  border: 1px solid var(--ac-line) !important; border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(16, 30, 51, .2) !important;
}
.modal-header { align-items: center; padding: 20px 22px 15px; background: #fff !important; border-bottom: 1px solid #edf0f5 !important; }
.modal-title { color: var(--ac-ink) !important; font-size: 1.03rem !important; font-weight: 750 !important; }
.modal-header .btn-close { filter: none; opacity: .55; }
.modal-header .btn-close:hover { opacity: 1; }
.modal-body { padding: 20px 22px; color: var(--ac-ink); background: #fff; }
.modal-footer { gap: 8px; padding: 14px 22px 18px; background: #fff; border-top: 1px solid #edf0f5; }
.modal-backdrop.show { opacity: .48; }
.toast-container { z-index: 1080 !important; }
.toast { color: #fff; background: var(--ac-navy); border-radius: 12px; }

/* Fenêtres de confirmation et de demande */
.admin-action-modal-content, .client-request-content { position: relative; border-radius: 20px !important; }
.admin-action-modal-content .modal-header, .client-request-content .modal-header { padding-top: 24px; }
.admin-modal-icon-wrap { display: grid; width: 48px; height: 48px; place-items: center; margin: 20px 22px 0; color: var(--ac-primary); background: var(--ac-primary-soft); border-radius: 14px; font-size: 1.25rem; }
.admin-modal-eyebrow, .request-modal-eyebrow { display: block; margin-bottom: 5px; color: #77859a; font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.admin-modal-message { color: #56647a; line-height: 1.65; }
.admin-modal-confirm { border-radius: 9px; }

/* Formulaire d'administration */
.admin-client-form-container { padding: 24px; background: #fff; border: 1px solid var(--ac-line) !important; border-radius: var(--ac-radius); box-shadow: var(--ac-shadow); }
.admin-client-form-container h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 12px; color: var(--ac-ink); border-bottom: 1px solid #edf0f5; font-size: 1.1rem; font-weight: 750; }

/* Messagerie */
#chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040; display: none; align-items: center; gap: 9px;
  padding: 13px 18px; color: #fff; background: var(--ac-primary); border: 0; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(35, 73, 155, .3); font-size: .9rem; font-weight: 700;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
#chat-launcher:hover { background: var(--ac-primary-hover); box-shadow: 0 11px 28px rgba(35, 73, 155, .34); transform: translateY(-2px); }
#chat-launcher i { font-size: 1.05rem; }
#chat-launcher b { padding: 2px 7px; color: var(--ac-primary); background: #fff; border-radius: 20px; font-size: .68rem; }
#chat-launcher.is-hidden { display: none !important; }
#chat-panel {
  position: fixed; right: 20px; bottom: 82px; z-index: 1035; display: none; flex-direction: column;
  width: min(920px, calc(100vw - 36px)); height: min(680px, calc(100dvh - 112px)); overflow: hidden;
  color: var(--ac-ink); background: #f7f9fc; border: 1px solid var(--ac-line-strong);
  border-radius: 18px; box-shadow: 0 18px 54px rgba(20, 35, 58, .2);
}
#chat-panel.is-open { display: flex; }
.chat-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 15px 19px; background: #fff; border-bottom: 1px solid var(--ac-line); }
.chat-head small { color: #7b899c; font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
.chat-head h2 { margin: 2px 0 0; color: var(--ac-ink); font-size: 1.05rem; font-weight: 750; }
#chat-close { width: 34px; height: 34px; color: #536176; background: #f1f4f8; border: 0; border-radius: 50%; font-size: 1.35rem; line-height: 1; }
#chat-close:hover { color: var(--ac-ink); background: #e8edf4; }
.chat-admin-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); flex: 1; min-height: 0; }
.chat-client-list { overflow: auto; padding: 10px; background: #fff; border-right: 1px solid var(--ac-line); }
.chat-client { display: flex; width: 100%; align-items: center; gap: 10px; margin-bottom: 4px; padding: 10px; text-align: left; background: transparent; border: 0; border-radius: 11px; }
.chat-client:hover, .chat-client.selected { background: #f0f4fb; }
.chat-client.selected { box-shadow: inset 3px 0 var(--ac-primary); }
.chat-avatar { display: grid; width: 38px; height: 38px; flex: none; place-items: center; overflow: hidden; color: #64748b; background: #eaf0f8; border-radius: 50%; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-client-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.chat-client-copy strong { overflow: hidden; color: var(--ac-ink); font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-client-copy small { max-width: 180px; overflow: hidden; color: var(--ac-muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-unread { padding: 2px 6px; color: #fff; background: var(--ac-primary); border-radius: 20px; font-size: .63rem; }
.chat-conversation, .chat-client-layout { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }
.chat-client-layout { padding: 0 12px; }
.chat-thread-title { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--ac-line); }
.chat-thread-title > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.chat-thread-title strong { color: var(--ac-ink); font-size: .85rem; }
.chat-thread-title small { color: var(--ac-green); font-size: .7rem; }
.chat-thread-avatar { display: grid; width: 38px; height: 38px; flex: none; place-items: center; color: var(--ac-primary); background: var(--ac-primary-soft); border-radius: 50%; }
.chat-thread-heading { min-width: 0; }
.chat-thread-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.chat-action { padding: 7px 9px; color: #526176; background: #fff; border: 1px solid var(--ac-line-strong); border-radius: 8px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.chat-action:hover { color: var(--ac-primary); background: var(--ac-primary-soft); border-color: #c6d4ed; }
.chat-action.danger { color: var(--ac-red); border-color: #efd2cf; }
.chat-action.danger:hover { background: var(--ac-red-soft); }
.chat-messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 12px; overflow: auto; padding: 20px 24px; background: #f4f7fb; scroll-behavior: smooth; }
.chat-message { display: flex; max-width: min(80%, 620px); flex-direction: column; gap: 4px; }
.chat-message.mine { align-self: flex-end; align-items: flex-end; }
.chat-message.theirs { align-self: flex-start; }
.chat-message-row { display: flex; max-width: 100%; align-items: flex-end; gap: 8px; }
.chat-message.mine .chat-message-row { flex-direction: row; }
.chat-message-content { display: flex; min-width: 0; flex-direction: column; align-items: inherit; }
.chat-message-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; overflow: hidden; color: #64748b; background: #e8eef7; border: 1px solid #dfe6f0; border-radius: 50%; }
.chat-message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-message-meta { padding: 0 4px 3px; color: #8995a6; font-size: .64rem; }
.chat-bubble { padding: 10px 13px; color: #35445a; background: #fff; border: 1px solid #e7ecf3; border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 2px rgba(22, 37, 59, .035); font-size: .84rem; line-height: 1.55; overflow-wrap: anywhere; }
.chat-message.mine .chat-bubble { color: #fff; background: var(--ac-primary); border-color: var(--ac-primary); border-radius: 14px 14px 4px 14px; }
.chat-delete-message { padding: 2px 5px; color: #8792a4; background: transparent; border: 0; font-size: .65rem; cursor: pointer; }
.chat-delete-message:hover { color: var(--ac-red); text-decoration: underline; }
.chat-day-divider { display: flex; justify-content: center; margin: 5px 0 8px; }
.chat-day-divider span { padding: 4px 10px; color: #738197; background: #e8edf4; border-radius: 20px; font-size: .65rem; }
.chat-empty, .chat-empty-list { margin: auto; padding: 24px 16px; color: #8793a5; text-align: center; font-size: .8rem; }
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.chat-empty i { color: #9aaccb; font-size: 1.7rem; }
.chat-empty strong { color: #53637b; font-size: .88rem; }
.chat-empty span { color: #8994a7; font-size: .75rem; }
.chat-form { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 9px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--ac-line); }
.chat-form textarea { min-height: 44px; max-height: 120px; flex: 1; resize: none; padding: 10px 12px; color: var(--ac-ink); background: #f9fafc; border: 1px solid var(--ac-line-strong); border-radius: 11px; font: inherit; font-size: .82rem; outline: none; }
.chat-form textarea:focus { background: #fff; border-color: #88a4e3; box-shadow: 0 0 0 3px rgba(49, 95, 206, .12); }
.chat-form button { width: 44px; height: 44px; flex: none; color: #fff; background: var(--ac-primary); border: 0; border-radius: 11px; }
.chat-form button:hover { background: var(--ac-primary-hover); }
.chat-closed-tag { padding: 3px 7px; color: #637187; background: #edf1f5; border-radius: 20px; font-size: .61rem; white-space: nowrap; }
.chat-closed-notice { align-self: center; margin: 7px; padding: 7px 12px; color: #68768a; background: #fff; border: 1px solid var(--ac-line); border-radius: 20px; font-size: .72rem; }
.chat-error { padding: 0 16px 9px; color: #a32f2b; font-size: .75rem; }

@media (max-width: 900px) {
  .container { padding-right: 16px; padding-left: 16px; }
  .agenda-days { grid-auto-rows: minmax(125px, auto); }
  .agenda-day { padding: 7px; }
  .agenda-event { padding: 7px; }
  #chat-panel { right: 12px; bottom: 76px; width: min(760px, calc(100vw - 24px)); height: min(650px, calc(100dvh - 92px)); }
  .chat-admin-layout { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .container { padding-right: 12px; padding-left: 12px; }
  .container.py-4 { padding-top: 14px !important; }
  .dashboard-header { padding: 15px !important; margin-bottom: 16px !important; }
  .dashboard-header h1 { font-size: 1.15rem; }
  #user-nav { gap: 6px !important; }
  #user-nav .btn { min-height: 34px; padding: .4rem .6rem; font-size: .72rem; }
  #admin-triggers-container { width: 100%; }
  #admin-triggers-container .btn { flex: 1 1 auto; padding: .48rem .65rem !important; font-size: .72rem; }
  .agenda-toolbar { min-height: 62px; padding: 11px 12px !important; }
  .agenda-month-navigation { gap: 7px !important; }
  #current-month-title { font-size: .93rem; }
  .agenda-nav-button { width: 32px !important; height: 32px !important; }
  #today-btn { padding: .38rem .58rem; font-size: .72rem; }
  .agenda-calendar { overflow-x: auto; overscroll-behavior-x: contain; }
  .agenda-weekdays, .agenda-days { min-width: 760px; }
  .agenda-weekdays > div { padding: 9px 4px !important; font-size: .64rem; }
  .agenda-days { grid-auto-rows: minmax(126px, auto); }
  .agenda-day { padding: 6px; }
  .agenda-event { padding: 6px; font-size: .68rem; }
  .agenda-event-client { font-size: .69rem !important; }
  .agenda-event-service { font-size: .64rem !important; }
  .event-actions { gap: 3px !important; }
  .event-actions .btn, .event-action-btn { min-height: 25px; padding: 2px 5px !important; font-size: .6rem !important; }
  #chat-launcher { right: 14px; bottom: 14px; padding: 12px 15px; }
  #chat-panel { inset: 8px; width: auto; height: auto; border-radius: 15px; }
  .chat-head { padding: 12px 14px; }
  .chat-admin-layout { grid-template-columns: 118px minmax(0, 1fr); }
  .chat-client-list { padding: 6px 4px; }
  .chat-client { gap: 5px; padding: 8px 5px; }
  .chat-avatar { width: 29px; height: 29px; }
  .chat-client-copy strong { font-size: .65rem; }
  .chat-client-copy small { max-width: 66px; font-size: .58rem; }
  .chat-unread { padding: 2px 4px; font-size: .55rem; }
  .chat-thread-title { flex-wrap: wrap; gap: 7px; padding: 10px; }
  .chat-thread-title strong { font-size: .72rem; }
  .chat-thread-title small { font-size: .62rem; }
  .chat-thread-avatar { width: 30px; height: 30px; }
  .chat-thread-actions { flex-wrap: wrap; gap: 4px; }
  .chat-action { padding: 5px 6px; font-size: .57rem; }
  .chat-messages { gap: 9px; padding: 12px 9px; }
  .chat-message { max-width: 95%; }
  .chat-message-avatar { width: 24px; height: 24px; flex-basis: 24px; }
  .chat-bubble { padding: 9px 11px; font-size: .78rem; }
  .chat-form { gap: 7px; padding: 9px; }
  .chat-form textarea { min-height: 40px; padding: 8px 9px; font-size: .76rem; }
  .chat-form button { width: 40px; height: 40px; }
  .modal-dialog { margin: 12px auto; }
  .modal-header, .modal-body { padding-right: 17px; padding-left: 17px; }
  .modal-footer { padding-right: 17px; padding-left: 17px; }
}

/* Annuaire client de l’espace administrateur */
.client-directory {
  margin: 0 0 22px;
  padding: 22px 24px 18px;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 37, 70, .06);
}
.client-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.client-directory-eyebrow { color: #f47721; font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
.client-directory-heading h2 { margin: 3px 0 4px; color: #14213d; font-size: 1.1rem; font-weight: 750; }
.client-directory-heading p { margin: 0; color: #6d7a90; font-size: .82rem; }
.client-directory-count { display: flex; min-width: 66px; flex-direction: column; align-items: center; padding: 8px 12px; color: #1e3a8a; background: #eef3fc; border-radius: 12px; }
.client-directory-count strong { font-size: 1.1rem; line-height: 1.2; }
.client-directory-count span { color: #64728a; font-size: .65rem; }
.client-directory-search { position: relative; margin-bottom: 10px; }
.client-directory-search > i { position: absolute; top: 50%; left: 13px; color: #8190a7; transform: translateY(-50%); }
.client-directory-search input { width: 100%; padding: 10px 12px 10px 38px; color: #14213d; background: #f8fafd; border: 1px solid #e1e7f0; border-radius: 10px; font: inherit; font-size: .84rem; outline: none; }
.client-directory-search input:focus { background: #fff; border-color: #3477c7; box-shadow: 0 0 0 3px rgba(52, 119, 199, .12); }
.client-directory-list { overflow: hidden; border: 1px solid #e8edf4; border-radius: 12px; }
.client-directory-row { display: flex; min-height: 76px; align-items: center; gap: 13px; padding: 12px 14px; background: #fff; }
.client-directory-row + .client-directory-row { border-top: 1px solid #edf1f6; }
.client-directory-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: #1e3a8a; background: #edf2fc; border-radius: 12px; font-size: 1.1rem; }
.client-directory-identity { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.client-directory-identity strong { overflow: hidden; color: #1b2942; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.client-directory-identity > span:not(.client-access-status) { overflow: hidden; color: #687790; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.client-access-status { display: flex; align-items: center; gap: 5px; font-size: .67rem; font-weight: 650; }
.client-access-status.sent { color: #22734c; }
.client-access-status.pending { color: #9a6316; }
.client-access-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 11px; color: #fff; background: #1e3a8a; border: 1px solid #1e3a8a; border-radius: 8px; font-size: .74rem; font-weight: 650; }
.client-access-button:hover, .client-access-button:focus-visible { color: #fff; background: #172f70; border-color: #172f70; }
.client-access-button:disabled { opacity: .65; }
.client-directory-empty { display: flex; min-height: 82px; align-items: center; justify-content: center; gap: 9px; padding: 18px; color: #718098; font-size: .82rem; }
@media (max-width: 600px) {
  .client-directory { padding: 16px 13px 13px; border-radius: 13px; }
  .client-directory-heading h2 { font-size: 1rem; }
  .client-directory-row { gap: 9px; padding: 10px 8px; }
  .client-directory-avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .client-directory-identity strong { font-size: .78rem; }
  .client-directory-identity > span:not(.client-access-status) { font-size: .68rem; }
  .client-access-status { font-size: .6rem; }
  .client-access-button { gap: 5px; padding: 7px 8px; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Refonte Hovix — surfaces plus légères, actions compactes, même langage partout */
body { background: #f1f5f9 !important; font-size: 14px !important; }
.container.py-4 { max-width: 1480px; padding-top: 28px !important; padding-bottom: 36px !important; }
.dashboard-header {
  position: relative;
  display: flex; align-items: center; min-height: 88px; padding: 16px 22px !important;
  border-color: #e2e8f0; border-radius: 13px !important; box-shadow: 0 2px 12px rgba(15,23,42,.035) !important;
}
.dashboard-header::before { position: absolute; top: 18px; bottom: 18px; left: 0; width: 3px; content: ""; background: var(--ac-orange); border-radius: 0 4px 4px 0; }
.dashboard-header h1 { font-size: 1.24rem; font-weight: 680; letter-spacing: -.035em; }
#header-user-role-badge { margin-bottom: 5px !important; padding: 3px 8px; font-size: .61rem; letter-spacing: .085em; }
#user-nav { gap: 12px !important; }
#user-nav > div:first-child {
  width: auto !important; gap: 18px !important; justify-content: space-between; flex-wrap: wrap; padding: 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
#user-nav > div:first-child > div:first-child { gap: 11px !important; }
#user-nav > div:first-child > div:first-child > div:last-child > div:last-child { color: var(--ac-muted) !important; font-size: .72rem !important; }
#user-nav .btn { min-height: 32px; padding: .36rem .62rem !important; font-size: .75rem; font-weight: 600; }
#user-nav .rounded-circle[style], #user-nav img[style] { width: 38px !important; height: 38px !important; }
#user-nav .badge { font-size: .59rem !important; letter-spacing: .05em; }
#user-nav .badge.bg-danger-subtle, #user-nav .badge.bg-info-subtle { color: var(--ac-primary) !important; background: var(--ac-primary-soft) !important; border-color: #dce5f6 !important; }
#user-nav .btn-outline-light { color: #58677c !important; background: #fff; border-color: #d7e0eb !important; }
#user-nav .bi-key.text-warning { color: var(--ac-primary) !important; }

.btn {
  min-height: 34px; padding: .43rem .76rem; border-radius: 8px; font-size: .8rem;
  font-weight: 620; box-shadow: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: none; }
.btn-sm { min-height: 30px; padding: .34rem .62rem; border-radius: 7px; font-size: .74rem; }
.btn-primary, #booking-trigger-container .btn { background: var(--ac-primary); border-color: var(--ac-primary); box-shadow: none; }
.btn-primary:hover, #booking-trigger-container .btn:hover { background: var(--ac-primary-hover); border-color: var(--ac-primary-hover); }
.btn-dark { background: #0f172a; border-color: #0f172a; }
.btn-dark:hover { background: #17233c; border-color: #17233c; }
.btn-outline-primary { color: var(--ac-primary); border-color: #bac9e5; }
.btn-outline-primary:hover { color: var(--ac-primary-hover); background: var(--ac-primary-soft); border-color: #b5c6e6; }
.btn-outline-secondary, .btn-outline-dark { color: #58677c; border-color: #d7e0eb; }
.btn-outline-secondary:hover, .btn-outline-dark:hover { color: var(--ac-ink); background: #f3f6fa; border-color: #c2cfdf; }
.btn-light { color: #516176; background: #f3f6fa; border-color: #e2e8f0; }
.form-label { margin-bottom: .36rem; color: #53627a !important; font-size: .74rem; font-weight: 650; letter-spacing: .005em; }
.form-control, .form-select { min-height: 39px; padding: .5rem .7rem; border-color: #d7e0eb; border-radius: 8px; font-size: .84rem; }
.form-control-sm, .form-select-sm { min-height: 35px; padding: .42rem .62rem; font-size: .8rem; }
.form-control:focus, .form-select:focus { border-color: #8ba8db; box-shadow: 0 0 0 .2rem rgba(30,58,138,.1); }
.form-control::placeholder { color: #9aa6b6; }

#login-section { min-height: 62vh; }
#login-section .card { padding: 30px !important; border-color: #e2e8f0 !important; border-radius: 14px !important; box-shadow: 0 12px 36px rgba(15,23,42,.075) !important; }
#login-section h2 { font-size: 1.25rem; font-weight: 680; }
#login-form button { min-height: 38px; }
#app-container > .d-flex { margin: 0 0 12px !important; }
#booking-trigger-container .btn, #admin-triggers-container .btn { min-height: 34px; padding: .42rem .76rem !important; border-radius: 8px !important; font-size: .77rem; }
#booking-trigger-container .btn { color: #fff; background: var(--ac-orange); border-color: var(--ac-orange); }
#booking-trigger-container .btn:hover { background: var(--ac-orange-hover); border-color: var(--ac-orange-hover); }
#admin-triggers-container { gap: 7px !important; }

.agenda-toolbar {
  min-height: 62px; padding: 11px 16px !important; border-color: var(--ac-line) !important;
  border-radius: 12px 12px 0 0 !important; box-shadow: none;
}
.agenda-month-navigation { gap: 10px !important; }
#current-month-title { font-size: 1rem; font-weight: 680 !important; letter-spacing: -.02em; }
.agenda-nav-button { width: 30px !important; height: 30px !important; border-radius: 8px !important; font-size: 1rem !important; }
#today-btn { min-height: 30px; padding: .32rem .66rem; font-size: .74rem; }
.agenda-calendar { border-color: var(--ac-line) !important; border-radius: 0 0 12px 12px !important; box-shadow: 0 5px 20px rgba(15,23,42,.045) !important; }
.agenda-weekdays { background: #f8fafc; }
.agenda-weekdays > div { padding: 9px 5px !important; color: #7b879a !important; font-size: .62rem; font-weight: 700; letter-spacing: .075em; border-color: #e7ecf3; }
.agenda-days { grid-auto-rows: minmax(122px, auto); gap: 1px; background: #e7ecf3; }
.agenda-day { padding: 8px; background: #fff; }
.agenda-day-outside { background: #fafbfd; }
.agenda-day.is-weekend { background: #fbfcfe; }
.agenda-day:hover { background: #f7f9fd; }
.agenda-day-header { min-height: 25px; margin-bottom: 6px; }
.agenda-day-number { width: 25px; height: 25px; color: #617176 !important; font-size: .73rem; font-weight: 650; }
.agenda-day-today .agenda-day-number { background: var(--ac-primary); border: 1px solid var(--ac-orange); box-shadow: 0 2px 5px rgba(30,58,138,.2); }
.weekend-badge { padding: 2px 6px; color: #8792a2; background: #f0f3f8; font-size: .56rem; }
.agenda-day-events { gap: 5px; }
.agenda-event { padding: 7px 8px; color: #394b50; border-radius: 7px; font-size: .7rem; box-shadow: none; }
.agenda-event:hover { box-shadow: 0 2px 7px rgba(15,23,42,.07); }
.agenda-event-time { color: #667b7b !important; font-size: .65rem !important; }
.agenda-event-client { color: #293d42 !important; font-size: .72rem !important; }
.agenda-event-service { color: #718083 !important; font-size: .65rem !important; }
/* Les teintes de statut restent douces et immédiatement reconnaissables. */
.agenda-event.status-en_attente { background: #fffaf0; border-color: #f0e3c5; border-left-color: #c99a48; }
.agenda-event.status-valide { background: #f1f7f3; border-color: #d8e8dd; border-left-color: #5b9070; }
.agenda-event.status-annule, .agenda-event.status-bloque { background: #fff5f3; border-color: #efded9; border-left-color: #c7796d; }
.agenda-event.status-annulation_demandee, .agenda-event.status-decalage_demande { background: #f6f4f9; border-color: #e4dfed; border-left-color: #8a7ca7; }
.agenda-event .alert { padding: 5px 7px !important; border-radius: 6px !important; font-size: .64rem !important; }
.event-actions { gap: 4px !important; margin-top: 6px !important; }
.event-actions .btn, .event-action-btn { min-height: 25px; padding: 2px 6px !important; border-radius: 6px !important; font-size: .61rem !important; }
.client-request-pending { padding: 3px 6px; font-size: .61rem; }
#today-btn { color: var(--ac-primary) !important; border-color: #cbd7ed !important; }
#today-btn:hover { color: var(--ac-orange-hover) !important; background: #fff7f1 !important; border-color: #f8c9a9 !important; }

.modal { z-index: 1060; }
.modal-backdrop { z-index: 1055; }
.modal-dialog { max-width: min(480px, calc(100vw - 28px)); }
.modal-content { border: 1px solid #e2e8f0 !important; border-radius: 14px !important; box-shadow: 0 22px 60px rgba(15,23,42,.18) !important; }
.modal-header { padding: 17px 20px 13px; border-color: #e9edf4 !important; }
.modal-title { font-size: .96rem !important; font-weight: 680 !important; letter-spacing: -.01em; }
.modal-title > i { color: var(--ac-primary); }
.modal-body { padding: 17px 20px; }
.modal-footer { padding: 12px 20px 16px; border-color: #e9edf4; }
.modal-footer .btn, .modal-body form .btn { min-height: 33px; }
.modal-backdrop.show { opacity: .42; }
.toast-container { z-index: 1080 !important; }
.toast { border: 1px solid rgba(255,255,255,.12) !important; border-radius: 10px; box-shadow: 0 9px 24px rgba(25,43,47,.18) !important; font-size: .8rem; }
.admin-action-modal-content, .client-request-content { border-radius: 14px !important; }
.admin-modal-icon-wrap { width: 42px; height: 42px; margin: 17px 20px 0; border-radius: 12px; font-size: 1.1rem; }
.admin-modal-icon-wrap, .modal-title > i { color: var(--ac-orange); }
.admin-action-modal-content .modal-header, .client-request-content .modal-header { padding-top: 17px; }
.admin-modal-eyebrow, .request-modal-eyebrow { color: #84918e; font-size: .59rem; letter-spacing: .11em; }
.admin-modal-message { color: #617176; font-size: .86rem; }
.admin-client-form-container { padding: 20px; border-radius: 13px; box-shadow: 0 4px 18px rgba(15,23,42,.045); }

#chat-launcher { right: 22px; bottom: 22px; gap: 8px; padding: 10px 14px; background: var(--ac-primary); border-radius: 10px; box-shadow: 0 5px 16px rgba(30,58,138,.2); font-size: .79rem; font-weight: 620; }
#chat-launcher:hover { background: var(--ac-primary-hover); box-shadow: 0 7px 20px rgba(30,58,138,.22); transform: translateY(-1px); }
#chat-launcher i { font-size: .93rem; }
#chat-launcher b { color: var(--ac-primary); font-size: .62rem; }
#chat-panel { right: 22px; bottom: 72px; width: min(760px, calc(100vw - 36px)); height: min(590px, calc(100dvh - 98px)); background: #f7f9fc; border-color: #dce4ef; border-radius: 14px; box-shadow: 0 16px 48px rgba(15,23,42,.18); }
.chat-head { padding: 13px 17px; border-color: #e4e9f0; }
.chat-head small { color: #8792a2; font-size: .59rem; letter-spacing: .1em; }
.chat-head h2 { font-size: .98rem; font-weight: 680; }
#chat-close { width: 30px; height: 30px; border-radius: 8px; font-size: 1.2rem; }
.chat-admin-layout { grid-template-columns: 225px minmax(0, 1fr); }
.chat-client-list { padding: 9px; border-color: #e4e9f0; }
.chat-client { gap: 9px; padding: 8px; border-radius: 8px; }
.chat-client:hover, .chat-client.selected { background: #f0f4fb; }
.chat-client.selected { box-shadow: inset 2px 0 var(--ac-primary); }
.chat-avatar { width: 34px; height: 34px; color: #66758a; background: #edf2fa; }
.chat-client-copy strong { color: #2f3e56; font-size: .75rem; font-weight: 650; }
.chat-client-copy small { color: #8490a2; font-size: .64rem; }
.chat-unread { background: var(--ac-primary); font-size: .59rem; }
.chat-thread-title { gap: 9px; padding: 10px 15px; border-color: #e4e9f0; }
.chat-thread-title strong { font-size: .8rem; font-weight: 650; }
.chat-thread-title small { color: #526f9e; font-size: .65rem; }
.chat-thread-avatar { width: 34px; height: 34px; color: var(--ac-primary); background: var(--ac-primary-soft); }
.chat-action { padding: 6px 8px; border-color: #dfe7e3; border-radius: 7px; font-size: .64rem; }
.chat-messages { gap: 10px; padding: 17px 19px; background: #f5f7fb; }
.chat-message { max-width: min(82%, 560px); }
.chat-message-avatar { width: 27px; height: 27px; flex-basis: 27px; background: #edf2fa; border-color: #e1e8f3; }
.chat-message-meta { color: #8b9894; font-size: .61rem; }
.chat-bubble { padding: 9px 12px; color: #3c4b61; border-color: #e3e9f2; border-radius: 12px 12px 12px 4px; font-size: .79rem; box-shadow: 0 1px 2px rgba(15,23,42,.025); }
.chat-message.mine .chat-bubble { background: var(--ac-primary); border-color: var(--ac-primary); border-radius: 12px 12px 4px 12px; }
.chat-day-divider span { color: #7c8798; background: #edf1f7; font-size: .61rem; }
.chat-form { gap: 8px; padding: 10px 13px; border-color: #e3e9f2; }
.chat-form textarea { min-height: 39px; padding: 8px 10px; border-color: #d7e0eb; border-radius: 8px; font-size: .77rem; }
.chat-form textarea:focus { border-color: #8ba8db; box-shadow: 0 0 0 3px rgba(30,58,138,.1); }
.chat-form button { width: 38px; height: 38px; background: var(--ac-primary); border-radius: 8px; }
.chat-form button:hover { background: var(--ac-primary-hover); }
.chat-error { color: #a34741; font-size: .72rem; }

@media (max-width: 900px) {
  .container.py-4 { padding-top: 20px !important; }
  .agenda-days { grid-auto-rows: minmax(112px, auto); }
  #chat-panel { width: min(700px, calc(100vw - 28px)); }
}
@media (max-width: 600px) {
  .container.py-4 { padding-top: 12px !important; padding-bottom: 20px !important; }
  .dashboard-header { min-height: auto; padding: 13px !important; border-radius: 11px !important; }
  .dashboard-header h1 { font-size: 1.08rem; }
  #user-nav { width: 100%; align-items: flex-start; }
  #user-nav > div:first-child { width: 100% !important; justify-content: space-between; gap: 8px !important; }
  #user-nav > div:first-child > div:first-child { min-width: 0; }
  #user-nav > div:first-child > div:first-child > div:last-child > div:first-child { flex-wrap: wrap; gap: 5px !important; }
  #user-nav > div:first-child > div:last-child { flex-wrap: wrap; justify-content: flex-end; gap: 5px !important; }
  #user-nav .btn { min-height: 29px; padding: .3rem .48rem !important; font-size: .69rem; }
  #app-container > .d-flex { align-items: flex-start !important; }
  #admin-triggers-container { width: 100%; }
  #admin-triggers-container .btn { flex: 1 1 auto; min-height: 32px; padding: .38rem .5rem !important; font-size: .69rem; }
  .agenda-toolbar { min-height: 54px; padding: 9px 10px !important; }
  .agenda-month-navigation { gap: 6px !important; }
  #current-month-title { font-size: .88rem; }
  .agenda-nav-button { width: 28px !important; height: 28px !important; }
  #today-btn { min-height: 28px; padding: .28rem .5rem; font-size: .67rem; }
  .agenda-days { grid-auto-rows: minmax(108px, auto); }
  #chat-launcher { right: 13px; bottom: 13px; min-height: 38px; padding: 8px 11px; }
  #chat-panel { inset: 7px; width: auto; height: auto; border-radius: 12px; }
  .chat-admin-layout { grid-template-columns: 112px minmax(0,1fr); }
  .chat-client-list { padding: 5px 3px; }
  .chat-client { gap: 4px; padding: 7px 4px; }
  .chat-avatar { width: 27px; height: 27px; }
  .chat-client-copy strong { font-size: .62rem; }
  .chat-client-copy small { max-width: 62px; font-size: .55rem; }
  .chat-thread-title { padding: 9px; }
  .chat-thread-actions { gap: 4px; }
  .chat-action { padding: 5px 6px; font-size: .56rem; }
  .chat-messages { padding: 11px 8px; }
  .chat-message { max-width: 94%; }
  .chat-bubble { padding: 8px 10px; font-size: .74rem; }
  .modal-dialog { margin: 10px auto; }
  .modal-header, .modal-body { padding-right: 15px; padding-left: 15px; }
  .modal-footer { padding-right: 15px; padding-left: 15px; }
}

/* Contraste Hovix : bleu nuit, orange signature et créneaux identifiables d’un coup d’œil. */
body { background: #edf1f7 !important; }
.dashboard-header { color: #fff; background: linear-gradient(112deg, #0b1429 0%, #1e3a8a 100%) !important; border-color: #1e3a8a; }
.dashboard-header h1 { color: #fff !important; }
#header-user-role-badge { color: #ffbd91 !important; background: rgba(249,115,22,.15) !important; border: 1px solid rgba(255,255,255,.12); }
#user-nav > div:first-child > div:first-child > div:last-child > div:first-child .fw-bold.text-dark { color: #fff !important; }
#user-nav > div:first-child > div:first-child > div:last-child > div:last-child { color: rgba(255,255,255,.72) !important; }
#user-nav .badge.bg-danger-subtle, #user-nav .badge.bg-info-subtle { color: #edf3ff !important; background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.2) !important; }
#user-nav .btn-outline-light { color: #f8fafc !important; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28) !important; }
#user-nav .btn-outline-light:hover { background: rgba(255,255,255,.16); }
#user-nav .btn-outline-light i { color: #ffad72 !important; }

.agenda-weekdays { background: #dce4f1; }
.agenda-weekdays > div { color: #263d6d !important; border-color: #cbd6e7; }
.agenda-days { background: #cfd9e8; }
.agenda-day { background: #fff; }
.agenda-day-outside { background: #f2f5fa; }
.agenda-day.is-weekend { background: #e4eaf3; box-shadow: inset 1px 0 #cad5e5, inset -1px 0 #cad5e5; }
.agenda-day.is-weekend:hover { background: #dce5f1; }
.agenda-day.is-weekend.agenda-day-outside { background: #e9edf4; }
.agenda-day-header { margin-bottom: 7px; }
.agenda-day-number {
  width: 30px; height: 30px; color: #1e3a8a !important; background: #fff;
  border: 1px solid #c8d4e6; border-radius: 9px; box-shadow: 0 1px 3px rgba(15,23,42,.08);
  font-size: .76rem; font-weight: 700;
}
.agenda-day.is-weekend .agenda-day-number { color: #1e3a8a !important; border-color: #b9c8dd; }
.agenda-day-outside .agenda-day-number { color: #8995a6 !important; background: #f6f8fb; opacity: .78; }
.agenda-day-today .agenda-day-number {
  color: #fff !important; background: #f97316; border-color: #ea580c;
  box-shadow: 0 3px 9px rgba(249,115,22,.35);
}
.weekend-badge { color: #304a78; background: #d4deed; font-size: .57rem; }

.agenda-event.slot-matin {
  color: #20395f; background: #dce8f8; border-color: #b7cbea; border-left-color: #1e3a8a;
}
.agenda-event.slot-apres-midi {
  color: #57371f; background: #ffead8; border-color: #efc49f; border-left-color: #f97316;
}
.agenda-event.slot-matin .agenda-event-time { color: #1e3a8a !important; }
.agenda-event.slot-apres-midi .agenda-event-time { color: #b64c0a !important; }
.agenda-event.slot-matin .agenda-event-client { color: #172d52 !important; }
.agenda-event.slot-apres-midi .agenda-event-client { color: #4a301f !important; }
.agenda-event.slot-matin:hover { background: #d1e0f5; border-color: #9fb9df; }
.agenda-event.slot-apres-midi:hover { background: #ffe1c5; border-color: #e9b487; }

.client-avatar-preview { width: 76px !important; height: 76px !important; padding: 3px; background: #fff; border: 1px solid #dce4f1 !important; box-shadow: 0 3px 12px rgba(15,23,42,.1) !important; }

@media (max-width: 600px) {
  .agenda-day-number { width: 28px; height: 28px; border-radius: 8px; }
  .dashboard-header::before { top: 12px; bottom: 12px; }
}


.site-return-link { display:inline-flex; align-items:center; gap:.45rem; margin-top:.55rem; color:#1e3a8a; font-size:.82rem; font-weight:600; text-decoration:none; }
.dashboard-header .site-return-link { color:#fff !important; text-decoration:underline; text-decoration-color:#f47721; text-underline-offset:3px; }
.dashboard-header .site-return-link:hover { color:#ffad73 !important; }
