
/* Styles responsifs pour les grands écrans */
@media (max-width:1300px) {
  .heroImg {
    width: 300px;
    margin: auto;
  }

  .container .content {
    display: flex;
    justify-content: space-around;
    margin: 5rem auto;
    width: 100%;
  }
  
  /* Ajustements pour le hero */
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
}


/* Styles pour les écrans de taille moyenne */
@media (max-width:1140px) {
  .hero_image_wrapper {
    width: 100%;
    max-width: 300px;
  }

  .heroImg {
    display: block;
    margin: auto;
    width: 250px;
  }
  
  /* Ajustements pour les sections */
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-title h3 {
    font-size: 1.5rem;
  }
  

}




/* Styles pour les tablettes et petits écrans */
@media (max-width:768px) {

  
  


  /* Ajustements pour la navbar */
  #header {
    padding: 12px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  
  #navbar {
    padding: 0 10px;
  }
  
  .navbar-container {
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  #header .logo {
    position: relative;
    left: 0;
  }



  /* Augmentation de la taille de l'icône du menu burger Bootstrap */
  #header .navbar-toggler {
    padding: 0 !important; /* Réinitialiser le padding */
    min-width: 48px !important; /* Cible tactile commune, légèrement augmentée */
    min-height: 48px !important; /* Cible tactile commune, légèrement augmentée */
    display: inline-flex !important; /* Alignement correct de l'icône */
    align-items: center !important;
    justify-content: center !important;
    border: none !important; /* Supprimer la bordure si présente */
    background: transparent !important; /* S'assurer qu'aucun fond n'interfère */
  }

  #header .navbar-toggler .bi-list {
    font-size: 2.4rem !important; /* Taille de l'icône augmentée davantage */
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important; /* Couleur de l'icône (ajuster si besoin) */
  }
  
  /* Ajustements pour les sections */
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  


  #open {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.5s ease;
  }

  .fa-bars{
    color: #393838;
    font-size: 1.5rem;
  }

  .hunberger {
    display: block;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    color: aliceblue;
    cursor: pointer;
  }

  .userMobile img {
    width: 2rem;
    position: absolute;
    bottom: 3rem;
    right: 45%;
  }

  .hero {
    padding: 2rem 1rem;
    flex-direction: column;
    width: 80%;
    margin: 3rem auto;
  }

  .hero_container {
    flex-direction: column;
  }


  .heroImg {
    display: block;
    margin: auto;
    width: 300px;
  }

  .slide-track {
    animation-duration: 60s;
  }

  .slide {
    margin-right: 1rem;
    height: 100px;
    width: 250px;
    gap: 1rem;
    border: 1px solid #f0eeee;
    border-radius: 0.5rem;
  }
  
  .slide img{
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Styles pour le menu mobile déplacés dans index.css */
}

/* Mobile Styles */
@media (max-width: 767px) {
  /* Ajustements généraux */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ajustements pour la navbar */
  #header {
    padding: 8px 0;
  }
 

  /* Ajustements pour le hero */
  .hero .content {
    text-align: center;
    padding: 0 10px;
  }

  .hero .hero-img {
    margin-top: 2rem;
    max-height: 3000px !important;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .btn-get-started {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  /* Ajustements pour les sections */
  section {
    padding: 25px 0;
  }
  
  /* Réduction des espaces entre images et textes */
  #birth-certificate, #marriage-certificate {
    padding: 0;
  }
  
  .image-wrapper {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  
  #birth-certificate h2, #marriage-certificate h2 {
    margin-top: 0;
    margin-bottom: 0.25rem;
  }
  
  #birth-certificate p, #marriage-certificate p {
    margin-bottom: 0.25rem;
  }
  
  #birth-certificate .mb-4, #marriage-certificate .mb-4 {
    margin-bottom: 0.25rem !important;
  }
  
  #birth-certificate .mb-3, #marriage-certificate .mb-3 {
    margin-bottom: 0.25rem !important;
  }
  
  /* Suppression des animations AOS en mobile pour éviter les délais */
  @media (max-width: 767px) {
    [data-aos] {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }
  
  .py-5 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  .row.gy-4 {
    --bs-gutter-y: 0.5rem;
  }
  
  /* Ajustement des tailles de police et de l'espacement en mode mobile */
  @media (max-width: 767px) {
    #birth-certificate .row, #marriage-certificate .row {
      margin-top: 0;
      margin-bottom: 0;
    }
    
    #birth-certificate .col-md-12, #marriage-certificate .col-md-12 {
      padding-top: 0;
      padding-bottom: 0;
    }
    
    /* Suppression des marges entre l'image et le texte */
    #birth-certificate .order-1, #marriage-certificate .order-1 {
      margin-bottom: 0;
    }
    
    #birth-certificate .order-2, #marriage-certificate .order-2 {
      margin-top: 0;
    }
    
    /* Suppression des animations pour un affichage immédiat */
    [data-aos] {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    
    /* Ajustement des tailles de police pour une meilleure lisibilité */
    h1 {
      font-size: 1.8rem;
    }
    
    h2 {
      font-size: 1.5rem;
    }
    
    h3 {
      font-size: 1.3rem;
    }
    
    h4 {
      font-size: 1.1rem;
    }
    
    p {
      font-size: 0.95rem;
      line-height: 1.5;
    }
    
    .fw-bold {
      font-size: 1rem;
    }
    
    /* Ajustement spécifique pour les sections principales */
    #birth-certificate h2, #marriage-certificate h2 {
      font-size: 1.4rem;
    }
    
    #birth-certificate p, #marriage-certificate p {
      font-size: 0.9rem;
      line-height: 1.4;
    }
    
    /* Ajustement pour la section avantages */
    #why-us .section-title h2 {
      font-size: 1.3rem;
      margin-bottom: 0.2rem;
    }
    
    #why-us .section-title h3 {
      font-size: 1.5rem;
    }
    
    #why-us .section-title p {
      font-size: 0.9rem;
    }
    

    
    /* Optimisation de la navigation */
    .navbar-brand {
      font-size: 1.2rem;
    }
    
    #mobile-menu a {
      font-size: 0.95rem;
    }
    
    /* Optimisation des boutons et formulaires */
    .btn {
      font-size: 0.9rem;
      padding: 0.4rem 1rem;
    }
    
    .btn-lg {
      font-size: 1rem;
      padding: 0.5rem 1.5rem;
    }
    
    .form-control {
      font-size: 0.9rem;
      padding: 0.5rem 0.75rem;
    }
    
    .form-label {
      font-size: 0.9rem;
      margin-bottom: 0.3rem;
    }
    
    /* Optimisation des cartes de service */
    .service-item h4 {
      font-size: 1.1rem;
    }
    
    .service-item p {
      font-size: 0.85rem;
      line-height: 1.4;
    }
  }
  
  /* Optimisation de la section "Nos avantages" */
  #why-us {
    padding: 0;
  }
  
  #why-us .section-title {
    margin-bottom: 10px;
  }
  
  #why-us .section-title h2 {
    margin-bottom: 0.25rem;
  }
  
  #why-us .section-title h3 {
    margin-bottom: 0.5rem;
  }
  
  #why-us .section-title p {
    margin-top: 0.5rem !important;
  }
  
  #why-us .service-item {
    padding: 0.75rem !important;
  }
  
  #why-us .service-item .icon {
    margin-bottom: 0.5rem !important;
  }
  
  #why-us .service-item h4 {
    margin-bottom: 0.5rem !important;
    font-size: 1.1rem;
  }
  
  #why-us .service-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
  }
  
  .section-title {
    margin-bottom: 25px;
  }

  .section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .section-title h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .section-title p {
    font-size: 0.9rem;
    padding: 0 10px;
  }
  
  /* Ajustements pour les cartes et contenus */
  .card {
    margin-bottom: 20px;
  }

  
  


  .footer-2 {
    text-align: center;
  }
}

