@font-face {
  font-family: ArticulatCF;
  src: url(fonts/ArticulatCF-Medium.otf) format('opentype');
  src: url(fonts/ArticulatCF-Medium.woff) format('woff');
  src: url(fonts/ArticulatCF-Medium.woff2) format('woff2');
  font-weight:normal;
  font-style: normal;
}


html, body {
  margin : 0;
  padding: 0;
}

.desktop{
  height:100vh;
  width:100vw;
  overflow:hidden;
}

body{
  font-family: "ArticulatCF";
  background: white;
  background-attachment: fixed;
}

h1{
  line-height: 100%;
  padding:0;
  margin:0;
  font-size: 85px;
  font-weight:normal;
}

p{
  font-size : 2.5vh;
  font-weight:normal;
}

.section{
  display:none;
}

.section:target{
  width:100dvw;
  height:100dvh;
  display:flex;
}

.dekstop > .section:first-child {
  width:100dvw;
  height:100dvh;
  display:flex;
}

.section:target ~ .section {
  display: none;
}

div.left{
  height:100%;
  width:65%;
}

div.right{
  height: 100%;
  width: 35%;
  display: flex;
  flex-direction: column;
}


.text-wrapper{
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

div.nav{
  
  justify-content: flex-end;
  display: flex;
  height:11%;
  overflow: hidden;
  position:relative;
}

div.nav-scroll {
  padding-left: 20px;
  height:100%;
  display:flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 5px;
  align-items: center;
  scroll-behavior: smooth;
}

.nav-scroll::-webkit-scrollbar{
  height: 0;
}

.nav-item {
  background-color: rgb(0, 0, 0);
  flex: 0 0 auto;
  width:5vw;
  height:4.5vw;
}

.nav-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale();
}

.nav-item img:hover {
  filter: grayscale(0%);
}

div.display{
  cursor: none;
  max-width:100%;
  height:84%;
  margin-left: 20px;
}

.display-container img{
  position : absolute;
  top:50%; left:50%;
  opacity:0;
  transform: translate(-50%, -50%);
  max-width: 100%
}
.display-container img.active{
  opacity:1;
}

.display-container{
  position:relative;
  overflow: hidden;
  display:flex;
  align-items: center;
  justify-content: center;
  height:100%;
  width:100%;
  background: black;
}

div.footer{
  height:5%;
  display:flex;
  justify-content: space-between;
  padding:0px 20px;
  align-items: center;
}

div.projet-container{
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height:95%;
  padding:0 10px;
}

div.projet-container::-webkit-scrollbar-{
  display:none;
}

div.footer2{
  height:5%;
  display:flex;
  justify-content: flex-end;
  padding:0px 15px;
  align-items: center;
  min-height: 40px;
  flex-shrink: 0;
}

a.link {
  text-decoration: none;
  color:black;
}

a.link:hover{
  color:#566168;
  text-decoration: underline;
}

p.project-text{
  padding-top:30px;
}

.cursor-info {
  mix-blend-mode: difference;
  position: absolute;
  pointer-events: none;
  padding: 5px 10px;
  color: white;
  font-size: 20px;
  border-radius: 4px;
  transform: translate(-50%, -50%);
  display: none;
}

div.mobile{display:none;}

.display-mobile {
  max-width:100%;
  height:40%;
}

.projet-mobile {
  padding:0 10px;
}

.footer-mobile {
  height:5vh;
  display:flex;
  justify-content: space-between;
  padding:0px 20px;
}

h1.mobile{
  padding-top: 20px;
  font-size:55px;
}

p.mobile {
  font-size:18px;
}

div.container-mobile{
  height:60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media only screen and (max-width: 900px) {
    h1 {
      font-size: 60px;
    }}

@media only screen and (max-width: 667px) {
    .desktop {
        display: none;
    }
    div.mobile {
        display:block;height:auto;width:100dvw;
    }}

.mcard{
  background-color: black; height:200px;max-width:100%;margin:0 20px;
  display: flex;
  justify-content : center;
}

.mcard img{
  object-fit: contain;
  position: relative;
  max-height: 100%;
  max-width: 100%;
}