:root {
  --header-height: 3.5rem;
  --padding: 0.75rem;
  --color: #6400ff;
  --border: solid 1px var(--color);
}

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

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

body {
  font-family: 'GT Pressura';
  margin: 0;
  font-size: 1.5em;
  font-weight: 500;
  /* overflow-x: hidden; */
  color: var(--color);
}

@-moz-document url-prefix() {

  /*uniquement pour firefox*/
  * {
    scrollbar-width: calc(var(--padding)*2);
    scrollbar-color: var(--color) transparent;
  }

  .column1 nav, header, .column2 {
    border-right: unset !important;
  }
}

.petit {
  font-size: 1.1rem;
}

/* width */
::-webkit-scrollbar {
  width: var(--padding);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--color);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.innerLink {
  cursor: pointer;
}

h1, h2 {
  font-size: 1.1rem;
  margin: 0 0;
  font-weight: 500;
}

h1 {
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.collapsible h2 {
  /* font-style: italic; */
}

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

h4, p {
  margin: 0 0;
  max-width: 750px;
}

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

.anchor-projet {
  display: block;
  height: calc(var(--header-height));
  /*same height as header*/
  margin-top: calc(-1 * calc(var(--header-height)));
  /*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;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-right: var(--border);
}

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

.header-flex {
  display: flex;
  padding: var(--padding);
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

h1.info-mobile {
  display: none;
}

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

.column1 nav {
  border-right: var(--border);
}

.column2 {
  width: calc(75vw - var(--padding));
  margin-left: 25vw;
  margin-top: calc(var(--header-height) - 1px);
  padding: 0 0;
  /* padding-right: var(--padding); */
  border-left: var(--border);
  min-height: calc(100vh - var(--header-height));
  border-right: var(--border)
}

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

nav li, h1.liste-projets {
  padding: var(--padding);
  border-bottom: var(--border);
  cursor: pointer;
}

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

nav li.visible, nav li:hover {
  color: white;
  background: var(--color)
}

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

nav h4 {
  border-top: var(--border);
  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 */
.splide {
  cursor: none;
}

.custom-arrows {
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 1;
  width: unset;
  opacity: 1;
  position: fixed;
  right: unset;
  display: none;
  cursor: none;
}

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

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

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

/* Projets */
.projet-container {
  border-bottom: var(--border);
  position: relative;
}

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

.button-plus {
  position: absolute;
  font-size: 3rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  top: var(--padding);
  right: var(--padding);
}

.button-plus::after, h1.info-mobile a {
  content: "";
  width: 2.5rem;
  height: 2.5rem;
  background-image: url(../../assets/svg/plusdinfo.svg);
  background-repeat: no-repeat;
  background-position: center center;
  display: inherit;
}
h1.info-mobile.infos a {
  background-image: url(../../assets/svg/moinsdinfo-violet.svg);

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

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

.collapsible.active article {
  display: block;
}

.collapsible article {
  display: none;
}

.description-projet {
  padding: var(--padding);
  background-color: var(--color);
  color: white;
  width: 100%;
}

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

.splide {
  /* cursor: none; */
}

.about-home article, .about article{
  padding: var(--padding);
  border-bottom: var(--border);
}

.about article h2 {
  text-transform: uppercase;
  padding-bottom: var(--padding);
  letter-spacing: 0.05rem;
}

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

  header {
  }

  .anchor-projet {

    /* margin-top: calc(-1 * calc(var(--header-height))); */
    margin-top: 0;
    height: var(--padding);
    /*same height as header*/
    /* visibility: hidden; */
  }

  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;
    overflow-y: scroll;
    height: calc(100vh - var(--header-height));
    border-left: none;
    padding-bottom: calc(var(--padding) *3)
  }

  body:not(.infos) .column2 {
    padding: 0 var(--padding) calc(var(--padding) *3) var(--padding);
  }

  .projet-container {
    /* margin-bottom: var(--padding); */
  }

  .about article {
    padding: var(--padding);
  }

  .about-home article{
    padding: var(--padding) 0;
  }

  .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%;
    bottom: 0;
  }

  .collapsible.active {
    width: unset;
  }

  .collapsible article {
    display: unset;
  }

  .collapsible:not(.active) article>*:not(h2), .a-propos {
    display: none;
  }

  .collapsible article h2 {
    font-style: normal;
    max-width: calc(100% - 40px);
  }

  .collapsible.active .button-plus::after, h1.info-mobile.active::after {
    background-image: url(../../assets/svg/moinsdinfo-violet.svg);
  }

  .description-projet h2 {
    padding-bottom: 0;
  }

  .description-projet {
    background-color: white;
    color: var(--color);
  }

  .button-plus {
    height: 1em;
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    left: 0;
    top: 0;
  }

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

  .description-projet {
    padding: var(--padding) 0;
    font-size: 1.1rem;
  }

  .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;
  }

  .custom-arrows {
    position: absolute;
    display: none;
  }

  .custom-arrows.splide__arrow--next {
    right: 1em;
  }
}
