/* Visible avant le JavaScript du portail. Le reste de l’app n’a pas la classe portail. */
html.portail,
html.portail body {
  margin: 0;
  background: #f3f5f8;
  color: #10243d;
}

html.dark.portail,
html.dark.portail body {
  background: #0a1018;
  color: #e8eef6;
}

html.portail #attente-portail {
  position: fixed;
  inset: 0;
  z-index: 50;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top);
  background: #f3f5f8;
}

html.dark.portail #attente-portail {
  background: #0a1018;
}

html:not(.portail) #attente-portail {
  display: none;
}

html.portail #attente-portail span {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 3px solid rgba(15, 157, 142, 0.25);
  border-top-color: #0f9d8e;
  animation: attente-portail 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  html.portail #attente-portail span {
    animation: none;
    border-color: #0f9d8e;
  }
}

@keyframes attente-portail {
  to {
    transform: rotate(360deg);
  }
}
