.animated-gallery {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  max-width: 80vw;
  max-height: 80vh;
  overflow: hidden;
}

.animated-gallery img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  /* transition: opacity 0.5s ease; */
}

.animated-gallery img.active {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .animated-gallery {
    max-width: 90vw;
    max-height: 90vh;
  }
}

.project-name-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 !important;
}

.project-name-list-item {
  cursor: pointer;
  list-style-type: none;
  font-size: 24px;
  font-family: 'N27';
  font-weight: bold;
  position: relative;
  width: fit-content;
  margin-bottom: 20px;
}

.project-name-list-item a {
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  z-index: 3; /* Assure que le lien est au-dessus de l'image */
}

.project-name-list-item a:active {
  color: #000;
}

.project-name-list-item a:hover {
  color: #E6007E;
  transition: all 0.2s ease;
}

.project-name-list-item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #E6007E;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.project-name-list-item a:hover::after {
  transform: scaleX(1);
}

.project-image {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 35vw;
  max-width: 500px;
  opacity: 0; /* Masquer l'image par défaut */
  pointer-events: none;
  z-index: 1; /* Image en arrière-plan */
  transition: opacity 0.4s ease;
}

.mask-div {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #F8F8F6; /* Couleur du masque */
  z-index: 2; /* Masque au-dessus de l'image, mais sous le texte */
  transition: width 0.4s ease;
}

.project-name-list-item:nth-child(even) .mask-div {
  left: 0;
  right: auto;
  width: 100%; /* Div masque couvre l'image entièrement */
}

.project-name-list-item:nth-child(odd) .mask-div {
  right: 0;
  left: auto;
  width: 100%; /* Div masque commence à droite pour les éléments impairs */
}

.project-name-list-item:nth-child(odd) a:hover + .project-image .mask-div {
  width: 0; /* Transition vers la droite pour les éléments impairs */
}

.project-name-list-item a:hover + .project-image .mask-div {
  width: 0; /* Révéler l'image */
}

.project-name-list-item a:hover + .project-image {
  opacity: 1; /* Faire apparaître l'image au hover */
}

@media screen and (min-width: 768px) {
  .project-image {
    display: block;
  }
}

.project-name-list-item:nth-child(even) .project-image {
  right: 33px;
  left: auto; /* Ajout de cette ligne */
}

.project-name-list-item:nth-child(odd) .project-image {
  left: 33px;
  right: auto; /* Ajout de cette ligne */
}


