/* Evidentia Notes — additions on top of LaTeX.css (https://latex.vercel.app/) */

/* Interrupteur de thème discret, en haut à droite */
.theme-switch {
  position: fixed;
  top: .75rem;
  right: .75rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.theme-switch__track {
  position: relative;
  width: 2.4rem;
  height: 1.3rem;
  border-radius: 1rem;
  background: rgba(128, 128, 128, .22);
  border: 1px solid rgba(128, 128, 128, .45);
  transition: background .15s ease;
}
.theme-switch__thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  transform: translate(0, -50%);
  transition: transform .15s ease, opacity .15s ease;
}
.theme-switch:hover .theme-switch__thumb { opacity: .8; }
.theme-switch input:checked ~ .theme-switch__track {
  background: rgba(128, 128, 128, .4);
}
.theme-switch input:checked ~ .theme-switch__track .theme-switch__thumb {
  transform: translate(1.1rem, -50%);
  opacity: .9;
}
.theme-switch input:focus-visible ~ .theme-switch__track {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .theme-switch__track, .theme-switch__thumb { transition: none; }
}

/* Titre en petites capitales */
h1 {
  margin-bottom: .3rem;
  font-variant-caps: small-caps;
}
.baseline {
  margin-top: 0;
  text-align: left;
}

.chapeau {
  margin: 1.5rem 0 2.5rem;
}
.chapeau p:last-child { margin-bottom: 0; }

/* Notes */
article.note { margin-top: 3rem; }
article.note + article.note {
  border-top: 1px solid rgba(128, 128, 128, .35);
  padding-top: 2.5rem;
}
article.note h2 { margin-bottom: .15rem; }
article.note h2 a { text-decoration: none; color: inherit; }
article.note h2 a:hover { text-decoration: underline; }

.note-meta {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  opacity: .75;
}

footer.pied {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 128, 128, .35);
  font-size: .85rem;
}
footer.pied p { margin: .4rem 0; }
