/* avoir la forme de .trapeze a une image */
main .trapeze {
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  
  transition: clip-path 0.3s ease;
}
   
main .up-down {
    width: 100%;
    height: auto;      /* conserve les proportions */
    display: block;
    
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-20px); } /* monte de 20px */
    100% { transform: translateY(0); }
}

a.btn.btn-success:hover {
  background-color: white !important;
  color: black !important;
  border-color: black !important;
}

.slide-in-right {
    transform: translateX(100px); 
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Position finale : visible */
.slide-in-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* div 3 en mobile  */
@media (max-width: 768px) {
  /* Conteneur principal */
  .container-fluid.py-5 {
    margin-top: 4rem !important;
    padding: 3rem 1rem 2rem 1rem !important;
    overflow: visible !important;
  }

  /* Image flottante (devient centrée et au-dessus du texte) */
  .container-fluid.py-5 > div[style*="position:absolute"] {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    max-width: 80% !important;
    margin: 0 auto 1.5rem auto !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 1 !important;
  }

  .container-fluid.py-5 > div[style*="position:absolute"] img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Bloc texte (cadre vert avec ombre) */
  .container-fluid.py-5 > div[style*="box-shadow"] {
    box-shadow: 0 0 3px 1.5px rgba(83, 109, 92, 0.6) !important;
    border: 1px solid #4FA862 !important;
    padding: 1.5rem 1rem !important;
    position: relative !important;
    z-index: 2 !important;
    background: #fff !important;
  }

  /* Zone texte interne */
  .container-fluid.py-5 > div[style*="box-shadow"] > div {
    padding-left: 0 !important;
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }

  /* Titre */
  .container-fluid.py-5 h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    color: #4FA862 !important;
    margin-bottom: 0.8rem !important;
  }

  /* Paragraphe */
  .container-fluid.py-5 p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin-bottom: 1.2rem !important;
  }

  /* Bouton */
  .container-fluid.py-5 .btn {
    width: 100% !important;
    max-width: 260px !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 1rem !important;
    text-align: center !important;
    border: solid 1px black !important;
    border-radius: 0 !important;
    background-color: #4FA862 !important;
    margin: 0 auto !important;
    display: inline-block !important;
  }
}

/* div 4 en mobile  */
@media (max-width: 768px) {

  /* Conteneur principal vert */
  .container-fluid.py-2[style*="background-color:#4FA862"] {
    padding: 4rem 1.5rem 0 !important;
    text-align: center !important;
    margin-top: 5rem !important;
    background: linear-gradient(180deg, #4FA862 0%, #458c55 100%) !important;
  }

  /* Bloc texte */
  .container-fluid.py-2[style*="background-color:#4FA862"] .col-md-7 {
    padding: 0 1rem !important;
  }

  /* Titre principal */
  .container-fluid.py-2[style*="background-color:#4FA862"] h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase;
    margin-bottom: 1.2rem !important;
    letter-spacing: 0.5px;
  }

  /* Mot clé doré */
  .container-fluid.py-2[style*="background-color:#4FA862"] h1 span {
    color: #e7c83b !important;
    font-weight: 700;
  }

  /* Paragraphe */
  .container-fluid.py-2[style*="background-color:#4FA862"] p {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 auto 2rem auto !important;
    max-width: 95%;
  }

  /* Numéro de téléphone */
  .container-fluid.py-2[style*="background-color:#4FA862"] p span {
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: underline;
  }

  /* Bloc image */
  .container-fluid.py-2[style*="background-color:#4FA862"] .col-md-5 {
    justify-content: center !important;
    margin-top: 2.5rem !important;
    padding: 0 !important;
  }

  /* Image plein écran, suppression du style trapeze */
  .container-fluid.py-2[style*="background-color:#4FA862"] img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: cover !important;
    filter: brightness(0.95) contrast(1.05);
    box-shadow: none !important;
    clip-path: none !important;
    transform: none !important;
  }

  /* Si la classe .trapeze applique un effet, on le désactive ici */
  .trapeze {
    clip-path: none !important;
    transform: none !important;
  }
}


#galerie-scroll {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
#galerie-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Boutons flèches */
.scroll-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #4FA862;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  width: 45px;
  height: 45px;
  z-index: 10;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transition: all 0.2s ease-in-out;
}

.scroll-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

/* Sur mobile : flèches un peu plus petites */
@media (max-width: 768px) {
  .scroll-btn {
    font-size: 1.4rem;
    width: 38px;
    height: 38px;
  }
}


@media (max-width: 991px) {
    .image-vue {
        display: none !important;
    }
}
