/* ----------------------------------------Section services ------------------------------------------------------- */
/* Titre centré */
#services .theme-title h2 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 15px;
}

/* Conteneur principal */
/* .services-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: #fff;
}

/* Piste des services 
.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-infinite 40s linear infinite;
} */

/* Cartes des services */
.service-card {
    flex: 0 0 auto;
    width: 280px;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
}

/* Icônes */
.service-card .featured-icon {
    font-size: 40px;
    color: #C93357;
    margin-bottom: 10px;
}

/* Bouton Lire plus */
.service-card .ht-link-btn {
    display: inline-block;
    margin-top: 10px;
    color: #C93357;
    font-weight: bold;
    text-decoration: none;
}
.service-card .ht-link-btn:hover {
    text-decoration: underline;
}

/* Animation infinie continue */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive mobile */
@media (max-width: 768px) {
    .service-card {
        width: 220px;
    }
    #services .theme-title h2 {
        font-size: 26px;
    }
}



  /* ----------------------------------------Section partenaires ------------------------------------------------------- */
  .partenaires-section {
  background-color: #f3f3f3;
  /* padding: 30px 30px; */
  text-align: center;
  overflow: hidden;
}

/* --- Titre --- */
.partenaires-section .theme-title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
}

.partenaires-section .theme-title h2 span {
  color: #C93357;
}

/* --- Comportement desktop/tout écran (inchangé) --- */
/* (optionnel) si tu veux une animation auto sur grand écran */
.logos-track {
  display: flex;
  gap: 60px;
  flex: nowrap;
  align-items: center;
  /* animation: scrollLogos 20s linear infinite;  <-- si tu veux l'auto-scroll sur desktop */
}

/* --- Logos individuels --- */
.logos-track .logo {
  height: 80px;
  width: auto;
  filter: grayscale(60%);
  cursor: pointer;
  flex: 0 0 auto;
  object-fit: contain;
}

/* --- Effet hover --- */
.logos-track .logo:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* --- MOBILE: 1 partenaire par vue + scroll tactile avec snap --- */
/* MOBILE : 1 partenaire centré par vue — scroll snap CORRIGÉ */
@media (max-width: 767px) {
  .logos-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;

    /* IMPORTANT : scroll-snap-type doit être sur le conteneur qui scroll */
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0; /* ajustable si tu veux marge de snap */
    display: block; /* laisse la piste en flex mais le conteneur scroll */
    padding: 10px 6px;
  }

  .logos-track {
    display: flex;
    gap: 30px;
    width: auto;
    animation: none !important;
    align-items: center;
  }

  /* Chaque "slide" = 100% de la largeur visible et snap au centre */
  .logos-track .logo {
    flex: 0 0 100%;
    max-width: 100px;
    scroll-snap-align: center;  /* <-- snap centré */
    display: block;
    margin: 0 auto;
    width: auto;
    max-height: 100px; /* limite la taille sans agrandir */
    height: auto;
    object-fit: contain;
  }
 
  /* Optionnel : masquer la scrollbar visuellement (WebKit) */
  .logos-slider::-webkit-scrollbar { height: 8px; }
  .logos-slider::-webkit-scrollbar-track { background: transparent; }
  .logos-slider::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 999px; }

  .partenaires-section .theme-title h2 { font-size: 1.6rem; }
}



 /* ----------------------------------------Section comment ça marche ------------------------------------------------------- */
 

  .animated-icon-shape {
      display: flex !important;
      flex-wrap: wrap;
      justify-content: center;
  }

  .animated-icon-shape img {
      max-width: 80px; 
      margin: 10px;
  }

  p{
    text-align: justify;
  }


   /* ----------------------------------------Section carroussel ------------------------------------------------------- */
 

  	/* Pour les grands écrans pour le carroussel */
    @media screen and (min-width: 1200px) {
      .d-block {
        height: 40rem;
      }
    }

  #carouselExampleCaptions {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
  }

  .carousel-item {
    position: relative;
    height: 100vh;
  }

  /* --- Image d'arrière-plan  --- */
  .carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%; /* Un peu plus large pour le mouvement */
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: moveBackground 10s infinite alternate ease-in-out;
  }

  /* Animation du mouvement de l'image */
  @keyframes moveBackground {
    0% {
      transform: scale(1.1) translateX(0) translateY(0);
    }
    50% {
      transform: scale(1.15) translateX(-20px) translateY(-10px);
    }
    100% {
      transform: scale(1.1) translateX(20px) translateY(10px);
    }
  }

  /* --- Overlay blanc semi-transparent --- */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(255, 255, 255, 0.4); */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(244, 6, 6, 0.116), rgba(255, 255, 255, 0.3));
    /* background: linear-gradient(rgba(0,0,0,0.6), rgba(244, 6, 6, 0.3), rgba(255, 255, 255, 0.3)); */
    z-index: 2;
  } 
 
  /* --- Texte centré verticalement et horizontalement --- */
  .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 80%;
    color: #000;
  }

  .carousel-caption h5 {
    font-size: 3rem;
    font-weight: 800 !important;
    margin-bottom: 1rem;
    color: #007bff;
    text-transform: uppercase;
    margin-right: 40rem;
  }

  .carousel-caption p {
    font-size: 1.7rem;
    /* color: #000000 !important;
    font-weight: 615 !important; */
    color: white !important;
    font-weight: 500 !important;
    
  }

  /* --- Responsivité --- */
  @media (max-width: 768px) {
    .carousel-caption h5 {
      font-size: 1rem;
      justify-content: flex-start;
      white-space: nowrap;
    }
    .carousel-caption p {
      font-size: 1rem;
      justify-content: flex-start;
    }

    .btn-container {
      width: 20rem;
      justify-content: center;
    }
    .about {
      margin-top: -5rem;
    }
  }

  /* Conteneur du bouton */
  .btn-container {
    text-align: center;
    margin-top: 20px;
  }

  /* Style du bouton */
  #btnServices {
    background-color: #007bff; /* Bleu médical */
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease-in-out;
  }

  /* Effet au survol */
  #btnServices:hover {
    background-color: #0056b3;
    box-shadow: 0px 6px 20px rgba(0, 86, 179, 0.4);
    transform: scale(1.05);
  }

  /* Effet quand on clique */
  #btnServices:active {
    transform: scale(0.97);
  }    

