.projects { 
  width: 90vw;
  padding: 10vh 5vw 7vh 5vw;
  background: #fdfdfd;
  max-width: 100vw;
}

.projects > h1{
  font-size: 2.5rem;
  padding: 2vh 0;
  width: auto ;
  border-bottom: solid 1px #c3c3c3;
}

.projects-wrapper{
  display:flex;
  gap: 24px;
  width: 100%;
}


/* conteneur principal = contexte de positionnement */
.project-carousel-wrapper{
  position: relative;
  width: 60vw;
  height: 60vh;
  overflow: hidden;   
  background: #555 ;           /* masque l'image et l'overlay proprement */
}

.project-carousel-track{
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}


/* image plein cadre */
.project-carousel-image-wrapper{
   max-width: 100%;
   height: 100%;
   background-size: cover;
   background-position: center;
   position: relative;
   box-shadow:
        inset 0 150px 150px -40px rgba(0, 0, 0, 0.5),
        /* haut */
        inset 0 -260px 300px -20px rgba(0, 0, 0, 0.4);
}

.project-carousel-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* TEXTE collé en bas, au-dessus de l’overlay */
.project-carousel-text-wrapper{
  position:absolute; left:0; right:0; bottom:0;
  z-index: 2;
  padding: 20px 5%;
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6); /* boost lisibilité */
}

/* titres/paragraphes responsives */
.project-title{
  margin:0 0 6px 0;
  font-size: 2rem;
  line-height: 1.05;
}
.project-description{
  margin:0;
  font-size: 1rem;
  line-height: 1.35;
  max-width: 80vh;
}

.project-picker {
  display: flex;
  flex-direction: column;
  height: 60vh;       /* fixe la hauteur max */
  width: 30vw;
  overflow-y: scroll;   /* active le scroll vertical */
  padding-right: 8px; /* laisse de la place au scrollbar */
}
.project-picker::-webkit-scrollbar {
  width: 8px;               /* largeur */
}

.project-picker::-webkit-scrollbar-track {
  background: #f1f1f1;       /* fond */
  border-radius: 4px;
}

.project-picker::-webkit-scrollbar-thumb {
  background: #888;          /* couleur */
  border-radius: 4px;
}

.project-picker::-webkit-scrollbar-thumb:hover {
  background: #555;          /* couleur au hover */
}

.project-picker {
  scrollbar-width: thin;            /* "auto" | "thin" */
  scrollbar-color: #888 #f1f1f1;  
  overflow-x: hidden;  /* thumb | track */
}

.project-selected {
  background: #f0f0f0;
}

.select-project-item {
  display: flex;
  flex-direction: row;
  width: 100%;
  cursor: pointer;
  align-items: center;
  min-height: 15vh;
}

.project-item-image-wrapper{
    height: 75px;
    width: 75px;
    overflow: hidden;
}

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

.select-project-text-wrapper{
  margin: 0;
  padding: 0;
  width: 70%;
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  justify-content: center;
}

.project-carousel-wrapper .project-carousel-image-wrapper::after {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 70%);
  z-index: 1;
  pointer-events:none;
}


.select-project-name{
  margin: 0;
  padding: 10px 0;
  font-size: 1.4rem;
  font-family: "Glacial Light", sans-serif;
  font-weight: 500;
}

.select-project-description{
  margin: 0;
  padding: 0;
  font-size: 1rem;
}

.project-type-picker {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 25px 0;
  overflow-x: auto;
  align-items: center;
  justify-content: space-evenly;
}

.project-type-picker > a.project-type-picker-selected {
  font-family: "Glacial Light", sans-serif;
  border-bottom: solid 2px #555;
  font-weight: 600;
  font-size : 1.4rem;
  font-family: "Grand Cru Light", serif;
}
.project-type-picker > a {
  text-decoration: none;
  color: var(--body-text-color);
  font-size: 1.2rem;
  font-weight: 500;
  font-family: "Glacial Light", sans-serif;
  padding: 3px;
}


.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.7rem;
    border: none;
    outline: none;
    color: #fdfdfd;
    padding-top: 4px;
    background: transparent;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.3);
}

.nav-arrow.nav-left  { left: 20px; }
.nav-arrow.nav-right { right: 20px; }

.dots {
    margin-top: -15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d007b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    transform: scale(1.2);
    background: #ff4d00;
}

