* {
    margin: 0;
    padding: 0;
}

html,body{
    scroll-behavior: smooth;
    scrollbar-width: none;      
    -ms-overflow-style: none; 
    height: 100%;
    width: 100%;
    margin: 0;
}

html::-webkit-scrollbar, body::-webkit-scrollbar{
    display: none;
}

body{
    background-color: black;
    color: aliceblue;
    font-family: "dindong";
    cursor: grab;
    position: absolute;
}

header{
    position: fixed;
    width: 100%;
    height: 2vw;
    background-color: aliceblue;
    color: black;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 150%;
    z-index: 999;
}

h1{
    font-size: 2vw;
    font-weight: normal;
}

header ul{
    list-style: none;
    display: flex;
    font-size: 2vw;

}

header a {
    text-decoration: none;
    color: black;
    margin: 0 25px;
}

header a:hover{
    color: blue;
}

/*----------------- accueil ------------------------ */

.arbre{
    width: 100%;
}

.navarbre{
  position: fixed;
  z-index: 999;
  display: block;
}

.navarbre ul{
  list-style: none;
}

.navarbre li{
  margin: 10vw 10px;
  font-size: 2vw;
  color: blue;
}

.apercu{
  position: absolute;
  max-width: 200px;
  margin: 200vw;
  z-index: 999;
}

.intro{
  margin-top: 500px;
  margin-left: 500px;
  font-size: 1.5vw;
}

.accueil{
  background-image: url(img/fond.png);
  cursor:grab;
  user-select: none;
}

.accueil, .grabbing{
    cursor: grabbing;
    
}

.jeu{
  margin: 100vw;
}

/*----------------- projets ----------------------------*/

.container{
    max-width:100vw;
    margin:0 auto;
    padding-top: 5vw;
  }

.masonry {
  column-count: 4;      
  column-gap: 40px;
  padding: 40px;
  max-width: 100vw;
  margin: 0 auto;
}

.item {
  break-inside: avoid;    
  margin-bottom: 40px;
}

.item img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.item video{
    width: 100%;
  display: block;
  object-fit: cover;
}

.item h3 {
  margin: 18px 0 4px;
  font-size: 1.5vw;
  text-transform: uppercase;
}

.item p {
  font-size: 1vw;
  opacity: 0.8;
}

figure a{
    text-decoration: none;
    color: aliceblue;
}

/*Flitres*/
.filters {
  display: flex;
  gap: 12px;
  padding: 20px 40px 0;
  max-width: 100vw;
  margin: 0 auto;
}

.filters button {
background-color: black;
color: aliceblue;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 20px;
  transition: 0.2s;
}

.filters button.active {
  color: blue;
}

.hidden{
  display:none;
}


/* Responsive */
@media (max-width: 1200px) {
  .masonry {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry {
    column-count: 1;
    padding: 20px;
  }

    .filters {
    flex-wrap: wrap;
    padding: 10px 20px 0;
  }
}

/*------------------------- projet1 ---------------------*/

.viewer {
width: 50%;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
height: 100vh; 
}

.viewer img {
width: 100%;
height: 80%;
object-fit: contain; 
}

.arrow {
position: absolute;
top: 40%;
font-size: 2rem;
border-radius: 50%;
padding: 5px;
cursor: pointer;
user-select: none;
}

.left { left: 20px; }
.right { right: 20px; }


.text-block {
margin-left: 50%;
width: 40%;
padding: 30px;
font-size: 1.2vw;
font-family: 'opensans';
}

/*------------------------- contact et a propos -------------------*/

.contactgrille{
    display: grid;
    grid-template-columns: 1fr;
}

.lien{
    display: flex;
    justify-content: left;
    margin-left: 60px;
    text-decoration: none;
    color: blue;
    font-size: 1.5vw;
}

#contact{
    margin-left: 40px;
    font-size: 1.5vw;
    padding: 40px;
}

.info{
    font-size: 1.5vw;
    width: 50%;
    padding: 40px;
}


/*------- font --------------*/

@font-face {
    font-family: "opensans";
    src: url(font/BBB-OpenSans-Regular.woff);
}

@font-face {
    font-family: "dindong";
    src: url(font/DINdong.woff);
}

