@font-face {
    font-family: "Hamecon";
    src:
      url("ressources/Hameçon.ttf")
}

@font-face {
	font-family: "messapia";
	src: url("font/Messapia-Regular.woff2") format("woff2"),
		 url("font/Messapia-Regular.woff") format("woff");
}

@font-face {
	font-family: "messapia-bold";
	src: url("font/Messapia-Bold.woff2") format("woff2"),
		 url("font/Messapia-Bold.woff") format("woff");
}


/* Core Base */

html{
    font-size:20px;
}
body{
    margin:0;
    padding:0;
    font-family: "messapia";
    letter-spacing: 1%;
    background-color: rgb(160, 167, 172);
}

h1{
    font-size: 3rem;
    color:black;
    z-index: 2;   
}

h2{
    font-size: 2rem;
    margin-right: 1rem;
    color:black;
    z-index: 2;

}

h3{
    font-size: 1.2rem;
    width: 100%;
    color:black;
}

p{
    color: black;
    font-size: 1rem;
}
a{
    text-decoration: none;
    color: black;
}
a:hover{
    text-decoration: underline;
}

.title{
    display: absolute;
    position: fixed;
    bottom: 0;
    right: 0;
    margin-right: 1%;
    z-index: 2;
}

.title h1{
    text-align: end;
    line-height: 0rem;
    
}
.title h3{
    text-align: end;
}
.title h3 a{
    margin-left:4%;
    text-decoration: none;
    color: black;
}

.research{
    position: fixed;
    right:0;
    width:15%;
    margin-right:1%;
    margin-top:0;
    transform: translate(50% -50%);
}

.bottom-empty{
    position: relative;
    width:100%;
    height:20%;
    display: block;
    margin:10%;

}

/* Detail Window */


.overDetailed{
    display: none;
    position: fixed;
    width:60%;
    height: auto;
    z-index:100;
    border-radius: 30px;
    border-color: black;
    border: 5px solid #333;
    background-color: rgb(160, 167, 172);
    margin:0;
    padding:1%;
}

.overDetailed video{

    filter : none;
}

.overDetailed:hover{
    cursor: move;
}

button{
    position: absolute;
    margin:0;
    right:0;
    top:0;
    width:5%;
    height:5%;
    padding: 0;
    border: none;
    background: none;
    transform: translate(50%,-100%);
}

.left{
    position: relative;
    float:left;
    width: 7%;
    margin:0;
    top:-50%;
    cursor: grab;
}
.right{
    position: relative;
    float:right;
    width: 7%;
    margin:0;
    top:-50%;
    cursor: grab;
    transform:scale(-100%);
}


.description{
    grid-row: 2;
    grid-column: 1 /span 2;
}
.date{
    grid-row: 2;
    grid-column: 3;
    text-align: right;
}
.type{
    text-align: right;
}

.titre{
    grid-column: 1 /span 5;
    align-items: center;
    justify-self: left;
    font-size: 3rem;
    margin-top:1%;
    background-image: url('ressources/INTER.svg');
    background-repeat:repeat;
    background-position:bottom;
    width: 100%;
    cursor: pointer;
}
.visuel{
    display:none;
    width:100%;
    
}
.verticale{
    width:50%;
}

.image{
    grid-column-start: 1;
    display: none;
    filter:none;
    width: 100%;
}
.visu{
    width:30vw;
    grid-column-start: 1;
    
}
.col1{
    grid-column-start: 2;
    font-size:1em;
}

.col1 h2{
    font-size:1.2em;
}

.col2{
    grid-column-start: 3;
    text-align: end;
}

.col2 h2{
    font-size: 1.2em;
}

.date{
    position: absolute;
    right: 0;
    bottom:0;
}

/* Grid Mansonry System*/

.grid{
    position: relative;
    display:block;
    margin: 0.5%;
    width: 90%;
}

.grid:after {
    content: '';
    display: block;
    clear: both;
  }
   
video{
    width: 100%;
    height: auto;
    margin-bottom: 0;
    filter: grayscale(100%);
}

video:hover{
    filter:none;
}

img{
    width:100%;
    height: auto;
    filter: grayscale(100%);
}

img:hover{
    filter:none;
}

.grid-sizer,
.grid-item { 
    float:left;
    width:auto; 
    margin:0.1%;
}

.grid-item:hover{
    filter:initial;
    cursor:grab;
}


 .grid-gutter{
}

.grid-item-anim{
    width: 12.6%;
}

.grid-item-photo{
    width: 23.7%;
}

.grid-item-photo-svrpt{
    width: 27.1%;
}

.grid-item-horizontal{
    width:32.2%;
}

.grid-item-vertical{
    width: 12.8%;
}

.grid-item-proto{
    width: 13.35%;
}
.grid-item-proto-fixe{
    width: 12.73%;
}

.grid-item-square{
    width:18%;
}

.grid-item-telephone{
    width: 10.17%;
}

.grid-item-photo-vert{
    width:12%;
}

.visible{
    display:grid;
}

.visibleVert{
    grid-template-columns: 30% 1fr 0.3fr;    
    gap:2%;
}

.visibleHor{
    width:70%;
    grid-template-columns: 50% 1fr 0.3fr;    
    gap:2%;
}

.part{
    height:1.2%;
    width:100%;
    margin-right:2%;
    margin-bottom: 0;
    text-wrap: wrap;
}

.part h1{ 
    font-size:2em;
    word-wrap:break-word;
    hyphens: auto;
    margin:0;
}

.stamp {
    position: absolute;
    justify-content: start;
    background-color: black;
    
  }

