/*******************************************************************************
style.js | FROM Nicolas Grosfort TO Alicia Dubuis IN october 2020
*******************************************************************************/
/*------------------------------------------------------------------------------
FONT
------------------------------------------------------------------------------*/
@font-face {
  font-family: "Lausanne-300";
  src: url("./font/Lausanne-300/Lausanne-300.eot");
  src: url("./font/Lausanne-300/Lausanne-300.eot") format("embedded-opentype"),
    url("./font/Lausanne-300/Lausanne-300.woff2") format("woff2"),
    url("./font/Lausanne-300/Lausanne-300.woff") format("woff"),
    url("./font/Lausanne-300/Lausanne-300.ttf") format("truetype"),
    url("./font/Lausanne-300/Lausanne-300.svg#Lausanne-300") format("svg");
  font-weight: normal;
  font-style: normal;
}
/*------------------------------------------------------------------------------
ANIMATION
------------------------------------------------------------------------------*/
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/*------------------------------------------------------------------------------
ELEMENTS
------------------------------------------------------------------------------*/
* {
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
html {
  cursor: none;
  background-color: rgba(244, 244, 244, 1);
}
body {
  position: absolute;
  overflow: hidden;
  margin: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 15px;
  background-color: rgba(244, 244, 244, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Lausanne-300";
}
img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
/*------------------------------------------------------------------------------
ID
------------------------------------------------------------------------------*/
#main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  grid-column-gap: 40px;
  width: 100%;
  height: 100%;
  overflow: scroll;
  position: relative;
}
#top_left,
#top_right,
#bottom_right,
#bottom_left {
  position: fixed;

  text-transform: capitalize;
  padding: 15px;
  font-size: 18px;
}
#top_left {
  top: 0px;
  left: 0px;
}
#top_right {
  top: 0px;
  right: 0px;
}
#bottom_right {
  bottom: 0px;
  right: 0px;
}
#bottom_left {
  bottom: 0px;
  left: 0px;
}
#loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(244, 244, 244, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}
#loading span {
  display: none;
}
#cursor {
  pointer-events: none;
  position: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Lausanne-300";
  text-transform: capitalize;
  background-color: transparent;
  mix-blend-mode: difference;
  color: rgba(244, 244, 244, 1);
  opacity: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/*------------------------------------------------------------------------------
CLASSES
------------------------------------------------------------------------------*/
.h1 {
  margin: 0;
  font-family: "Lausanne-300", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: normal;
  font-size: 32px;
  line-height: normal;
}
.thumbnails {
  opacity: 0;
  position: relative;
}
.thumbnails img {
  width: 100%;
  height: auto;
}
.link {
  cursor: pointer;
  position: relative;
}
.default {
  cursor: default;
  position: relative;
}
.bg_cursor {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.bg_left_cursor {
  position: fixed;
  top: 0;
  right: 50%;
  bottom: 0;
  left: 0;
}
.bg_right_cursor {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
}
.works,
.about {
  margin: 2% 0 10% 0;
}
.flex_left {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
}
.works span,
.about span {
  font-size: 13px;
  line-height: 1.15rem;
}
/*------------------------------------------------------------------------------
INTRO
------------------------------------------------------------------------------*/
#img_left,
#img_right {
  position: absolute;
  width: 0px;
}
/*------------------------------------------------------------------------------
HOME
------------------------------------------------------------------------------*/
#div_cover_img {
  grid-area: 2 / 5 / 12 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cover_img {
  max-width: 100%;
  transition: opacity 0.3s;
  opacity: 0;
}
#works_home {
  grid-area: 1 / 4 / 7 / 13;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-column-gap: 40px;
}
#commissions {
  grid-column: 1 / 4;
}
#personnal_work {
  grid-column: 4 / 7;
}
#lab {
  grid-column: 7 / 10;
}
#left_info_home {
  grid-area: 9 / 1 / 13 / 3;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: top;
  align-items: flex-start;
  align-content: flex-start;
  font-size: 11px;
  line-height: 0.9rem;
}
/*------------------------------------------------------------------------------
ABOUT
------------------------------------------------------------------------------*/
#left_info_about {
  grid-area: 9 / 1 / 13 / 3;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: top;
  align-items: flex-start;
  align-content: flex-start;
  line-height: normal;
  font-size: 11px;
  line-height: 0.9rem;
}
#info_about {
  grid-area: 1 / 4 / 13 / 13;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-column-gap: 40px;
  font-size: 11px;
}
#left_column {
  grid-column: 1 / 5;
  grid-row: 1;
  overflow-y: scroll;
  overflow-x: visible;
  padding-bottom: 5%;
  display: flex;
  flex-direction: column;
}
#middle_column {
  grid-column: 4 / 6;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  margin-top: 50vh;
  line-height: normal;
}
#right_column {
  grid-column: 5 / 10;
  grid-row-start: 1;
  font-size: 22px;
  line-height: 1.7rem;
}
/*------------------------------------------------------------------------------
GALLERY
------------------------------------------------------------------------------*/
#div_main_img {
  grid-area: 2 / 1 / 12 / 13;
  display: flex;
  align-items: center;
  justify-content: center;
}
#main_img {
  max-width: 100%;
  max-height: 100%;
  z-index: -1;
}
/*------------------------------------------------------------------------------
INFO
------------------------------------------------------------------------------*/
#div_image_info {
  grid-area: 3 / 3 / 7 / 7;
  display: flex;
  align-items: flex-end;
}
#image_info {
  max-width: 100%;
  height: auto;
  max-height: 100%;
}
#description {
  grid-area: 1 / 9 / 7 / 13;
  font-size: 18px;
  line-height: normal;
  padding-bottom: 15%;
}
#left_info_infos {
  grid-area: 5 / 1 / 7 / 3;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: top;
  align-items: flex-start;
  align-content: flex-start;
  line-height: normal;
  font-size: 11px;
}
/*------------------------------------------------------------------------------
THUMBS
------------------------------------------------------------------------------*/
#thumbs {
  grid-area: 1 / 3 / 6 / 13;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  overflow-y: scroll;
  overflow-x: hidden;
}
#left_info_thumbs {
  grid-area: 1 / 1 / 7 / 3;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  font-size: 11px;
  line-height: normal;
}
/*------------------------------------------------------------------------------
MOBILE (less than 1000)
------------------------------------------------------------------------------*/
@media only screen and (max-width: 1000px) {
  /*----------------------------------------------------------------------------
  ALL
  ----------------------------------------------------------------------------*/

  /*----------------------------------------------------------------------------
  ID
  ----------------------------------------------------------------------------*/
  #main {
    grid-column-gap: 0px;
  }
  #top_left,
  #top_right,
  #bottom_right,
  #bottom_left {
    padding: 15px;
  }
  #left_info_thumbs,
  #left_info_about,
  #left_info_infos,
  #left_info_about {
    grid-area: 1 / 1 / 12 / 13;
    justify-content: flex-start;
    margin-top: 0;
  }
  /*----------------------------------------------------------------------------
  CLASSES
  ----------------------------------------------------------------------------*/
  .works,
  .about {
    margin: 10% 0 15% 0;
  }
  .drop_down + div {
  }
  /*----------------------------------------------------------------------------
  HOME
  ----------------------------------------------------------------------------*/
  #div_cover_img {
    display: none;
  }
  #left_info_home {
    display: none;
  }
  #works_home {
    grid-column: 1 / 13;
    grid-row-end: auto;
    display: block;
  }
  #commissions {
  }
  #personnal_work {
  }
  #lab {
  }
  /*----------------------------------------------------------------------------
  ABOUT
  ----------------------------------------------------------------------------*/
  #info_about {
    grid-area: 4 / 1 / 7 / 13;
    display: block;
  }
  #right_column {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.35rem;
  }
  #left_column {
    overflow-y: visible;
    grid-column: 1 / 13;
  }
  #middle_column,
  #middle_info_about {
    display: none;
  }
  /*----------------------------------------------------------------------------
  INFO
  ----------------------------------------------------------------------------*/
  #div_image_info {
    grid-area: 2 / 1 / 5 / 13;
  }
  #description {
    grid-area: 5 / 1 / 7 / 13;
    padding: 20px 0 0 0;
  }
  #description span {
    padding-bottom: 15%;
  }
  /*----------------------------------------------------------------------------
  THUMBS
  ----------------------------------------------------------------------------*/
  #thumbs {
    grid-row-start: 2;
    grid-column: 1 / 13;
    grid-row-end: auto;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    overflow: visible;
    padding-bottom: 15%;
  }
}
/*------------------------------------------------------------------------------
IE
------------------------------------------------------------------------------*/
.hide {
  visibility: hidden;
}
.show {
  visibility: visible;
}
#ie {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: rgba(11, 11, 11, 1);
  color: rgba(244, 244, 244, 1);
  cursor: default !important;
  height: 100%;
  width: 100%;
  line-height: 1.4;
}
#ie div.contact {
  position: fixed;
  bottom: 130px;
  left: 30px;
  font-size: 14px;
  cursor: default !important;
}
#ie div.content {
  position: fixed;
  right: 30px;
  top: 30px;
  font-size: 26px;
  cursor: default !important;
}
/*----------------------------------------------------------------------------
AJOUTÉ PAR ALICIA
----------------------------------------------------------------------------*/
::-webkit-scrollbar {
  display: none;
}