/* Très petits écrans (smartphones) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  

  
  .hero h2 {
    font-size: 1.1rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 1.3rem;
  }
  
  .section-title h3 {
    font-size: 1.1rem;
  }
  
  .btn-get-started {
    padding: 7px 15px;
    font-size: 0.85rem;
  }
  
  .footer-heading {
    font-size: 1.2rem;
  }
  
  .footer-description {
    font-size: 0.85rem;
  }
}

  .container .content {
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    display: block;
    margin: 2rem auto;
  }

  .request_btn {
    margin: 1rem auto;
  }

 






  .extrait__right p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .extrait__right h3 {
    text-transform: none;
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  
  .faqs {
    grid-template-columns: 1fr;
    width: 95%;
  }

  .contact-form {
    max-width: 100%;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }


  .slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 80%;
  }

  .hero_left,
  .hero_right {
    margin-top: 2rem;
  }

  .hero_left, .hero_right{
    width: 100%;
    text-align: left;
  }



.info h4{
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero_left, .hero_right{
  padding: 1rem;
  margin-top: 5rem;
}

.hero_left li, .hero_right li {
  margin-bottom: 0.5rem;
  font-size: 15px;
}

.whyus{
  width: 80%;
  display: block;
  margin: 0 auto;
  & img{
    width: 200px;
    display: block;
    margin: auto;
  }
}

.whyus .why_content{
    
  width: 100%;


  & li{
    font-size: 1rem;
    justify-content: center;
    line-height: 2rem;
  }

  & ul{
    line-height: 1.8;
  }
}

#extrait{
  display: block;
  margin: auto;
  width: 100%;

  & .content{
    display: flex;
    flex-direction: column;
    width: 80%;
   
  }

 
  & img{
    width: 300px;
    height: 300px;

  }
}




.formSing{
	width: 90%;
  margin: auto;
  display: block;
}

@media(max-width: 950px){
  .whyus{
    width: 100%;
    margin: auto;
  }
  
  .whyus img {
    width: 200px;
  }
}

.whyus .why_content{
  display: block;
  width: 100%;
  margin: 2rem auto 0;
  background-size: cover;
  background-repeat: no-repeat;


  & li{
    font-size: 1rem;
    justify-content: center;
    line-height: 2rem;
  }

  & ul{
    line-height: 1.8;
  }
}


.whyus__title, .faq_title{
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 5rem;
  text-transform: uppercase;
}

.whyus__right, .whyus__left{
  margin: auto;
  text-align: left;
  justify-content: center;
  width: max-content;
}






#wedding{
  display: block;
  margin: auto;
  width: 100%;

  & .content{
    display: flex;
    flex-direction: column;
    width: 80%;
   
  }

 
  & img{
    width: 300px;
    height: 300px;

  }
}


#extrait{
  display: block;
  margin: auto;
  width: 100%;

  & .content{
    display: flex;
    flex-direction: column;
    width: 80%;
   
  }

 
  & img{
    width: 300px;
    height: 300px;

  }
}
