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

@font-face {
  font-family: "Gaisyr";
  src: url("../font/ABCGaisyr-Light-Trial.woff2") format("woff2");
}
@font-face {
  font-family: "Gaisyr-IT";
  src: url("../font/ABCGaisyr-LightItalic-Trial.otf") format("opentype");
}

.lazyload {
  -webkit-filter: blur(20px);
  filter: blur(20px);
}

.lazyloading {
  -webkit-filter: blur(10px);
  filter: blur(10px);
}
.lazyloaded {
  filter: blur(0);
}
.it {
  font-family: Gaisyr-IT;
  display: flex;
  gap: 0.5rem;
}
.it > div {
  font-family: Gaisyr;
}

body {
  transition: 0.5s;
}
.loader {
  position: absolute;
  z-index: 99999999999;
  width: 100%;
  height: 100vh;
  background-color: #f6f5f1;
}
.loader > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56.5%);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 0.75vw;
}
.loader-logo > img {
  width: 50vw;
}
.subtext-loader {
  /* font-size: 1.85rem; */
  font-size: 2.75vw;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.loader.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loader-logo,
.subtext-loader span {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loader-logo.loaded,
.subtext-loader span.fade-in {
  opacity: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: fixed;
  width: 100%;
  height: 7.5rem; /* Assurez-vous que cette hauteur correspond à la hauteur réelle de votre navbar */
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(246, 245, 241, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
  mask-image: -webkit-gradient(
    linear,
    left 20%,
    left 100%,
    from(#000),
    to(transparent)
  );
  -webkit-mask-image: -webkit-gradient(
    linear,
    left 20%,
    left 100%,
    from(#000),
    to(transparent)
  );
}

.navbar-mob {
  display: none;
}

.navbar::before {
}
.navbar-links > a:last-of-type {
  padding-right: 1.25rem;
}

html {
  background: #f6f5f1;
  font-family: Gaisyr;
  font-feature-settings: "ss01";
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.2em;
  padding-right: 2rem;
  padding-left: 1.25rem;
  height: 2rem;
  padding-top: 5px;
  display: flex;
  align-items: center;
}

.navbar-links {
  display: flex;
  align-items: flex-start;
  flex-grow: 1;
  justify-content: space-between;
  height: 2rem;
  padding-top: 5px;
}

.navbar-links a {
  text-decoration: none;
  color: black;
  padding: 10px;
}

.spacer {
  flex-grow: 1;
}

.navbar-links a:hover {
  /* text-decoration: underline; */
  opacity: 0.3;
}

.index {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 0%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow: overlay;
  height: 100vh;
}

figure {
  width: 25%;
  margin-bottom: 2%;
  align-items: center;
  display: flex;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}

figure > div {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  cursor: pointer;
}

.index figure img {
  /* width: 100%; */
  width: 92.5%;
  max-height: 500px;
  object-fit: cover;
}

@media (max-width: 1200px) {
  figure {
    flex: 0 0 calc(33.33% - 20px); /* Adaptation pour trois colonnes avec moins de gap */
  }
}

@media (max-width: 800px) {
  figure {
    flex: 0 0 calc(50% - 15px); /* Deux colonnes */
  }
}

@media (max-width: 500px) {
  figure {
    flex: 0 0 100%; /* Une colonne sans gap nécessaire */
  }
}

.index figure {
  transition: 0.3s ease;
}

.index img {
  display: block;
  width: 100%;
  transition: 0.3s ease;
  filter: blur(0);
}

.index figure:hover img {
  filter: blur(0);
  opacity: 1;
}

.index:hover img {
  filter: blur(8px);
  opacity: 0.4;
}

.index figure:hover img {
  filter: blur(0) !important;
  opacity: 1 !important;
  transition: filter 0.4s ease;
}

.force {
  display: block !important;
}
#hover-title {
  pointer-events: none;
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 3rem;
  z-index: 10000;
  width: 100%;
  height: 10rem;
  background: rgba(246, 245, 241, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  bottom: 0;
  display: flex;
  align-items: center;
  -mask-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(#000),
    to(transparent)
  );
  -webkit-mask-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(#000),
    to(transparent)
  );
  transition: 0.3s ease;
}
.content > a:-webkit-any-link {
  text-decoration: none;
  opacity: 0.3;
}
#hover-title > div {
  padding-left: 1rem;
}
.content {
  margin-top: 7.25rem;
  margin-bottom: 1rem;
  /* width: 45%; */
  transition: 0.3s ease;
}

.content h1 {
  margin-bottom: 0.1rem;
}
.desc {
  margin-top: 1rem;
  line-height: 1.15rem;
  opacity: 0;
  width: 40%;
  transition: 0.3s ease;
}
.learn-more,
.learn-more > * {
  transition: 0.3s ease;
}
.learn-more {
  position: absolute;
  display: flex;
  gap: 0.5rem;
  bottom: -1rem;
}
.learn-more:hover {
  cursor: pointer;
  opacity: 0.4;
}
.learn-more img {
  width: 0.75rem;
  transform: rotate(-90deg);
}
#project-details {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(246, 245, 241, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  z-index: 9999;
  transition: 0.5s ease;
  filter: blur(0px);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}

#project-details {
  display: block; /* Assurez-vous que l'élément est toujours dans le flux de document */
  opacity: 0;
  pointer-events: none; /* Empêche les interactions de souris quand l'opacité est à 0 */
  transition: 0.5s ease; /* Animation d'opacité */
}

#project-details.visible {
  opacity: 1;
  pointer-events: auto; /* Empêche les interactions de souris quand l'opacité est à 0 */
}
#images-container.visible {
  filter: blur(0px);
}
.close {
  position: fixed;
  top: 2rem;
  background: transparent;
  right: 1rem;
  outline: none;
  border: none;
  cursor: pointer;
}
.close-desktop {
  position: fixed;
  top: 1rem;
  background: transparent;
  right: 1rem;
  outline: none;
  border: none;
  cursor: pointer;
}
.close img,
.close-desktop img {
  width: 1rem;
}

