@media (max-width:640px) {
  .cal-toolbar {
    flex-wrap: wrap;
  }
  .cal-toolbar .cal-nav {
    flex: 1 1 100%;
  }
}
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cal-nav {
  display: flex;
  align-items: center;
}
.cal-nav-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cal-nav-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.cal-month {
  font-size: 15px;
  text-align: center;
}
.cal-card {
  padding: 16px 16px 6px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
}
.cal-head-row {
  margin-bottom: 1px;
  background: transparent;
}
.cal-head-row div {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-muted);
  padding-bottom: 8px;
}
.cal-day {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cal-day-num {
  font-size: 11.5px;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}
.cal-day.today .cal-day-num {
  font-weight: var(--fw-bold);
}
.cal-event {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-today-btn {
  cursor: pointer;
}
.cal-today-btn.is-here {
  opacity: .45;
}
.cal-day-click {
  cursor: pointer;
  transition: background .12s;
}
.cal-retard {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 14px;
}
.cal-retard .btn {
  padding: 5px 12px;
  font-size: 12px;
}
.cal-month {
  white-space: nowrap;
  min-width: 132px;
}
.cal-nav {
  flex: none;
}
.cal-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cal-modal-card {
  width: 100%;
}
.cal-modal-head {
  display: flex;
  justify-content: space-between;
}
.cal-modal-head h3 {
  font-size: 17px;
  margin: 0;
}
.cal-modal-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-modal-x:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.cal-modal-x svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.cal-f-label {
  display: block;
  margin: 12px 0 6px;
}
.cal-f-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
}
.cal-f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width:520px) {
  .cal-f-row {
    grid-template-columns: 1fr;
  }
}
.cal-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.cal-modal {
  animation: calFade .14s ease-out;
}
.cal-modal-card {
  max-width: 460px;
  padding: 22px 24px 20px;
  animation: calPop .16s ease-out;
}
.cal-modal-card {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.cal-modal-head {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.cal-modal-ico {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cal-modal-ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.cal-modal-sub {
  font-size: 11.8px;
  color: var(--text-muted);
  margin-top: 2px;
}
.cal-f-title {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  outline: none;
}
.cal-opt {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.cal-hint {
  margin-right: auto;
  align-self: center;
  font-size: 11px;
  color: var(--text-muted);
}
.cal-modal-foot {
  align-items: center;
}
.cal-f-input {
  color-scheme: dark;
}
select.cal-f-input {
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
select.cal-f-input option {
  background: var(--bg-surface);
}
.ag-val-txt {
  font-size: 19px;
  font-weight: var(--fw-semibold);
  margin-top: 8px;
}
.cal-grid {
  overflow: hidden;
}
.cal-day {
  min-height: 92px;
  padding: 8px;
}
.cal-event {
  padding: 3px 7px;
}
.cal-month {
  font-weight: var(--fw-semibold);
}
.cal-day.today .cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
}
.ag-rdv .bd-jj {
  margin: 5px 0 0;
  display: inline-flex;
  align-self: flex-start;
}
.gr-champ {
  height: auto;
  padding: 9px 12px;
}
.cal-modal.gr-modal {
  z-index: 90;
}
.ag-barre {
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ag-barre .cal-nav {
  gap: 10px;
  flex-wrap: nowrap;
}
.ag-barre .cal-today-btn {
  margin-left: 6px;
}
.ag-filtre {
  width: 220px;
  flex: none;
}
.ag-aide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
}
.ag-aide .legend {
  flex-wrap: wrap;
  gap: 6px;
}
.ag-aide .legend span {
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
}
.ag-note {
  font-size: 12.5px;
  color: var(--text-muted);
}
.ag-note b {
  color: var(--text-secondary);
  font-weight: var(--fw-semibold);
}
.cal-grid.ag-vue-jour {
  display: block;
  background: transparent;
  overflow: visible;
  padding: 4px 2px 12px;
}
.ag-jour {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 860px;
  margin: 0 auto;
}
.ag-bloc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
@media (min-width:1180px) {
  .ag-jour {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 0 56px;
    max-width: 1560px;
    align-items: start;
  }
  .ag-pause {
    display: none;
  }
}
.ag-periode {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.ag-periode::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.ag-pause {
  margin: 10px 0 0;
  padding: 7px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
}
.ag-creneau {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 14px;
  min-height: 50px;
}
.ag-heure {
  padding-top: 13px;
  text-align: right;
  font-size: 12.5px;
  color: var(--text-muted);
}
.ag-zone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid var(--border-subtle);
}
.ag-jour.today .ag-zone {
  border-left-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.ag-rdv {
  --c: var(--info);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 14px;
  border-left: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 9%, var(--bg-surface));
  cursor: pointer;
}
.ag-rdv:hover {
  background: color-mix(in srgb, var(--c) 15%, var(--bg-surface));
}
.ag-rdv b {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.ag-rdv span {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.ag-ajout {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  opacity: .7;
}
.ag-ajout:hover,
.ag-ajout:focus-visible {
  opacity: 1;
}
.ag-passe {
  padding: 0 14px;
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: .5;
}
.ag-ferie {
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}
.ag-nom-jour {
  display: none;
}
.ag-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 18px;
  align-items: start;
}
.ag-layout > .cal-card {
  min-width: 0;
}
@media (min-width:1101px) {
  .ag-layout {
    grid-template-columns: minmax(0,1fr) 340px;
  }
}
.ag-layout.sans-panneau {
  grid-template-columns: minmax(0,1fr);
}
.ag-layout.sans-panneau .ag-side {
  display: none;
}
.ag-side {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 16px;
}
.ag-side-tete h2 {
  margin: 0;
  font-size: 17px;
  font-weight: var(--fw-semibold);
  letter-spacing: -.01em;
}
.ag-side-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}
.ag-side-vide {
  padding: 18px 0;
  text-align: center;
}
.ag-it {
  --k: var(--info);
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--verre-voile, var(--bg-surface-raised));
}
.ag-it-k {
  width: 4px;
  flex: none;
  border-radius: 4px;
  background: var(--k);
  box-shadow: 0 0 12px var(--k);
}
.ag-it-c {
  flex: 1;
  min-width: 0;
}
.ag-it small {
  font-size: 11.5px;
  color: var(--text-muted);
}
.ag-it-nom {
  margin-top: 2px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  cursor: pointer;
}
.ag-it-nom[data-client]:hover {
  color: var(--accent);
}
.ag-it-tel {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.ag-it-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--k);
  background: color-mix(in srgb, var(--k) 15%, transparent);
}
.ag-it-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--k);
}
.ag-it .gr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.ag-it .gr-btn {
  height: 28px;
  min-height: 0;
  padding: 0 10px;
  font-size: 11.5px;
}
.ag-side-libres {
  padding-top: 10px;
  border-top: 1px solid var(--verre-bord, var(--border-subtle));
  font-size: 12px;
  color: var(--text-muted);
}
.ag-side-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ag-side-row button {
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.ag-side-ajout {
  width: 100%;
  margin-top: 4px;
}
.cal-card .cal-day.ag-choix {
  cursor: pointer;
}
.cal-card .cal-day.today:not(.ag-choisi) {
  background: transparent;
}
.ag-it .gr-actions a.gr-btn {
  order: -1;
  border: 0;
  color: #fff;
  background: var(--verre-degrade, var(--accent));
}
.ag-it .gr-actions a.gr-btn:hover {
  filter: brightness(1.08);
}
.ag-it .gr-danger:hover {
  color: var(--danger);
}
.ag-side-row {
  align-items: center;
}
.ag-side-moment {
  width: 100%;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
}
.ag-side-row + .ag-side-row {
  margin-top: 10px;
}
.ag-side.ag-fondu > * {
  animation: agFondu 220ms var(--ease-out, ease-out) both;
}
.ag-side.ag-fondu > *:nth-child(2) {
  animation-delay: 30ms;
}
.ag-side.ag-fondu > *:nth-child(3) {
  animation-delay: 60ms;
}
.ag-side.ag-fondu > *:nth-child(n+4) {
  animation-delay: 90ms;
}
@media (prefers-reduced-motion:reduce) {
  .ag-side.ag-fondu > * {
    animation: none;
  }
}
.ag-libres-jour {
  align-self: flex-start;
}
.cal-card .cal-day.ag-choix {
  gap: 4px;
}
@media (max-width:640px) {
  .ag-barre .cal-nav {
    min-width: 0;
  }
  .ag-barre .cal-month {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ag-barre .cal-today-btn {
    flex: none;
    margin-left: 0;
  }
}
.cal-event.ag-annule,
.ag-rdv.ag-annule {
  opacity: .55;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.ag-zone > .ag-rdv + .ag-ajout {
  margin-top: 6px;
}
@media (max-width: 767px) {
  .cal-nav-btn {
    width: 44px;
  }
  .cal-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cal-nav {
    justify-content: space-between;
    width: 100%;
  }
  .cal-month {
    font-size: 14px;
  }
  .ag-aide .legend {
    width: 100%;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .ag-aide .legend::-webkit-scrollbar {
    display: none;
  }
  .cal-card {
    padding: 10px 10px 6px;
  }
  .cal-card[data-vue="semaine"] #agTetes {
    display: none;
  }
  .cal-card[data-vue="semaine"] #calGrid {
    grid-template-columns: minmax(0,1fr) !important;
  }
  .cal-card[data-vue="semaine"] .cal-day {
    min-height: 0 !important;
    padding: 10px 10px 8px;
    gap: 6px;
  }
  .cal-card[data-vue="semaine"] .ag-nom-jour {
    display: block;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .cal-card[data-vue="semaine"] .cal-day-num {
    font-size: 14px;
  }
  .cal-card[data-vue="semaine"] .cal-event {
    white-space: normal;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .cal-card[data-vue="mois"] .cal-event {
    pointer-events: none;
  }
  .cal-grid.ag-vue-jour {
    touch-action: pan-y;
    padding: 0 0 8px;
  }
  .ag-creneau {
    grid-template-columns: 44px minmax(0,1fr);
    gap: 10px;
  }
  .ag-heure {
    font-size: 12px;
    padding-top: 14px;
  }
  .ag-zone {
    padding-left: 10px;
  }
  .ag-rdv {
    padding: 12px;
    min-height: 48px;
  }
  .ag-ajout {
    min-height: 44px;
  }
  .cal-modal {
    padding: 0;
    align-items: flex-end;
  }
  .cal-modal-card {
    max-width: 100% !important;
    height: 100dvh;
    max-height: 100dvh !important;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom)) !important;
  }
  .cal-modal-foot {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cal-modal-foot .cal-hint {
    display: none;
  }
  .cal-modal-foot .btn {
    flex: 1 1 0;
  }
}
.cal-event:focus-visible {
  outline-offset: 1px;
}
.cal-toolbar .cal-nav-btn,
.cal-today-btn {
  border: 0;
  border-radius: 50%;
  background: var(--verre-voile);
  color: var(--text-primary);
}
.cal-toolbar .cal-nav-btn:hover,
.cal-today-btn:hover {
  background: var(--verre-voile-fort);
}
.cal-card .cal-grid {
  gap: 4px;
  background: transparent;
  border-radius: 0;
}
.cal-card .cal-head-row div {
  text-transform: none;
  letter-spacing: 0;
  font-weight: var(--fw-medium);
}
.cal-card .cal-day {
  background: transparent;
  transition: background 140ms var(--ease-out);
}
.cal-card .cal-day.other-month {
  opacity: .45;
}
.cal-card .cal-day-click:hover {
  background: var(--verre-voile);
}
.cal-card .cal-day.today .cal-day-num {
  width: 24px;
  height: 24px;
}
.cal-event {
  padding-right: 8px;
}
.ag-rdv {
  border: 0;
}
.ag-jour.today .ag-nom-jour,
.ag-jour.today .cal-day-num {
  color: var(--accent);
}
.cal-modal-x {
  background: var(--verre-voile);
}
.cal-f-label,
.ds-label,
.set-t {
  font: 500 12.5px/1.4 var(--ds-font);
}
.cal-modal-card,
.cmdk-box,
.a21-panneau {
  -webkit-backdrop-filter: none;
}
.cal-retard {
  font-size: 12.5px;
}
.cal-event {
  border-radius: var(--ds-r-sm) !important;
  font: 500 12px/1.3 var(--ds-font) !important;
}
.cal-day.today:not(.ag-choisi) {
  box-shadow: none;
}
.cal-day {
  transition: background 120ms ease;
}
.cal-day.ag-choix:hover:not(.ag-choisi) {
  background: var(--ds-hover);
}
.cal-modal {
  background: var(--ds-overlay);
  -webkit-backdrop-filter: none;
}
.cal-card .cal-day.today .cal-day-num {
  background: var(--ds-accent);
}
.ag-rdv {
  border-radius: var(--ds-r-sm);
  box-shadow: inset 2px 0 0 currentColor, 0 0 0 1px var(--ds-border);
}
.cal-day,
.cal-card .cal-day {
  border-radius: var(--ds-r);
}
.cal-retard {
  border-radius: var(--ds-r-in);
}
html:root body #page-root .ag-libres-jour {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: auto 0 2px 2px !important;
  font-size: 11.5px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  line-height: 16px;
  white-space: nowrap;
}
#page-root .ag-libres-jour::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-success);
  flex-shrink: 0;
}
#page-root .ag-ajout.libre {
  color: var(--ds-text-2);
  background: transparent;
  border: 1px solid var(--ds-border);
}
#page-root .ag-ajout.libre:hover {
  color: var(--ds-text);
  border-color: var(--ds-border-strong);
  background: var(--ds-hover);
}
#page-root .ag-side-row button[data-creer] {
  color: var(--ds-text-2);
  border: 1px solid var(--ds-border-strong);
}
#page-root .ag-side-row button[data-creer]:hover {
  color: var(--ds-text);
  border-color: var(--ds-text-3);
  background: var(--ds-hover);
}
html:root body #page-root .cal-event.ag-ev {
  align-items: center;
  gap: 7px;
  background: var(--ds-surface, #fff) !important;
  border: 1px solid var(--ds-border) !important;
  box-shadow: none !important;
  padding: 5px 8px !important;
  transition: border-color .15s;
}
#page-root .cal-event.ag-ev::before {
  content: "";
  flex: none;
}
html:root body #page-root .cal-event.ag-ev:hover {
  border-color: var(--ds-border-strong) !important;
}
#page-root .cal-event.ag-ev.ag-annule {
  color: var(--ds-text-3);
}
.cal-day.ag-choisi,
.cal-day.today.ag-choisi {
  background: var(--ds-hover);
  box-shadow: none;
}
.cal-card .cal-day.today .cal-day-num {
  background: var(--ag-plein);
  color: var(--ds-surface, #fff);
}
#page-root .cal-day.ag-jour-passe .cal-day-num {
  color: var(--ds-text-3);
}
#page-root .cal-day.ag-jour-passe .cal-event {
  opacity: .7;
}
#page-root .ag-libres-jour::before {
  display: none;
}
#page-root .ag-libres-jour {
  color: var(--ds-text-3);
}
#page-root .ag-it {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
}
#page-root .ag-it-k {
  display: none;
}
#page-root .ag-it-pill {
  background: transparent;
  padding: 0;
  color: var(--ds-text-2);
}
#page-root .ag-it-pill::before {
  content: "";
  flex: none;
}
#page-root .ag-jour.today {
  box-shadow: none;
}
#page-root .cal-event.ag-ev {
  min-width: 0;
  max-width: 100%;
}
#page-root .cal-event.ag-ev::before {
  display: inline-block;
  vertical-align: 1px;
  margin-right: 6px;
}
#page-root .ag-outils {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#page-root .ag-cherche {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
  height: 40px;
  border-radius: 12px;
  background: var(--ds-raised, rgba(24, 24, 27, .045));
  transition: box-shadow .15s;
}
#page-root .ag-cherche:focus-within {
  box-shadow: 0 0 0 2px var(--ds-text, #18181b);
}
#page-root .ag-cherche > svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ds-text-3, #71717a);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
html:root body #page-root .ag-cherche input {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 34px 0 36px;
}
#page-root .ag-cherche input::placeholder {
  color: var(--ds-text-3, #a1a1aa);
}
#page-root .ag-cherche input::-webkit-search-cancel-button {
  display: none;
}
#page-root .ag-cherche button {
  all: unset;
  position: absolute;
  right: 6px;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ds-text-3, #71717a);
}
#page-root .ag-cherche button:hover {
  background: color-mix(in srgb, var(--ds-text, #18181b) 8%, transparent);
  color: var(--ds-text, #18181b);
}
#page-root .ag-cherche button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
#page-root .ag-barre.ag-sans-nav .cal-nav-btn,
#page-root .ag-barre.ag-sans-nav .cal-today-btn {
  display: none;
}
#page-root .cal-card[data-vue="liste"] {
  padding: 8px 20px 20px;
}
#page-root .agl-titre {
  font-size: 13.5px;
  font-weight: 600;
}
#page-root .agl-titre span {
  margin-left: 4px;
  font-weight: 500;
  color: var(--ds-text-3, #a1a1aa);
  font-variant-numeric: tabular-nums;
}
#page-root .agl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--ds-border, #ebebed);
  background: var(--ds-surface, #fff);
  cursor: pointer;
  animation: agl-entre .3s ease-out backwards;
}
#page-root .agl-item:focus-visible {
  outline-offset: 2px;
}
#page-root .agl-pt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
#page-root .agl-corps {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#page-root .agl-corps b {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-root .agl-corps span {
  font-size: 12.5px;
  color: var(--ds-text-3, #71717a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-root .agl-item.ag-annule .agl-corps b {
  text-decoration: line-through;
  color: var(--ds-text-3, #71717a);
}
#page-root .agl-heure {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ds-text-2, #52525b);
}
#page-root .agl-heure svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
#page-root .agl-vide {
  padding: 48px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ds-text-3, #71717a);
}
.ag-survol {
  position: fixed;
  z-index: 400;
  width: 264px;
  border: 1px solid var(--ds-border, #ebebed);
  background: var(--ds-surface, #fff);
  font-family: var(--font, 'Geist', system-ui, sans-serif);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease-out, transform .18s ease-out;
}
.ag-survol.vu {
  opacity: 1;
  transform: none;
}
.ag-survol .ags-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ag-survol .ags-tete b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ds-text, #18181b);
}
.ag-survol .ags-tete i {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  flex: none;
}
.ag-survol .ags-etat {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ds-text-3, #71717a);
}
.ag-survol .ags-ligne {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ds-text-2, #52525b);
}
.ag-survol .ags-ligne svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.ag-survol .ags-puces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ag-survol .ags-puces span {
  border: 1px solid var(--ds-border, #ebebed);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ds-text-2, #52525b);
}
@media (max-width: 767px) {
  #page-root .ag-outils {
    width: 100%;
  }
  #page-root .ag-cherche {
    flex: 1 1 100%;
    width: auto;
  }
  #page-root .ag-outils .ag-filtre {
    flex: 1 1 100%;
    width: auto;
  }
  #page-root .cal-card[data-vue="liste"] {
    padding: 4px 14px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #page-root .agl-item,
  .ag-survol {
    animation: none;
    transition: none;
  }
}
#page-root .agl-jour h3 {
  margin: 16px 0 8px;
}
@media (max-width: 767px) {
  #page-root #agSeg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  #page-root #agSeg button {
    justify-content: center;
  }
  #page-root .ag-barre .cal-nav {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
  }
  #page-root .ag-barre.ag-sans-nav .cal-nav {
    grid-template-columns: 1fr;
  }
  #page-root .ag-barre.ag-sans-nav .cal-month {
    text-align: left;
  }
}
#page-root .ag-periode {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin: 12px 0 4px;
}
#page-root .agl-item {
  padding: 12px 16px;
  border-radius: 12px;
  transition: border-color .15s ease-out, background .15s ease-out;
}
#page-root .agl-item:hover {
  background: var(--ds-raised, #fafafa);
  border-color: color-mix(in srgb, var(--ds-text, #18181b) 16%, transparent);
}
#page-root .agl-titre {
  margin: 16px 0 0;
}
.ag-survol {
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(24, 24, 27, .24);
}
.ag-survol .ags-ligne,
.ag-survol .ags-puces {
  margin-top: 8px;
}
.ag-survol .ags-puces span {
  padding: 2px 8px;
  border-radius: 6px;
}
.cal-card[data-vue="mois"] #calGrid {
  overflow: visible;
}
.agm {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 2px 0 6px;
}
.agm-case {
  position: relative;
  min-height: 78px;
  padding: 8px 8px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font: inherit;
  color: var(--ds-text-2);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease, background-color .25s, border-color .25s, box-shadow .25s;
  animation: agm-apparait .5s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) backwards;
}
.agm-case:active:not(.agm-hors) {
  transform: scale(.96);
  transition-duration: .1s;
}
.agm-case.agm-source {
  opacity: 0;
  transform: scale(.96);
}
.agm-calme .agm-case {
  animation: none;
}
@keyframes agm-apparait {
  from {
    opacity: 0;
    transform: scale(.9) translateY(6px);
  }
}
.agm-suivant .agm-case {
  animation-name: agm-vient-droite;
}
.agm-precedent .agm-case {
  animation-name: agm-vient-gauche;
}
@keyframes agm-vient-droite {
  from {
    opacity: 0;
    transform: translateX(18px) scale(.96);
  }
}
@keyframes agm-vient-gauche {
  from {
    opacity: 0;
    transform: translateX(-18px) scale(.96);
  }
}
.agm-case:hover {
  background: var(--ds-hover);
}
.agm-case.agm-pleine:hover {
  transform: scale(1.05);
  z-index: 2;
  border-color: var(--ds-border-strong);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}
