
/* =======================
   RESPONSIVE CUSTOM STYLES
   ======================= */

/* Général */
body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Réduire les marges excessives sur mobile */
  .section-heading h2 {
    font-size: 1.6rem;
  }
  
  /* Ajuster les paddings */
  .container, .section {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Image adaptative */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Accordion texte moins large */
  .accordion-body {
    font-size: 0.95rem;
  }
  
  /* Contact form input responsive */
  #contact-form input,
  #contact-form textarea {
    font-size: 1rem;
    padding: 10px 12px;
  }
  
  
  /* Mobile menu */

  /* Apparence du menu mobile */
@media (max-width: 991px) {
    
    .header-area .main-nav .nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      width: 100%;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      z-index: 999;
    }
  
    .header-area .main-nav .nav.active {
      display: flex;
      flex-direction: column;
    }
  
    .menu-trigger {
      display: block !important;
      z-index: 1000;
    }
  }
  
  /* Ajustement contact infos */
  @media (max-width: 768px) {
    .contact-content .row > div {
      margin-bottom: 30px;
    }
  
    .contact-content iframe {
      height: 300px;
    }
  }

  .contact.section .section-heading {
    z-index: 2;
    position: relative;
  }
  
  .contact-content {
    z-index: 1;
    position: relative;
  }
  
  .contact-content #map {
    margin-top: 20px;
    z-index: 1;
    position: relative;
  }
  
  .contact-content iframe {
    position: relative;
    z-index: 1;
  }
  

  .contact-content {
    padding-bottom: 120px !important;
    z-index: 1;
    position: relative;
  }


  .mobile-header-top {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid #eee;
  }
  
  @media (min-width: 768px) {
    .mobile-header-top {
      display: none !important;
    }
  }

  .mobile-topbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  /* Supprime le margin-top du header si présent */
.header-area {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.mobile-topbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
  .main-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .main-nav .nav {
    display: none !important;
  }

  .main-nav .logo {
    margin-left: 0 !important;
    padding-left: 10px;
    flex-shrink: 0;
  }

  .menu-trigger {
    margin-right: 10px;
  }

  .site-logo {
    max-height: 85px;
    display: block;
    margin-left: 5px; /* décale vers la gauche */
  }


}


/* 📐 Conteneur au-dessus de la vidéo */
.video-section {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.video-section .container {
  z-index: 2;
  position: relative;
}

/* 🎨 Texte blanc */
.video-section .count-number,
.video-section .count-text {
  color: #fff !important;
}


.video-text-bottom {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  z-index: 3;
  padding: 0 15px;
}

.video-text-bottom .section-heading {
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.6);
  background-color: rgb(255, 255, 255); /* blanc légèrement transparent */
  padding: 20px 30px; ; 
  border-radius: 20px;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  width: auto;
  /*height: 120%;*/
  min-width: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 16px;
}

.video.section {
  position: relative;
  z-index: 2;
  padding: 300px 0 200px 0; /* Ajuste selon ta vidéo */
  border-radius: 26px;
}


.swiper-button-prev,
.swiper-button-next {
  color: #333;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
  color: #ee626b;
}

@media (min-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
  
}

@keyframes fadeSwipe {
  0% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
  100% { opacity: 0.3; transform: translateX(0); }
}
.swiper-pagination {
  bottom: -7px !important; /* pousse les points vers le bas */
}
.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background-color: #ee626b !important;
}

.swiper-pagination-bullet {
  background-color: #ccc; /* couleur grise claire pour les inactifs */
  opacity: 0.5;
}

@media (max-width: 767px) {
  .img-fluid.rounded.mb-3 {
    max-width: 100%;   /* Réduit la taille à 80% de la largeur */
    height: auto;
    margin: 0 auto 1rem auto; /* Centrage + marge basse */
    display: block;
  }
}
.card {
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
  background-color: #fff;
}

.card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

input[type="checkbox"]:checked + .card {
  border: 2px solid #007bff;
  background-color: #f0f8ff;
}

