/**
 * Loader Component
 * Style pour l'écran de chargement
 * Migré depuis : template-principal.php (ligne 393)
 */

#loader {
  --width: 48px;
  --height: 48px;

  width: var(--width);
  height: var(--height);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #000 #fff transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: fixed;
  left: calc(50vw - var(--width) / 2);
  top: calc(50vh - var(--height) / 2);
  z-index: 14000;
}

#loader::after,
#loader::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #fff #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}

#loader::before {
  width: 32px;
  height: 32px;
  border-color: #000 #000 transparent transparent;
  animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}