:root {
  --clr:#ff0055;
  --clr-purple: #cc00ff;
}

*  {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", serif;
}


body {
  background: #031540;
  min-height: 100vh;
}



nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: white;
  padding: 0 50px;
  transition: 0.5s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;

  img {
    max-width: 150px;
    max-height: 70px;
  }

  .hamburger-menu {
    display: none;
  }
  
  ul {
    display: flex;
    
    li {
      list-style: none;

      a {
        position: relative;
        color: #031540;
        padding: 5px 20px;
        font-size:clamp(0.9rem, 2vw, 1.1rem);
        text-decoration: none;
        font-weight: bold;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
      }

      span:hover {
        color: crimson;
      }
    }
  }

}

.icon {
  background: linear-gradient(#002b6b 30%, #031540 );

  ul li {
    
    a {
      color: white;

      span:nth-child(1) {
        transform: translateY(-35px);
      }

      span:nth-child(2) {
        transform: translateY(0px);
      }
    }
  }
}

ul li a span {
  transition: 0.5s;
  transition-delay: calc(0.05s * var(--i));
}

ul li a span:nth-child(2) {
  position: absolute;
  transform: translateY(40px);
  font-size: 1.6em;
}

ul li:hover a span:nth-child(2) {
  color: rgb(255, 0, 111);
}

.hero {
  max-width: 100%;
  max-height: 100vh;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 20%, #031540 100%), url(/Pictures/vojtech-bruzek-Jb1ca3NO2f0-unsplash.jpg);
  background-size: 100%;
  background-position: center;
  margin-bottom: 7%;
}

.hero .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10%;
}

.hero .logo #logo_design {
  max-height: 35vh;
  animation: spinning 3s linear infinite;
  will-change: transform;
}

@keyframes spinning {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.hero .logo img {
  max-height: 25vh;
  width: auto;
}

.hero p {
  font-size: 2em;
  color: white;
  text-align: center;
  padding: 0 20px;
}


.logo-transition {
  position: relative;
  width: fit-content;
}

.logo-transition img {
  position: absolute;
  top: -25px;
  left: 0;
  transition: opacity 0.5s ease;
}

.logo-white {
  opacity: 1; /* Visible par défaut */
  z-index: 2;
}

.logo-dark {
  opacity: 0; /* Masqué par défaut */
  z-index: 1;
}

/* Lorsque la classe icon est ajoutée */
.icon .logo-white {
  opacity: 0; /* Cache le premier logo */
}

.icon .logo-dark {
  opacity: 1; /* Affiche le deuxième logo */
}

.logo img {
  transition: transform 0.1s linear; /* Pour un mouvement fluide */
  transform-style: preserve-3d; /* Permet le rendu 3D */
}

.presentation {
  min-height: 50vh;
  color: white;
  text-align: center;
  padding: 5%;
  font-size:clamp(0.7rem, 2vw, 1.2rem);

  .presentation_title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5em;

    h1 {
      font-size: clamp(1.5em, 2vw, 2.5em);
    }
  }
  .text-container {
    margin-bottom: 2.5em;
    p {
      line-height: 190%;
    }
  }

  .btn {
    padding: 10px 30px;
    font-size: 1em;
    background: transparent;
    border: 2px solid var(--clr);
    font-weight: 500;
    border-radius: 40px;
    color: var(--clr);
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: 1s;
    overflow: hidden;
  }

  .btn:hover {
    background: var(--clr);
    box-shadow: 0 0 25px var(--clr),
    0 0 100px var(--clr),
    0 0 150px var(--clr);
  }

  .btn span {
    display: inline-block;
    transition: transform 0.3s;
    text-shadow: 0 40px #fff;
    transform: translateY(0px);
  }

  .btn:hover span.hover {
    transform: translateY(-40px)
  }
  .btn span.hover {
    transform: translateY(-40px);
  }
}

.services {
  min-height: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  .container {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 5%;
    background: #002b6b67;
    border-radius: 20px;
  
      .pictures {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
  
        .img-box {
          width: 200px;
          height: 200px;
          border-radius: 50%;
          background: transparent;

          p{
            position: relative;
            top: -90px;
            font-size: 1.3em;
            color: white;
            text-align: center;
            opacity: 0; /* Invisible par défaut */
            transition: opacity 0.8s ease; /* Transition d'apparition */
          }
  
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            transition: 0.3s;
            box-shadow: 0 0 25px rgba(255, 255, 255, 0.50);

          }

           &:hover img {
            box-shadow: 0 0 25px rgba(255, 255, 255, 0.75),
            0 0 100px rgba(255, 255, 255, 0.75),
            0 0 150px rgba(255, 255, 255, 0.25);
            transform: translateY(-100px);
            transition: .3s ease-in-out;
          }

          &:hover p {
            opacity: 1;
          }
        }
      }
    }
  }

  footer {
    display: flex;
    justify-content: center;
    align-items: center;
    .footer_links {
      padding: 30px;
    }
    
    .footer_container{
      width: 90%;
      padding: 10px;
      background: #002b6b67;
      border-radius: 20px;
      font-size: clamp(0.8em, 2vw, 1.2em);


      a {
        color: white;
        text-decoration: none;
        padding: 10px 10px;
        transition: 0.3s;
      }
      p {
        color: white;
        text-align: center;
      }

      ul {
        list-style: none;
        display: flex;
        justify-content: center;
        align-items: center;

        li {
          margin: 0 5px;
        }
      }
    }
  }

  .legal {
    margin-top: 100px;
    padding: 50px;
    color: white;
    font-size: 1.1em;

    h1 {
      font-size: 2em;
      margin-bottom: 20px;
    }

    p {
      margin-bottom: 10px;
    }
  }

@media (max-width: 800px) {
  nav {
    img {
      display: none;
    }
  }

  .hero {
    padding: 10%;

    .logo img{
      max-height: 20vh;
      width: auto;
    }

    p{
      font-size: 1.5em;
    }
  }

  .services .container .pictures {
  .img-box {
    width: 90px;
    height: 90px;

    p {
      font-size: .9em;
      top: -50%;
    }

    img:hover{
      transform: translateY(-50px);
    }
    }
  }
}
    

footer .footer_container a {
  padding: 0;
}



@media (max-width:620px) {
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10rem;
    flex-direction: column;
    padding: 15px;
    background: rgba(0, 0, 0, .1);
    backdrop-filter: blur(50px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    display: none;

    li a {
      color: white;
    }
  }

  nav ul.show {
    display: flex;

  }

  nav {
    img {
      display: block;
    }

    #close-icon {
      display: none;
    }
  }



  nav ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  nav .hamburger-menu {
    display: inline-flex;
    cursor: pointer;
    position: absolute;
    right: 5%;
  }

  .hamburger-menu svg {
    width: 30px;
    height: 30px;
  }

  /* Bascule entre les icônes lorsque le menu est ouvert */
  .hamburger-menu.open #menu-icon {
    display: none;
  }
  
  .hamburger-menu.open #close-icon {
    display: block;
  }

  .icon .hamburger-menu svg{
    fill: white;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 15%;

    .logo img{
      max-height: 10vh;
      width: auto;
    }

    p{
      font-size: .8em;
    }
  }

}