:root[data-theme="dark"] a:hover {
  color: var(--c-principal);
}

:root[data-theme="dark"] .btn-blanc {
  background: #fff;
  color: #a33221;
}

:root[data-theme="dark"] .logo-texte strong {
  color: var(--c-principal);
}

:root[data-theme="dark"] .surtitre,
:root[data-theme="dark"] .lien-fleche,
:root[data-theme="dark"] .date-bloc .mois,
:root[data-theme="dark"] .impacts strong {
  color: var(--c-principal);
}

:root[data-theme="dark"] .navbar .nav-link:hover,
:root[data-theme="dark"] .navbar .nav-link.active {
  color: var(--c-principal);
}

:root[data-theme="dark"] .filtre.actif {
  background: var(--c-titre);
  border-color: var(--c-titre);
  color: var(--c-fond);
}

:root[data-theme="dark"] .bascule-frequence .btn-check:checked + .btn {
  background: var(--c-titre);
  color: var(--c-fond);
}

:root[data-theme="dark"] .text-muted {
  color: var(--c-doux) !important;
}

:root[data-theme="dark"] .carte-plan iframe {
  filter: invert(.9) hue-rotate(180deg);
}

.btn-barre {
  min-height: 34px;
}

.btn-barre i {
  margin-right: .2rem;
}

.dropdown-langue .dropdown-item[aria-current="true"] {
  font-weight: 800;
  background: var(--c-fond-doux);
}

html.a11y-taille-1 {
  font-size: 19px;
}

html.a11y-taille-2 {
  font-size: 22px;
}

html.a11y-police {
  --police: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
}

html.a11y-police body,
html.a11y-police .btn,
html.a11y-police .form-control,
html.a11y-police .form-select {
  font-family: var(--police);
}

html.a11y-liens a:not(.btn):not(.dropdown-item):not(.navbar-brand):not(.lien-carte) {
  text-decoration: underline !important;
  text-underline-offset: .2em;
}

html.a11y-liens .navbar .nav-link {
  text-decoration: underline;
}

html.a11y-espacement body {
  line-height: 1.9;
  letter-spacing: .03em;
  word-spacing: .12em;
}

html.a11y-espacement p,
html.a11y-espacement li {
  margin-bottom: 1em;
}

html.a11y-animations *,
html.a11y-animations *::before,
html.a11y-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.a11y-curseur,
html.a11y-curseur * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L9.5 21z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important;
}

:root.a11y-contraste[data-theme] {
  --c-principal: #ffff00;
  --c-principal-fonce: #000000;
  --c-sarcelle: #000000;
  --c-sarcelle-fonce: #ffff00;
  --c-soleil: #ffff00;
  --c-marine: #000000;
  --c-texte: #ffffff;
  --c-doux: #ffffff;
  --c-fond: #000000;
  --c-fond-doux: #000000;
  --c-carte: #000000;
  --c-bordure: #ffffff;
  --c-bordure-champ: #ffffff;
  --c-titre: #ffffff;
  --c-lien: #ffff00;
  --c-entete: #000000;
  --c-teinte-principal: #000000;
  --c-teinte-sarcelle: #000000;
  --c-hors-mois: #000000;
  --c-aujourdhui: #333300;
  --c-focus: #00ffff;
  --ombre: none;
}

html.a11y-contraste body {
  background: #000;
}

html.a11y-contraste a {
  text-decoration: underline;
}

