@font-face {
    font-family: 'Neue Haas Grotesk Roman'; /* Nom de la police */
    src: url('fonts/NeueHaasDisplayRoman.ttf') format('truetype'); /* Chemin vers le fichier de police Roman */
}

@font-face {
    font-family: 'Neue Haas Grotesk Medium'; /* Nom de la police */
    src: url('fonts/NeueHaasDisplayMedium.ttf') format('truetype'); /* Chemin vers le fichier de police Medium */
}

@font-face {
    font-family: 'Neue Haas Grotesk Bold'; /* Nom de la police */
    src: url('fonts/NeueHaasDisplayBold.ttf') format('truetype'); /* Chemin vers le fichier de police Bold */
}


*{
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
    font-family: 'Neue Haas Grotesk', sans-serif;
    color: white;
    }
body {
      background-color: #081428;
    }
#index-video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    filter: blur(5px);
}
.nav-bar {
    position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: +100;
    }
.nav-bar ul {
      display: flex;
      align-items: flex-start;
      flex-direction: row;
      justify-content: space-between;
      margin: 15px 25px;
    }
.liens-text {
      display: flex;
      flex-direction: column;
      cursor: pointer;
    }
.logo span{
    font-weight: bold;
    font-size: 1.5rem;
    color: #C5FF97;
    margin-left: 35px;
    cursor: pointer;
}
.titre{
    position: absolute;
    bottom: 15%;
    width: 100%;
}
.titre h1{
    font-size: 5rem;
    text-align: center;
}
.hero-txt{
    position: absolute; /* Position absolue par rapport à la wrapper */
    bottom: 40px; /* Fixe le footer en bas de la wrapper */
    width: 100%;
}
.foot-text{
    display: flex;
    justify-content: space-between;
    margin: 15px 80px;
}
.foot-text-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sub{
    font-size: 0.8rem;
    color: #e5eff0;
}
.main{
    font-weight: bold;
    font-size: 1.3rem;
}
.profil{
    padding: 35px;
    display: flex;
    flex-direction: column;
    background-color: white;
}
.texte-profil{
    margin-top: 40px;
    text-align: center;
    padding: 0 15% 0 15%;
    color: #081428;
    font-size: 1.1rem;
    line-height: 1.5;
}
.texte-profil strong{
    color: #081428;
}
.button{
    position: relative;
    background-color: #C5FF97;
    height: 35px;
    width: 200px;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px auto 0 auto;
}
.button2{
    cursor: pointer;
    position: relative;
    background-color: #081428;
    height: 55px;
    width: auto;
    border-radius: 20px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s ease-in-out;
    min-width: 200px;
}
.button2 span{
    color: white;
    font-size: 0.8rem;
}
.button2 img{
    height: 30px;
    margin-right: 20px;
}
.button2:hover{
    background-color: #122e5f;
    transition: 0.3s ease-in-out;
}
.links {
    width: 350px;
}
.button:before{
    content: '';
    position: absolute;
    background-color: #b1e884;
    height: 35px;
    width: 200px;
    border-radius: 30px;
    left: -100%;
    transition: all 0.3s ease-in-out;
}
.button:hover:before{
    left: 0;
}
.button span{
    z-index: 100;
    color: #081428;
}
.sections-titre{
    display: flex;
    justify-content: center;

}
.sections-titre span{
    font-weight: bold;
    font-size: 3rem;
    color: #081428;
}
.projets{
    padding: 35px 25px;
}
.projets .sections-titre span{
    color: #C5FF97;
}
.projets-container{
    margin-top: 35px;
}
.ligne, .ligne2, .ligne3, .ligne4{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.txt-projet, .txt-projet2, .txt-projet3, .txt-projet4{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto !important;
    height: auto !important;
    z-index: 100;
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-align: center;
    font-size: 1.1rem;
}

.ligne a, .ligne2 a, .ligne3 a, .ligne4 a{
    position: relative;
}
.ligne :nth-child(1), .ligne2 :nth-child(2), .ligne3 :nth-child(1), .ligne4 :nth-child(2){
    width: 100%;
    height: 300px;
    grid-column: span 2;
    transition: border-radius 0.2s; 
    overflow: hidden;
}
.ligne :nth-child(2), .ligne2 :nth-child(1), .ligne3 :nth-child(2), .ligne4 :nth-child(1){
    width: 100%;
    height: 300px;
    grid-column: span 1;
    transition: border-radius 0.2s; 
    overflow: hidden;
}

.ligne :nth-child(1):hover,.ligne :nth-child(2):hover,.ligne2 :nth-child(1):hover,.ligne2 :nth-child(2):hover, .ligne3 :nth-child(1):hover,.ligne3 :nth-child(2):hover, .ligne4 :nth-child(1):hover{
    border-radius: 13px;
}
.ligne a:hover .txt-projet,
.ligne2 a:hover .txt-projet2,.ligne3 a:hover .txt-projet3, .ligne4 a:hover .txt-projet4{
    display: block;
}
.ligne2 div img, .ligne div img, .ligne3 div img, .ligne4 div img{
    object-fit: cover;
    width: 100%;
}
.ligne div:nth-child(1):hover img, .ligne div:nth-child(2):hover img, .ligne2 div:nth-child(1):hover img, .ligne2 div:nth-child(2):hover img, .ligne3 div:nth-child(1):hover img, .ligne3 div:nth-child(2):hover img, .ligne4 div:nth-child(1):hover img, .ligne4 div:nth-child(2):hover img {
    transform: scale(1.1); 
    transition: transform 0.2s ease-in-out;
}
.contact{
    background-color: white;
    padding: 35px 25px 45px 25px;
}
.form{
    margin-top: 35px;
}
form{
    width: 40%;
    margin: 0 auto;
    padding-bottom: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
#email, #message{
    background-color: #F0F0F0;
    color: #626262;
    border: none;
    padding: 0 20px;
}
#email{
    height: 35px;
    border-radius: 30px;
}
#email::placeholder,#message::placeholder {
    font-weight: bold;
}
#message{
    border-radius: 20px;
    height: 200px;
    resize: none;
    padding-top: 15px;
}
#envoyer{
    position: relative;
    border: none;
    background-color: #C5FF97;
    height: 35px;
    width: 90px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
    overflow: hidden;
}
#envoyer span{
    position: relative;
    color: #081428;
    z-index: +100;
}
#envoyer:before{
    content: '';
    position: absolute;
    left: -100%;
    height: 35px;
    width: 90px;
    margin-top: -10px;
    background-color: #b1e884;
    transition: all 0.3s ease-in-out;
    border-radius: 30px;
}
#envoyer:hover:before{
    left: 0;
}
.or{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#ou{
    color: #081428;
    margin-bottom: 25px;
    font-weight: bold;
}
.links{
    display: flex;
    width: 40%;
    margin: 0 auto;
    justify-content: space-between;
}
/* footer{
    position: fixed;
    bottom: 0;
    display: flex;
    width: 100%;
    justify-content: center;
} */
.foot-menu{
    background-color: #e5eff0;
    width: 90px;
    margin: 0 auto;
    margin-bottom: 20px;
    display: flex;
    border-radius: 4px;
    justify-content: space-between;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Ombre portée avec un léger flou */
    display: none;
}
.menu{
    font-size: 0.9rem;
    font-family: 'Neue Haas Grotesk Bold', sans-serif; 
    color: #081428;
    display: flex;
    align-items: center;
    margin: 5px 10px 5px 5px;
}
.foot-square{
    background-color: #081428;
    height: 30px;
    width: 30px;
    margin: 3px;
    border-radius: 4px;
}
.foot-span-container{
    height: 20px;
    width: 20px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center
}
.foot-span{
    width: 15px;
    height: 2px;
    background-color: #C5FF97;
}
.foot-container{
    height: 50px;
    width: 100%;
    background-color: #081428;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width:480px) {
    .liens-text{
        display: none;
    }
    .logo span{
        font-size: 2.5rem;
    }
    .titre h1 {
        font-size: 3rem;
        text-align: center;
    }
    form{
        width: 80%;
        margin: 0 auto;
        padding-bottom: 25px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    .links {
        width: 80%;
    }
    .button2 span{
        font-size: 0.6rem;
    }
    .button2 img {
        height: 20px;
        margin-right: 10px;
    }
    .button2{
        height: 35px;
        width: auto;
        padding: 0 20px;
    }
    
    #index-video {
        height: 40vh;
    }
    .titre {
        position: absolute;
        top: 25%;
        width: 100%;
    }
    .hero-txt {
        display: none;
    }
    .texte-profil{
        font-size: 1rem;
        line-height: 1.5;
    }
    .ligne, .ligne2, .ligne3, .ligne4{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    .ligne :nth-child(1), .ligne2 :nth-child(2), .ligne3 :nth-child(1), .ligne4 :nth-child(2){
        width: 100%;
        height: 200px;
        grid-column: span 1;
        transition: border-radius 0.2s; 
        overflow: hidden;
    }
    .ligne :nth-child(2), .ligne2 :nth-child(1), .ligne3 :nth-child(2), .ligne4 :nth-child(1){
        width: 100%;
        height: 100%;
        grid-column: span 1;
        transition: border-radius 0.2s; 
        overflow: hidden;
    }
    .ligne2 div img, .ligne div img, .ligne3 div img, .ligne4 div img{
        object-fit: cover;
        width: 100%;
    }
    .txt-projet, .txt-projet2, .txt-projet3, .txt-projet4{
        display: block;
        font-size: 0.8rem;
    }
    .foot-txt{
        font-size: 0.8rem;
    }

}