.stamp1 {
    margin:2%;
    margin-left:0;
    left:0;
    width: 95%;
   
    height: 1px;
    
  }


@media screen and (min-width: 481px) and (max-width:1200px) {
    html{
        font-size:8px;
    }
    body{
        overflow-x: hidden;
    }
    .title h1{
        position: relative;
        font-size: 7em;
    }
    .title a{
        font-size: 2.5em;
        right:0;
     
    }

    .research{
        display: block;
        width: 30%;
        margin-right: 2%;
    }
    .grid-sizer,
    .grid-item { 
        width: 20%; 
        margin-bottom :0.5%;
    }
    .overDetailed{
        top:2%;
        position: fixed;
        width:auto;
        height:auto;
        z-index:10;
        border-radius: 30px;
        border-color: black;
        border: 5px solid #333;
        background-color: rgb(160, 167, 172);
    }
    .visibleVert{
        width: 96.5%;
        grid-template-columns: repeat(3,1fr);    
        grid-template-rows: auto;
        gap:2%;
    }
    
    .visibleHor{
        width:96.5%;
        grid-template-columns: repeat(3,1fr);   
        gap:2%;
    }
    /* .visuel{
        width: 95%;
    }
     */
    .visu{
        grid-column-start: 1;
        grid-column-end: span 3;
    }
    .col2{
        margin-right:2%;
        font-size:1.5em;
    }
    .col1{
        margin-left:2%;
        font-size:1.5em;
    }

    .col1 p{
        font-size:1em;
    }
    .verticale{
        padding-left :25%;
        width: 50%;
        height:auto;
    }

    .setupHorCol1{
        grid-row-start:2;
        grid-column-start: 1;
        grid-column-end:span 2 ;
        margin-bottom:10%;
    }

    
    .setupVertCol1{
        grid-row-start:2;
        grid-column-start:1;
        margin-bottom:10%;
        grid-column-end:span 2 ;
    }
    .setupHorCol2{
        grid-row-start:2;
        grid-column-start: 3;
    }
    
    .setupVertCol2{
        grid-row-start:2;
        grid-column-start:3;
        margin-bottom:10%;
    }

    .part{
        width:98%;
        /* margin-right:2%; */
        /* text-wrap: wrap; */
        top:0;
    }
    .part h1{
        font-size:2em;
    } 
    .stamp {
        width:100%;
        position: absolute;
        justify-content: center;
    }
    .stamp1 {
        left: 30%;
        width: 90%;
        height: 2px;
    }
    button{
        right:2%;
        top:5%;
        width:10%;
        height:10%;
    }
    .date{
        right:6%;
    }
    
}

@media screen and (min-width : 320px) and (max-width : 480px) {
    html{
        font-size:6px;
    }
    body{
        overflow-x: hidden;
    }

    .overDetailed{
        top:2%;
        padding:2%;
    }

    .grid{
        position: relative;
        display:block;
        width:99%;
    }

    .grid-sizer,
    .grid-item { 
        width: 1.7%; 
        margin-bottom :0.5%;
    }

    .grid-item{
        width:29%;
        margin:1.5%;
    }

    .title{
        width:85%;
        right:0;
        bottom:0;
        position: fixed;
        margin-right:3%;
        margin-bottom:2%;
        /* background-color: rgb(160, 167, 172); */
        z-index: 100;
    }

    .title h1{
        position: relative;
        font-size: 4em;
    }
    .title a{
        font-size: 2em;
        right:0;
     
    }
    .date{
        right:13%;
    }

    .headphone{
        display: fixed;
        position: absolute;
        top:0;
    }

    .research{
        display: block;
        position: relative;
        left:0;
        width: 50%;
        transform:  translate(50%)
                    rotate(92deg);
        margin-bottom:-20%;
        margin-top:-20%;
    }
    .visibleVert{
        width: 95.5%;
        grid-template-columns: 0.5fr 1fr 0.3fr;    
        grid-template-rows: auto;
        gap:2%;
    }
    
    .visibleHor{
        width:93.5%;
        grid-template-columns: 0.5fr 1fr 0.3fr;   
        gap:2%;
    }
    .visuel{
        margin-left:1%;
        width: 98%;
    }

    .part{
        width:98%;
        margin-right:2%;
        text-wrap: wrap;
        top:0;
    }
    
    .part h1{
        /* width:100%; */
        font-size:3.5em;
        word-wrap:break-word;
        hyphens: auto;
    } 
    
    .stamp {
        width:100%;
        position: absolute;
        justify-content: center;
    }
    .stamp1 {
        left: 30%;
        width: 90%;
        height: 2px;
    }
    .verticale{
        padding-left :12.5%;
        width: 75%;
        height:auto;
    }
    .col2{
        margin-right:2%;
        font-size:1.5em;
    }
    .col1{
        margin-left:2%;
        font-size:1.5em;
    }

    .col1 p{
        font-size:1em;
    }

    .visu{
        grid-column-start: 1;
        grid-column-end: span 3;
    }
    .video{
        padding:2%;
    }

    .setupHorCol1{
        grid-row-start:2;
        grid-column-start: 1;
        grid-column-end:span 2 ;
        margin-bottom:10%;
    }
    
    .setupVertCol1{
        grid-row-start:2;
        grid-column-start:1;
        grid-column-end:span 2 ;
        margin-bottom:10%;
    }
    .setupHorCol2{
        grid-row-start:2;
        grid-column-start: 3;
    }
    
    .setupVertCol2{
        grid-row-start:2;
        grid-column-start:3;
        margin-bottom:10%;
    }

    button{
        right:2%;
        top:5%;
        width:10%;
        height:10%;
    }
    
  }