/* nallium-calendar-frontend — design system
 *
 * Tokens (:root) et classes de "chrome" (topbar, boutons, alertes) copiés
 * à l'identique de nallium-tasks-frontend/css/style.css pour rester
 * visuellement cohérent avec le reste de l'écosystème Nallium — étendus
 * avec la mise en page calendrier (sidebar agendas | vue mois/semaine) et
 * la fiche rendez-vous.
 */

:root {
  --text: #172033;
  --muted: #64748b;
  --blue: #3b82f6;
  --green: #22c55e;
  --amber: #f59e0b;
  --pink: #ec4899;
  --violet: #8b5cf6;
  --red: #ef4444;
  --cyan: #06b6d4;
  --bg: #f7f9ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --border: rgba(30, 41, 59, 0.12);
  --shadow: 0 24px 80px rgba(30, 41, 59, 0.12);
  --shadow-soft: 0 14px 38px rgba(30, 41, 59, 0.09);
  --radius: 22px;
  --cal-tasks: #f59e0b;
  --cal-birthdays: #ec4899;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, rgba(6, 182, 212, 0.14), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(236, 72, 153, 0.1), transparent 24%),
    radial-gradient(circle at 72% 88%, rgba(34, 197, 94, 0.12), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

button {
  font: inherit;
}

.btn {
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 8px 14px;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 13px;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-outline {
  background: var(--panel-solid);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: #eef2ff;
}

.btn-danger {
  background: #fff1f2;
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.btn-danger:hover {
  background: #ffe4e6;
}

/* ---------------------------------------------------------------------
 * Barre de navigation
 * ------------------------------------------------------------------- */
.store-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #0f172a;
  cursor: pointer;
}

.store-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.cal-topbar-spacer {
  flex: 1;
}

.cal-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.alert-banner {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-banner.error {
  background: #fff1f2;
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.login-gate {
  text-align: center;
  padding: 80px 20px;
}

.cal-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------------------------------------------------------------------
 * Coquille générale (sidebar | vue)
 * ------------------------------------------------------------------- */
.cal-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 65px);
}

.cal-sidebar {
  border-right: 1px solid var(--border);
  padding: 18px 16px;
  background: var(--panel-solid);
}

.cal-sidebar-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 18px 0 8px;
}

.cal-sidebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px;
  border-radius: 8px;
}

.cal-sidebar-row:hover {
  background: #f8fafc;
}

.cal-sidebar-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}

.cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-sidebar-name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-sidebar-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.cal-sidebar-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  padding: 3px 5px;
  border-radius: 6px;
}

.cal-sidebar-icon-btn:hover {
  background: #e2e8f0;
}

.cal-chip-access {
  font-size: 12px;
}

/* Mini-calendrier de navigation */
.cal-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cal-mini-header button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
}

.cal-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 12px;
}

