@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');



body, html {
  overflow-x: hidden;
}

* {
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

 

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: "Raleway", sans-serif;
  background-color: black;
}

main {
  flex-grow: 1; /* Permet au main de prendre tout l'espace disponible */
  position: relative;
  width: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  padding-bottom: 50px; /* Espace pour le footer */
}

.logo {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 10px;
  left: 10px;
  z-index: 999;
}

.item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

.item:nth-child(1),
.item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.item:nth-child(3) {
  left: 50%;
}
.item:nth-child(4) {
  left: calc(50% + 220px);
}
.item:nth-child(5) {
  left: calc(50% + 440px);
}
.item:nth-child(6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.item.fullscreen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.content {
  width: min(30vw, 400px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  font-size: 0.90rem;
  color: white;
  opacity: 0;
  display: none;
}

.content .title {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
}

.content .description {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  font-size: 1.1rem;
}

.content button {
  width: fit-content;
  background-color: rgba(0, 0, 0, 0.1);
  color: white;
  border: 2px solid white;
  border-radius: 0.25rem;
  padding: 0.75rem;
  cursor: pointer;
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
      filter: blur(5px);
      transform: translateY(calc(-50% + 75px));
  }
  100% {
      opacity: 1;
      filter: blur(0);
  }
}

.nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;
}

.nav .btn {
  background-color: #f1f1ca;
  color: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(0, 0, 0, 0.6);
  margin: 0 0.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
}

.nav .btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Footer styling */
footer {
  background-color: #f1f1ca;
  color: black;
  font-size: 14px;
  position: relative; /* Permet au footer de suivre le contenu */
  width: 100%;
  text-align: center;
  z-index: 999;
  padding: 10px;
}

footer p {
  margin: 5px 0;
  font-family: "Raleway", sans-serif;
}

footer .fa-heart {
  color: black;
}

footer .fa-dev {
  color: #fff;
}

footer .fa-twitter-square {
  color: #1da0f1;
}

footer .fa-instagram {
  color: #f0007c;
}

footer .fa-linkedin {
  color: #0073b1;
}

footer .fa-codepen {
  color: #fff;
}

footer a {
  color: #a8842b;
  text-decoration: none;
  margin-right: 5px;
}

/* Media Queries for Responsiveness */
@media (width > 650px) and (width < 900px) {
  .logo {
      width: 85px;
      height: auto;
  }

  .content .title {
      font-size: 0.4rem;
  }

  .content .description {
      font-size: 0.7rem;
  }

  .content button {
      font-size: 0.7rem;
  }

  .item {
      width: 160px;
      height: 270px;
  }

  footer {
      font-size: 14px;
      padding: 10px;
      margin-top: 20px;
  }
}

@media (width < 650px) {
  main {
      margin-bottom: 0;
  }

  .logo {
      width: 90px;
      height: auto;
  }

  .content .title {
      font-size: 0.9rem;
  }

  .content .description {
      font-size: 0.75rem;
  }

  .content button {
      font-size: 0.7rem;
  }

  .item {
      width: 130px;
      height: 220px;
  }
}





