html,
body,
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html {
  min-height: 100vh;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 1);
}

.container-home,
.container-priere {
  background-color: rgba(0, 0, 0, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  /* gap: 2rem; */
}
.container-home {
  transform: translateY(90px);
  @media screen and (max-width: 480px) {
    transform: translateY(60px);
  }
}
.container-priere {
  background: url(assets/rainbow.jpeg) rgba(0, 0, 0, 1) no-repeat center/cover;
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
  padding-top: 2rem;
}

.container-home > * + *,
.container-priere > * + * {
  margin-top: 2rem;
}

.container-video {
  height: 100%;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
}

#logo {
  position: relative;
}

#logo::before {
  content: "";
  display: block;
  background-size: 360px 360px;
  background-image: url("assets/arc.svg");
  background-repeat: no-repeat;
  position: absolute;
  top: -248px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  z-index: 1;
}
@media screen and (max-width: 480px) {
  #logo::before {
    background-size: 264px 264px;
    width: 264px;
    height: 264px;
    top: -183px;
  }
}

h1 {
  font-family: Fugaz One, sans-serif;
  font-weight: 400;
  /* -webkit-text-stroke: 1px white;  déconseillé - mieux d'utiliser text-shadow */
  color: rgba(0, 0, 0, 1);
  text-shadow: -1px -1px 0 white, -1px 1px 0 white, 1px -1px 0 white,
    1px 1px 0 white;
  font-size: clamp(2rem, 5rem, 15vw);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  transition: color 0.25s ease-in;
}

.container-priere h1 {
  color: white;
  text-shadow: -1px -1px 0 black, -1px 1px 0 black, 1px -1px 0 black,
    1px 1px 0 black;
  line-height: 5.5rem;
}
@media screen and (max-width: 480px) {
  .container-priere h1 {
    line-height: 4.25rem;
  }
}

.container-video h1 {
  margin-left: 1rem;
}

#logo:hover > * {
  color: white;
}
.text-wrapper {
  width: 100%;
  max-width: 768px;
  text-align: center;
  /* display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; */
  transform: translateY(-25px);
}

p {
  color: white;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

p.black {
  color: black;
  font-size: 1.1rem;
  font-weight: 600;
}

.links-container {
  /* display: grid;
  grid-template-columns: repeat(4, calc(100% / 4));
  gap: 2rem;
  @media screen and (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  } */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.links-container > * + * {
  margin-left: 1rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: white;
  cursor: pointer;
  height: 100px;
  width: 100px;
  min-height: 100px;
  min-width: 100px;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 1);
  transition: border-color 0.25s ease-in-out, color 0.1s ease-in-out,
    background-color 0.25s ease-in-out;
  animation: float 10s ease-in-out infinite;
  will-change: transform;
  box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  color: transparent;
  border-color: transparent;
}

.link {
  opacity: 0;
  transform: scale(1.25);
  transition: all 0.25s ease-in-out;
  object-fit: cover;
}
.link:hover {
  opacity: 1;
  transform: scale(1);
}
.link-name {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  opacity: 1;
  position: absolute;
  margin: 0 auto;
  pointer-events: none;
}
.link-name:hover {
  opacity: 0;
}

.no-border {
  border: 1px solid black;
}

.no-border:hover {
  border: 1px solid white;
}

.link-retour:hover {
  background-color: rgba(255, 255, 255, 1);
  color: black;
}
a:nth-of-type(1) {
  animation-delay: 0s;
}
a:nth-of-type(2) {
  animation-delay: 2s;
}
a:nth-of-type(3) {
  animation-delay: 1.25s;
}

@keyframes float {
  0% {
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
    transform: translateY(0px);
  }
  50% {
    box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
  }
  100% {
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
    transform: translateY(0px);
  }
}

.video-header-container {
  display: flex;
  justify-content: space-between;
  gap: 1;
  width: 100%;
  padding: 0 4rem;
  max-width: 1440px;
}
@media screen and (max-width: 480px) {
  .video-header-container {
    padding: 0 1rem;
  }
}

.video-header-container h1:hover {
  color: white;
}

.iframe-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 480px) {
  .videos-container {
    flex-direction: column;
  }
}

.iframe {
  width: 384px;
  height: 216px;
  margin: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}
@media screen and (max-width: 480px) {
  .iframe {
    width: 320px;
    height: 180px;
  }
}

.loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(15, 15, 15);
  border: 1px solid transparent;
  border-radius: 15px;
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
  display: none;
}

.loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
html.is-changing .transition-fade {
  transition: opacity 0.35s;
  opacity: 1;
}
/* Define the styles for the unloaded pages */
html.is-animating .transition-fade {
  opacity: 0;
}
