* {
  box-sizing: border-box;
}

@font-face {
  font-family: LeagueMono;
  src: url(type/LeagueMono-NarrowLight.woff);
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.filterDiv {
  display: none;
}

.filterDiv.show {
  display: block;
}

body {
  color: rgb(19, 17, 43);

  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;

  box-sizing: border-box;
  overflow: hidden;

  font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12.6px;
  line-height: 18.6px;
  letter-spacing: 0.4px;
}

nav>*,
main>* {
  max-width: 100%;
}


/* --- STYLE DES LIENS --- */

a {
  color: rgb(12, 17, 43);
  text-decoration: none;
}

.active {
  text-decoration: underline;
}

nav>.titres-travaux a.visited {
  text-decoration: line-through;
}

.visited {
  text-decoration: line-through;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 1.5px;
}

.newsletter {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 1.5px;
}

.newsletter:hover {
  text-decoration: none;
}


/* --- NAVIGATION --- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 18vh;
  padding: 20px 80px 20px 80px;

  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;

  background-color: rgb(255, 255, 255);

  gap: 0;
  z-index: 2000;
}

nav>div {
  display: flex;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

nav>.title {
  overflow: hidden;

}

nav>.travaux {
  overflow: hidden;
  display: none;

}

nav>.categories {
  overflow: hidden;
  opacity: 0.4;
}

nav>.years {
  height: 100%;

  display: flex;
  flex-direction: column;

  flex-wrap: wrap;

  gap: 5px 14px;

  overflow-y: visible;

  align-content: flex-start;
  opacity: 0.4;
}

nav>.years ul {
  display: contents;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style-type: none;
  margin: 0;
}

.year-hidden {
  opacity: 0.2;
  pointer-events: none;
}

nav>.titres-travaux {
  height: calc(100% - 10px);
  position: relative;

  gap: 5px 14px;

  overflow-x: hidden;
  overflow-y: auto;
  align-content: flex-start;

  flex: 0 0 38vw;
}

/* Fèche de scroll */

nav>.titres-travaux::after {
  /* autres options autres que la flèche : */
  /*content: "↓";  */
  /* content: "..."; */
  content: "^";
  transform: rotate(180deg);

  position: fixed;
  top: 13.7vh;
  right: 40%;

  font-size: 18px;
  color: rgb(19, 17, 43);
  z-index: 1000;
  pointer-events: none;
}

nav>.titres-travaux.scroll-ended::after {
  opacity: 0;

  animation: none;

  transform: rotate(180deg) translateY(10px);

  pointer-events: none;
}


nav>.a-propos {
  overflow: hidden;
}

nav>.contact {
  overflow: hidden;
}


/* --- MAIN --- */

main {
  position: relative;

  top: 15vh;
  left: 0;
  width: 100%;
  height: calc(100vh - 18vh);

  padding: 0px 80px;

  background-color: #ffffff;
  display: flex;
  flex-direction: row;
  gap: 40px;

  box-sizing: border-box;
}

main::after {
  content: "";

  position: fixed;

  left: 62.8%;
  transform: translateX(-62.8%);

  top: 20%;
  bottom: 20px;

  width: 1px;
  background-color: rgb(19, 17, 43);

  z-index: 5;

  pointer-events: none;
}

.bigger {
  flex: 1 1 65%;
  overflow-y: auto;
  min-width: 0;
  padding-bottom: 60px;
}

.closer {
  flex: 1 1 35%;
  overflow-y: auto;
  min-width: 0;
  padding-bottom: 60px;
}

.texte-closer {
  font-family: LeagueMono;
  font-size: 0.95em;
  line-height: 1.6;
  width: 100%;
  padding-top: 60px;
}

.project {
  padding-bottom: 60px;
}

.mobile-project {
  display: contents;
}

.project-title {
  position: sticky;
  margin-top: 0;
  top: 0;
  padding-top: 5px;
  padding-bottom: 5px;
  z-index: 500;
  background-color: white;
}

.project-title>p {
  display: flex;
  justify-content: space-between;
  column-gap: 25px;
}

.project-img,
.img-closer {
  width: 100%;
  display: block;
  margin-bottom: 18px;
}

.bigger .project-img figure,
.closer .img-closer figure {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.bigger .project-img figure img,
.closer .img-closer figure img {
  width: 100%;
  height: auto;
  display: block;
}

.bigger .project-img figcaption,
.closer .img-closer figcaption {
  padding-top: 7px;
}

.mobile-caption {
  display: none;
}


/* --- A PROPOS --- */

.bio {
  width: 72%;
}

/* Grille CV */

.cv {
  padding-top: 20px;
  max-width: 60%
}

section .titre-cv {
  padding-top: 25px;
}

section .date-info {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-gap: 10px;
  padding-top: 15px;
}

section .info-cv {
  grid-column: 2/2;
  justify-self: start;
  margin: 0;
  padding-bottom: 3px;
}

section .date-cv {
  margin: 0;
}

p .info-cv {
  margin-bottom: 0;
}


/* --- CONTACT --- */

.newsletter-text {
  padding-top: 20px;
}

.newsletter-mail {
  padding-top: 10px;
  border-bottom: #000000;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  padding: 0;
}

.mail-text {
  padding-left: 15px;
  margin: 0;
  padding-bottom: 5px;
}



/* ------------- RESPONSIVE ------------- */

/*  //// 1200px //// */

@media only screen and (max-width: 1200px) {

  /* --- STYLE DES LIENS --- */

  a:hover {
    text-decoration: none;
  }

  #link-index:hover {
    text-decoration: none;
  }

  a.active {
    text-decoration: underline;
    text-underline-offset: 1.5px;
  }

  #link-index.active:hover {
    text-decoration: underline;
    text-underline-offset: 1.5px;
  }

  .titres-travaux a.visited {
    text-decoration: line-through;
    /*text-decoration: line-through !important;*/
  }

  .titres-travaux a.active {
    text-decoration: underline;
    /*text-decoration: underline !important;*/
    text-underline-offset: 1.5px;
  }


  /* --- NAVIGATION --- */

  #menu-toggle:checked~nav .titres-travaux .filterDiv {
    display: none;
  }

  #menu-toggle:checked~nav .titres-travaux .filterDiv.show {
    display: flex;
  }

  .bigger .filterDiv,
  .closer .filterDiv {
    display: none;
  }

  .bigger .filterDiv.show,
  .closer .filterDiv.show {
    display: block;
  }

  #menu-toggle {
    display: none;
  }

  nav>.titres-travaux,
  nav>.years,
  nav>.categories {
    display: none;
  }

  nav {
    padding: 20px 60px 20px 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 13vh;

    overflow-y: hidden;
    z-index: 1000;
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    gap: 30px 5px;
    background-color: white;
  }

  nav>div {
    box-sizing: border-box;
  }

  nav>.titres-travaux::after {
    visibility: hidden;
  }

  nav>.title {
    order: -1;
    flex: 1 1 50%;
    margin-bottom: 0;
  }

  nav>.travaux {
    display: flex;
    order: 2;
    flex: 1 1 100%;
  }

  .travaux a {
    position: fixed;
    top: 60px;
    cursor: pointer;
  }

  nav>.a-propos {

    order: 1;
    flex: 1 1 auto;
    justify-content: end;
  }

  nav>.contact {
    order: 1;
    flex: 1 1 auto;
    justify-content: end;
  }


  /* Menu ouvert */

  #menu-toggle:checked~nav {
    min-height: 100dvh;
    height: 100%;

    display: flex;

    padding: 20px 60px;

    padding-bottom: 40px;
    box-sizing: border-box;
  }

  #menu-toggle:checked~nav .titres-travaux,
  #menu-toggle:checked~nav .years,
  #menu-toggle:checked~nav .categories {
    display: flex;
  }

  #menu-toggle:checked~nav>.categories {
    order: 2;
    flex: 1 1 auto;
  }

  #menu-toggle:checked~nav>.years {
    order: 2;
    flex: 1 1 auto;
    height: 20%;

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px 14px;

  }

  #menu-toggle:checked~nav>.titres-travaux {
    order: 3;
    flex: 0 1 100%;
    flex-wrap: wrap;
    width: auto;
    padding-left: 0;
    overflow-y: auto;
    max-height: 50%;
  }


  /* --- MAIN --- */

  main {
    top: 13vh;
    padding: 0px 60px 20px 60px;

    height: 100vh;
    overflow-y: hidden;
    height: calc(100vh - 13vh);
  }

  main::after {
    top: 12%;
  }

  .texte-closer {
    font-size: 0.9em;
    width: 100%;
  }

  /* --- A PROPOS --- */

  .cv {
    max-width: 80%;
  }

}

