/* Fichier principal CSS pour MadeInT - Architecture d'intérieur */

/*#####################################*/
/* ##### Import des fichiers CSS ##### */
/*#####################################*/
@import url('reset.css');
@import url('variables.css');
@import url('typography.css');
@import url('components.css');
@import url('swiper.css');
@import url('utilities.css');



/* .grid-tailwind div:nth-child(1)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #d3d3d3;
  height: 100vh;
}

 */



/*#####################################*/
/* ########## LANDING PAGE ########### */
/*#####################################*/
.gallery-item {
  margin-bottom: 20px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  /* height: auto; */
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

section#biens-entiers, section#piece-unique, section#grands-espaces {
  overflow: hidden;
}

section#biens-entiers .gallery-item:first-child {
  margin-right: -200px;
}

section#biens-entiers .gallery-item:nth-child(2) {
  margin-right: -200px;
}

section#piece-unique .grid-tailwind div:nth-child(1) .gallery-item{ 
  margin-left: -200px;
}


section#piece-unique .grid-tailwind div:nth-child(3) .gallery-item{ 
  margin-right: -200px;
}


section#grands-espaces .gallery-item:nth-child(1) {
  margin-left: -200px;
}

section#apropos, section#partenaires {
  overflow: hidden;
}


/*#####################################*/
/* ########## HERO SECTION ########### */
/*#####################################*/ 
.hero-section{
  position: relative;
  height: 100vh;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  margin-bottom: 60px;
  overflow: hidden;
}

/* Styles pour les swiper déplacés vers swiper.css */

.hero-content {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}




/*#####################################*/
/* ########## PARTNERS SECTION ######## */
/*#####################################*/
.partners-section {
  background-color: var(--white);

  .partner-whiteBar {
    background: var(--white);
    position: absolute;
    height: 100%;
    width: 80vw;
    margin-left: -50vw;
  }

  .partners-header {
    position: relative;
    z-index: 5;
    width: fit-content;
    margin-left: -100vw;

    img{
      height: 120px;
      width: 200vw;
    }
  }


  .partners-wrapper {
    display: flex;
    gap: 8px;

   @media (max-width: 425px) {
    flex-direction: column;
    gap: 0px;
    }


  .partner-card {
    position: relative;
    overflow: hidden;
    height: 800px;
    transition: all 0.5s ease;
    flex: 1;

    @media (max-width: 425px) {
      aspect-ratio: 1;
    }

    .partner-bg {
      position: absolute;
      height: 100%;

      img {
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }
    }

    .partner-overlay {
      position: absolute;
      inset: 0;
      background-color: rgba(255, 255, 255, 0);
      transition: background-color 0.3s ease;
      opacity: 0;
    }

    .partner-content {
      position: absolute;
      inset: 0;
      display: flex;
      gap: 8px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: all 0.4s ease;
      text-align: center;

      h3 {
        @media (max-width: 425px) {
          font-size: 1.5rem;
        }
      }

    }

    &:hover {
      flex: 2;

      .partner-bg img {
        transform: scale(1.05);
      }

      .partner-overlay {
        background-color: rgba(255, 255, 255, 0.9);
        opacity: 1;
      }

      .partner-content {
        opacity: 1;
        transform: translateY(0);

      }

    }

   }
  }
}

/*#####################################*/
/* ########## ABOUT SECTION ########## */
/*#####################################*/
.about-section {
  background-color: var(--white);
}




/*#####################################*/
/* ########## PROJET PAGE ########## */
/*#####################################*/

section.projets-hero-section{
  position: relative;
  height: 80vh;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  margin-bottom: 60px;
  overflow: hidden;
}



section#projets-grands-espaces {
  padding: 80px 0;
  background-color: var(--blanc-casse);
  min-height: 500px;
  display: flex;
  align-items: center;

}



/*#####################################*/
/* ########## TEMPLATE PROJET ########## */
/*#####################################*/

.project-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 15%;
}

#project-gallery, #project-features, #project-description {
  img:not(.icon-arch img) {
    height: 80vh;
    width: 100%;
    object-fit: cover ;

    @media (max-width: 768px) {
      max-height: 500px;
    }
  } 
}