.no-data {
  font-size: 1.2rem;
  width: 100%;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media  screen and (max-width: 1024px) {



  .projects {
    width: 100vw;
    background: #fdfdfd;
    max-width: 90vw;
    min-height: 50vh;
    padding: 15vh 5vw;
  }

  .projects > h1{
    font-size: 3rem;
  }

  .project-carousel-wrapper {
    height: 50vh;
  }

  .project-picker {
    height: 50vh;
  }

  .projects-wrapper {
    padding: 0 0vw;
    min-height: 50vh;
    gap: 0;
  }

    .select-project-item{
      padding-left: 10px;
      min-height: 10vh;
    }
  .select-project-name {
    font-size: 0.9rem;
    padding: 0;
  }
  .select-project-description {
    font-size: 0.7rem;
   padding: 0;
   margin: 0;
 }


  .project-item-image-wrapper {
    height: 50px;
    width: 50px;
  }

  .project-type-picker-list {
    display: flex;
    flex-direction: column;
    width: 200px;
    padding: 4vh 10vw;

  }

  .project-type-picker-list > span {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px #181818;
    font-size: 1.7rem;
  }

  .arrow {
    transition: transform 0.5s ease; /* Animation fluide */
  }

  .arrow.rotate {
    transform: rotate(-180deg); /* 180° sens anti-horaire */
  }

  .project-type-picker-list-dropdown{
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 10;
    margin-top: 40px;
    background-color: #fdfdfd;
    width: 150px;
     box-shadow: 0 2px 6px rgba(0,0,0,0.15);
     width: 200px;
  }

  .project-type-picker-list-dropdown a {
    padding: 10px;
    font-size: 1.7rem;
    
  }

  .project-type-picker-list-dropdown a:hover {
    background-color: #f0f0f0;
  }

  .project-type-picker-list-dropdown >a:visited{
    color: #181818;
  }
  
}

@media screen and (max-width: 768px) {
.projects {
    width: 100vw;
    background: #fdfdfd;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    padding-top: 10vh;
  }

  .projects >h1 {
    font-size: 1.6rem;
    padding: 1vh 2vw;
  }

  .projects-wrapper {
    padding: 0 0vw;
     gap: 0;
   }  

  .project-carousel-wrapper {
    width : 100vw;
    height: 50vh;
  }

  .project-picker {
    width: 100vw;
    padding: 0;
  }

  .select-project-item {
    width: 94vw;
    padding: 0 5vw;
    min-height: 10vh;

  }

  .project-item-image-wrapper {
    height: 50px;
    width: 50px;
  }

  .select-project-name {
    font-size: 0.9rem;
    padding: 0;
  }

  .select-project-description {
    font-size: 0.7rem;
   padding: 0;
   margin: 0;
 }

  .projects-wrapper {
    padding: 0 0vw;
    flex-direction: column;
    min-height: 78vh;
    width: 100vw;
  }

  .project-type-picker-list {
    display: flex;
    flex-direction: column;
    width: 150px;
    padding: 2vh 10vw;
  }

  .project-type-picker-list > span {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px #181818;
    font-size: 1.2rem;
  }

  .arrow {
    transition: transform 0.5s ease; /* Animation fluide */
  }

  .arrow.rotate {
    transform: rotate(-180deg); /* 180° sens anti-horaire */
  }

  .project-type-picker-list-dropdown{
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 10;
    margin-top: 25px;
    background-color: #fdfdfd;
    width: 150px;
     box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .project-type-picker-list-dropdown a {
    padding: 10px;
    font-size: 1.1rem;
  }

  .project-type-picker-list-dropdown a:hover {
    background-color: #f0f0f0;
  }

  .project-type-picker-list-dropdown:visited{
    color: var(--body-text-color);
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.8rem;
    line-height: 0.8rem;
  }
}  

@media screen and (max-width: 450px) {
  .projects {
    width: 100vw;
    background: #fdfdfd;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    padding-top: 10vh;
  }

  .projects >h1 {
    font-size: 1.6rem;
    padding: 1vh 2vw;
  }

  .projects-wrapper {
    padding: 0 0vw;
     gap: 0;
   }  

  .project-carousel-wrapper {
    width : 100vw;
    height: 40vh;
  }

  .project-picker {
    width: 100vw;
    padding: 0;
  }

  .select-project-item {
    width: 94vw;
    padding: 0 5vw;
    min-height: 10vh;

  }

  .project-item-image-wrapper {
    height: 50px;
    width: 50px;
  }

  .select-project-name {
    font-size: 0.9rem;
    padding: 0;
  }

  .select-project-description {
    font-size: 0.7rem;
   padding: 0;
   margin: 0;
 }

  .projects-wrapper {
    padding: 0 0vw;
    flex-direction: column;
    min-height: 78vh;
    width: 100vw;
  }

  .project-type-picker-list {
    display: flex;
    flex-direction: column;
    width: 150px;
    padding: 2vh 10vw;
  }

  .project-type-picker-list > span {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px #181818;
    font-size: 1.2rem;
  }

  .arrow {
    transition: transform 0.5s ease; /* Animation fluide */
  }

  .arrow.rotate {
    transform: rotate(-180deg); /* 180° sens anti-horaire */
  }

  .project-type-picker-list-dropdown{
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 10;
    margin-top: 25px;
    background-color: #fdfdfd;
    width: 150px;
     box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .project-type-picker-list-dropdown a {
    padding: 10px;

  }

  .project-type-picker-list-dropdown a:hover {
    background-color: #f0f0f0;
  }

  .project-type-picker-list-dropdown:visited{
    color: var(--body-text-color);
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.8rem;
    line-height: 0.8rem;
  }
}
