
#darahlam-questionnaire-container {
  font-family: sans-serif;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 2rem 1rem;
  background: transparent;
  position: relative;
 /*  overflow: hidden; */
}

.question {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: bold;
  /* display:none; */
}

.card-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  justify-items: center;  
  perspective: 1000px;
  position: relative;
  min-height: 280px;
}

.card {
  position: relative;
  opacity: 0;
  transform-origin: center bottom;
  width: 200px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateY(100px) scale(0.3);
  animation: flyIn 0.6s forwards ease-out;
}

.card img {
  display: block;
  width: 100%;
  border-radius: 12px;
  background: transparent;
}

.card[data-pos="0"] {
  transform: translate(0, 200px) scale(0.3);
  animation-delay: 0.2s;
}
.card[data-pos="1"] {
  transform: translate(0, 150px) scale(0.3);
  animation-delay: 0.35s;
}
.card[data-pos="2"] {
  transform: translate(0, 100px) scale(0.3);
  animation-delay: 0.5s;
  margin-top:-20px;
}
.card[data-pos="3"] {
  transform: translate(0, 150px) scale(0.3);
  animation-delay: 0.65s;
}
.card[data-pos="4"] {
  transform: translate(0, 200px) scale(0.3);
  animation-delay: 0.8s;
}

@keyframes flyIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


@keyframes dealCard {
  from {
    transform: translateY(300px) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1) rotate(var(--angle));
    opacity: 1;
  }
}

.card {
  cursor: pointer;
  transform: translateY(300px) scale(0.5) rotate(0deg);
  opacity: 0;
  animation: dealCard 0.8s ease-out forwards;
  animation-play-state: paused;
}

.card.visible {
  animation-play-state: running;
}

.card[data-pos="0"] { --angle: -15deg; animation-delay: 0.2s; }
.card[data-pos="1"] { --angle: -7.5deg; animation-delay: 0.4s; }
.card[data-pos="2"] { --angle: 0deg; animation-delay: 0.6s; }
.card[data-pos="3"] { --angle: 7.5deg; animation-delay: 0.8s; }
.card[data-pos="4"] { --angle: 15deg; animation-delay: 1s; }

/* Pour un effet plus bas sur les cartes aux extrémités */
.card[data-pos="0"],
.card[data-pos="4"] {
  margin-top: 50px;
}

.card img {
  transition: transform 0.35s cubic-bezier(.25,.1,.25,1.4), 
              box-shadow 0.35s ease;
}

.card:hover img {
  transform: translateY(-8px) scale(1.03);
 filter: drop-shadow(0 12px 18px rgba(0,0,0,.25));
  /* pour Safari anciens */
  -webkit-filter: drop-shadow(0 12px 18px rgba(0,0,0,.25));;
}
.question {
  font-size: 16px;
  margin-top: 2rem;
  color:#2788CB;
  font-weight: 600;
  letter-spacing:2px;
  opacity: 0;
  transform: translateY(20px);
}

.question.slide-up {
  animation: fadeSlideIn 2s ease-out forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.titreprofil {font-family:"Baskervville", Sans-serif;font-style:italic;font-weight:600;font-size:2rem;}
.texteprofil {font-family: "Inter", Sans-serif;font-size:0.9rem;letter-spacing:1px}
.imgprofil {max-width:500px!important;margin-top:40px;}

@media (max-width: 767px) {
	
.no-scroll {
    overflow-x: hidden !important; /* empêche le scroll natif */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }	

  .card-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto; /* ← obligatoire pour éviter les vibrations */
    gap: 1rem;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
  }
  
   /* Remise à plat de toutes les cartes */
  .card {
    transform: none !important;
	animation: none !important;
  }

  .card[data-pos="0"],
  .card[data-pos="1"],
  .card[data-pos="2"],
  .card[data-pos="3"],
  .card[data-pos="4"] {
    transform: none !important;
	margin-top:0!important;
  }

  /* Chaque carte occupe 70% de l’écran */
  .card {
    flex: 0 0 70%;
    scroll-snap-align: center;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .card:hover {
    transform: none !important;
  }
 
  .card.visible {
    transform: none !important;
  }
 .card.active {
    transform: scale(1.06) !important;
    z-index: 10;
	filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
  /* pour Safari anciens */
  -webkit-filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));;
  }
  

.card:hover img {
  
filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
  /* pour Safari anciens */
  -webkit-filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));;
}
  

  /* Les autres cartes légèrement réduites */
  .card:not(.active) {
    transform: scale(0.92) !important;
    opacity: 0.9;
  }

.card-img-wrapper {
    transform: none !important;
  }
  .card img {
    width: 100%;
    pointer-events: none;
  }
  
#darahlam-questionnaire-container.transition-out {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#darahlam-questionnaire-container.transition-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}




  /* cacher la scrollbar */
  .card-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  

  /* flèches */
  .carousel-nav {	 
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
	display:none;
  }

  .carousel-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
  }
 
.imgprofil {max-width:100%!important;margin-top:20px;} 

}