.prev-b,
.next-b {
  background: transparent;
  outline: none;
  border: none;
  width: 1rem;
}
.nav-up {
  bottom: 1rem !important;
}

.nav-project > button {
  border: none;
  background: transparent;
  cursor: pointer;
}
.prev-b {
  transform: rotate(-180deg);
}
.next-b {
}
.close {
  display: none;
}
#images-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: scroll;
  margin-top: 20px;
  cursor: pointer;
  /* filter: blur(100px); */
  transition: 0.5s ease; /* Animation d'opacité */
}

#images-container img {
  height: 85vh;
  min-height: 85vh;
  object-fit: contain;
  margin-bottom: 20px;
}
#images-container img:last-of-type {
  margin-bottom: 5rem;
}

figure :nth-child(1),
figure :nth-child(2),
figure :nth-child(3),
figure :nth-child(4) {
  /* margin-top: 5rem; */
}

.index figure:nth-of-type(-n + 4) {
  margin-top: 5rem;
}
.index figure:nth-last-of-type(-n + 4) {
  /* padding-bottom: 5rem; */
}

.nav-project {
  position: absolute;
  bottom: -2rem;
  right: 1.5rem;
  transition: 0.3s ease;
}
#prev-project {
  left: 10px;
}

#next-project {
  right: 10px;
}

.anim-b {
  filter: blur(100px) !important;
  transition: 0.5s ease-in-out;
}

.anim-d {
  -webkit-backdrop-filter: blur(50px) !important;
  backdrop-filter: blur(50px) !important;
  transition: 0.5s ease-in-out;
}
#prev-project:hover,
#next-project:hover {
  /* background: #555; */
}

.index-home {
  display: flex;
  overflow-x: auto;
}

.index-home figure {
  width: auto;
}

.index-home img {
  height: 100vh;
}
.index-home figure :nth-child(1),
figure :nth-child(2),
figure :nth-child(3),
figure :nth-child(4) {
  margin-top: auto;
}
.index-home figure {
  margin-bottom: auto;
}

.index-home a {
  display: block;
}
.index-home figure {
  transition: opacity 0.5s ease;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity, filter;
}
.index-home figure img {
  /* transform: scale(1.01); */
}

.index-home figure.active {
  opacity: 1; /* Opacité pleine pour l'image active */
}

footer {
  width: 100%;
  height: 10rem;
  background: rgba(246, 245, 241, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  bottom: 0;
  display: flex;
  z-index: 200;
  align-items: center;
  opacity: 1;
  -mask-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(#000),
    to(transparent)
  );
  -webkit-mask-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(#000),
    to(transparent)
  );
  align-items: flex-end;
}
footer div {
  padding-left: 1rem;
  padding-bottom: 1rem;
}
@keyframes jump {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes opa {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

@keyframes marge {
  0% {
    margin-left: 0px;
  }
  50% {
    margin-left: 3.5px;
  }
  100% {
    margin-left: 0px;
  }
}

.footer-button {
  animation-duration: 0.3s; /* Durée de l'animation */
  animation-timing-function: ease; /* Type d'animation pour un effet plus naturel */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-button img {
  height: 0.65rem;
}
.footer-button span {
  white-space: nowrap;
}
.footer-button a {
  color: black;
  text-decoration: none;
}
.about-images {
  position: relative;
  width: 70%;
  height: 100%;
  overflow: hidden;
}
form {
  display: inline;
  height: 1.5rem;
  border: 0.75px solid black;
}
.newsletter-section h3 {
  margin-bottom: 0.5rem;
}
.newsletter-section span {
  display: inline-block;
  margin-top: 0.5rem;
}
.newsletter-section input {
  pointer-events: auto;
  border: none;
  background: transparent;
  border-bottom: 0px;
  padding-left: 0.5rem;
}
.newsletter-section input:focus {
  outline: none;
}
.newsletter-section button {
  border-radius: 0px;
  border: 0px;
  margin-left: 0.5rem;
  border-left: 0.75px solid black;
  background: transparent;
}
.newsletter-section button:hover {
  cursor: pointer;
  opacity: 0.5;
}
#popup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000ae;
  z-index: 1000;
  pointer-events: auto;
}
#popup > div {
  display: flex;
  width: 30vw;
  justify-content: center;
  border-radius: 3px;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
}
.pu-image-container {
  width: 100%;
}
.pu-image-container button {
  border: none;
  background: none;
  top: 1rem;
  right: 1rem;
  position: fixed;
}
#popup span {
  background-color: #f6f5f1bd;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* padding: 1rem; */

  color: black;
}
#popup span > p {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  line-height: 1.15rem;
}
#popup span a {
  color: black;
}
#popup img {
  width: 100%;
}

