/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin&display=swap');

/* Styles généraux */
body {
  font-family: 'Libre Franklin', sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column; /* Organise le contenu en colonne */
  min-height: 100%; /* Assure que le body prend toute la hauteur de la fenêtre */
}

/* Header */
header {
  background-color: white;
  z-index: 1030;
  padding: 10px 0;
}

/* Conteneur principal de l'en-tête */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  width: 100%;
}

/* Barre de recherche */
.search-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
}

.search-bar {
  width: 100%;
  max-width: 400px !important;
  border-radius: 25px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  padding-left: 45px;
}

.search-bar::placeholder {
  text-indent: 0px;
  line-height: 1.5;
  color: #888;
}

/* Bouton de recherche */
.search-btn {
  border: 1px solid #000;
  border-radius: 20px;
  padding: 0 10px;
  background: none;
  cursor: pointer;
}

.btn-outline-dark {
  --bs-btn-hover-bg: #3C97C4;
}

/* Logo centré */
.logo-center {
  flex: 1;
  text-align: center;
}

/* Icônes sociales alignées à droite */
.social-icons {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  align-items: center;
  gap: 10px;
}

/* 📌 Style du formulaire de contact avec bordure */
.contact-form {
  background-color: #f9f9f9;
  color: rgb(0, 0, 0) !important;
  padding: 20px;
  border: 1px solid rgb(0, 0, 0);
  border-radius: 8px;
}

/* 📌 Bouton d’envoi */
.btn-contact {
  background-color: #3C97C4 !important;
  color: white !important;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.btn-contact:hover {
  background-color: #347a9b;
}

/* Navigation */
.navbar-nav {
  flex-direction: row;
  gap: 2rem;
}

.navbar-nav .nav-item {
  margin: 0 50px;
}

.navbar-nav .nav-link {
  font-size: 1.2rem;
}

.navbar-nav .nav-link:hover {
  color: #3C97C4;
  transition: color 0.3s ease-in-out;
}

/* Conteneur du menu */
.menu-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.desktop-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  flex-shrink: 0;
}

footer {
  flex-shrink: 0;
}

/* 📌 Correction du Footer */
footer {
  background-color: #5A5A5A !important; /* Forcer la couleur */
  color: white !important; /* Texte en blanc */
  padding: 20px;
  text-align: center;
}

/* Vérification des classes Bootstrap */
footer[class*="bg-light"], footer[class*="bg-white"] {
  background-color: #5A5A5A !important; /* Supprime l’effet Bootstrap */
}

footer a {
  color: white !important; /* Assurer que les liens restent blancs */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Version mobile */
@media (max-width: 991.98px) {
  .desktop-header {
    display: none !important;
  }

  .mobile-header {
    display: block !important;
  }

  .desktop-menu {
    display: none !important;
  }

  #close-search,
  #close-menu {
    display: none !important;
  }
  /* Footer */
footer {
  background-color: #5A5A5A !important; /* Couleur de fond */
  color: white !important; /* Texte en blanc */
  padding: 20px;
}

/* Liens du footer */
.footer-link {
  color: white !important; /* Assurer que les liens sont en blanc */
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline; /* Effet au survol */
}

}

/* Version desktop */
@media (min-width: 992px) {
  .mobile-header {
    display: none !important;
  }

  .search-bar {
    width: 100%;
    max-width: 280px !important;
  }
}

/* 🔴 Menu déroulant → noir et sans soulignement */
#menu-dropdown a {
  color: #000 !important;
  text-decoration: none !important;
}

#menu-dropdown a:hover {
  color: #3C97C4 !important;
  transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #3C97C4 !important;
  transition: color 0.3s ease-in-out;
}
