.gallery-container {
  width: 100%;
  height: 500px;
  display: flex;
  overflow: hidden;
  gap: 15px;
  padding: 20px;
}
.gallery-container1 {
  width: 100%;
  /* height: 300px; */
  display: flex;
  overflow: hidden;
  /* gap: 15px; */
  /* padding: 20px; */
}

.gallery-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  transition: all 0.5s ease;
  cursor: pointer;
}
.gallery-item1 {
  flex: 1;
  background-size: cover;
  background-position: center;
  /* border-radius: 10px; */
  transition: all 0.5s ease;
  cursor: pointer;
}

/* When hovered, the image grows */
.gallery-item.active, .gallery-item1.active {
  flex: 4;
}

/* When not hovered, other images shrink */
.gallery-container:hover .gallery-item:not(.active) {
  flex: 0.7;
  filter: blur(2px);
  opacity: 0.6;
}
.gallery-container1:hover .gallery-item1:not(.active) {
  flex: 0.7;
  filter: blur(2px);
  opacity: 0.6;
}



/* Container layout */
.gallery {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  gap: 20px;
  /* background: #e4e7ed; */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Each image card */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 420px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Image */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Zoom on hover */
.gallery-item:hover img {
  transform: scale(1.12);
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Text */
.overlay p {
  color: rgb(239, 239, 239);
  font-size: 20px;
  font-weight: 600;
}





.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: rgb(239, 239, 239);
  font-family: "Inter", sans-serif;
}

/* Background video */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 40%, rgba(255,255,255,0.4) 85%);
  z-index: 2;
}

/* Header */
.hero-header {
  position: absolute;
  top: 20px;
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}
.logo {
  font-size: 40px;
}
.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.burger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
}
/* Center content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  padding: 0 20px;
  width: 100%;
}







.bg-navBar{
   background-color: rgba(0, 0, 0, 0.495) !important;
}
/* Assure que la navbar reste en haut et visible/invisible correctement */
.navbar-scroll {
  position: fixed;
  top: 12px; /* ou 0 si tu veux collé en haut */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040; /* au-dessus du contenu */
  margin: 0 auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}
