/*--------------------------------------------------------------
# New Navigation - Style NewPower Sécurité
--------------------------------------------------------------*/

/* Header */
#header {
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  height: 70px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  top: 0;
}

#header.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

#header.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.98);
}

#header .logo {
  font-size: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#header .logo a {
  color: #222;
}

#header .logo img {
  max-height: 50px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  transition: 0.3s;
  text-decoration: none;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: #0099CC;
}

/* Contact button */
.navbar .nav-contact {
  background: #0099CC;
  color: #fff !important;
  padding: 8px 20px;
  margin-left: 30px;
  border-radius: 4px;
}

.navbar .nav-contact:hover {
  background: #006699;
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #222;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  transition: 0.3s;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #222;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #0099CC;
}

.navbar-mobile .nav-contact {
  margin: 15px;
  display: inline-block;
}

/* Animation for mobile menu items */
.navbar-mobile ul {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fix body scroll when mobile menu is open */
body.mobile-nav-active {
  overflow: hidden;
}

body.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
}

/* Bootstrap Icons fallback (if not loaded) */
.bi-list::before {
  content: "☰";
  font-size: 1.5rem;
}

.bi-x::before {
  content: "✕";
  font-size: 1.5rem;
}