.av {
  width: 28px;
  height: 28px;
  border-radius: var(--r-s);
  background: linear-gradient(155deg,var(--accent),color-mix(in srgb, var(--accent) 60%, black));
  background-size: cover;
  background-position: center;
  flex: none;
}
.legend {
  display: flex;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}
.legend i {
  width: 8px;
  height: 8px;
}
.sev-critical {
  --sev: var(--danger);
}
.sev-warning {
  --sev: var(--warning);
}
.sev-info {
  --sev: var(--info);
}
.lien-tel:hover,
.lien-tel:focus-visible {
  border-bottom-style: solid;
}
@media (prefers-reduced-motion: no-preference) {
  .bd-success .d,
  .bd.bd-success i.d {
    position: relative;
  }
  .bd-success .d::after,
  .bd.bd-success i.d::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    background: var(--success);
    opacity: .5;
    animation: rf-vivant 2.2s ease-out infinite;
    will-change: transform, opacity;
  }
}
@media (max-width: 767px) {
  .chip {
    display: inline-flex;
    align-items: center;
  }
}
.lien-tel {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  border-bottom: 0;
  text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .15s;
}
.lien-tel:hover {
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}
.chip,
.al-chip {
  font: 500 12.5px/1 var(--ds-font);
  box-shadow: none;
  transform: none;
}
.chip:hover,
.al-chip:hover {
  background: var(--ds-hover) !important;
  color: var(--ds-text) !important;
}
.chip.active,
.al-chip.active,
.chip.on,
.al-chip.on {
  border-color: var(--ds-border-strong) !important;
}
.bd {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
}
.bd .d,
.bd i.d {
  border-radius: 50%;
  flex: none;
}
.bd-info .d,
.bd-accent .d {
  background: var(--ds-accent);
}
.chip,
.al-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.chip,
.al-chip {
  border: 0 !important;
  border-radius: var(--ds-r-pill) !important;
  background: var(--ds-raised) !important;
  color: var(--ds-text-2) !important;
  height: 30px;
  padding: 0 14px !important;
}
.chip.active,
.al-chip.active,
.chip.on,
.al-chip.on {
  background: var(--ds-active) !important;
}
.bd {
  border: 0 !important;
  border-radius: var(--ds-r-pill) !important;
  height: 24px;
  font: 500 12px/1 var(--ds-font) !important;
  color: var(--ds-text-2) !important;
}
.chip.active,
.al-chip.active,
.chip.on,
.al-chip.on,
.tabs .tabbtn.active,
.seg-toggle button.active,
.pc-choix button.on {
  color: var(--ds-active-fg) !important;
}
html:root body #page-root :is(.chip, .seg-toggle, .seg-toggle > button, .pc-choix, .pc-choix > button, .legend > span, .bd, .a21-puce, #shcDelta) {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
html:root body #page-root :is(.chip, .seg-toggle > button, .pc-choix > button) {
  color: var(--ds-text-3) !important;
  border-radius: 0 !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
  margin-right: 10px;
}
html:root body #page-root :is(.chip, .seg-toggle > button, .pc-choix > button):hover {
  color: var(--ds-text) !important;
}
html:root body #page-root :is(.chip.active, .seg-toggle > button.active, .pc-choix > button.on) {
  color: var(--ds-text) !important;
  font-weight: 600 !important;
}
html:root body #page-root :is(.bd, .a21-puce, #shcDelta, .legend > span) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html:root body #page-root :is(.bd, .a21-puce, #shcDelta, .k-sub b, .al-age) {
  color: var(--ds-text-2) !important;
}
html:root body #page-root .bd-success .d {
  background: var(--ds-success) !important;
}
html:root body #page-root .bd-warning .d {
  background: var(--ds-warning) !important;
}
html:root body #page-root .bd-danger .d {
  background: var(--ds-danger) !important;
}
html:root body #page-root :is(.bd:not(:has(.d)), .a21-puce, #shcDelta, .k-sub b, .al-age)::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--ds-text-3);
}
html:root body #page-root :is(.bd-success:not(:has(.d)), .a21-puce.ok, .k-sub b)::before {
  background: var(--ds-success) !important;
}
html:root body #page-root :is(.bd-warning:not(:has(.d)), .a21-puce.attention)::before {
  background: var(--ds-warning) !important;
}
html:root body #page-root :is(.bd-danger:not(:has(.d)), .a21-puce.alerte, .al-age-rouge)::before {
  background: var(--ds-danger) !important;
}
#page-root .legend {
  flex-wrap: wrap;
  overflow: visible;
  column-gap: 12px;
}
html:root body #page-root .bd-muted:not(:has(.d))::before {
  display: none !important;
}
html:root body #page-root .legend i,
html:root body #page-root .cal-event.ag-ev::before,
html:root body #page-root .ag-it-pill::before {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  box-sizing: border-box;
  opacity: 1 !important;
  background: var(--ag-gris) !important;
}
html:root body #page-root .legend i[style*="--info"],
html:root body #page-root .cal-event.ag-ev[style*="--info"]::before,
html:root body #page-root .ag-it[style*="--info"] .ag-it-pill::before {
  background: transparent !important;
  border: 1.5px solid var(--ag-plein) !important;
}
html:root body #page-root .legend i[style*="--text-muted"],
html:root body #page-root .cal-event.ag-ev[style*="--text-muted"]::before,
html:root body #page-root .ag-it[style*="--text-muted"] .ag-it-pill::before {
  background: transparent !important;
  border: 1.5px dashed var(--ag-gris) !important;
}
html:root body #page-root .legend i[style*="--danger"],
html:root body #page-root .cal-event.ag-ev[style*="--danger"]::before,
html:root body #page-root .ag-it[style*="--danger"] .ag-it-pill::before {
  background: var(--ag-rouge) !important;
}
html:root body #page-root .legend i[style*="opacity"] {
  background: transparent !important;
  border: 1.5px solid var(--ag-gris) !important;
}
html:root:root body #page-root#page-root :is(.bd-success, .bd-warning, .bd-danger) {
  display: inline-flex !important;
  gap: 0;
  padding: 2px 9px 2px 8px !important;
  line-height: 1.5 !important;
}
html:root:root body #page-root#page-root .bd-success {
  color: var(--ds-success) !important;
}
html:root:root body #page-root#page-root .bd-warning {
  color: var(--ds-warning) !important;
}
html:root:root body #page-root#page-root .bd-danger {
  color: var(--ds-danger) !important;
}
html:root:root body #page-root#page-root :is(.bd-success, .bd-warning, .bd-danger) .d {
  margin-right: 6px;
}
html:root:root body #page-root#page-root .legend i[style*="--success)"]:not([style*="opacity"]),
html:root:root body #page-root#page-root .cal-event.ag-ev[style*="--success"]::before,
html:root:root body #page-root#page-root .ag-it[style*="--success"] .ag-it-pill::before {
  background: var(--ds-success) !important;
}
html:root:root body #page-root#page-root :is(.bd-success, .bd-warning, .bd-danger) {
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-radius: 0 !important;
}
#page-root .legend .ag-etat {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-text-2, #52525b);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .15s, border-color .15s, color .15s;
}
#page-root .legend .ag-etat i {
  flex: none;
}
#page-root .legend.ag-filtre-actif .ag-etat[aria-pressed="false"] {
  opacity: .45;
}
#page-root .legend .ag-etat[aria-pressed="true"] {
  border-color: var(--ds-text, #18181b);
  color: var(--ds-text, #18181b);
  font-weight: 600;
}
#page-root .legend .ag-etat-x {
  all: unset;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #3B82F6;
  cursor: pointer;
  white-space: nowrap;
}