.back-to-top {
  position: fixed;
  bottom: 20px !important;
  left: 10px;
  height: 100px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transition: all 0.2s ease;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.back-to-top svg {
  height: 100px;
}

@media (min-width: 768px) {
  .back-to-top {
    left: 20px;
    bottom: 20px;
    height: 195px;
  }

  .back-to-top svg {
    height: 195px;
  }
}

.back-to-top:hover {
  transform: scale(1.1) translateY(-5%);
  transition: all 0.2s ease;
}

.back-to-top:hover path {
  stroke: #E6007E;
  transition: all 0.2s ease;
}

.back-to-top path {
  transition: all 0.2s ease;
}

.go-to-project {
  cursor: pointer;
  transition: all 0.2s ease;
}

.go-to-project:hover path {
  stroke: #E6007E;
  transition: all 0.2s ease;
}

.go-to-project path {
  transition: all 0.2s ease;
}

.go-to-project svg {
  transition: all 0.2s ease;
}

.go-to-project:hover svg {
  transform: scale(1.1) translateY(5%);
  transition: all 0.2s ease;
}

div[data-elementor-type="header"] {
  height: 0;
  transition: all 0.2s ease;
}

.menu-item .elementor-item-active {
  color: #E6007E !important;
}

.menu-item .elementor-item-active::after {
  content: '';
  position: absolute;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 2px !important; /* Épaisseur de la ligne */
  background: #E6007E;
  transform: scaleX(1); /* Commence à 0 */
  transition: transform 0.2s ease; /* Animation de la transformation */
}

.menu-item .elementor-item:hover {
  color: #E6007E;
  transition: all 0.2s ease;
}

.elementor-heading-title a:hover {
  color: #E6007E;
  transition: all 0.2s ease;
}

.menu-item a::after, .elementor-heading-title a::after {
  content: '';
  position: absolute;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 2px !important; /* Épaisseur de la ligne */
  background: #E6007E;
  transform: scaleX(0); /* Commence à 0 */
  transition: transform 0.2s ease; /* Animation de la transformation */
}

.menu-item a:hover::after {
  transform: scaleX(1) !important; /* Remplit la largeur au survol */
}

.elementor-heading-title a:hover::after {
  transform: scaleX(1) !important; /* Remplit la largeur au survol */
}

.elementor-heading-title a:hover {
  color: #E6007E !important;
  transition: all 0.2s ease;
}

.elementor-heading-title a {
  transition: all 0.2s ease;
  position: relative;
}

.gallery-item .gallery-icon {
  position: relative;
  overflow: hidden;
}

.gallery-item .gallery-icon::after {
  content: '';
  position: absolute;
  bottom: var(--after-bottom, 0%);
  top: var(--after-top, 0%);
  left: var(--after-left, 0%);
  right: var(--after-right, 0%);
  height: var(--after-height, 0%);
  width: var(--after-width, 0%);
  background-color: #E6007E;
  z-index: 1;
}

.gallery-item .gallery-icon img {
  position: relative;
  z-index: 0;
  opacity: 0; /* Définir l'opacité initiale à 0 */
  transition: opacity 0.3s ease;
}

.fade-in-project-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in, .project-title, .project-description-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.left-fade-in {
  opacity: 0;
  transform: translateX(-1000px);
  transition: opacity 0.6s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.left-fade-in-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-fade-in {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.6s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-fade-in-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.elementor-motion-effects-parent {
  display: none;
}

.header-container {
  transform: translateY(-100%);
  transition: transform 0.6s ease-out 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-container-visible {
  transform: translateY(0) !important;
  z-index: 999 !important;
}

/* Loader styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Assure que c'est au-dessus de tout */
  transition: opacity 1s ease, transform 1s ease;
}

#loader-content h1 {
  font-size: 3rem;
  color: #000;
}

/* Masquer le loader après animation */
#loader.fade-out {
  opacity: 0;
  pointer-events: none; /* Évite toute interaction pendant la disparition */
}

#loader.slide-down {
  transform: translateY(100vh); /* Descend l'élément hors de l'écran */
  pointer-events: none;
}

/* #loader-title {
  color: #E6007E !important;
  font-size: 64px !important;
  font-family: 'N27' !important;
  font-weight: bold !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  line-height: 2rem !important;
}

.char {
  transform: translateX(115px) !important;
  transition: transform .5s !important;
} */

.title .char {
  opacity: 1;
}

.img-container {
  position: relative !important;
  overflow: hidden !important;
}

.mask-img {
  position: absolute !important;
  height: 100% !important;
  width: 100% !important;
  background-color: rgba(255, 255, 255, 1); /* Tu peux changer la couleur ici */
  z-index: 2 !important; /* S'assurer que le masque est devant l'image */
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cursor * {
  z-index: 1000 !important;
}

.custom-gallery {
  display: flex;
  flex-direction: column;
}

.gallery-item {
  margin-bottom: 20px; /* Ajustez selon vos besoins */
}

#loading-screen {
  height: 100vh;
  width: 100vw;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#loading-screen-title {
  overflow: hidden;
}

#loading-screen-title * {
  font-size: 6vw !important;
}

@media screen and (min-width: 1366px) {
  #loading-screen-title * {
    font-size: 64px !important;
  }
}


.header-mobile-container {
  position: fixed;
  z-index: 0;
  top: 0px;
  left: 0;
  height: 0;
  width: 100vw;
  background-color: #fff;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-mobile-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 96px;
}

.header-mobile-content nav ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
  color: #000;
  font-family: 'N27';
  font-weight: bold;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.header-mobile-container nav ul li a {
  color: #000;
  text-decoration: none;
}

.header-mobile-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.header-mobile-bottom span {
  color: #000;
  text-decoration: none;
  font-family: 'N27';
  font-weight: bold;
  font-size: 16px;
	text-transform: uppercase;
}

.header-mobile-bottom-newsletter {
  padding: 4px 8px;
  border: 1px solid #000;
}
