/* Badges « niveau d'usage » */

:root {
  --md-primary-fg-color: #306998;
  --md-primary-fg-color--light: #4b83b3;
  --md-primary-fg-color--dark: #1e4569;
  --u-ess: #2e7d32;
  --u-cou: #1565c0;
  --u-adv: #ef6c00;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #2b5b82;
  --md-primary-fg-color--light: #3f7aa8;
  --md-primary-fg-color--dark: #1a3f5c;
  --u-ess: #66bb6a;
  --u-cou: #64b5f6;
  --u-adv: #ffa726;
}

.u {
  display: inline-block;
  padding: 0.05em 0.55em;
  border-radius: 1em;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  color: #fff;
}

[data-md-color-scheme="slate"] .u {
  color: #14161a;
}

.u-ess { background: var(--u-ess); }
.u-cou { background: var(--u-cou); }
.u-adv { background: var(--u-adv); }

/* Ligne de badge placée juste sous le titre de page */
.usage {
  margin: -0.9rem 0 1.4rem;
  font-size: 0.72rem;
  opacity: 0.85;
}

/* Attribution CodeCampus et crédit Material sur une ligne centrée. */
.md-footer-meta__inner {
  justify-content: center;
}

.md-copyright {
  text-align: center;
}

.md-copyright__highlight {
  display: inline;
}

.md-copyright__highlight::after {
  content: " · ";
}

/* La navigation précédente/suivante reste disponible sur mobile. */
@media screen and (min-width: 76.25em) {
  .md-footer .md-footer__inner:not([hidden]) {
    display: none;
  }
}
