@font-face {
	font-family: 'Archivo';
	src: url('fonts/ArchivoBlack-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'eras';
  src: url('fonts/erasdemiregular.otf');
}

@font-face {
  font-family: 'montserrat';
  src: url('fonts/Montserrat-Regular.ttf');
}


*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
nav{
  background-color: black;
  color: white;
  height: 150px;
  display: flex;
  align-items: center;
  font-family: 'eras';
}

li{
  list-style-type: none;
  margin: 2%;
}
a{
  color: white;
  text-decoration:none;
}

ul{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  font-size: 150%;
}

#logo{
  height: 80%;
  position:relative;
  
}

.logofond{
  background: url("images/lp_logoV3.svg") no-repeat center center;
  height : 100vh;
  vertical-align: middle;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#app {
    height: 100vh;
    flex-direction: column;
  
    align-items: center;
  }
    
  #app h1{
    font-size: 880%;
  }
  #app p{
    font-size: 170%;
  }

    h1 {
      font-family: 'archivo';

  
      text-align: center;
    }
    p{
      font-family : 'montserrat';
      text-align: center;
    }
    
    
    body {
      background-color: black;
      color: white;

    }
  
    .boutons{
      margin-top: 2%;
      font-family: 'montserrat';
      font-size: 130%;
      padding: 20px;
      border-radius: 10px;
      background-color: transparent;
      border : 1px solid #646464;
      margin : 30px;
      margin-top : 5%;
      transition: 0.3s;
    }

    .boutons:hover{
      transform: scale(1.05);
      border: 1px solid #1a1a1a;
    }



    .heading {
    text-align: center;
    font-size: 2.0em;
    letter-spacing: 1px;
    padding: 40px;
    color: white;
}

.boutonsdiv{
  width: 100%;
  text-align: center;
}


    




.projets-container {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Archivo', sans-serif; 
    font-size: 3rem;
    margin-bottom: 50px;
    border-left: 10px solid white;
    padding-left: 20px;
    text-transform: uppercase;
}

.grid-projets {
    column-count: 2; 
    column-gap: 40px;
    width: 100%;
}

.projet-card {
    display: inline-block; 
    width: 100%;
    margin-bottom: 40px; 
    text-decoration: none;
    color: white;
}

.projet-image {
    position: relative;
    
    border : 1px solid #1a1a1a;
    border-radius : 10px;
    padding: 15px; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.3s ease-in-out;
}

.projet-card:hover .projet-image {
    border: 0px; 
}

.projet-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.projet-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projet-overlay button {
    font-family: 'montserrat', sans-serif;
    font-size: 100%;;
    padding: 10px;
    margin : 10px;
    border: 1px solid white;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    transition : 0.3s;
}


.projet-overlay button:hover {
  transform: scale(1.05);
  border: 1px solid rgb(194, 192, 192);
    
}



.projet-card:hover .projet-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.projet-card:hover .projet-overlay {
    opacity: 1;
}

.projet-info {
    margin-top: 20px;
}

.projet-info h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.projet-info p {
    font-family: 'eras', sans-serif;
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: left; 
}


#app {
    height: auto; 
    min-height: 100vh;
}




@media (max-width: 900px) {
    .grid-projets {
        display: flex !important;
        flex-direction: column;
        column-count: auto !important; 
        gap: 60px;
    }

    .projet-card {
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .projet-image {
        width: 100%;
        height: auto;
        min-height: 300px;
        padding: 20px;
        flex-direction: column;
        overflow: visible; 
        object-fit: contain;
    }

    .projet-image img{
        width: 100%;
        height : auto;
        object-fit: contain;
    }


    .projet-overlay {
        position: relative; 
        opacity: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .projet-overlay button {
        width: 100%;
        max-width: 280px;
        margin: 0;
        background-color: #1a1a1a;
    }

    .projet-info {
        text-align: center;
        width: 100%;
        margin-top: 15px;
    }

    .projet-info h3 {
        font-size: 1.4rem;
        justify-content: center;
        display: flex;
    }

    .projet-info p {
        text-align: center !important; 
        opacity: 0.9;
    }

    .projet-image img {
        filter: grayscale(0%);
        transform: none !important;
        max-height: 250px;
    }

    #app h1{
      font-size: 250%;
    margin-bottom: 30px;
  }
  #app p{
    font-size: 100%;
    margin-bottom : 20px;
  }

  .boutons{
    margin: 20px;
  }

  .boutonsdiv{
  width: 50%;
  text-align: center;
  display: grid;
  }

  #app{
    padding: 20px;
  }

}