/* Interface ordinaire : ElmUI et MrJam. Aucun thème applicatif parallèle.
   Les saisies et le sélecteur historiques restent isolés jusqu'à l'adoption
   coordonnée des composants manquants (voir docs/PORTAGE-ELMUI.md).
   KaTeX, course-video, le lien d'évitement et la signature sont techniques. */
body {
  margin: 0;
}
math-tex {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}
math-tex[display-mode] {
  display: block;
  overflow-x: auto;
  padding: 4px 1px;
}
.katex-display {
  margin: 0.25em 0 !important;
}
.katex {
  font-size: 1.14em !important;
}
.rich {
  white-space: pre-line;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
}
.skip-link:not(:focus) {
  clip-path: inset(50%);
}
.skip-link:focus {
  top: 12px;
  padding: 12px;
  color: #193d38;
  background: white;
  outline: 3px solid #087f71;
}
.video-integration,
course-video {
  white-space: normal;
  width: 100%;
  min-width: 0;
  --green: #087f71;
  --ink: #193d38;
  --muted: #5b7871;
}
.video-integration {
  overflow: hidden;
  border-radius: 17px;
}
.video-integration iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
course-video button,
course-video a {
  font: inherit;
  cursor: pointer;
  border: 0;
  min-height: 44px;
}
course-video button:focus-visible,
course-video a:focus-visible,
.video-external:focus-visible {
  outline: 3px solid #219f8b;
  outline-offset: 3px;
}
course-video .primary {
  display: inline-block;
  color: white;
  background: #087f71;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
}
course-video .quiet {
  color: #193d38;
  background: transparent;
  padding: 12px;
}
.video-external {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #087f71;
}
course-video {
  display: block;
}
.video-confidentialite { color: #5b7871; font-size: 0.875rem; line-height: 1.45; margin: 0 0 12px; }
.video-poster {
  position: relative;
  aspect-ratio: 16/9;
  background: #dcebe1;
  overflow: hidden;
}
.video-poster-image {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  background: linear-gradient(180deg, #193d380d, #193d3859);
}
.video-play:hover {
  background: linear-gradient(180deg, #193d3814, #193d3873);
}
.video-play-symbol {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid #ffffff66;
  box-shadow: 0 6px 32px #193d3826;
  font-size: 1.4rem;
}
.video-play-label {
  padding: 7px 13px;
  background: #193d38e6;
  border-radius: 7px;
  font-size: 0.86rem;
}
.video-beginning {
  position: absolute;
  right: 15px;
  bottom: 12px;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 8px;
  background: #fffffff2;
  color: var(--ink);
  font-size: 0.79rem;
}
.video-beginning:hover {
  background: #fff;
  color: var(--green);
}
.video-play:focus-visible {
  outline-offset: -6px;
}
.video-fallback,
.video-loading {
  min-height: 250px;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background: linear-gradient(130deg, #e1eee5, #e3f0ef);
  text-align: center;
  padding: 30px;
}
.video-fallback p {
  max-width: 440px;
  color: var(--muted);
  font-size: 0.9rem;
}
.video-fallback h3 {
  font-size: 1.15rem;
  font-weight: 550;
}
.video-fallback .quiet {
  font-size: 0.82rem;
}
@media (max-width: 420px) {
  .video-fallback,
  .video-loading {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  course-video * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