/* //// 1020px //// */

@media only screen and (max-width: 1020px) {

  nav {
    padding: 20px 40px 20px 40px;
  }

  #menu-toggle:checked~nav {
    padding: 20px 40px 20px 40px;
  }

  .closer {
    overflow-x: hidden;
  }

  main {
    padding: 0px 40px 20px 40px;
    top: 15vh;
    height: calc(100vh - 15vh);
    overflow-y: hidden;
  }

  .texte-closer {
    font-size: 10.5px;
  }

  .project-title>p {
    padding-right: 5px;
  }

  .cv {
    max-width: 90%;
  }

  .bio {
    width: 90%;
  }

}



/* //// 767px //// */
@media only screen and (max-width: 767px) {


  /* --- GLOBAL --- */

  .bigger .filterDiv.show,
  .closer .filterDiv.show {
    display: flex;
  }


  /* --- NAVIGATION --- */

  nav {
    padding: 15px 20px;
    gap: 30px 5px;
  }

  /* Quand le menu est ouvert (checkbox cochée) */
  #menu-toggle:checked~nav {
    padding: 15px 20px 40px 20px;
    height: 100dvh;
  }

  #menu-toggle:checked~main {
    display: none;
  }

  #menu-toggle:checked~nav>.titres-travaux {
    order: 3;
    flex: 0 1 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 5px 0;
  }

  #menu-toggle:checked~nav>.titres-travaux ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 0.9em 0;
  }

  #menu-toggle:checked~nav>.titres-travaux li {
    display: block;

    width: 100%;

    flex: none;

    margin: 0;
    padding: 0;
  }

  #menu-toggle:checked~nav>.titres-travaux li a {
    display: block;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    /*text-decoration: none;*/
    padding: 2px 0;
  }


  /* --- MAIN --- */

  main {
    position: relative;
    top: auto;
    left: 0;
    margin-top: 15vh;

    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    height: auto;
    min-height: calc(100vh - 15vh);
    overflow-y: auto;
    gap: 0;
  }

  main::after {
    visibility: hidden;
  }

  .bigger,
  .closer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    margin-bottom: 0;
    width: 100%;
    height: auto;
    max-height: none;

    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  .bigger {
    position: relative;
  }

  .project {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .project .project-title {
    position: sticky;
    left: 0;
    top: 0;
    width: 100vw;
    height: 50px;
    padding: 5px 20px;

    z-index: 100;

    background: white;
  }

  .project .mobile-project {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .project-title>p {
    margin: 0;
    line-height: 1.4;
    column-gap: 10px;
  }

  .project-img,
  .img-closer {
    flex-shrink: 0;
    width: auto;
    margin: 0;
    padding: 0;
    scroll-snap-align: center;
  }

  .project .description {
    width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
  }

  .bigger .project-img figure,
  .closer .img-closer figure {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    cursor: pointer;
  }

  .bigger .project-img figure img,
  .closer .img-closer figure img {
    display: block;
    height: 400px;
    width: auto;
    object-fit: contain;
  }

  .bigger .project-img figure audio,
  .closer .img-closer figure audio {
    display: block;
    height: auto;
    width: 100%;
    margin-top: 10px;
    object-fit: none;
    padding-left: 15px;
  }

  .mobile-caption {
    display: block;
    -webkit-text-size-adjust: none;
    /* Pour Safari iOS */
    -moz-text-size-adjust: none;
    /* Pour Firefox */
    text-size-adjust: none;
  }

  .bigger .project-img figcaption,
  .closer .img-closer figcaption {

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    position: absolute;
    bottom: 0;
    top: 0;

    background-color: rgba(255, 255, 255, 0.7);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    max-height: 100%;
    height: 100%;

    z-index: 10;
  }

  .bigger .project-img figcaption p,
  .closer .img-closer figcaption p {

    position: relative;
    width: 60%;

    min-width: 80%;
    max-width: 80%;

    margin: 0 auto 20px auto;
    padding: 15px;
    box-sizing: border-box;

    text-align: center;
    font-size: 0.75em;
    color: rgb(19, 17, 43);

    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;

    z-index: 20;
  }

  .bigger .project-img figure.active figcaption,
  .closer .img-closer figure.active figcaption {
    opacity: 1;
    visibility: visible;
  }

  .texte-closer {
    flex-shrink: 0;
    scroll-snap-align: center;
    margin-left: 0;
    width: 300px;

    flex-direction: column;
    flex-wrap: nowrap;

    padding-top: 0;
    padding-right: 10px;
    padding-left: 10px;
  }


  /* --- PAGE CONTACT --- */

  .contact-text {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    min-height: auto;
    order: -1;
    padding: 0 20px 0 20px;
    border: none;
  }


  /* --- PAGE À PROPOs --- */

  .about {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-y: auto;
    padding: 0 20px 40px 20px;
    order: -1;
    border: none;
    height: auto;
    min-height: auto;
    max-height: none;
  }

}

/*  //// 480px //// */

@media only screen and (max-width: 480px) {


  /* --- GLOBAL --- */

  body {
    font-size: 0.72em;
  }


  /* --- NAV --- */

  nav {
    padding-bottom: 20px;
    gap: 20px 5px;
  }


  /* --- MAIN --- */

  .project .project-title {
    height: 75px;
  }

}