.fade-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.fade-image.active {
  opacity: 1;
}

.about-container {
  display: flex;
  height: 100vh;
  z-index: 9;
  position: relative;
}
.about-container > .col:nth-child(2) > .sub-col:nth-child(2) {
  justify-content: space-between;
}
.about-container a {
  text-decoration: none;
  color: black;
}
.about-container a:hover {
  cursor: pointer;
  opacity: 0.3;
}

.col {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 5rem;
  padding-left: 1.25rem;
  padding-bottom: 1.25rem;
  word-wrap: break-word;
}
.sub-col {
  display: flex;
}
.col:nth-child(2) {
  padding-right: 1.25;
}

.desc a {
  color: black;
}
.about-ent {
  width: 80%;
}

.about-ent,
.contact-section,
.social-section {
  font-size: 1.2rem;
  line-height: 1.35rem;
  /* font-size: 1.5626rem; */
  /* line-height: 1.75rem; */
}
.about-ent h2,
.contact-section h3,
.social-section h3 {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.press-section,
.partnerships-section,
.teaching-section {
  width: 33.33%;
}
.newsletter-section {
  pointer-events: auto;
  padding-bottom: 3rem;
  left: 50%;
}
.press-section h3,
.partnerships-section h3,
.teaching-section h3 {
  margin-bottom: 0.75rem;
}

.contact-section {
  width: 66.66%;
}

.ressources-container {
  display: flex;
  /* height: 100vh; */
  z-index: 9;
  position: relative;
}

.ressources-container > .col:nth-child(1) {
  width: 35%;
}
.ressources-container > .col:nth-child(2) {
  width: 100%;
}

.ressources-container .item-content {
  /* display: none; */
  width: 100%;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.ressources-container .has-image .item-header {
  cursor: pointer;
}

.ressources-container > .col:nth-child(2) > div {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section {
  display: flex;
  margin-bottom: 1rem;
}

.section-header {
  display: flex;
  width: 10%;
  white-space: nowrap;
}

.section-header h2,
.section-date {
  width: 50%;
}

.item-content img {
  width: 0%; /* Initial width */
  transition: 0.3s ease;
  overflow: hidden; /* Keeps the content hidden when the width is 0 */
  padding-left: 35%;

  /* padding-top: 0.25rem; */
}
.add-m {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.75px;
}
.item-header {
  display: flex;
  cursor: pointer;
}
.item-date {
  width: 20%;
}
.desc-img {
  display: none;
  padding-left: 35%;
  transition: display 0.5s ease; /* Transition for display */
  margin-bottom: 1rem;
}
.title-section {
  font-size: 1.5626rem;
  top: 5rem;
  position: sticky;
  position: -webkit-sticky;
}

.title img {
  width: 0.75rem;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
}

.title > span {
  padding-left: 0.5rem;
}

.item-header a {
  text-decoration: none;
  color: black;
}
.dimmed {
  opacity: 0.4;
}
.opa {
  opacity: 1;
}

/* Classe pour gérer l'opacité pleine */
.highlighted {
  opacity: 1;
}

/* body {
  opacity: 1;
  filter: blur(100px);
  transition: opacity 0.5s ease, filter 0.5s ease;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}

body.fade-in {
  opacity: 1;
  filter: blur(0px); 
  transition: opacity 0.5s ease 0s, filter 0.5s ease 0s;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}

body.opa {
  opacity: 1;
  filter: blur(0px); 
  transition: opacity 0.5s ease, filter 0.5s ease 1.5s; 
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}

body.fade-out {
  opacity: 0;
  filter: blur(10px); 
  transition: opacity 0.5s ease, filter 0.5s ease;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
} */
