@font-face {
    font-family: 'Satoshi-Light';
    src: url('fonts/Satoshi-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: auto;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi-Regular';
    src: url('fonts/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: auto;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi-Medium';
    src: url('fonts/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: auto;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi-Bold';
    src: url('fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: auto;
    font-style: normal;
  }
  @font-face {
    font-family: 'Satoshi-Black';
    src: url('fonts/Satoshi-Black.woff2') format('woff2');
    font-weight: 700;
    font-display: auto;
    font-style: normal;
  }
/*body*/
body, html {
    height: 100%;
    margin: clamp(0.03rem, 2.2vw, 0.09rem);
    padding: 0;
    overflow: hidden; /* si vraiment nécessaire */}
/*main*/
.main {
    position: fixed;
    display: grid;
    grid-template-columns: 10% 83% 7%;
    width: 100%;
    height: 100%;
}
/*left*/
.index {
    border-right: 2px solid black;
} 
.center{ border-right: 2px solid black;}

h1 {
    position: relative;
    font-family: Satoshi-Medium;
    color: black;
    font-size: clamp(1.1rem, 2.2vw, 1.375rem); /* min ~20px, max ~22px */
    text-transform: uppercase;
    align-items: left;
    justify-content: left;
    /* ligne*/
    display: block;
    border-bottom: 2px solid black;
    margin-left: 3%;
    margin-right: 3%;

}
h1 a {
    font-family: Satoshi-Medium;
    color: black;
    text-decoration: none; 
    } 
h1 a:hover {
    font-family: Satoshi-Black;
    } 
.research h1 a {
    font-family: Satoshi-Black;
    color: black;
    text-decoration: none;
    } 
/*footer*/
.foot {
    position: fixed;
    font-family: Satoshi-Regular;
    font-size: 8px;
    text-align: left;
    bottom: 5px;
    left: 5px;
  }        

/*MAIN*/    /*MAIN*/    /*MAIN*/    /*MAIN*/
.center {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid black;
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
}
.grid-container {
    display: grid;
    grid-template-columns: 100px 500px 100px;
    grid-template-rows: 100px 500px 100px;
    gap: 0;
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Satoshi-Medium;
    font-size: clamp(1.1rem, 2.2vw, 1.375rem); /* min ~20px, max ~22px */
    text-align: left; 
    text-decoration: none;
    color: black;
}

.box1 { grid-column: 1; grid-row: 1; align-items: flex-end; justify-content: flex-end;}
.box2 { grid-column: 3; grid-row: 1; align-items: flex-end; justify-content: flex-start;}
.box3 { grid-column: 1; grid-row: 3; align-items: flex-start; justify-content: flex-end;}
.box4 { grid-column: 3; grid-row: 3; align-items: flex-start; justify-content: flex-start;}
.box5 { grid-column: 2; grid-row: 2; width: 500px; height: 500px; }

/* Styles des liens */
.box a {
    font-family: Satoshi-Medium;
    font-size: clamp(1.1rem, 2.2vw, 1.375rem); /* min ~20px, max ~22px */
    text-align: left; 
    text-decoration: none;
    color: black;
    bottom: 0;
}
.box a:hover {
    font-family: Satoshi-Black;
    font-size: clamp(1.1rem, 2.2vw, 1.375rem); /* min ~20px, max ~22px */
    text-align: left; 
    text-decoration: none;
    color: black;
}

/*CENTER*/  /*CENTER*/  /*CENTER*/  /*CENTER*/
.box5 img {
    max-width: 600px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.9s ease-in-out;
}
.box5 img.active {
    opacity: 0.2;
}
 .box5:hover img {
    opacity: 0.2; /* Image semi-transparente */
}
.center-text {
    position: absolute;
    max-width: 300px;
    font-family: Satoshi-Regular;
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
    line-height: 1.1;
    text-align: justify;
    opacity: 0;  
}
.box5:hover .center-text {
    opacity: 1;
    visibility: visible;
}
.box5.active img {
    opacity: 1; /* Garde l'effet de transparence */
}
.box5.active .center-text {
    opacity: 1;
    visibility: visible;
}


@media (max-width: 1200px) {
    body, html {
        height: auto;
        width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* pour fluidité sur iOS */
    }    
    .main {
        position: static;
      display: block;
      width: 100%;
    }
.index {
    border: none;
      }
 /* TOP MENU (Work, Research page, Graphic design) */
.index:first-of-type {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 0;
    z-index: 1000;
  }
.index:first-of-type h1 {
    font-family: Satoshi-Light;
    font-weight: 300;
    text-transform: none;
    border: none;
    font-size: clamp(0.8rem, 2vw, 1rem);
    margin: 0;
  }
.index:first-of-type h1 a {
    text-decoration: none;
    color: black;
  }
  /* BOTTOM MENU (Views + About) */
  .about {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    z-index: 1000;
  }
.about {
    right: 0;
  }
.about h1 {
    font-family: Satoshi-Light;
    font-weight: 300;
    text-transform: none;
    border: none;
    font-size: clamp(0.8rem, 2vw, 1rem);
    margin: 0;
  }
.about h1 a {
    text-decoration: none;
    color: black;
  }
.about h1 a:hover {
    text-shadow: black;
} 
}


