/* Styles généraux pour le site */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}
body {
  background-color: transparent; /* Initialement transparent */
  animation: show-backgroundBody 1.5s linear forwards;
  animation-delay: 1.2s;
}

@keyframes show-backgroundBody {
  0% {
      opacity: 0;
      background-color: transparent;
  }
  100% {
      opacity: 1;
      background-color: #1f242d; /* Applique la couleur à la fin de l'animation */
  }
}

a {
  text-decoration: none;
  color: #fff;
}

.navbar {
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  padding: 25px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.2s;
}

@keyframes show-content {
   100% {
    visibility: visible;
    opacity: 1;
   }
}
.navbar .logo{
  font-size: 30px;
  font-weight: 700;
}
.navbar ul{
  display: flex;
}
.navbar ul li{
  list-style: none;
  margin-left: 35px;
}
.navbar ul li a{
  font-size: 20px;
  font-weight: 500;
  transition: .5s;
}
.navbar ul li:hover a,
.navbar ul li.active a {
  color: #3db7f0;
}


/* section home */
.home{
  display: flex;
  align-items: center;
  gap: 50px;
  height: 100vh;
  padding: 60px 9% 0;
  color: #fff;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.6s;
}
.home-info h1{
  font-size: 55px;
}
.home-info h2{
  display: inline-block;
  font-size: 32px;
  margin-top: 10px;
}
.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: .7px #3db7f0;
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
  25%,100% {
    display: none;

  }
}
.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 2px solid #3db7f0;
  color: #3db7f0;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
  10%,100% {
     width: 0;
  }
  70%,90% {
    width: 100%;
  }
}
.home-info p {
  font-size: 16px;
  margin: 20px 0 25px;
  line-height: 1.8; /* <- c'est ici qu'on espace les lignes */
}


.home-info .btn-sci {
  display: flex;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #3db7f0;
  border: 2px solid #3db7f0;
  border-radius: 40px;
  box-shadow: 0 0 10px #3db7f0;
  color: #1f242d;
  font-weight: 600;
}
.home-info .btn-sci .sci {
  margin-left: 20px;
}
.home-info .btn-sci .sci a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #3db7f0;
  border-radius: 50%;
  font-size: 20px;
  color: #3db7f0;
  margin: 0 8px;
  transition: .5s;
}
.home-info .btn-sci .sci a:hover{
  background: #3db7f0;
  color: #1f242d;
  box-shadow: 0 0 10px #3db7f0;
}
.bars-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;

}
.bars-animation .bar {
  width: 100%;
  height: 100%;
  background: #1f242d;
  transform: translateY(-100%);
  animation: show-bars .5s ease-in-out forwards;
  animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars {
   100% {
    transform: translateY(0%);
   }
}
