* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --padding-global: 40px;
  --color-grey: #d1d1d1;
  --padding-top-global: 5.2rem;
}
@media all and (max-width: 414px) {
  :root {
    --padding-global: 20px;
  }
}

html {
  font-family: "neue-haas-unica", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  background-color: white;
}

li {
  list-style: none;
}

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

h1, h2, h3 {
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
}

img {
  vertical-align: middle;
}

/* Header */

header {
  font-size: 1.1rem;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px var(--padding-global) 1.5rem var(--padding-global);
  z-index: 100;
}

header .project-title-mobile {
  display: none;
}

/* Footer */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  font-size: 0.7rem;
  padding: 0.6rem var(--padding-global);
}

/* Pages */

.page-template {
  display: grid;
  grid-template-columns:max-content 1fr;
  padding: 0 var(--padding-global);
}

nav {
  padding-top: var(--padding-top-global);
  font-size: 1.1rem;
  line-height: 1.7rem;
  text-transform: uppercase;
  padding-right: 4rem;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav ul {
  padding-bottom: 2rem;
}

nav li {
  white-space: nowrap;
}

nav li a {
  display: inline-block;
}

.nav-home a.inactive {
  color: var(--color-grey);
}

.nav-project a {
  color: var(--color-grey);
}

.nav-project h1 a {
  color: inherit;
}

.nav-project a:hover {
  color: inherit;
}

.project-infos {
  padding-top: var(--padding-top-global);
  font-size: 0.8rem;
  margin-right: 4rem;
  min-width: 15rem;
  max-width: 15rem;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
}

.project-infos li {
  padding-bottom: 0.7rem;
}

.project-infos--project li a {
  text-decoration: underline;
}

.project-infos .title {
  text-transform: uppercase;
}

.project-infos--home {
  display: none;
}

.project-infos--home.active {
  display: block;
}

.project-infos--infos {
  min-width: 0;
  max-width: 30rem;
}

.project-infos--infos-infos {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-infos--infos > div {
  padding-bottom: 3rem;
}

.project-infos--infos p {
  padding-bottom: 0.8rem;
}

.project-infos--infos a {
  text-decoration: underline;
}

.infos-images {
  display: flex;
  width: 100%;
  min-width:0
}

#image-info .text {
  opacity: 0; /* Commence invisible */
}

#image-info .text.animate {
  animation: blink 0.5s steps(1, end) 1 forwards; /* Une seule répétition, et reste dans l'état final */
}

@keyframes blink {
  0% {
    opacity: 0; /* Invisible */
  }
  33% {
    opacity: 1; /* Visible */
  }
  66% {
    opacity: 0; /* Invisible */
  }
  100% {
    opacity: 1; /* Visible à la fin */
  }
}

.project-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 40px;
  padding-top: var(--padding-top-global);
  width: 100%;
}

.project-images img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  margin-bottom: 15vh;
}
  
@media all and (max-width: 1280px) {
  .infos-images {
    display: block;
  }
  .project-infos {
    position: static;
  }
  #image-info .title {
    display: none;
  }
  #image-info .text {
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: white;
    margin-left: 40px;
    padding: 0.5rem 40px 0.5rem 1rem;
    border-left: 0.07rem solid black;
    border-top: 0.07rem solid black;
    text-align: right;
    z-index: 1000;
  }
  #image-info .text {
    opacity: 1;
  }
  #image-info .text.animate {
    animation: blink 0s steps(1, end) 1 forwards; /* Une seule répétition, et reste dans l'état final */
  }
}
@media all and (max-width: 800px) {
  header .project-title-mobile {
    display: block;
  }
  .page-template {
    display: block;
  }
  .nav-home a.inactive {
    color: black;
  }
  .project-infos--home.active {
    display: none;
  }
  .nav-project {
    display: none;
  }
  .project-infos--project {
    padding-top: 7rem;
  }
  .project-infos--infos-infos {
    margin-right: 0;
  }
  .project-images {
    padding-right: 0;
  }
}
@media all and (max-width: 414px) {
  .project-images {
    padding-top: 3rem;
  }
  .project-images img {
    margin-bottom: 7vh;
  }
  #image-info .text {
    margin-left: 20px;
    padding-right: 20px;
  }
}