
.card,.about,.contacts,.carousel,.contacts {
  opacity: 0; /* invisible au départ */
  transform: translateY(80px) scale(0.9) rotateX(15deg);
  transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);;  /* animation douce */

  
}


/* Quand la div devient visible */
.card.show,.about.show,.card.show,.carousel.show,.contacts.show {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
}




/* 1) Empêche le padding ajouté au <body> quand le modal s’ouvre */
body.modal-open { 
  padding-right: 0 !important;
  overflow: hidden; /* comportement normal du modal */
}

/* 2) Empêche le décalage des barres fixées */
.modal-open .fixed-top,
.modal-open .sticky-top {
  padding-right: 0 !important;
}

/* 3) Évite le “saut” lié à 100vw */
.navbar { width: 100%; } /* jamais 100vw */

/* 4) Réserve l’espace de la scrollbar pour éviter tout mouvement de page */
html { scrollbar-gutter: stable; } /* moderne (Chrome/Edge/Firefox récents) */




.nav-item .nav-link:hover{
    color: black;
}




/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
.navbar-brand img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: -7vh;
}

/* Conteneur principal pour la marge extérieure uniforme */
.custom-container {
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Navbar */
.navbar {
   
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 2px 2px 3px rgb(153, 153, 153);
}
.navbar-brand img {
    max-height: 100px;
}
.navbar-nav .nav-link {
    font-size: 18px;
    margin-left: 15px;
      color: rgb(46, 58, 125);
}

.card-body i {
   color: rgb(46, 58, 125);
font-size: 30px;
}

/* Bannière */
.banner {
background:linear-gradient(transparent,#7a7a7a), url("../images/bannermisericorde.avif");
    background-size: cover;
    height: 100vh;
    width: 100%;
    margin-top: 80px;
    background-attachment: fixed;
    padding: 40px 0;
    text-align: center;
}
.banner h1 {
    font-size: 60px;
    color: rgb(46, 58, 125);
    margin-top: 10vh;
    letter-spacing: 3px;
    line-height: 1.5;
}
.banner .p1 {
    color: white;
 
font-weight: bold;
    text-align: center;
    /* text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5); */
    font-size: 18px;
    word-break: keep-all;
    margin: 30px auto;
    max-width: 700px;
}
.banner .boutons {
    text-align: center;
    margin: 5px;
}
.banner .boutons .btn1{
    margin: 10px;
    width: 200px;
    height: 50px;
    border-radius: 5px;
    border: 1px solid white;

}
.banner .boutons .btn1:hover, .banner .boutons .btn2:hover {
    scale: 1.1;
}
.banner .boutons .btn1 a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    padding: 20px;
}

.banner .boutons .btn1 {
    background-color: transparent;
    border: 2px solid rgb(46, 58, 125);
}
.banner .boutons .btn2 {
    background-color: rgb(46, 58, 125);
    border: none;
}

/* Section cartes */
.section {
    margin-top: -20vh;
    padding: 30px 0;
   background-color: white;
    display: flex;
    justify-content: space-around;
}
.s {
    width: 25%;
    text-align: center;
}
.card-img-top {
    border-radius: 50%;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 colonnes sur grand écran */
    gap: 30px;
    padding: 60px 20px;
    background-color: white;
}

/* Forcer toutes les cards à s'étirer à la même hauteur */
.services .section1 {
    display: contents; /* garde la grille mais permet l’alignement */
}

.services .card {
    display: flex;
    flex-direction: column; /* contenu en colonne */
    justify-content: space-between; /* équilibre texte et bouton */
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fff;
    height: 100%; /* chaque card prend la hauteur max */
    width: 100%;  /* largeur fluide */
}

.services .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Tablette */
@media (max-width: 992px) {
    .services {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    }
    .services .card img {
        height: 180px;
        
    }
}

/* Mobile */
@media (max-width: 576px) {
    .services {
        grid-template-columns: 1fr; /* 1 colonne */
    }
    .services .card img {
        height: 150px;
        width: auto;
    }
}

.section1 .p3 {
    padding-bottom: 2vh;
    padding-top: 2vh;
    font-size: 15px;
    font-family: "Georgia", "Times New Roman", serif;
}
.section1 a {
    font-size: 19px;
    color: rgb(46, 58, 125);
}
.section1 a:hover {
    color: rgb(95, 94, 94);
}

/* Description */
.description {
    text-align: center;
    margin: 40px 0 20px 0;
}
.hr1 {
    width: 80px;
    border: 2px solid rgb(46, 58, 125);
    margin: 0 auto 20px auto;
}

/* About */
.about {
   
    
    margin-top: 5vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: space-between;
}
.text-about {
    line-height: 5vh;
    /* height: 100vh; */
    background-color:white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);

}
.about h5{
text-align: center;
    color: rgb(46, 58, 125);
    font-size: 30px;
    margin-bottom: 20px;
}
.picture1 img {
   

    /* height: auto; */

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Contacts */
.contacts {
 padding: 10px;

    background-color:white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);

}
form {
    margin: 0 auto;
    width: 80%;
}



