/* Navigation Styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  height: 5em;
}

/* Background blur effect */
nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: rgba(255, 255, 255, 1);
  z-index: -1;
}

/* Logo styles */
.logo,
.menu-logo {
  position: absolute;
  top: 0.5em;
  z-index: 3;
  scale: 1.2;
  left: 2em;
}

.logo img,
.menu-logo img {
  width: 100px;
  height: auto;
}

/* Navigation items */
.nav-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.nav-link {
  position: relative;
  padding: 1rem;
  left: 10em;
  top: 1em;
}

/* Point noir pour les liens avec dropdown */
.nav-link:has(.dropdown) > a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
}

.nav-link > a {
  position: relative;
  color: #0f0f0f;
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.nav-link > a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #00a0d3;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover > a {
  color: #00a0d3;
}

.nav-link:hover > a::after {
  width: 50%;
}

/* Dropdown styles */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
  color: #0F0F0F;
  background-color: #FFFFFF;
}

.dropdown a:hover {
  background: rgba(11, 162, 31, 0.05);
  color: #00a0d3;
  padding-left: 2rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1.4em;
  right: 2em;
  width: 120px;
  height: 60px;
  background-color: #0f0f0f;
  border-radius: 8em;
  transition: width 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  transform-origin: right;
  cursor: pointer;
  z-index: 9999;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .nav-items {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logo img {
    width: 100px;
  }
}

@media (max-width: 768px) {
  nav::before {
    display: none;
  }

  nav {
    padding: 1em;
  }

  .logo {
    top: 1em;
    left: 1em;
  }

  .menu-toggle {
    top: 1em;
    right: 1em;
    width: 100px;
    height: 50px;
  }
}

/* Menu Mobile */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.menu.active {
  display: block;
}

.menu-content {
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.menu-header {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
}

.menu-logo {
  width: 120px;
}

.menu-logo img {
  width: 100%;
  height: auto;
}

.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  margin-top: 20em;
  scale: 1.1;
}

.mobile-nav-item {
  margin: 0.5rem 0;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.mobile-nav-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 0;
  position: relative;
}

.mobile-nav-header a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-header a:hover {
  color: #00a0d3;
}

.dropdown-toggle {
  position: absolute;
  right: -30px;
  color: #00a0d3;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-item.active .dropdown-toggle {
  transform: rotate(45deg);
}

.mobile-dropdown {
  display: none;
  padding: 0.5rem 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav-item.active .mobile-dropdown {
  display: block;
  max-height: 300px;
}

.mobile-dropdown a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0.25rem 0;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.mobile-dropdown a:hover {
  color: #00a0d3;
  background: rgba(0, 160, 211, 0.1);
}

.menu-footer {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  padding: 0 2rem;
}

.contact-info {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.25rem 0;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #00a0d3;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* Ajustements pour les petits écrans */
@media (max-height: 700px) {
  .mobile-nav {
    padding: 1rem 0;
  }

  .mobile-nav-header a {
    font-size: 1.3rem;
  }

  .mobile-dropdown a {
    font-size: 1rem;
    padding: 0.4rem 1rem;
  }

  .menu-footer {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
  }
}

/* Ajustements pour les très petits écrans */
@media (max-height: 500px) {
  .menu-content {
    padding: 1rem;
  }

  .menu-header {
    top: 1rem;
    left: 1rem;
  }

  .menu-logo {
    width: 100px;
  }

  .mobile-nav-header a {
    font-size: 1.2rem;
  }
} 