/*––––––––Typographie––––––––*/

:root {
    font-family: "Inter", sans-serif;
  }
  @supports (font-variation-settings: normal) {
    :root {
      font-family: "Inter var", sans-serif;
    }
  }


/*–––––––Style Visuel––––––––*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

body { /*façon de faire en sorte que l'image s'adapte à la page web peut importe sa taille et prend en compte header, main et footer*/
    background: url(img/fond.jpg) no-repeat center center fixed;
    background-size: cover; 
  }


/*––––––––––Header––––––––––*/

header {
    height: 31vh;
    width: 100vw;
    background-color: #0008;
  }

.nav-bar {
    position: absolute;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    }

.nav-bar a {
    color: white;
  }

.nav-bar .logo {
    /*font-size: 2em;
    font-weight: bold;*/
    max-width: 20vh;
    width: 30%;
    height: auto;
    padding-left: 5vh;
  }

.nav-bar .nav-links ul {
    display: flex;
  }

.nav-bar .nav-links {
    display: flex;
    align-items: center;
  }

.nav-bar .nav-links ul li {
    margin: 0 15px;
  }

  /*.nav-bar .nav-links ul li.active a { ->pour faire en sorte qu'un mot soit d'une autre couleur. Pas oublier d'activer en class="" dans le mot voulu en html.
    color: #d34932;
    font-weight: 600;
  }*/

.nav-links a {
    padding: 10px 15px;
    border-radius: 90px;
    background-color: #ffffff30;
    border: 3.5px solid #ffffff00; 
  }

.nav-links a:hover {
    transition: background-color 0.1s, color 0.3s;
    color:#ffffff;
    background-color: #d34932;
    border-radius: 90px;
    border: 3.5px solid #d34932;
  }

.nav-bar .menu-hamburger {
    display: none;
    position: absolute;
    top: 50px;
    right: 50px;
    width: 35px; 
  }

@media screen and (max-width: 700px) {
    header { /*modifier dans infomaniak (26.06)*/
      height: 22vh;
    }

    .nav-bar .logo { /*modifier dans infomaniak (26.06)*/
        position: absolute;
        top: 35px;
        left: 10px;
    }

    .nav-bar .logo {
      align-self: flex-start;
      margin-top: 10px;
    }

    .nav-bar .menu-hamburger {
        display: block;
        z-index: 2;
        align-self: flex-start;
        margin-top: -2px;
    }

    .nav-links {
        top: 0;
        left: 0;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.677);
        backdrop-filter: blur(8px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        margin-left: -100%;
        transition: all 0.5s ease;
    }

    .nav-links.mobile-menu {
        margin-left: 0;
      }

    .nav-links ul {
        display: flex;
        flex-direction: column;
    }

    .nav-bar .nav-links ul li {
        margin: 25px 0;
        font-size: 1.2rem;
    }

    .nav-links {
        z-index: 1;
    }

    .nav-bar .nav-links ul {
      margin-top: -15vh; /* Ajustez cette valeur pour déplacer les mots vers le haut */
    }

}

@media screen and (max-width: 700px) {
    header {
      height: 20vh;
    }

    .nav-bar .logo { /*modifier dans infomaniak (26.06)*/
      position: absolute;
      top: 35px;
      left: 10px;
      width: 100px;
    }
}




/*––––––––Mot num·art dans la page d'index––––––––*/

.numart {
    height: 50vh;
    font-size: 10vw;
    color: white;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    display: flex;
    text-shadow: 3px 3px 50px #0009;
  }
    
.median-numart {
    color: #d34932;
    transition: all 0.3s ease;
    display: inline-block;
  }
    
.median-numart:hover {
    transform: translateY(400px);
  }


/*––––––––Bloc projet––––––*/
 
.bloc-projet {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 5%;
    padding: 5%;
  }

@media (max-width: 480px) {
    .bloc-projet { /*modif infomaniak 26.06*/
      flex-wrap: wrap;
      /*flex-direction: column;*/
      align-items: center;
      justify-content: center;
      display:flex;
      padding-top: 30px;
    }

    .projet { /*modif pour infomaniak 26.06*/
       min-width: 150px; /* Définit la taille minimale souhaitée pour les blocs projet */
       margin-left: 2px;
       margin: 5px;
     }
}

.projet { /*infomaniak 26.06*/
    width: 30%;
    position: relative;
  }

.projet {
    width: 30%;
    position: relative;
    box-shadow: 5px 5px 30px black;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 5%;
  }

.projet::before {
    content: "";
    display: block;
    padding-top: 100%; /* Définit l'aspect-ratio carré */
  }
  
.projet img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Préserve les proportions de l'image sans déformation */
  }
  
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 40, 40, 0.743);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
.projet:hover .overlay {
    opacity: 1;
  }
  
.text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 3px 3px 25px rgba(0, 0, 0, 0.824);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
  }
  
.projet:hover .text {
    opacity: 1;
  }  
  

/*––––––––Contacts––––––––*/

.bloc-insta {
    height: 50vh;
    font-size: 10vw;
    color: white;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    display: flex;
}

.lien-insta {
  color: #ffffff;
  background-color: #ffffff30;
  border-radius: 90px;
  padding: 10px 25px;

}

.contact-instagram {
    height: 50vh;
    font-size: 34px;
    color: white;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    display: flex;
    font-weight: 500;
}

.lien-insta:hover {
    transition: color 0.3s;
    color: #ffffff;
    background-color: #d34932;
    box-shadow: 0px 0px 35px black;
}