.cal-mini-wd {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.cal-mini-day {
  text-align: center;
  font-size: 11.5px;
  padding: 4px 0;
  border-radius: 6px;
  cursor: pointer;
}

.cal-mini-day:hover {
  background: #eef2ff;
}

.cal-mini-day.out {
  color: #cbd5e1;
}

.cal-mini-day.today {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

/* ---------------------------------------------------------------------
 * Vue principale — en-tête (nav + toggle mois/semaine)
 * ------------------------------------------------------------------- */
.cal-main {
  min-width: 0;
}

.cal-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.cal-main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-main-label {
  font-size: 17px;
  font-weight: 800;
  margin-left: 6px;
  text-transform: capitalize;
}

.cal-view-toggle {
  display: flex;
  gap: 2px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
}

.cal-view-toggle-btn {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.cal-view-toggle-btn.active {
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------------------------
 * Vue mois
 * ------------------------------------------------------------------- */
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(110px, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.cal-month-wd {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: #fafbff;
}

.cal-month-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5px 6px;
  min-width: 0;
  cursor: pointer;
  background: var(--panel-solid);
}

.cal-month-cell.out {
  background: #fafbff;
  color: #cbd5e1;
}

/* Survol prolongé (2-3s) : léger surlignage + bordure pointillée (demande
   utilisateur du 23/09/2026), avant un cliquer-glisser ou un clic droit.
   Partagé entre la vue mois et la vue semaine (voir aussi .cal-week-daycol
   plus bas). */
.cal-month-cell.cal-cell-armed,
.cal-week-daycol.cal-cell-armed {
  background: #eff6ff;
  outline: 2px dashed var(--blue);
  outline-offset: -2px;
}

.cal-month-cell.today .cal-month-daynum {
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-month-cell-head {
  margin-bottom: 3px;
}

.cal-month-daynum {
  font-size: 12.5px;
  font-weight: 700;
}

.cal-month-cell-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-event-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--chip-color) 16%, white);
  color: color-mix(in srgb, var(--chip-color) 70%, black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-left: 3px solid var(--chip-color);
}

.cal-event-chip.cal-event-done {
  text-decoration: line-through;
  opacity: 0.6;
}

.cal-event-more {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 1px 6px;
}

.cal-event-more:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------
 * Vue semaine
 * ------------------------------------------------------------------- */
.cal-week-view {
  display: flex;
  flex-direction: column;
}

.cal-week-header,
.cal-week-allday-row {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}

.cal-week-gutter {
  border-right: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  padding: 4px;
}

.cal-week-daycol-head {
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid var(--border);
}

.cal-week-daycol-head.today .cal-week-daynum {
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-week-dayname {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.cal-week-daynum {
  font-size: 14px;
  font-weight: 700;
}

.cal-week-allday-cell {
  border-right: 1px solid var(--border);
  padding: 3px;
  min-height: 22px;
}

.cal-week-scroll {
  max-height: 620px;
  overflow-y: auto;
}

.cal-week-body {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  position: relative;
}

.cal-week-hours-gutter {
  position: relative;
}

.cal-week-hour-label {
  position: absolute;
  left: 4px;
  font-size: 10px;
  color: var(--muted);
  transform: translateY(-6px);
}

.cal-week-daycol {
  border-right: 1px solid var(--border);
  position: relative;
}

/* Sélection en cours pendant un cliquer-glisser de création (demande
   utilisateur du 23/09/2026) — voir js/app.js::wireMain, weekDragState. */
.cal-week-drag-selection {
  position: absolute;
  left: 2px;
  right: 2px;
  background: rgba(59, 130, 246, 0.22);
  border: 1px dashed var(--blue);
  border-radius: 6px;
  pointer-events: none;
  z-index: 5;
}

/* Menu contextuel (clic droit) — demande utilisateur du 23/09/2026. */
.cal-context-menu {
  position: fixed;
  z-index: 2000;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 6px;
}

.cal-context-menu-item {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}

.cal-context-menu-item:hover {
  background: #f1f5f9;
}

.cal-week-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
}

.cal-week-event-block {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--chip-color) 18%, white);
  border-left: 3px solid var(--chip-color);
  color: color-mix(in srgb, var(--chip-color) 65%, black);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 5px;
  overflow: hidden;
  cursor: pointer;
}

.cal-week-event-time {
  font-weight: 800;
}

/* Déplacement d'un rendez-vous existant par glisser-déposer (demande
   utilisateur du 23/09/2026 : "je dois pouvoir drag & drop un meeting") —
   voir js/app.js::wireMain, eventDragState. */
.cal-week-event-block.cal-dragging {
  cursor: grabbing;
  opacity: 0.85;
  box-shadow: var(--shadow);
  z-index: 10;
}

/* ---------------------------------------------------------------------
 * Fiche rendez-vous (modale)
 * ------------------------------------------------------------------- */
.cal-appt-title-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  padding: 4px 6px;
}

.cal-appt-title-input:focus {
  outline: none;
  border-bottom: 2px solid var(--blue);
}

.cal-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 20px;
  margin-bottom: 16px;
}

.cal-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 5px;
}

.cal-field input,
.cal-field select,
.cal-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: var(--panel-solid);
}

.cal-field textarea {
  resize: vertical;
  min-height: 80px;
}

.cal-datetime-pair {
  display: flex;
  gap: 6px;
}

.cal-section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.cal-section-title {
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cal-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

/* Interrupteur à bascule (réunion Gather / récurrence, demande
   utilisateur du 23/09/2026 — "juste une toggle pas une checkbox"). Même
   input[type=checkbox] sémantique, habillage visuel seul : aucun wiring
   JS spécifique nécessaire, voir js/app.js::toggleRowHtml. */
.cal-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.cal-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex: none;
}

.cal-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cal-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.cal-toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease;
}

.cal-toggle input:checked + .cal-toggle-slider {
  background: var(--violet);
}

.cal-toggle input:checked + .cal-toggle-slider::before {
  transform: translateX(16px);
}

.cal-toggle input:focus-visible + .cal-toggle-slider {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cal-toggle-label {
  line-height: 1.3;
}

.cal-recurrence-fields {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
}

.cal-weekday-picker {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.cal-weekday-chip {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--panel-solid);
}

.cal-weekday-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.cal-location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow-y: auto;
}