.btn-orange {
  background-color: #f35525 !important;
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-orange:hover {
  background-color: #d64b1f !important;
}

.btn-type-bien {
  border: 2px solid #ccc;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
}

.btn-type-bien.active {
  border-color: #f35525;
  background-color: #fef3ec;
  color: #f35525;
}

.fan-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 500px;
  margin: 0 auto;
}

.fan-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

/* Positions fixes visuelles */
.fan-pos1 { transform: rotate(-12deg) translateX(-40px); z-index: 4; }
.fan-pos2 { transform: rotate(-4deg)  translateX(-10px); z-index: 3; }
.fan-pos3 { transform: rotate(6deg)   translateX(10px);  z-index: 2; }
.fan-pos4 { transform: rotate(14deg)  translateX(35px);  z-index: 1; }


/* Fan stack styles de base */
.fan-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 500px;
  margin: 0 auto;
}

.fan-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

/* Positions éventail sur desktop */
.fan-pos1 { transform: rotate(-12deg) translateX(-40px); z-index: 4; }
.fan-pos2 { transform: rotate(-4deg)  translateX(-10px); z-index: 3; }
.fan-pos3 { transform: rotate(6deg)   translateX(10px);  z-index: 2; }
.fan-pos4 { transform: rotate(14deg)  translateX(35px);  z-index: 1; }

/* Responsive mobile */
@media (max-width: 768px) {
  .fan-stack {
      transform: scale(0.65) translateY(50px);
      transform-origin: center top;
      height: 360px;
  }
  .fan-pos1 { transform: rotate(-6deg) translateX(-20px); }
  .fan-pos2 { transform: rotate(-2deg) translateX(-5px); }
  .fan-pos3 { transform: rotate(2deg)  translateX(5px); }
  .fan-pos4 { transform: rotate(6deg)  translateX(20px); }
}

#search-form {
  position: relative;
}

#suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 999;
  max-width: 300px;
  width: 100%;
}

@media (max-width: 576px) {
  #suggestions {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Footer : Responsive design */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.footer .site-logo {
  max-width: 140px;
  height: auto;
}

@media (max-width: 768px) {
  .footer .d-flex {
    align-items: center !important;
    text-align: center !important;
    gap: 10px;
  }

  .footer .site-logo {
    max-width: 120px;
    margin-bottom: 10px;
  }

  .footer p {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .footer a {
    text-decoration: underline;
  }
}
/* Menu mobile qui descend du haut */
#mobile-menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 75vh;
  z-index: 1050;
  transition: top 0.4s ease-in-out;
  display: flex;
  /* justify-content: center; */
  pointer-events: none;
}

#mobile-menu.open {
  top: 120px; /* descend juste sous la topbar */
  pointer-events: auto;
}

.mobile-menu-inner {
  width: 100%;
  max-width: 420px;
  background: #fff;
  height: 100%;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
  overflow-y: auto;
  position: relative;
}
.menu-trigger {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1100;
}

.menu-trigger .bar {
  height: 3px;
  width: 100%;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.timeline-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(to right, #ccc 33%, rgba(255, 255, 255, 0) 0%);
  background-position: top;
  background-size: 20px 2px;
  background-repeat: repeat-x;
  z-index: 1;

  /* Animation */
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s ease, opacity 1s ease;
}

.timeline.animate .timeline-line {
  opacity: 1;
  transform: scaleX(1);
}

.timeline-step {
  position: relative;
  z-index: 2;
  width: 220px;
  text-align: center;
}

.timeline-step img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.timeline-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(to right, #ccc 33%, rgba(255, 255, 255, 0) 0%);
  background-size: 20px 2px;
  background-repeat: repeat-x;
  z-index: 1;
}

/* Ligne orange animée derrière les icônes */
.timeline.animate .timeline-line-orange {
  animation: slide-orange 2s ease-out forwards;
}

@keyframes slide-orange {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.timeline-step {
  position: relative;
  z-index: 2;
  width: 220px;
  text-align: center;
}

.timeline-step img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}