/* Footer */
.footer {
    background-color: #474646;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    color: #fff;
    padding: 40px 0 20px 0;
}
.footer .text-four, .footer .lien {
    flex: 1 1 200px;
    min-width: 200px;
    
}

.logo-contacts {
    display: flex;
    gap: 18px; /* espace entre les logos */
    align-items: center;
    justify-content: flex-start; /* ou center selon ton besoin */
    /* padding-left: 0; */
}




.footer h3, .footer .title {
     color:rgb(0, 156, 104);
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    margin-bottom: 8px;
}
.footer ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer ul li a:hover {

}
.logo-contacts i {
    font-size: 1.3em;
    /* margin-right: 10px; */
    color:
    transition: color 0.2s;
}
.logo-contacts i:hover {
    color: #fff;
}




/* Optionnel : couleur de fond générale */
body {
    background: #f9f9f9;
}


/* ===== TABLETTES ===== */
@media (max-width: 992px) {
    /* Navbar */
    .navbar-nav {
        text-align: center;
    }
    

    /* Bannière */
    .banner h1 {
        font-size: 40px;
        line-height: 1.3;
    }
    .banner .p1 {
        font-size: 16px;
        max-width: 90%;
    }
    .banner .boutons .btn1,
    .banner .boutons .btn2 {
        width: 200px;
        height: 45px;
        font-size: 15px;
    }

    /* Section icônes */
    .section {
        flex-direction: column;
        align-items: center;
    }
    .s {
        width: 80%;
        margin-bottom: 20px;
    }
    .picture1 {
      
    }
  
    /* Services */
    .services {
        grid-template-columns: 1fr;
        padding: 5vh 20px;
    }
    .section1 img {
    width: 100%;
    height: 200px;
    /* height: 300px; */
    /* object-fit: cover; */
    border-radius: 8px;
}
}

/* ===== MOBILES ===== */
@media (max-width: 768px) {
    /* Bannière */
    .banner h1 {
        font-size: 28px;
        font-weight: bold;
    }
    .banner .p1 {
        font-size: 16px;
    }
    .banner .boutons .btn1,
    .banner .boutons .btn2 {
        width: 200px;
        height: 40px;
        font-size: 14px;
    }

    /* Section icônes */
    .section {
        flex-direction: column;
        align-items: center;
    }
    .s {
        width: 90%;
        margin-bottom: 15px;
    }

    /* Services */
    .services {
        grid-template-columns: 1fr;
        padding: 5vh 15px;
    }
.section1 img {
    width: 100%;
    height: 200px;
    /* height: 300px; */
    /* object-fit: cover; */
    border-radius: 8px;
}
    /* Footer */
    .footer {
        flex-direction: column;
  
        text-align: center;
    }
    .logo-contacts {
        justify-content: center;
        margin-bottom: 1px;
    }

    /* About */
    .text-about {
        height: auto;
    }
    .picture1 {
 
    }
  .carousel-item{
    height: 500px;
  }


}

/* About responsive */
@media (max-width: 992px) {
    .about {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .picture1 {
        order: -1; /* image avant le texte */
        margin-bottom: 20px;
        height: 40vw; /* hauteur proportionnelle à la largeur */
        max-height: 400px; /* limite la hauteur pour ne pas exploser */
        min-height: 200px; /* assure qu’elle reste visible */
        background-size: cover;
        background-position: center;
        width: 100%;
        border-radius: 12px;
    }

    .section1 img {
    width: 100%;
    height: 200px;
    /* height: 300px; */
    /* object-fit: cover; */
    border-radius: 8px;
}

    .text-about {
        height: auto;
        padding: 20px;
    }
        .picture1 {
       
        width: 100%;
    }
}

/* Mobile spécifique */
@media (max-width: 768px) {
    .picture1 {
        height: 50vw; /* plus grande proportion sur mobile */
        max-height: 300px;
        min-height: 150px;
    }
        .picture1 {
        height:50vh;
        width: 100%;
    }
    .banner h1 {
    font-size: 35px;
  
 
}
}




/* Ajustements pour mobile */
@media (max-width: 768px) {
    .banner {
        background-attachment: scroll; /* fixed pose problème sur mobile */
        padding: 20px 0;
        height: 80vh;                  /* réduire un peu la hauteur sur petit écran */
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 10px 0;
        height: 65vh;                  /* encore plus petit sur très petit écran */
    }
}

@media (min-width: 0px) and (max-width: 750px){
    .section {
        flex-direction: column;
        align-items: center;
        margin-top: 1vh;
    }
      ::placeholder{
    font-size:10px;
  }
}