.agm-case:focus-visible {
  outline: 2px solid var(--ds-text);
  outline-offset: 2px;
}
.agm-hors {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}
.agm-hors .agm-num {
  opacity: .35;
}
.agm-passe:not(.agm-pleine) .agm-num {
  opacity: .55;
}
.agm-num {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.agm-auj .agm-num {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: var(--ds-primary-fg);
  background: var(--ds-primary);
  font-weight: 600;
}
.agm-choisi {
  border-color: var(--ds-text);
}
.agm-icone {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ds-text);
}
.agm-icone svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.agm-icone b {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.agm-point {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.agm-mention {
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--ds-text-3);
}
.agm-libre {
  color: var(--success);
}
.agc-voile {
  position: fixed;
  will-change: opacity;
  inset: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--ds-bg) 55%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.agc-voile.agc-visible {
  opacity: 1;
  pointer-events: auto;
}
.agc-carte {
  position: fixed;
  z-index: 901;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .14);
  transition: top .5s cubic-bezier(.32, .72, 0, 1), left .5s cubic-bezier(.32, .72, 0, 1), width .5s cubic-bezier(.32, .72, 0, 1), height .5s cubic-bezier(.32, .72, 0, 1), border-radius .5s cubic-bezier(.32, .72, 0, 1), box-shadow .5s ease;
}
.agc-carte[data-phase="ferme"] {
  transition: opacity .22s ease, transform .26s cubic-bezier(.32, .72, 0, 1);
  transform: scale(.95);
}
.agc-carte[data-phase="ferme"] .agc-dedans {
  opacity: 1;
}
.agc-voile:not(.agc-visible) {
  transition-duration: .25s;
}
.agc-carte.agc-ouverte {
  border-radius: 20px;
}
.agc-dedans {
  opacity: 0;
  transition: opacity .12s ease;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.agc-ouverte .agc-dedans {
  opacity: 1;
  transition: opacity .25s ease .12s;
}
.agc-ligne,
.agc-pied {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.agc-ouverte .agc-ligne,
.agc-ouverte .agc-pied {
  opacity: 1;
  transform: none;
  transition-delay: calc(.18s + var(--i, 0) * .045s);
}
.agc-tete {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--ds-border);
}
.agc-jour {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--ds-border);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ds-text);
}
.agc-titres {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.agc-titres b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-text);
}
.agc-titres small {
  font-size: 12.5px;
  color: var(--ds-text-3);
}
.agc-fermer {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ds-hover);
  color: var(--ds-text-2);
  cursor: pointer;
  transition: transform .2s, background-color .2s;
}
.agc-fermer:hover {
  transform: scale(1.08);
  background: var(--ds-active);
  color: var(--ds-text);
}
.agc-fermer svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.agc-liste {
  display: grid;
  padding: 6px 8px;
}
.agc-ligne {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.agc-ligne:hover {
  background: var(--ds-hover);
}
.agc-heure {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ds-text);
}
.agc-qui {
  min-width: 0;
  display: grid;
}
.agc-qui b {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ds-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agc-qui small {
  font-size: 12px;
  color: var(--ds-text-3);
}
.agc-etat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ds-text-2);
  white-space: nowrap;
}
.agc-etat i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.agc-pied {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--ds-border);
}
@media (max-width: 767px) {
  .agm {
    gap: 5px;
  }
  .agm-case {
    min-height: 62px;
    border-radius: 12px;
    padding: 6px 4px;
  }
  .agm-mention {
    display: none;
  }
  .agm-icone {
    display: none;
  }
  .agm-point {
    top: 12px;
    left: 50%;
    right: auto;
    width: 8px;
    height: 8px;
    transform: translateX(-50%);
  }
  .agc-etat span {
    display: none;
  }
  .agc-etat i {
    width: 8px;
    height: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .agm-case {
    animation: none;
  }
  .agc-ligne,
  .agc-pied {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .agc-carte,
  .agc-voile,
  .agc-dedans {
    transition: none;
  }
}

/* Même calendrier partout : vue Semaine en cases de la vue Mois (22/11) */
@media (min-width: 768px) {
  html:root #page-root .cal-card[data-vue="semaine"] #calGrid,
  html:root #page-root .cal-card[data-vue="semaine"] #agTetes { gap: 6px; }
  html:root #page-root .cal-card[data-vue="semaine"] #calGrid { padding: 2px 0 6px; }
  html:root #page-root .cal-card[data-vue="semaine"] .cal-day {
    background: var(--ds-surface); border: 1px solid var(--ds-border) !important; border-radius: 14px !important;
    box-shadow: none !important; transition: background-color .25s, border-color .25s;
  }
  html:root #page-root .cal-card[data-vue="semaine"] .cal-day.ag-choix:hover:not(.ag-choisi) { background: var(--ds-hover); }
  html:root #page-root .cal-card[data-vue="semaine"] .cal-day.today:not(.ag-choisi) { background: var(--ds-surface); }
  html:root #page-root .cal-card[data-vue="semaine"] .cal-day.ag-choisi { background: var(--ds-surface); border-color: var(--ds-text) !important; }
  html:root #page-root .cal-card[data-vue="semaine"] .cal-day .cal-day-num { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ds-text-2); }
  html:root #page-root .cal-card[data-vue="semaine"] .cal-day.today .cal-day-num {
    min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 11px; padding: 0 6px;
    color: var(--ds-primary-fg); background: var(--ds-primary); font-weight: 600;
  }
  html:root #page-root .cal-card[data-vue="semaine"] .cal-day.ag-jour-passe .cal-day-num { opacity: .55; }
}