/* Entrée / sortie en fade + translation */
.transition-navbar {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.navbar{
  z-index: 1000 ;
}






.project-card {
  position: relative;
  width: 100%;
  height: 450px;
  margin-bottom: 60px;
  overflow: hidden;
  border-radius: 12px;
}
/* Background image */
.project-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(var(--scale));
  transition: transform 0.25s linear;
}
/* Content box */
.project-content {
  position: absolute;
  left: 40px;
  top: 40%;
  transform: translateY(-50%);
  min-width: 45%;
  background: rgba(240, 240, 240, 0.95);
  padding: 30px 35px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.project-content h2 {
  margin: 0 0 15px 0;
  font-size: 32px;
  font-weight: 700;
}
.project-content p {
  font-size: 16px;
  line-height: 1.6;
}








/* --- GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e5e5e5;
}

/* Tablet */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CARD --- */
.service-card {
  padding: 50px 40px;
  border: 1px solid #e5e5e5;
  background: white;
  color: #111;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Mobile padding */
@media (max-width: 576px) {
  .service-card {
    padding: 30px 20px;
  }
}

.service-card:hover {
  background: #111;
  color: white;
}

/* --- TEXT --- */
.service-title {
  font-size: 22px;
  margin: 20px 0 10px;
  font-weight: 600;
}

.service-text {
  opacity: 0.7;
  font-size: 15px;
}

/* Adjust text on mobile */
@media (max-width: 576px) {
  .service-title {
    font-size: 19px;
  }
  .service-text {
    font-size: 14px;
  }
}

/* --- ICON --- */
.icon-wrapper {
  margin-bottom: 20px;
}

.service-icon {
  font-size: 40px;
  color: #111;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  color: white;
}

/* Mobile icon smaller */
@media (max-width: 576px) {
  .service-icon {
    font-size: 32px;
  }
}




.transition-2{
    transition: all 1s !important;
}





.testimonial-card {
  border-radius: 12px; 
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.avatar-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.slick-slide {
  padding: 10px 0;
}

.slick-dots li button:before {
  font-size: 12px;
  color: #aaa !important;
}

.slick-dots li.slick-active button:before {
  color: #444 !important;
}






.faq-box {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: white;
  min-height: 140px;
  transition: all 0.3s ease;
  position: relative;
}

.faq-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Description masquée par défaut */
.faq-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  transform: translateY(-10px);
}

/* Animation fade-down */
.faq-desc.open {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0px);
}










.bg-outline-light{
   background-color: transparent;   
   border: 1px solid #e4e7ed;  
   color: #e4e7ed;   
   transition: all 0.5s;
   cursor: pointer;
}

.bg-outline-light:hover{
  background-color: #e4e7ed;
  color: rgb(31, 31, 31);   
  transition: all 0.5s;
  cursor: pointer;
}



/* ON THE TOP OF THE HOME PAGE */
.bg-image-1{
    background-image: url('https://res.cloudinary.com/dmb4d7ymn/image/upload/v1765555137/cie-babacar-img-1_sgfaoj.jpg') !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    min-height: 500px !important;
}
.bg-image-2{
    background-image: url('https://res.cloudinary.com/dmb4d7ymn/image/upload/v1765555137/cie-babacar-img-1_sgfaoj.jpg') !important;;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 500px !important;
}
.bg-image-3{
    background-image: url('https://res.cloudinary.com/dmb4d7ymn/image/upload/v1765555071/cie-babacar-img-2_wdhbl7.jpg') !important;;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
     min-height: 500px !important;
}

.over-layer1, .over-layer2{
    position: relative !important;
    top : 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 500px !important;
    background-color: rgba(250, 250, 250, 0.9) !important;
}
.over-layer2{
    background-color: rgba(28, 35, 35, 0.913) !important;
}

.bg-greenLight{
    background-color: #d8ded2 !important;
}
.bg-blueLight{
    background-color: #d2ddde !important;
}
.bg-orangeLight{
    background-color: #ece4d7 !important;
}
.bg-grayLight{
    background-color: #f5f5f5 !important;
}


.quote-reverse {
  transform: scaleX(-1);
  display: inline-block; /* important pour que la transformation fonctionne */
}

.border-top-dashed {
  border-top-style: dashed !important;
  border-top-width: 1px;
  border-top-color: #dfdfdf;
}

.border-bottom-dashed {
  border-bottom-style: dashed !important;
  border-bottom-width: 1px;
  border-bottom-color: #dfdfdf;
}

.gradient-bar {
  max-height: 100px;
  height: 100px;
  width: 100%;
  background: linear-gradient(
    to left,
    #d2ddde 0%,           /* Début bleu */
    #d2ddde 15%,          /* Fin du bleu solide */
    #d2ddde 15%,          /* Début du fondu bleu → orange */
    #ece4d7 25%,          /* Fin du fondu bleu → orange */
    #ece4d7 40%,          /* Orange solide */
    rgba(236, 228, 215, 0) 100% /* Transparent */
  );
}

.gradient-bar1 {
  max-height: 100px;
  height: 100px;
  width: 100%;
  background: linear-gradient(
    to right,
    #d2ddde 0%,           /* Début bleu */
    #d2ddde 15%,          /* Fin du bleu solide */
    #d2ddde 15%,          /* Début du fondu bleu → orange */
    #ece4d7 25%,          /* Fin du fondu bleu → orange */
    #ece4d7 40%,          /* Orange solide */
    rgba(236, 228, 215, 0) 100% /* Transparent */
  );
}

.gradient-bar2 {
  max-height: 100px;
  height: 300px;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #d2ddde 0%,           /* Début bleu */
    #d2ddde 15%,          /* Fin du bleu solide */
    #d2ddde 15%,          /* Début du fondu bleu → orange */
    #ece4d7 25%,          /* Fin du fondu bleu → orange */
    #ece4d7 40%,          /* Orange solide */
    rgba(236, 228, 215, 0) 100% /* Transparent */
  );
}
.gradient-bar3 {
  max-height: 100px;
  height: 300px;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #d2ddde 0%,           /* Début bleu */
    #d2ddde 15%,          /* Fin du bleu solide */
    #d2ddde 15%,          /* Début du fondu bleu → orange */
    #ece4d7 25%,          /* Fin du fondu bleu → orange */
    #ece4d7 40%,          /* Orange solide */
    rgba(236, 228, 215, 0) 100% /* Transparent */
  );
}

.gradient-bar4 {
  max-height: 100px;
  height: 300px;
  width: 100%;
  background: linear-gradient(
    to top,
    #d2ddde 0%,           /* Début bleu */
    #d2ddde 15%,          /* Fin du bleu solide */
    #d2ddde 15%,          /* Début du fondu bleu → orange */
    #ece4d7 25%,          /* Fin du fondu bleu → orange */
    #ece4d7 40%,          /* Orange solide */
    rgba(236, 228, 215, 0) 100% /* Transparent */
  );
}

.gradient-bar5 {
  height: 40px;
  width: 100%;
  background: linear-gradient(
    to left,
    #d2ddde 0%,           /* Début bleu */
    #d2ddde 15%,          /* Fin du bleu solide */
    #d2ddde 15%,          /* Début du fondu bleu → orange */
    #ece4d7 25%,          /* Fin du fondu bleu → orange */
    #ece4d7 40%,          /* Orange solide */
    rgba(236, 228, 215, 0) 100% /* Transparent */
  );
}

.modal-container{
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: rgba(235, 235, 235, 0.7);
    width: 100%;
    height: 100vh;
    z-index: 99999;
}

.z-index-lg{
  z-index: 999999px !important;
}
.z-index-md{
  z-index: 100px !important;
}


.hidden {
  display: flex !important;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin-bottom: 20px;
}

/* Tablet */
@media (max-width: 992px) {
  .hidden {
   display: none !important;
  }
}


.scroll {
    height: 560px;
    overflow-y: scroll;
    scrollbar-width: thin;
}




.dance-alone { display:inline-block; font-size:48px; color:#ff6f61; }
.dance-alone .icon {
  display:inline-block;
  transform-origin:50% 80%;
  animation: dance-sway 0.9s ease-in-out infinite alternate;
}

@keyframes dance-sway {
  from { transform: rotate(-6deg) translateY(0); }
  to   { transform: rotate(6deg) translateY(-6px); }
}
