html {
  scroll-behavior: smooth;
}

.rd-container {
  width: min(1180px, calc(100% - 44px));
  max-width: none !important;
  margin-inline: auto !important;
}

@media (max-width: 560px) {
  .rd-container {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* =========================================================
   Transition entre les pages
   ========================================================= */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: rd-page-out 0.16s ease both;
}

::view-transition-new(root) {
  animation: rd-page-in 0.24s ease both;
}

@keyframes rd-page-out {
  to {
    opacity: 0;
  }
}

@keyframes rd-page-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}