.cal-location-suggestion {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.cal-location-suggestion:hover {
  background: #f1f5f9;
}

.cal-attendee-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.cal-attendee-email {
  flex: 1;
  min-width: 140px;
  font-weight: 600;
}

.cal-attendee-required {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.cal-attendee-proposed {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--amber);
}

.cal-rsvp-badge {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 9px;
}

.cal-rsvp-badge.accepted {
  background: #ecfdf3;
  color: var(--green);
}

.cal-rsvp-badge.declined {
  background: #fff1f2;
  color: var(--red);
}

.cal-rsvp-badge.tentative {
  background: #fffbeb;
  color: var(--amber);
}

.cal-rsvp-badge.pending {
  background: #f1f5f9;
  color: var(--muted);
}

.cal-attendee-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.cal-attendee-add input {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
}

.cal-suggestion-badge {
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
}

.cal-suggestion-badge.org {
  background: #eff6ff;
  color: var(--blue);
}

.cal-suggestion-badge.agent {
  background: #f3e8ff;
  color: #7c3aed;
}

.cal-suggestion-badge.private {
  background: #f5f3ff;
  color: var(--violet);
}

.cal-suggestion-hint {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

/* Rappels avec unité explicite (demande utilisateur du 23/09/2026 — "15
   quoi ?"). Stocké en minutes côté serveur, converti à l'affichage
   seulement, voir js/app.js::minutesToReminderValueUnit. */
.cal-reminder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cal-reminder-value {
  width: 72px;
  flex: none;
}

.cal-reminder-unit {
  flex: 1;
  min-width: 140px;
}

.cal-slot-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cal-slot-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--panel-solid);
  cursor: pointer;
}

.cal-slot-btn:hover {
  background: #eef2ff;
  border-color: var(--blue);
}

.cal-appt-footer {
  display: flex;
  align-items: center;
}

.cal-appt-footer-spacer {
  flex: 1;
}

.cal-rsvp-inline {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.cal-rsvp-inline-label {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cal-rsvp-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------
 * Page RSVP publique
 * ------------------------------------------------------------------- */
.cal-rsvp-page {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.cal-rsvp-card {
  width: 100%;
  max-width: 480px;
  background: var(--panel-solid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
}

.cal-rsvp-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin: 4px 0;
}

.cal-rsvp-description {
  margin-top: 14px;
  font-size: 13.5px;
  white-space: pre-wrap;
}

/* ---------------------------------------------------------------------
 * Journée détaillée (modale "+N de plus")
 * ------------------------------------------------------------------- */
.cal-day-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-day-agenda-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
}

.cal-day-agenda-row:hover {
  background: #f8fafc;
}

.cal-day-agenda-time {
  font-weight: 700;
  color: var(--muted);
  width: 54px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
 * Partage d'agenda (modale)
 * ------------------------------------------------------------------- */
.cal-share-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cal-share-form input {
  flex: 2;
  min-width: 160px;
}

.cal-share-form select {
  flex: 1;
  min-width: 140px;
}

.cal-share-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}

.cal-share-row span:first-child {
  flex: 1;
}

.cal-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------------------------------------------------------------------
 * Réglages — Disponibilités
 * ------------------------------------------------------------------- */
.cal-settings-page {
  max-width: 720px;
  padding: 30px 34px 60px;
}

.cal-avail-day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.cal-avail-day-row input[type="time"] {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 13px;
}

.cal-save-status {
  margin-left: 12px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 700;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 900px) {
  .cal-shell {
    grid-template-columns: 1fr;
  }

  .cal-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .store-topbar {
    padding: 10px 14px;
  }

  .cal-month-grid {
    grid-auto-rows: minmax(70px, 1fr);
  }

  .cal-settings-page {
    padding: 20px 18px 40px;
  }
}

/* -------------------------------------------------------------------
 * Cloche de notifications (js/notif-bell.js) — backlog #258, demande
 * utilisateur du 23/09/2026. Composant PARTAGÉ : ce bloc CSS est pensé
 * pour être copié tel quel dans le style.css de n'importe quel autre
 * frontend Nallium qui intègre ce même composant (voir l'en-tête de
 * js/notif-bell.js pour le reste de la procédure de copie).
 * ------------------------------------------------------------------- */
.notif-bell {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 15px;
  border-radius: 50%;
}

.notif-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.notif-bell-menu {
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notif-bell-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 13px;
}

.notif-bell-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-bell-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.notif-bell-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.notif-bell-item:last-child {
  border-bottom: none;
}

.notif-bell-item:hover {
  background: #f8fafc;
}

.notif-bell-item.unread {
  background: rgba(59, 130, 246, 0.06);
}

.notif-bell-item.unread .notif-bell-item-title::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 6px;
}

.notif-bell-item-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.notif-bell-item-body {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.notif-bell-item-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Salle de réunion : libre / occupée sur le créneau */
.cal-room-free {
  color: #15803d;
}

.cal-room-busy {
  color: #b91c1c;
}

.cal-rsvp-badge.organizer {
  background: #eef2ff;
  color: #3730a3;
}
