.agenda-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
  color: #1d1d1f;
}

.agenda-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(246,246,248,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  min-height: 50px;
}

.agenda-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agenda-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0.5px 2px rgba(0,0,0,0.08), inset 0 0.5px 0 rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a5a5e;
  transition: all 0.15s;
}

.agenda-chevron:hover {
  background: rgba(255,255,255,0.95);
  color: #000;
}

.agenda-chevron:active {
  background: rgba(0,0,0,0.05);
  transform: scale(0.96);
}

.agenda-toolbar-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  min-width: 110px;
  text-align: center;
  letter-spacing: -0.2px;
  user-select: none;
}

.agenda-toolbar-spacer {
  flex: 1;
}

.agenda-today-btn {
  padding: 5px 14px;
  border-radius: 6px;
  border: 0.5px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0.5px 1px rgba(0,0,0,0.04);
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.agenda-today-btn:hover {
  background: rgba(255,255,255,0.95);
}

.agenda-today-btn:active {
  background: rgba(0,0,0,0.05);
}

.agenda-view-toggle {
  display: flex;
  background: rgba(0,0,0,0.05);
  border-radius: 7px;
  padding: 2px;
  gap: 1px;
}

.agenda-view-btn {
  padding: 4px 14px;
  border: none;
  background: transparent;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #5a5a5e;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.agenda-view-btn:hover {
  color: #1d1d1f;
}

.agenda-view-btn.active {
  background: rgba(255,255,255,0.95);
  color: #1d1d1f;
  box-shadow: 0 0.5px 2px rgba(0,0,0,0.12), inset 0 0.5px 0 rgba(255,255,255,0.9);
}

.agenda-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.agenda-sidebar {
  width: 230px;
  min-width: 230px;
  background: #f5f5f7;
  border-right: 0.5px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 14px;
  gap: 18px;
}

.agenda-sidebar::-webkit-scrollbar { width: 5px; }
.agenda-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}

.agenda-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.agenda-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.2px;
}

.agenda-mini-nav {
  display: flex;
  gap: 2px;
}

.agenda-mini-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  transition: all 0.12s;
}

.agenda-mini-chevron:hover {
  background: rgba(0,0,0,0.05);
  color: #5a5a5e;
}

.agenda-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #8e8e93;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.agenda-mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.agenda-mini-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: #3a3a3c;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.12s;
  position: relative;
}

.agenda-mini-day:hover {
  background: rgba(0,0,0,0.05);
}

.agenda-mini-day--other {
  color: #c7c7cc;
}

.agenda-mini-day--today {
  background: #34c759 !important;
  color: #fff;
  font-weight: 700;
}

.agenda-mini-day--selected {
  background: rgba(52,199,89,0.15) !important;
  color: #34c759;
  font-weight: 700;
}

.agenda-mini-day--has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #34c759;
}

.agenda-mini-day--today::after {
  background: #fff;
}

.agenda-cal-list-title {
  font-size: 11px;
  font-weight: 700;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  padding-left: 6px;
}

.agenda-cal-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agenda-cal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s;
  font-size: 12px;
  font-weight: 500;
  color: #3a3a3c;
}

.agenda-cal-item:hover {
  background: rgba(0,0,0,0.04);
}

.agenda-cal-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}

.agenda-cal-item input[type="checkbox"]:checked {
  background: currentColor;
  border-color: currentColor;
}