/* Agenda 22/11 : cases de la semaine plus calmes */
@media (min-width:768px) {
  html:root body #page-root .cal-card[data-vue="semaine"] .cal-day.ag-choix { padding: 12px !important; }
  html:root body #page-root .cal-card[data-vue="semaine"] .cal-day.ag-choix:hover:not(.ag-choisi) { border-color: var(--ds-border-strong) !important; }
  html:root body #page-root .cal-card[data-vue="semaine"] .cal-day.ag-choisi { border-color: var(--ds-text, #18181b) !important; border-width: 1.5px !important; }
}

/* Agenda 22/11 : vue Mois alignée sur la vue Semaine (numéro en haut à gauche, libres en bas, gris) */
@media (min-width:768px) {
  html:root body #page-root .agm-case { align-items: flex-start !important; justify-content: space-between !important; padding: 10px 12px !important; min-height: 84px; }
  html:root body #page-root .agm-case .agm-num { order: -1; font-size: 13px; }
  html:root body #page-root .agm-case .agm-mention,
  html:root body #page-root .agm-case .agm-icone { position: static !important; transform: none !important; text-align: left; }
  html:root body #page-root .agm-case .agm-mention { font-size: 11.5px; color: var(--ds-text-3) !important; }
  html:root body #page-root .agm-case .agm-icone { margin-top: auto; }
  html:root body #page-root .agm-case:hover:not(.agm-choisi):not(.agm-hors) { border-color: var(--ds-border-strong); }
  html:root body #page-root .agm-choisi { border-color: var(--ds-text, #18181b) !important; border-width: 1.5px; }
}
@media (max-width:767px) { .agm-mot { display: none; } }
html:root body #page-root .agm-case .agm-icone b { font-weight: 600; } html:root body #page-root .agm-case .agm-mot { font-size: 11.5px; color: var(--ds-text-2); font-weight: 400; }
/* 22/11 : Jour et Mois comme la Semaine */
html:root body #page-root .agm-choisi { background: var(--ds-surface) !important; }
html:root body #page-root .ag-ajout.libre { display: flex !important; justify-content: space-between; align-items: center; }
html:root body #page-root .ag-ajout.libre .ag-plus { opacity: 0; color: var(--ds-text); font-weight: 500; transition: opacity .15s; }
html:root body #page-root .ag-ajout.libre:hover .ag-plus, html:root body #page-root .ag-ajout.libre:focus-visible .ag-plus { opacity: 1; }
@media (hover: none) { html:root body #page-root .ag-ajout.libre .ag-plus { opacity: 1; color: var(--ds-text-3); } }
/* 22/11 : Jour et Mois dessinés comme la Semaine (ordi) */
@media (min-width:768px) {
  html:root body #page-root .cal-card[data-vue="semaine"] .cal-day.ag-hors-mois { border: 0 !important; background: transparent !important; pointer-events: none; }
}
/* 22/11 : Mois peaufiné */
@media (min-width:768px) {
  html:root body #page-root #calGrid.ag-grille-mois .cal-day { min-height: 104px !important; height: 104px; overflow: hidden; gap: 3px !important; padding: 10px 10px 8px !important; }
  html:root body #page-root #calGrid.ag-grille-mois .cal-event.ag-ev { border: 0 !important; background: transparent !important; padding: 1px 0 !important; min-height: 0 !important; font-size: 11.5px !important; gap: 6px; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; display: flex; }
  html:root body #page-root #calGrid.ag-grille-mois .cal-event.ag-ev:hover { color: var(--ds-text); text-decoration: underline; }
  html:root body #page-root #calGrid.ag-grille-mois .ag-plus-ev { font-size: 11px; color: var(--ds-text-3); }
  html:root body #page-root #calGrid.ag-grille-mois .ag-libres-jour { font-size: 11px !important; }
  html:root body #page-root #calGrid .ag-ferie-mot { font-size: 11.5px; color: var(--ds-text-3); }
  html:root body #page-root #calGrid.ag-grille-mois .cal-day.ag-jour-passe .cal-event { opacity: .8; }
}
@media (min-width:768px) { html:root body #page-root #calGrid.ag-grille-mois .cal-event.ag-ev { display: block !important; width: 100%; } html:root body #page-root #calGrid.ag-grille-mois .cal-event.ag-ev::before { display: inline-block !important; vertical-align: 1px; margin-right: 6px; } }
/* 22/11 : calendrier et panneau de la même hauteur */
@media (min-width:1101px) {
  html:root body #page-root .ag-layout:not(.sans-panneau) { align-items: stretch !important; }
  html:root body #page-root .ag-layout:not(.sans-panneau) > .cal-card { display: flex !important; flex-direction: column; }
  html:root body #page-root .ag-layout:not(.sans-panneau) > .cal-card > #calGrid { flex: 1; grid-auto-rows: 1fr; }
  html:root body #page-root .ag-layout:not(.sans-panneau) > .cal-card > #calGrid:not(.ag-grille-mois) > .cal-day { min-height: 0 !important; height: auto !important; }
  html:root body #page-root .ag-layout:not(.sans-panneau) > .ag-side { align-self: stretch; }
}
html:root body #page-root .cal-card[data-vue="semaine"] .cal-day.ag-choix:hover:not(.ag-choisi) { background: var(--ds-surface) !important; border-color: var(--ds-border-strong) !important; }
/* 22/11 : bouton d'ajout dans le panneau vide */
html:root body #page-root .ag-side-vide { display: flex !important; flex-direction: column; align-items: center; gap: 12px; }
html:root body #page-root .ag-side-vide-btn { font-size: 13px; }
html:root body #page-root .ag-side-tete + .ag-side-libres { border-top: 0 !important; padding-top: 0 !important; margin-top: 4px !important; }
@media (min-width:1101px) { html:root body #page-root .ag-layout:not(.sans-panneau) > .cal-card > #calGrid:not(.ag-grille-mois) { min-height: 380px; } }
@media (min-width:768px) { html:root body #page-root .cal-card[data-vue="semaine"] > #calGrid:not(.ag-grille-mois) { min-height: 380px; grid-auto-rows: 1fr; } html:root body #page-root .cal-card[data-vue="semaine"] > #calGrid:not(.ag-grille-mois) > .cal-day { min-height: 0 !important; } }
