@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,300&family=Poppins:wght@300&display=swap');

/**** Reset ****/

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  font-family: 'Nunito Sans', sans-serif;
}

/**** Variables CSS ****/

:root {
  --bg: #f1efff;
  --primary: #6e4bec;
  --border: #200b4c;
}

/**** Style général de la page ****/

::-webkit-scrollbar {
  width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  width: 100vw;
  background-color: #111111;
  margin: auto;
  position: fixed;
  top: 0;
  right: 0; 
  bottom: 0;
  left: 0;
  z-index: 100;
  animation: display-loader 3s linear;
  visibility: hidden;
}

/**** Animation display-loader ****/

@keyframes display-loader {
  0% {
      visibility: visible;
      opacity: 0.7;
  }
  70% {
      opacity: 0.7;
  }
  100% {
      opacity: 0;
      visibility: hidden;
  }
}

.ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: absolute;
  animation: ring 2s linear;
}

/**** Animation ring ****/

@keyframes ring {
  0%  {
      transform: rotate(0deg);
      box-shadow: 1px 5px 2px #0000ff;
  }

  50%  {
      transform: rotate(180deg);
      box-shadow: 1px 5px 2px #ffffff;
  }

  100% {
      transform: rotate(360deg);
      box-shadow: 1px 5px 2px #ff0000;
  }
}

.ring::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.center span {
  color: #ffd700;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 200px;
  animation: text 3s ease-in-out;
}

/**** Animation text ****/

@keyframes text {
  0%, 100% {
     opacity: 1;
  }

  50% {
      opacity: 0;
  }
}

header, footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.6rem;
}

h1, footer span {
  text-align: center;
  color: var(--primary);
}

h1 {
  font-size: 24px;
  text-transform: capitalize;
}

.main__content {
  flex-grow: 1;
}

.container {
  max-width: 1440px;
  padding: 0 10px;
  margin: 0 auto;
}

.swiper {
  width: 100%;
  height: 550px;
  margin: 25px 0;
}

.swiper-slide {
  width: 370px;
  height: 500px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 2px solid transparent;
}

.swiper-slide-active img {
  border: 2px solid var(--border);
}

.swiper-pagination {
  position: absolute;
  bottom: 0;
}

.mySwiper .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--primary);
}

footer span {
  font-size: 20px;
}

/**** Responsive design ****/

@media screen and (max-width: 500px) {
  .swiper {
    height: 450px;
  }
  .swiper-slide {
    width: 300px;
    height: 400px;
  }
}