.agenda-cal-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1.5px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.agenda-cal-item-color--travail { color: #34c759; }
.agenda-cal-item-color--rdv { color: #007aff; }
.agenda-cal-item-color--perso { color: #ff9500; }
.agenda-cal-item-color--formation { color: #af52de; }

.agenda-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.agenda-month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  background: #ffffff;
  flex-shrink: 0;
}

.agenda-month-header-cell {
  padding: 10px 0 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.agenda-month-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(100px, 1fr);
  overflow: hidden;
  padding-bottom: 80px;
}

.agenda-month-cell {
  border-right: 0.5px solid rgba(0,0,0,0.04);
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.1s;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.agenda-month-cell:nth-child(7n) {
  border-right: none;
}

.agenda-month-cell:hover {
  background: rgba(0,0,0,0.01);
}

.agenda-month-cell--other {
  background: rgba(250,250,252,0.8);
}

.agenda-month-cell--other:hover {
  background: rgba(250,250,252,0.8);
}

.agenda-month-cell--today {
  background: rgba(52,199,89,0.04);
}

.agenda-month-cell--selected {
  background: rgba(52,199,89,0.08) !important;
}

.agenda-month-cell--other .agenda-month-day {
  color: #c7c7cc;
}

.agenda-month-day {
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3c;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 4px;
  flex-shrink: 0;
  user-select: none;
}

.agenda-month-cell--today .agenda-month-day {
  background: #34c759;
  color: #fff;
  font-weight: 700;
}

.agenda-month-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.agenda-month-event {
  font-size: 10px;
  padding: 1px 6px 1px 8px;
  border-radius: 3px;
  color: var(--gray-800);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: opacity 0.1s;
}

.agenda-month-event:hover {
  opacity: 0.7;
}

.agenda-month-event--travail { background: rgba(52,199,89,0.12); border-left-color: #34c759; }
.agenda-month-event--rdv { background: rgba(0,122,255,0.12); border-left-color: #007aff; }
.agenda-month-event--perso { background: rgba(255,149,0,0.12); border-left-color: #ff9500; }
.agenda-month-event--formation { background: rgba(175,82,222,0.12); border-left-color: #af52de; }

.agenda-month-event--multiple {
  font-size: 10px;
  color: #8e8e93;
  font-weight: 600;
  padding: 1px 6px;
}

.agenda-panel {
  display: none;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
}

.agenda-panel.active {
  display: flex;
}

.agenda-day-view {
  padding: 20px 24px;
  max-width: 700px;
  overflow-y: auto;
}

.agenda-day-header {
  font-size: 22px;
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.agenda-day-sub {
  font-size: 14px;
  color: #8e8e93;
  margin-bottom: 24px;
  font-weight: 500;
}

.agenda-day-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agenda-day-slot {
  display: flex;
  gap: 16px;
  min-height: 52px;
  border-top: 0.5px solid rgba(0,0,0,0.05);
  padding: 6px 0;
  position: relative;
}

.agenda-day-slot:first-child {
  border-top: none;
}

.agenda-day-time {
  width: 56px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #c7c7cc;
  flex-shrink: 0;
  padding-top: 4px;
}

.agenda-day-event {
  flex: 1;
  margin-left: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  cursor: pointer;
  transition: opacity 0.1s;
  max-width: 420px;
  border-left: 3px solid transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.agenda-day-event:hover {
  opacity: 0.85;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.agenda-day-event--travail { background: rgba(52,199,89,0.08); border-left-color: #34c759; }
.agenda-day-event--rdv { background: rgba(0,122,255,0.08); border-left-color: #007aff; }
.agenda-day-event--perso { background: rgba(255,149,0,0.08); border-left-color: #ff9500; }
.agenda-day-event--formation { background: rgba(175,82,222,0.08); border-left-color: #af52de; }

.agenda-day-event-time {
  font-size: 11px;
  font-weight: 700;
  color: #8e8e93;
  margin-bottom: 2px;
}

.agenda-week-view {
  flex: 1;
  overflow: auto;
  display: block;
}

.agenda-week-mobile {
  display: none;
}

.agenda-week-header {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  min-width: 700px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.agenda-week-body {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  min-width: 700px;
  padding-right: 10px;
  padding-bottom: 80px;
}

.agenda-week-header-cell {
  padding: 10px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  border-right: 0.5px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.agenda-week-header-cell--today {
  color: #34c759;
}

.agenda-week-header-num {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
}

.agenda-week-header-cell--today .agenda-week-header-num {
  color: #34c759;
}

.agenda-week-time {
  padding: 4px 8px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: #c7c7cc;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}

.agenda-week-cell {
  border-right: 0.5px solid rgba(0,0,0,0.04);
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  position: relative;
  height: 36px;
  pointer-events: none;
}

.agenda-week-event {
  position: absolute;
  left: 3px;
  right: 3px;
  padding: 4px 6px 4px 8px;
  border-radius: 6px;
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: opacity 0.1s;
}

.agenda-week-event:hover {
  opacity: 0.85;
}

.agenda-week-event--travail { background: rgba(52,199,89,0.1); border-left-color: #34c759; }
.agenda-week-event--rdv { background: rgba(0,122,255,0.1); border-left-color: #007aff; }
.agenda-week-event--perso { background: rgba(255,149,0,0.1); border-left-color: #ff9500; }
.agenda-week-event--formation { background: rgba(175,82,222,0.1); border-left-color: #af52de; }

.agenda-week-event-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ─── macOS Floating Popover ─── */
.agenda-popover {
  position: absolute;
  z-index: 100;
  display: none;
  min-width: 220px;
  max-width: 280px;
  pointer-events: none;
}
.agenda-popover.open {
  display: block;
  pointer-events: auto;
}

.agenda-popover-arrow {
  position: absolute;
  left: -7px;
  top: 14px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-right-color: rgba(0,0,0,0.08);
  z-index: 1;
}
.agenda-popover-arrow::after {
  content: '';
  position: absolute;
  left: 1px;
  top: -6px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: #fff;
}

.agenda-popover-inner {
  background: rgba(255,255,255,0.97);
  border-radius: 10px;
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.12),
    0 2px 6px rgba(0,0,0,0.08);
  padding: 12px 14px;
  position: relative;
  z-index: 2;
  animation: agendaPopoverIn 0.15s var(--ease-ios);
}

@keyframes agendaPopoverIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.agenda-popover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.agenda-popover-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
}

.agenda-popover-badge--travail { background: #34c759; }
.agenda-popover-badge--rdv { background: #007aff; }
.agenda-popover-badge--perso { background: #ff9500; }
.agenda-popover-badge--formation { background: #af52de; }

.agenda-popover-close {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  flex-shrink: 0;
  transition: all 0.15s;
  margin-top: -2px;
}
.agenda-popover-close:hover {
  background: #f2f2f7;
  color: #5a5a5e;
}

.agenda-popover-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.agenda-popover-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agenda-popover-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.3;
}
.agenda-popover-row i {
  color: #8e8e93;
  flex-shrink: 0;
}

/* Arrow flip when popover is on the left side */
.agenda-popover.popover-left .agenda-popover-arrow {
  left: auto;
  right: -7px;
  border-right-color: transparent;
  border-left-color: rgba(0,0,0,0.08);
}
.agenda-popover.popover-left .agenda-popover-arrow::after {
  left: auto;
  right: 1px;
  border-right-color: transparent;
  border-left-color: #fff;
}

/* ─── Event Creation Modal ─── */
.agenda-create-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.agenda-create-overlay.open {
  display: flex;
}

.agenda-create-modal {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  width: 400px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  overflow-y: auto;
  animation: agendaModalIn 0.2s var(--ease-ios);
}

@keyframes agendaModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.agenda-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
}
.agenda-create-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.2px;
}
.agenda-create-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  transition: all 0.15s;
}
.agenda-create-close:hover {
  background: rgba(0,0,0,0.05);
  color: #1d1d1f;
}

.agenda-create-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agenda-create-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agenda-create-label {
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.agenda-create-input {
  padding: 8px 10px;
  border-radius: var(--radius-button);
  border: 0.5px solid rgba(0,0,0,0.1);
  font-size: 13px;
  font-family: inherit;
  color: #1d1d1f;
  background: rgba(0,0,0,0.02);
  outline: none;
  transition: border-color 0.15s;
}
.agenda-create-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0,122,255,0.15);
}
.agenda-create-input::placeholder {
  color: #c7c7cc;
}
.agenda-create-input select {
  cursor: pointer;
}
.agenda-create-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3a3a3c;
  cursor: pointer;
  user-select: none;
}
.agenda-create-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}
.agenda-create-row {
  display: flex;
  gap: 10px;
}

.agenda-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px 16px;
}
.agenda-create-btn {
  padding: 8px 16px;
  border-radius: var(--radius-button);
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.agenda-create-btn--cancel {
  background: transparent;
  color: #8e8e93;
}
.agenda-create-btn--cancel:hover {
  background: rgba(0,0,0,0.05);
  color: #1d1d1f;
}
.agenda-create-btn--primary {
  background: var(--green);
  color: #fff;
}
.agenda-create-btn--primary:hover {
  background: var(--green-light);
}
.agenda-create-btn--primary:active {
  transform: scale(0.97);
}

/* ─── Add event button in toolbar ─── */
.agenda-add-event-btn {
  padding: 5px 14px;
  border-radius: 7px;
  border: 0.5px solid rgba(0,0,0,0.08);
  background: var(--green);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.agenda-add-event-btn:hover {
  background: var(--green-light);
}
.agenda-add-event-btn:active {
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .agenda-sidebar {
    display: none;
  }

  .agenda-toolbar {
    flex-wrap: wrap;
    padding: 4px 12px;
    gap: 6px;
    min-height: 44px;
    background: rgba(246,246,248,0.92);
    backdrop-filter: saturate(180%) blur(30px);
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
  }

  /* Row 1: ← Juin 2026 →  +  */
  .agenda-toolbar-nav {
    flex: 1;
    justify-content: center;
    gap: 2px;
    min-width: 0;
  }
  .agenda-toolbar-title {
    font-size: 16px;
    font-weight: 600;
    min-width: 0;
    padding: 0 4px;
    letter-spacing: -0.3px;
  }
  .agenda-chevron {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--blue);
  }
  .agenda-chevron:active {
    opacity: 0.3;
    transform: none;
  }
  .agenda-chevron svg { width: 18px !important; height: 18px !important; }

  .agenda-toolbar-spacer {
    display: none;
  }

  .agenda-add-event-btn {
    width: 32px; height: 32px; padding: 0;
    font-size: 0; display: inline-flex; align-items: center; justify-content: center; gap: 0;
    border-radius: 8px;
    background: var(--green);
    border: none;
    color: #fff;
    flex-shrink: 0;
  }
  .agenda-add-event-btn svg {
    width: 18px !important; height: 18px !important;
  }
  .agenda-add-event-btn:active {
    opacity: 0.7;
  }

  /* Row 2: Aujourd'hui + segmented control Jour/Semaine/Mois */
  .agenda-today-btn {
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--blue);
  }
  .agenda-today-btn:active {
    opacity: 0.4;
  }

  .agenda-view-toggle {
    display: inline-flex;
    flex-shrink: 0;
    gap: 0;
    padding: 2px;
    background: var(--gray-100);
    border-radius: 7px;
  }
  .agenda-view-btn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.15s;
  }
  .agenda-view-btn.active {
    background: white;
    color: var(--gray-900);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  }
  .agenda-view-btn:active {
    opacity: 0.5;
  }
  .agenda-month-grid {
    grid-auto-rows: minmax(80px, 1fr);
  }
  .agenda-month-event {
    font-size: 9px;
    padding: 2px 4px;
  }
  .agenda-week-view {
    display: none;
  }
  .agenda-week-mobile {
    display: block;
    flex: 1;
    overflow-y: auto;
    padding: 12px;
  }
  .agenda-week-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .agenda-week-mobile-day {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid rgba(0,0,0,0.06);
    overflow: hidden;
  }
  .agenda-week-mobile-day--today {
    border-color: var(--green);
  }
  .agenda-week-mobile-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    background: rgba(0,0,0,0.02);
  }
  .agenda-week-mobile-day-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
  }
  .agenda-week-mobile-day-num {
    font-size: 12px;
    color: #8e8e93;
  }
  .agenda-week-mobile-events {
    padding: 6px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .agenda-week-mobile-empty {
    padding: 16px 14px;
    text-align: center;
    font-size: 13px;
    color: #c7c7cc;
  }
  .agenda-week-mobile-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
  }
  .agenda-week-mobile-event--travail {
    background: rgba(52,199,89,0.1);
    border-left: 3px solid #34c759;
  }
  .agenda-week-mobile-event--rdv {
    background: rgba(0,122,255,0.1);
    border-left: 3px solid #007aff;
  }
  .agenda-week-mobile-event--perso {
    background: rgba(255,149,0,0.1);
    border-left: 3px solid #ff9500;
  }
  .agenda-week-mobile-event--formation {
    background: rgba(175,82,222,0.1);
    border-left: 3px solid #af52de;
  }
  .agenda-week-mobile-event-time {
    font-size: 11px;
    font-weight: 600;
    color: #8e8e93;
    white-space: nowrap;
    min-width: 48px;
  }
  .agenda-week-mobile-event-title {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    flex: 1;
  }
}
