body {
  margin: 0em 1em 0em 1em;
  padding: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  position: relative;
  height: 100vh;
  cursor: default;
  font-weight: 400;
  font-family: sans-serif;
  break-inside: avoid;
  page-break-inside: avoid;
}

.no-scroll {
  overflow: hidden;
}

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

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

a:hover {
  text-decoration: none;
}

#mouse-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#container {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.text-item {
  position: absolute;
  font-size: 0.85em;
  padding: 0.75em;
  box-sizing: border-box;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  user-select: none;
  color: rgb(0, 0, 0);
  z-index: 1;
}

.no-image {
  color: rgb(175, 175, 175);
  background: repeating-linear-gradient(45deg, #fafafa 0px, #fafafa 10px, #f2f2f2 10px, #f2f2f2 20px);
  position: relative;
}

.recent {
  color: rgb(0, 0, 0);
  mix-blend-mode: multiply;
  border: solid 1px rgb(0, 0, 0);
  position: relative;
}

.hover-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

#hover-image-index {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  transform: translate(0, 0);
  opacity: 0;
  max-width: 400px;
  max-height: 400px;
  z-index: 1000;
  background-color: white;
}

#hover-image-homepage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  object-fit: contain;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

#hover-image-homepage::before {
  content: none !important;
}

.preload-image {
display: none;
}

.navbar {
  position: fixed;
  bottom: 0;
  height: 3em;
  left: 0.8em;
  width: calc(100% - 1.6em);
  font-size: 1.25em;
  z-index: 1000;
  pointer-events: none;
}

.navbar-grid {
  display: grid;
  grid-template-columns:  0.64fr 0.4fr 2.35fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
}

.navbar .col {
  pointer-events: auto;
}


.navbar .col :nth-child(3) {
  justify-content: right;
}


.last-col-group {
  grid-column: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#toggle-eye {
  bottom: auto;
  transform: none;
  width: 35px;
  height: 35px;
  border: 1.5px solid black;
  border-radius: 50%;
  background-color: white;
  position: relative;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  z-index: 1000;
  pointer-events: auto;
}

.pupil {
  width: 15px;
  height: 15px;
  background-color: black;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: top 0.1s, left 0.1s;
  display: none;
}

.eye-on .pupil {
  display: block;
}

.project-row {
  font-size: 0.80em;
  color: rgb(0, 0, 0);
  padding: 0.75em 0em;
  border-bottom: 1px solid rgb(0, 0, 0);
  transition: background-color 0.05s ease-in-out;
}

.project-row .col {
  word-break: break-word;
}

.project-row:last-child {
  margin: 3em;
  border-bottom: none;
  visibility: hidden;
}

.project-grid {
  display: grid;
  grid-template-columns: 0.64fr 0.4fr 2.35fr 0.75fr;
  gap: 2.5rem;
}

.project-titles {
  font-size: 0.70em;
  color: rgb(0, 0, 0);
  padding-bottom: 0.70em;
  margin-top: 3em;
  border-bottom: 1px solid rgb(0, 0, 0);
}

.year-spacing {
  padding: 1em 0.75em 0.75em 0em;
  display: grid;
  border-bottom: 1px solid rgb(0, 0, 0);
}

.project-row.no-image {
  color: rgb(175, 175, 175);
}

#container-index {
  visibility: visible;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

h1 {
  font-size: 2.75em;
  font-family: sans-serif;
  font-weight: 400;
  color: rgb(0, 0, 0);
  text-align: center;
}

h2 {
  font-size: 10em;
  font-family: sans-serif;
  font-weight: 400;
  color: rgb(0, 0, 0);
  text-align: center;
  top: 50%;
}


.alexis-grid {
  display: grid;
  grid-template-columns: 0.64fr 0.4fr 0.75fr 2.35fr;
  gap: 2.5rem;
}

.alexis-titles {
  font-size: 0.70em;
  color: rgb(0, 0, 0);
  padding-bottom: 0.70em;
  margin-top: 3em;
  border-bottom: 1px solid rgb(0, 0, 0);
}

.bouncing-popup {
  position: fixed;
  padding: 12px 16px;
  color: white;
  background: rgb(0, 0, 0);
  border-radius: 2em;
  border: 1px solid black;
  font-size: 0.85em;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
  z-index: 999;
  pointer-events: auto;
}

/* ====================================
   tablaaaaate (769px - 1024px)
   ==================================== */
@media (min-width: 769px) and (max-width: 1024px) {

  .navbar {
    font-size: 1.1em;
  }

  .navbar-grid {
    gap: 1.7rem;
    grid-template-columns: 0.55fr 0.4fr 1.75fr 0.6fr;

  }

  .project-grid {
    grid-template-columns: 0.55fr 0.4fr 1.75fr 0.6fr;
    gap: 1.7rem;
  }


  .alexis-grid {
    grid-template-columns: 0.55fr 0.4fr 0.6fr 1.75fr;
    gap: 1.7rem;
  }

  #hover-image-index {
    max-width: 350px;
    max-height: 350px;
  }

  h1 {
    font-size: 2.2em;
  }

  .text-item {
    font-size: 0.82em;
  }

  .project-titles,
  .alexis-titles {
    margin-top: 2em;
  }

  .project-row:last-child {
    margin: 2.5em;
  }

  #toggle-eye {
    display: none;
  }

  .pupil {
    display: none;
  }
}

/* ====================================
   mobile (< 768px)
   ==================================== */
@media (max-width: 768px) {
  body {
    font-size: 0.85em;
  }

  .only-desktop {
    display: none;
  }

  .navbar {
    background: none;
    height: 2.5em;
    font-size: 1.25em;
  }

  .navbar-grid {
    grid-template-columns: 1.5fr 0.6fr 0.7fr;
    background: none;
    gap: 0.5rem;
  }

  .navbar-grid > :nth-child(n+4) {
    display: none;
  }

  .project-grid {
    grid-template-columns: 1.5fr 0.6fr 0.7fr;
    gap: 0.5em;
  }

  .project-titles {
    margin-top: 1.5em;
    grid-template-columns: 1.5fr 0.6fr 0.7fr;
  }

  .project-titles > :nth-child(3) {
    display: none;
  }

  .year-spacing {
    padding: 1em 0.75em 0.75em 0em;
  }

  #hover-image-index {
    max-width: 85vw;
    max-height: 85vh;
  }

  .hover-image {
    max-width: 90vw;
    max-height: 90vh;
  }

  h1 {
    font-size: 1.35em;
    margin: 0.75em 0.25em;
  }

  .alexis-grid {
    grid-template-columns: 1.5fr 0.6fr 0.7fr;
    gap: 0.5em;
  }


  .alexis-grid > :nth-child(4) {
    display: none;
  }

  #popup-trail-canvas {
    display: none;
  }

  .bouncing-popup {
    display: none;
  }

  .text-item {
    font-size: 0.8em;
  }
}


/* accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pupil {
    transition: none !important;
  }
}