html.a11y-contraste .btn,
html.a11y-contraste .btn-barre,
html.a11y-contraste .filtre,
html.a11y-contraste .pastille,
html.a11y-contraste .badge {
  background: #000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

html.a11y-contraste .btn-check:checked + .btn,
html.a11y-contraste .btn.active,
html.a11y-contraste .filtre.actif {
  background: #ffff00 !important;
  color: #000 !important;
}

html.a11y-contraste .carte,
html.a11y-contraste .carte-activite,
html.a11y-contraste .calendrier,
html.a11y-contraste .accordion-item,
html.a11y-contraste .dropdown-menu,
html.a11y-contraste .offcanvas,
html.a11y-contraste .assistant-panneau {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff;
}

html.a11y-contraste .heros,
html.a11y-contraste .entete-page,
html.a11y-contraste .appel-action,
html.a11y-contraste .chiffres,
html.a11y-contraste .pied,
html.a11y-contraste .barre-haut,
html.a11y-contraste .section-douce,
html.a11y-contraste .valeur,
html.a11y-contraste .carte-article-bandeau {
  background: #000 !important;
  color: #fff !important;
  border-bottom: 2px solid #fff;
}

html.a11y-contraste .valeur h3,
html.a11y-contraste .chiffres strong,
html.a11y-contraste .surtitre,
html.a11y-contraste .lien-fleche,
html.a11y-contraste .date-bloc .mois,
html.a11y-contraste .logo-texte strong {
  color: #ffff00 !important;
}

html.a11y-contraste .form-control,
html.a11y-contraste .form-select,
html.a11y-contraste .input-group-text {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html.a11y-contraste .form-control::placeholder {
  color: #ccc;
}

html.a11y-contraste .bulle,
html.a11y-contraste .logo-icone,
html.a11y-contraste .service-icone,
html.a11y-contraste .entete-page-icone,
html.a11y-contraste .avatar,
html.a11y-contraste .etape {
  background: #000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00;
}

html.a11y-contraste .cal-evenement,
html.a11y-contraste .carte-activite .pastille {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #fff;
}

html.a11y-contraste img,
html.a11y-contraste iframe {
  filter: grayscale(1) contrast(1.2);
}

.panneau-a11y .form-switch {
  padding-left: 3.2em;
  min-height: 2rem;
  margin-bottom: 1rem;
}

.panneau-a11y .form-switch .form-check-input {
  width: 2.6em;
  height: 1.4em;
  margin-left: -3.2em;
  cursor: pointer;
}

.panneau-a11y .form-check-label {
  font-weight: 700;
  cursor: pointer;
}

.panneau-a11y .form-check-label small {
  display: block;
  font-weight: 400;
  color: var(--c-doux);
}

.panneau-a11y .groupe-taille .btn {
  flex: 1;
  border-radius: 12px;
}

.panneau-a11y .groupe-taille .btn-check:checked + .btn {
  background: var(--c-titre);
  color: var(--c-fond);
}

.offcanvas {
  background: var(--c-carte);
  color: var(--c-texte);
}

.lecture-active {
  outline: 3px dashed var(--c-focus);
  outline-offset: 4px;
}

.choix-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mode-don {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border: 3px solid var(--c-bordure-champ);
  border-radius: var(--rayon);
  background: var(--c-carte);
  color: var(--c-texte);
  text-decoration: none;
}

.mode-don i {
  font-size: 2rem;
  color: var(--c-lien);
}

.mode-don strong {
  display: block;
  font-size: 1.15rem;
  color: var(--c-titre);
}

.mode-don small {
  color: var(--c-doux);
}

.mode-don:hover {
  border-color: var(--c-lien);
  color: var(--c-texte);
}

.mode-don.actif {
  border-color: var(--c-principal-fonce);
  background: var(--c-teinte-principal);
}

.liste-cheque {
  font-size: 1.1rem;
  padding-left: 1.4rem;
}

.liste-cheque li {
  padding: .4rem 0;
}

.adresse-cheque {
  font-size: 1.2rem;
  font-weight: 700;
  margin: .6rem 0 0;
  padding: .8rem 1rem;
  border-left: 5px solid var(--c-principal-fonce);
  background: var(--c-fond-doux);
  border-radius: 0 12px 12px 0;
}

.rappel-cheque {
  max-width: 480px;
  background: var(--c-fond-doux);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

@media (max-width: 575.98px) {
  .choix-mode {
    grid-template-columns: 1fr;
  }
}

@media print {
  .barre-haut,
  .entete,
  .pied,
  .assistant,
  .sans-impression {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

.navbar .nav-link,
.navbar .btn-don {
  white-space: nowrap;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar .nav-link {
    padding: .5rem .55rem !important;
  }
}

@media (max-width: 575.98px) {
  .btn-barre .texte-masquable {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .logo-texte {
    font-size: 1.05rem;
  }
}
