/* removed: tokens.css handled by page aggregator */
/* Cartes “glass” standard */
.u-glass-card {
  background: var(--surface-card);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  backdrop-filter: blur(var(--glass-blur)) saturate(130%);
}

/* “Galet” bouton/pastille convexe (header / chapitres / accordion toggle) */
.u-galet {
  background: var(--galet-bg);
  border: var(--galet-border);
  box-shadow: var(--galet-shadow);
}
.u-galet--bright {
  background: var(--galet-bg-bright);
  box-shadow: var(--galet-shadow-strong);
}

/* Focus cohérent */
.u-focus {
  outline: none;
}
.u-focus:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}

/* Ring violet AA (option) */
.u-ring-brand:focus-visible {
  box-shadow:
    0 0 0 2px rgb(255 255 255 / 0.95),
    0 0 0 4px rgb(var(--brand-600-rgb) / 0.45);
}

/* Scrollbar claire réutilisable */
.u-scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--white-rgb) / 0.5) transparent;
}
.u-scrollbar-thin::-webkit-scrollbar {
  width: 8px;
}
.u-scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgb(var(--white-rgb) / 0.5);
  border-radius: 4px;
}

/* Inline SVG icons */
.u-icon-inline {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  stroke: currentColor;
  fill: none;
}
.u-icon-inline--fill {
  fill: currentColor;
  stroke: none;
}

/* MathJax opt-in (third-party load on demand) */
.mathjax-optin-button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1100;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgb(148 163 184 / 0.45);
  background: rgb(15 23 42 / 0.92);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.35);
  backdrop-filter: blur(8px);
}
.mathjax-optin-button:hover {
  border-color: rgb(148 163 184 / 0.7);
}
.mathjax-optin-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
