 body {
margin: 1;   

background-color: #5B22C7;}

@font-face {
  font-family: "titre";
  src: url(fonts/Geologica-2/Geologica-VariableFont_CRSV\,SHRP\,slnt\,wght.ttf);
}

@font-face {
  font-family: "texte";
  src: url(fonts/Comfortaa-2/Comfortaa-VariableFont_wght.ttf);
}




.gallery-container {
  background: rgba(255, 255, 255, 0.15); 
  border-radius: 40px;
  padding: 15px;
  backdrop-filter: blur(15px);
   font-family: "titre";
  src: url(fonts/Geologica-2/Geologica-VariableFont_CRSV\,SHRP\,slnt\,wght.ttf);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin-top: 30px;
}

.projet {
position: relative;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
width: 10àpx;

  flex: 0 0 auto;
}


.projet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.projet:hover {
  transform: scale(1.05);
  
}



.scroll-gallery {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.scroll-gallery img, .projet {
  scroll-snap-align: start;
}





.texte-hover {
  position: absolute;
  inset: 0; 
  background: rgba(87, 24, 214, 0.6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}


.projet:hover .texte-hover {
    opacity: 1;               
}



.gallery-title {
  
}

#entete {
  display: flex;
  justify-content: space-between;
  vertical-align: middle;
  
}




h1{
  font-family: "titre";
  font-size: 60px;
  color:white;
   margin-left: 10px;


  }

  .contact-link {
font-size: 30px;
font-family: "titre";
color: white;
margin-top: 70px;



  }

  
h2 {
  font-family: "texte" ;
    font-size: 18px;
    width: 50%;
    color: white;
   width: 55%;
   margin-top: 60px;
   margin-left: 10px;
   }


h3 {
font-family: "titre" ;
color: white;

}



.scroll-gallery {
    display: none;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
  
  scrollbar-width: none; 

}

#texte {

  display: block;

}

#texte p {
  width: 400px;
}

.scroll-gallery img {
  display: block;
  height: 400px;
  width: auto; 
  object-fit: cover;
}

.scroll-gallery::-webkit-scrollbar {
      height: 8px;
        display: none; 
}

.image-box {
      flex: 0 0 auto;
      scroll-snap-align: start;
      overflow: hidden;    
}

.infos {
     display: flex;
 
  justify-content: space-between;
  

}

.star {
  position: absolute;
  top: 56px;           
  left: 1030px;           
  width: 50px;
  height: 50px;
  background-color: gold;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  ); 
  animation: spin 4s linear infinite; 
}


@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}





/* SMARTPHONE MODE PORTRAIT */
@media screen and (orientation: portrait) {



    
    #entete {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    h1 {
        font-size: 30px;
    }

    .contact-link {
        font-size: 18px;
    }

  
    h2 {
        width: 100%;
        font-size: 14px;
    }

    /* Galerie */
    .scroll-gallery {
        flex-direction: row;
        gap: 10px;
    }

    .scroll-gallery img {
        width: 100%;  
        height: auto; 
        object-fit: cover;
    }

    .projet {
        width: 100%; 
    }

   
    .gallery-container {
        padding: 10px;
        border-radius: 20px;
    }

    
    .star {
        position: absolute;
        top: 10px;   
        left: 90%;
       
    }
}


   


