/* ------------ RESET ------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
  transition: opacity 300ms ease;
}
a:hover {
  opacity: var(--uniform-opacity);
}
a:active {
  opacity: var(--uniform-opacity);
}
ul,
ol {
  list-style: none;
}
html {
  scroll-behavior: smooth;
}
/* ------------ VARIABLES ------------ */
:root {
  --nav-w: 280px; /* Largeur de la nav */
  --global-padding: 30px; /* Espace entre les menus et le conteneur principal */
  --gallery-padding: 100px; /* Espacement autour de l'image principale */
  --nav-spacing: 20px; /* Espacement entre éléments spéciaux de la nav*/
  --uniform-opacity: 0.4; /* Opacité des éléments actifs, survolés ou secondaires */
  --uniform-duration: 0.4s; /* Durée des animations */
}
/* ------------ BODY ------------ */
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-family: "Univers Next W02 Light", Arial;
  font-style: normal;
  font-size: 75%;
  line-height: 1.6em;
  color: #000;
  background-color: #fff;
}
body.initial-load {
  overflow: hidden;
}
body.initial-load::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 8888;
  opacity: 1;
  transition: opacity var(--uniform-duration) ease-out;
}
body.fade-out-overlay::before {
  opacity: 0;
}
/* ------------ LOADER ------------ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--uniform-duration) ease-in-out,
    visibility var(--uniform-duration) ease-in-out;
}
.loader.active {
  opacity: 1;
  visibility: visible;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  font-family: "Univers Next W02 Light", Arial;
  line-height: 1.6em;
  display: flex;
  flex-direction: column;
  gap: 0px;
  opacity: 1;
  transition: opacity var(--uniform-duration) ease-out;
}
.loader-content.fade-out {
  opacity: 0;
}
.loader-status {
  text-align: left;
  transition: opacity var(--uniform-duration) ease-in-out;
}
.loader-progress-container {
  display: flex;
  align-items: center;
  gap: 15px; /* Espacement entre la barre et le pourcentage */
}
.loader-progress {
  width: 200px;
  height: 2px;
  background-color: #e8e8e8;
  overflow: hidden;
}
.loader-progress-bar {
  height: 100%;
  background-color: #000;
  width: 0%;
  transition: width 0.3s ease;
}
.loader-percentage {
  min-width: 35px;
  text-align: left;
}
/* ------------ NAVIGATION ------------ */
nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  flex-direction: column;
  height: 100dvh;
  width: var(--nav-w);
  padding: var(--global-padding);
  justify-content: space-between;
  background-color: white;
  overflow-y: auto;
  opacity: 0; /* Masquée initialement pour éviter le flash au loader */
  visibility: hidden; /* Masquée initialement pour éviter le flash au loader */
  pointer-events: none;
}
body:not(.initial-load) nav {
  opacity: 1; /* Afficher après loader */
  visibility: visible; /* Afficher après loader */
  pointer-events: auto;
}
nav .title {
  display: block;
  text-transform: uppercase;
}
li.new-section {
  display: block;
  margin-top: var(--nav-spacing);
}
.nav-buttons {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-transform: uppercase;
}
.bottom-nav {
  display: none; /* Important pour afficher uniquement sur les pages de type galerie */
}
.bottom-nav.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.grid-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-top: -2px;
}
img[src*="grid.png"] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  width: 24px;
  height: 24px;
}
.active {
  font-family: "Univers Next W05 Medium", Arial;
}
.swiper-counter {
  opacity: var(--uniform-opacity);
}
.caption {
  margin-bottom: var(--nav-spacing);
}
.swiper-button-prev,
.swiper-button-next {
  cursor: pointer;
  transition: opacity var(--uniform-duration) ease;
  font-weight: 400;
  font-style: normal;
  color: #000;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: var(--uniform-opacity);
}
/* ------------ MAIN ------------ */
main {
  margin-left: var(--nav-w);
  min-height: 100dvh;
  opacity: 1; /* Afficher après loader */
  visibility: visible; /* Afficher après loader */
  pointer-events: auto;
}
main.not-visible {
  opacity: 0; /* Masquée initialement pour éviter le flash au loader */
  visibility: hidden; /* Masquée initialement pour éviter le flash au loader */
  pointer-events: none;
}
.gallery {
  flex: 1; /* Le swiper occupe tout l'espace du main */
  padding: var(--gallery-padding);
  width: 100%;
  height: 100dvh;
  max-height: 100%;
}
.swiper {
  width: 100%;
  height: 100%;
  max-height: 100%;
  transition: opacity var(--uniform-duration) ease;
}
.swiper.scrolled {
  opacity: var(--uniform-opacity);
}
.swiper-wrapper {
  height: 100%;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  flex-shrink: 0; /* Evite que le slide soit compressé */
  opacity: 0; /* Masquer de base pour éviter de voir les slides clonés pour la loop */
}
.swiper-slide.swiper-slide-active {
  opacity: 1; /* N'affiche que le premier slide au chargement de la page */
}
.swiper-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(1440px, 100%); /* ne dépasse ni le conteneur, ni 1440px */
}
.text-content {
  width: 650px;
  height: 100dvh;
  padding-left: var(--global-padding);
  padding-top: 70px;
}
p.new-p {
  margin-top: 30px;
}
.exhibitions td {
  padding-right: 20px;
}
.paragraph-title {
  font-family: "Univers Next W05 Medium", Arial;
}
.separation {
  display: block;
  width: 100%;
  height: 1px;
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 8px 0 8px 0;
}
.gallery-title {
  font-family: "Univers Next W05 Medium", Arial;
  border-top: 1px solid #e8e8e8;
  margin: 0 50px 0 50px;
  text-align: left;
  padding: 8px 0 0 0;
}
.gallery-title.not-scrolled {
  opacity: var(--uniform-opacity);
}
.thumbnails {
  padding: 25px 50px 50px 50px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 50px;
  align-content: start;
  transition: opacity var(--uniform-duration) ease;
}
.thumbnails.not-scrolled {
  opacity: var(--uniform-opacity);
}
.thumbnail-item {
  position: relative;
  width: 100%;
  cursor: pointer;
}
.thumbnail-image {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow-clip-margin: unset;
  overflow: visible;
  display: block;
  transition: opacity var(--uniform-duration) ease;
}
.thumbnail-item:hover img {
  opacity: var(--uniform-opacity);
}
.thumbnail-item.is-active img {
  opacity: var(--uniform-opacity);
}
.thumbnail-caption {
  padding-top: 8px;
  text-align: left;
  word-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
  min-height: 24px; /* Assure une hauteur minimale */
}
