:root {
  --header-height: 3.5rem;
  --padding: 1em;
  --border-bottom: solid 1px #000;
}

* {
  box-sizing: border-box;
  line-height: 1.25;
}

::selection {
  color: white;
  background-color: black;
}

body {
  font-family: 'IBM Plex Sans';
  margin: 0;
  font-size: 1em;
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: #000;
  text-decoration: none;
}

:not(h1)>a:hover, .innerLink:hover {
  font-style: italic;
}

.header-flex>h1, .innerLink {
  cursor: pointer;
}

h1, h2 {
  font-size: 1rem;
  text-transform: uppercase;
  margin: 0 0;
  font-weight: normal;
}

h3 {
  font-weight: normal;
  font-size: inherit;
  margin: 0 0;
}

h4, p {
  margin: 0 0;
}

.anchor-nav {
  display: block;
  visibility: hidden;
  margin-top: calc(-1 * var(--padding));
  height: var(--padding);
}

.anchor-projet {
  display: block;
  height: calc(var(--header-height) + var(--padding));
  /*same height as header*/
  margin-top: calc(-1 * calc(var(--header-height) + var(--padding) - 1px));
  /*same height as header*/
  visibility: hidden;
}

/* ENTETE + PIED DE PAGE */
header {
  background: #FFF;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 3;
  padding: 0em var(--padding);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

header:before {
  content: "";
  position: absolute;
  left: var(--padding);
  bottom: 0;
  height: 1px;
  width: calc(100% - calc(var(--padding) * 2));
  /* or 100px */
  border-bottom: 1px solid black;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 1em;
}

h1.info-mobile {
  display: none;
}

/* STRUCTURE */
.column1 {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  width: 25vw;
  overflow-y: scroll;
  padding: var(--padding);
}

.column2 {
  width: 75vw;
  margin-left: 25vw;
  margin-top: calc(var(--header-height) + var(--padding));
  padding: 0 0;
  padding-right: var(--padding);
}

/* MENU */
nav ul, nav li {
  margin: 0;
  padding: 0;
  text-indent: 0;
  list-style-type: none;
}

nav ul {
  border-bottom: var(--border-bottom);
  margin-bottom: var(--padding);
}

nav li {
  padding-bottom: 1rem;
  font-style: var(--padding);
}

nav li div.nav-projet {
  cursor: pointer;
}

nav li.visible, nav li:hover {
  color: #acacac
}

nav h1, nav h3, nav article p {
  padding-bottom: var(--padding);
}

nav h4 {
  border-top: var(--border-bottom);
  padding-top: var(--padding);
}

/* Projets */
/* Media */
figure {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure img, figure video {
  width: 100%;
  /* Fait en sorte que la hauteur de l'image rentre toujours dans l'espace qui lui est aloué sur la page
  ce qui recadre parfois légérement celle-ci */
  /* object-fit: cover;
  max-height: calc(100vh - var(--header-height) - var(--padding) - var(--padding)); */
}

/* Carousel */
.slide-pagination {
  position: absolute;
  color: white;
  z-index: 10000000;
  right: 0;
  bottom: 0;
  padding: var(--padding);
}

.custom-arrows {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 1;
  width: unset;
  opacity: 1;
}

.custom-arrows:hover {
  opacity: 1;
}

.custom-arrows svg {
  fill: #000;
  height: 1.5rem;
  width: 1.5rem;
  transform: unset;
}

.white.custom-arrows svg {
  fill: #FFF;
}

/* Projets */
.projet-container {
  margin-bottom: var(--padding);
  padding-bottom: var(--padding);
  border-bottom: solid 1px black;
}

/* Description dépliante */
.collapsible {
  background-color: white;
  position: absolute;
  z-index: 2;
  border: none;
  outline: none;
  padding: 0;
  margin-left: 2em;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: left;
  color: inherit;
}

.button-plus {
  font-size: 3rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.button-plus::after, h1.info-mobile:after {
  content: "";
  width: 3rem;
  height: 3rem;
  background-image: url(../../assets/svg/Plus-Site.svg);
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center center;
  display: inherit;
}

.collapsible.active {
  width: 21em;
  height: auto;
  align-items: flex-start;
}

.collapsible.active .button-plus::after, h1.info-mobile.active:after {
  content: "";
  width: 3rem;
  height: 3rem;
  background-image: url(../../assets/svg/Croix-Site.svg);
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center center;
}

.collapsible.active article {
  display: block;
}

.collapsible article {
  display: none;
}

.description-projet {
  padding: 0em var(--padding) var(--padding) var(--padding);
}

.description-projet h2, .description-projet .metadonnées {
  padding-bottom: 0.5em;
}

@media screen and (max-width: 700px) {
  body {
    overflow: hidden;
  }
  header {
    align-items: center;
  }

  .header-flex {
    padding-bottom: 0em;
  }

  .header-flex h1:nth-child(2) {
    display: none;
  }

  h1.info-mobile {
    display: block;
    font-size: 2.5em;
    line-height: 0;
    cursor: pointer;
  }

  .column1 {
    display: none;
    overflow-y: scroll;
    height: calc(100vh - var(--header-height));
    width: 100vw;
    position: relative;


  }

  .column1.active {
    display: block;
    /* overflow: unset; */

  }

  .column2.hidden {
    display: none;
  }

  .column2 {
    width: 100vw;
    margin-left: 0;
    padding: 0 var(--padding);
    overflow-y: scroll;
    height: calc(100vh - var(--header-height));
  }

  .projet-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .liste-projets {
    display: none;
  }

  .collapsible {
    position: relative;
    margin-left: 0;
    width: 100%;
  }

  .collapsible.active {
    width: unset;
  }

  .button-plus {
    height: 1em;
    display: inline-block;
    width: 100%;
  }

  .button-plus::after, h1.info-mobile:after {
    display: inherit;
    width: 2.5rem;
    height: 2.5rem;
  }

  .description-projet {
    padding: 0 0 var(--padding) 0;
  }

  .metadonnées p {
    display: inline-block;
  }

  .button-plus::after, h1.info-mobile:after, .collapsible.active .button-plus::after, h1.info-mobile.active:after {
    background-position: left center;
    width: 2.5rem;
    height: 2.5rem;
  }

  h1.info-mobile:after, h1.info-mobile.active:after {
    background-position: right center;
    width: 2.5rem;
    height: 2.5rem;
  }
}
