/* ===== STYLES DE BASE ===== */
body {
    padding-top: 0;
    overflow-x: hidden;
  }
  
  /* ===== STYLES TEXTE ERP INNOV ===== */
.innov-text {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.6rem;
  color: #0393da; /* Bleu pro */
  overflow: hidden;
  white-space: nowrap;
  width: 200px; /* fixe pour éviter que la navbar bouge */
  position: relative;
}
.erp-text-noir{
  color: rgba(0, 0, 0, 0.7);
}
.text-com{
  display: inline-block;
  font-size: 1.4rem;
  font-weight: normal;
  color:  #000000;
}
.erp-text.mobile{ display: none; } 
/* Caché par défaut */

  /* ===== NAVBAR STYLES ===== */
  .layout-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    background: transparent; 
  }
  
  .navbar {
    background-color: white;
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 95%;
    max-width: 1200px;
  }
  
  /* Container pour les éléments de navigation */
  .navbar-nav-container {
    flex-grow: 1;
  }
  
  /* Style des liens de navigation */
  .navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
  }
  
  /* Effet de survol pour liens de navigation */
  .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
  }
  
  /* Animation de soulignement au survol */
  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover::after {
    width: 100%;
  }
  
  /* Style pour les icônes dans la navbar */
  .navbar i,
  .navbar svg {
    transition: color 0.3s ease, transform 0.2s ease;
  }
  
  .navbar i:hover,
  .navbar svg:hover {
    color: #0d6efd !important;
    transform: scale(1.1);
  }
  
  /* Styles pour les boutons d'authentification */
  .btn-login,
  .btn-inscription {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }

  .btn-login {
    background-color: #0d6efd;
    border: 2px solid #0d6efd;
    color: white;
  }

  .btn-login:hover {
    background-color: white;
    color: #0d6efd;
    transform: translateY(-2px);
  }

  .btn-inscription {
    background-color: #ff8c00;
    border: 2px solid #ff8c00;
    color: white;
  }

  .btn-inscription:hover {
    background-color: white;
    color: #ff8c00;
    transform: translateY(-2px);
  }
  /* État scrollé de la navbar */
.navbar.scrolled {
  top: 1px !important;
  padding: 10px 0 !important;
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand {
  margin-left: 1rem !important;
}

/* Pour les écrans desktop uniquement */
@media (min-width: 769px) {
  .navbar.scrolled {
    top: 0 !important;
    padding: 10px 0 !important;
  }
  
  .navbar.scrolled .navbar-brand {
    margin-left: 1rem !important;
  }
}

/* ===== STYLES NAVIGATION MOBILE ===== */
.mobile-nav {
  display: none;
}

.mobile-nav-wrapper {
  position: relative;
}

.mobile-nav-section {
  padding: 1rem 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-toggle:hover {
  background-color: #f8f9fa;
}

.mobile-nav-toggle i {
  transition: transform 0.3s ease;
}

.mobile-nav-toggle.active i {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.mobile-submenu.show {
  display: block;
}

.mobile-submenu-link {
  display: block;
  padding: 0.75rem 2rem;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #e9ecef;
}

.mobile-submenu-link:hover {
  background-color: #e9ecef;
  color: #333;
}

.mobile-auth-section {
  padding: 1.5rem 1rem;
 
}

.mobile-auth-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: #333;
  background-color: #f8f9fa;
  border-radius: 8px;
  font-weight: 500;
}

.mobile-auth-link-hover-registre:hover {
    background-color: #ff8c00;
  color: #ffffff;
}
.mobile-auth-link-hover-login:hover {
    background-color: #0d6efd;
  color: #ffffff;
}

/* ===== RESPONSIVE DESIGN MOBILE ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  .erp-text.desktop { display:inline-block;  font-size: 1.7em;
    color: #0d6efd; } /* Cache la version desktop */
  .erp-text.mobile {
    display: inline-block; /* Affiche la version mobile */
    font-size: 1.6em;
    color: #0d6efd; /* Noir RGBA */ 
 
  }
  .text-com {
    display: inline;
    font-size: 1em;
    font-weight: normal;
    color:  #000000;
  }
  .erp-text-noir{
  color: rgba(0, 0, 0, 0.7);
}
  
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-nav {
    display: block !important;
  }
  
  .navbar-toggler {
    padding: 0.5rem;
    border-radius: 8px;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Animation du bouton hamburger */
  .navbar-toggler[aria-expanded="true"] #menuIcon {
    display: none;
  }
  
  .navbar-toggler[aria-expanded="true"] #closeIcon {
    display: inline-block !important;
  }
  
  /* Masquer l'item Accueil sur mobile */
  .desktop-nav .nav-item:first-child {
    display: none;
  }
}

/* Responsive design pour petits écrans */
@media (max-width: 768px) {
  .navbar {
    padding: 40px 0; 
    width: 100%;
    padding-top:0%;
    border-radius: 0%;
  }
  
  .navbar-brand {
    margin-right: 1rem !important;
  }
  
  .navbar-nav {
    gap: 0.2rem;
  }
  
  .nav-item {
    margin: 0 0.1rem !important;
  }
  
  .nav-link {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8rem;
  }
  
  .nav-text {
    font-size: 0.75rem;
  }
  
  .btn-login,
  .btn-inscription {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .tf-icons {
    font-size: 1rem;
  }
  
  /* Styles spécifiques navigation mobile */
  .mobile-nav-toggle {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
  
  .mobile-submenu-link {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .mobile-auth-link {
    padding: 0.625rem;
    font-size: 0.875rem;
  }
}

/* Responsive design pour très petits écrans */
@media (max-width: 480px) {
  .navbar {
    padding: 8px 0;
    top: 0px;
  }
  
  .navbar-brand .innov-text {
    font-size: 0.9rem;
  }
  
  .navbar-nav {
    gap: 0.1rem;
  }
  
  .nav-item {
    margin: 0 0.05rem !important;
  }
  
  .nav-link {
    padding: 0.2rem 0.3rem !important;
    font-size: 0.7rem;
  }
  
  .nav-text {
    font-size: 0.7rem;
  }
  
  .btn-login,
  .btn-inscription {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
  
  .tf-icons {
    font-size: 0.9rem;
  }
  
  /* Styles spécifiques navigation mobile petits écrans */
  .mobile-nav-toggle {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .mobile-submenu-link {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
  }
  
  .mobile-auth-section {
    padding: 1rem;
  }
  
  .mobile-auth-link {
    padding: 0.5rem;
    font-size: 0.8rem;
    
  }
}

/* Pour les écrans moyens et grands */
@media (min-width: 769px) {
  .btn-login,
  .btn-inscription {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .nav-link {
    font-size: 1rem;
  }
}

/* Assurer que la navigation desktop est visible sur grands écrans */
@media (min-width: 992px) {
  .mobile-nav {
    display: none !important;
  }
  
  .desktop-nav {
    display: flex !important;
  }
}