html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body{
    background-color: #0f131a;
    scroll-behavior: smooth;
}

.rajdhani{
    font-family: 'Rajdhani', sans-serif;
}

.gilmer{
    font-family: 'Gilmer', sans-serif;
}

.inter{
    font-family: "Inter", sans-serif;
}

.animate-stack-slide {
    animation: stack-slide 6s 1.5s ease-in-out infinite;
}
  
.transition-stack-slide {
  transition: 1s;
}

.first {
    margin-top: 24px;
    justify-content: flex-end;
    animation-delay: 0s;
}

.second {
    justify-content: flex-start;
    animation-delay: 0.3s;
}

.third {
    margin-top: 24px;
    animation-delay: 0.9s;
}



@keyframes stack-slide {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px);
    }
    100% {
        transform: translateY(0);
    }
}
  
.animate-scroll-down{
    animation: scroll-down 1.8s 0s ease-in-out infinite;
}

@keyframes scroll-down {
    0% {
        transform: translateY(0);
        opacity: 1
    }
    50% {
        transform: translateY(15px)
    }
    80% {
        transform: translateY(0)
    }
    to {
        transform: translateY(0)
    }
}

.flexeur{
    flex: 1 1 400px;
}

.text-last-center {
    text-align-last: center;
}

.slider-viewport {
    width: 100%;
    height: 500px; /* Fixed height for viewport */
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    display: flex;
    flex-direction: column; /* Vertical orientation of slides */
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    height: 500px; /* Same height as viewport */
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* Ensure images don't overflow */
.slide img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}

/* Adjust height on mobile */
@media (max-width: 768px) {
    .slider-viewport, .slide {
        height: 800px; /* Larger height for mobile */
    }
}

input[type="file"] {
    background-color: #1d1f25;
    color: #eff0f3;
    border-radius: 5px;
    padding: 0px;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    width: 100%;
  }
  
/* Changer la couleur du texte "Aucun fichier choisi" */
input[type="file"]::file-selector-button {
  background-color: #145C9E;
  color: #eff0f3;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  margin-right: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s;
}

input[type="file"]::file-selector-button:hover {
  background-color: #1E3A5F;
}
.project-modal-container {
  position: fixed;
  z-index: 20;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal-container.show {
  visibility: visible;
  opacity: 1;
}

.project-modal-content {
  background-color: #1d1f25;
  min-height: 70vh;
  max-height: 90vh;
  padding: 30px;
  overflow-x: hidden;
  border-radius: 15px;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  padding-top: 50px;
  position: relative;
  overflow: auto;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.project-modal-container.show .project-modal-content {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 1024px) {
  .project-modal-content {
    flex-direction: row;
    justify-content: space-around;
    width: 70%;
  }
}
.no-scroll{
  scrollbar-width: none;
}
#toast-success {
    animation: toastSuccess 0.5s ease 4.5s forwards;
}

@keyframes toastSuccess {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}


.card {
    opacity: 0;
    transform: translateX(-300px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.card.show {
    opacity: 1;
    transform: translateX(0);
}

.card.exit {
    opacity: 0;
    transform: translateX(300px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.project-card {
    opacity: 0;
    transform: translateX(-300px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.project-card.show {
    opacity: 1;
    transform: translateX(0);
}

.project-card.exit {
    opacity: 0;
    transform: translateX(300px);
    transition: opacity 500ms ease, transform 500ms ease;
}
@media screen and (max-width: 639px) {
    /* Réduire le décalage initial pour les titres sur mobile */
    h3.card, h5.card {
        transform: translateX(-60px); /* Valeur plus petite pour éviter qu'ils sortent du viewport */
    }
    
    /* Animation d'apparition */
    h3.card.show, h5.card.show {
        transform: translateX(0);
        opacity: 1;
    }
}

@media screen and (min-width: 640px) {
    .timeline-card {
        opacity: 0;
        transition: 500ms;
    }
    .timeline-card.timeline-left {
        transform: translateX(-100%);
    }
    
    .timeline-card.timeline-left.show {
        transform: translateX(-30px);
        opacity: 1;
    }
    
    .timeline-card.timeline-left.exit {
        transform: translateX(-230px);
        opacity: 0;
    }
    
    .timeline-card.timeline-right {
        transform: translateX(130px);
    }
    
    .timeline-card.timeline-right.show {
        transform: translateX(30px);
        opacity: 1;
    }
    
    .timeline-card.timeline-right.exit {
        transform: translateX(230px); 
        opacity: 0;
    }
}