/* Agenda 22/11 : points pleins et colorés, partout pareil (légende, cases, panneau) */
#page-root { --ag-violet: #8B5CF6; }
html:root:root body #page-root#page-root :is(.legend i, .cal-event.ag-ev::before, .ag-it-pill::before) {
  width: 8px !important; height: 8px !important; border: 0 !important; border-radius: 50% !important;
}
html:root:root body #page-root#page-root :is(.legend i[style*="--info"], .cal-event.ag-ev[style*="--info"]::before, .ag-it[style*="--info"] .ag-it-pill::before) { background: #3B82F6 !important; }
html:root:root body #page-root#page-root :is(.legend i[style*="--ag-violet"], .cal-event.ag-ev[style*="--ag-violet"]::before, .ag-it[style*="--ag-violet"] .ag-it-pill::before) { background: #8B5CF6 !important; }
html:root:root body #page-root#page-root :is(.legend i[style*="--text-muted"], .cal-event.ag-ev[style*="--text-muted"]::before, .ag-it[style*="--text-muted"] .ag-it-pill::before) { background: #A1A1AA !important; }
html:root:root body #page-root#page-root :is(.legend i[style*="--warning"], .cal-event.ag-ev[style*="--warning"]::before, .ag-it[style*="--warning"] .ag-it-pill::before) { background: #F59E0B !important; }
html:root:root body #page-root#page-root :is(.legend i[style*="--danger"], .cal-event.ag-ev[style*="--danger"]::before, .ag-it[style*="--danger"] .ag-it-pill::before) { background: #EF4444 !important; }
html:root:root body #page-root#page-root :is(.legend i[style*="--success"], .cal-event.ag-ev[style*="--success"]::before, .ag-it[style*="--success"] .ag-it-pill::before) { background: #10B981 !important; }
:root { --ag-violet: #8B5CF6; }
html:root body :is(.agc-etat i, .agm-point)[style*="--info"] { background: #3B82F6 !important; }
html:root body :is(.agc-etat i, .agm-point)[style*="--ag-violet"] { background: #8B5CF6 !important; }
html:root body :is(.agc-etat i, .agm-point)[style*="--text-muted"] { background: #A1A1AA !important; }
html:root body :is(.agc-etat i, .agm-point)[style*="--warning"] { background: #F59E0B !important; }
html:root body :is(.agc-etat i, .agm-point)[style*="--danger"] { background: #EF4444 !important; }
html:root body :is(.agc-etat i, .agm-point)[style*="--success"] { background: #10B981 !important; }
html:root body .agl-pt[style*="--info"] { background: #3B82F6 !important; }
html:root body .agl-pt[style*="--ag-violet"] { background: #8B5CF6 !important; }
html:root body .agl-pt[style*="--text-muted"] { background: #A1A1AA !important; }
html:root body .agl-pt[style*="--warning"] { background: #F59E0B !important; }
html:root body .agl-pt[style*="--danger"] { background: #EF4444 !important; }
html:root body .agl-pt[style*="--success"] { background: #10B981 !important; }
