body {}

.transition-img.case {
  width: calc(66.56vw - 3em);
  position: fixed;
  z-index: 1000;
  right: 1.5em;
  opacity: 0;
}

.transition-img.animate {
  top: 0 !important;
}


.transition-img {

  transition: all .6s ease-in-out;
  transition-property: left, top, width, height;
  position: fixed;
  z-index: 10;
  object-fit: cover;
  pointer-events: none;
}

.transition-img-project {
  position: fixed;
  z-index: 10;
  object-fit: cover;
  pointer-events: none;
}

.transition-img-project.animate-reverse {
  transition: left .4s ease-in-out, top .4s ease-in-out, width .4s ease-in-out, height .4s ease-in-out, opacity .3s ease-in-out;
  
}

.transition-img-target {
  width: calc(66.56vw - 3em) !important;
  height: auto !important;
  right: 1.5em !important;
  top: 0 !important;

  position: fixed;
  z-index: 999;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}



body[data-page="project"] .projet__content>div:not(.projet__media-intro),
body[data-page="project"] .projet__sticky-container {
  opacity: 0;
  transition: all .4s ease-in-out;
}


.fade-in .projet__content>div:not(.projet__media-intro),
.fade-in .projet__sticky-container {
  opacity: 1 !important;
  transition: all 1s ease-in-out;
}

.fade-out .projet__content>div:not(.projet__media-intro),
.fade-out .projet__sticky-container {
  opacity: 0 !important;
  transition: all .2s ease-in-out;
}


.fade-out .project__cursor-area{
  opacity: 0 !important;
  transition: none;
}


.fade-out .projet__media-intro {}

 main {
  transition: all .8s ease-in-out;
}


.fade-in-full main,
.fade-out-full main,
.fade-out-full .footer,
.fade-out-full .nav__wrapper,
body[data-page="home"].fade-intro main,
body[data-page="home"].fade-out main {
  opacity: 0 !important;
  transition: all .4s ease-in-out;
}

.fade-in-full main{
    transition: all 0s ease-in-out;
}


.works__list-container {
  transition: all .5s ease-in-out;
}

.no-fade .works__list-container {
  transition: opacity .5s ease-in-out;
}

/*-----------*/


.is--activ-switch {
  background-color: #000000;
  color: #FFFFFF;
}

/*Fluid responsive*/
html {
  font-size: 16px;
}

@media (min-width: 240px) {
  html {
    font-size: calc(16px + 0 * ((100vw - 240px) / 239));
  }
}

@media (min-width: 768px) {
  html {
    font-size: calc(16px + 0 * ((100vw - 768px) / 223));
  }
}

@media (min-width: 992px) {
  html {
    font-size: calc(16px * ((100vw - 992px) / 608));
  }

  /*html {font-size: calc(9.39px + 6.61 * ((100vw - 992px) / 608));}*/
}

@media (min-width: 1600px) {
  html {
    font-size: 16px;
  }
}


/* Reset */
body {
  overscroll-behavior: none;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-img="render"] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

::selection {
  background: #000000;
  color: #FFFFFF;
  text-shadow: none;
}

input,
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  background-image: none;
}

/*Smarter line-height*/
* {
  line-height: calc(1em + 0.5rem);
}


/*Style du slider swiper js boutons et pastilles*/
.swiper-prev.is-disabled {
  opacity: 0.2;
  pointer-events: none;
}

.swiper-next.is-disabled {
  opacity: 0.2;
  pointer-events: none;
}

.swiper-bullet.swiper-pagination-bullet-active {
  background-color: black;
}


/*Class pour masquer un élément*/
.is-hidden {
  display: none;
  opacity: 0;
}


/*Style de navigation custom*/
[button-contact-bg="white"] {
  background-color: #FFFFFF;
}



/*Stylesheet de Lenis Scroll*/
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}




/*Style pour un player video custom avec bouton et timeline*/

/* Conteneur vidéo */
.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Définir un ratio fixe pour le conteneur si nécessaire */
  aspect-ratio: 16/9;
  /* Décommentez et ajustez selon vos besoins */
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Force l'image à couvrir tout l'espace */
  object-position: center;
  /* Centre l'image */
}

video[poster] {
  object-fit: cover !important;
  object-position: center !important;
  height: 100% !important;
}

/* Bouton de lecture */
.custom-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

/* Icône de lecture */
.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

/* Icône de pause */
.pause-icon {
  width: 25px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  display: none;
}

.pause-bar-left,
.pause-bar-right {
  position: static;
  width: 6px;
  height: 30px;
  background-color: #fff;
  border-radius: 2px;
  margin: 0 3px;
}

.pause-bar-left {
  left: 5px;
}

.pause-bar-right {
  right: 5px;
}


/* Timeline */
.timeline-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

/* Barre de progression */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #ffd910;
  border-radius: 4px;
  width: 0%;
  z-index: 2;
  opacity: 1;
  transition: width 0.1s linear;
}

/* États */
.custom-play-button.hidden {
  opacity: 0;
}

.video-wrapper:hover .custom-play-button.hidden,
.video-wrapper:hover .timeline-container {
  opacity: 1;
}


/*Annuler le span qui bloque le clic sur le bouton de menu (animation gsap de déformation des lettres)*/
.button__text span {
  display: inline-block;
  pointer-events: none;
  transform-origin: center;
}

/*Force la scrollbar à rester visible quand on affiche le menu (bug décalage à l'affichage)*/
html {
  overflow-y: scroll;
}


.swiper.swiper__h-projet .swiper-slide {
  pointer-events: none;
}

.swiper.swiper__h-projet .swiper-slide.swiper-slide-active {
  pointer-events: auto;
}

.h-hero__cursor-wrapper {
  pointer-events: none;
}


.works__grid-item.w-dyn-item.item-small {
    display: none;
}