/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E7EA;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 38px;
  height: 84px;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}

/* Navigation */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #1D252B;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  padding: 10px 0;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link:hover {
  color: #F90;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #F90;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Flèche du dropdown */
.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  color: #1D252B;
}

.expertise-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: #F90;
}

/* Sous-menu déroulant */
.dropdown-menu {
  position: fixed;
  top: 84px; /* Hauteur du header */
  left: 0;
  right: 0;
  background: #1D252B;
  width: 100vw;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-container {
  margin: 0 auto;
  padding: 40px 38px;
  display: flex;
  gap: 30px;
  justify-content: center;
}

.dropdown-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px 17px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dropdown-block:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 40px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.dropdown-link:hover {
  text-decoration: none;
  color: inherit;
}

.dropdown-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-icon {
  width: auto;
  height: 131px;
  transition: all 0.3s ease;
}

.dropdown-content {
  flex: 1;
}

.dropdown-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 32px;
}

/* Bouton Contact */
.header-contact {
  flex-shrink: 0;
}

.btn-header {
  background: transparent;
  color: #1D252B;
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #1D252B;
  display: inline-block;
  line-height: 1;
}

.btn-header:hover {
  background: #1D252B;
  color: #FFF;
}

/* Menu Mobile */
.header-mobile {
  display: none;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #1D252B;
  transition: all 0.3s ease;
}

/* Menu mobile overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: left 0.3s ease;
}

.mobile-menu-overlay.active {
  left: 0;
}

/* Menu mobile panel */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: left 0.3s ease;
  padding: 80px 30px 30px 30px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-panel.active {
  left: 0;
}

/* Navigation mobile */
.mobile-nav {
  margin-bottom: 40px;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  margin-bottom: 20px;
}

.mobile-nav-link {
  color: #1D252B;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 15px 0;
  display: block;
  border-bottom: 1px solid #E2E7EA;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #F90;
  padding-left: 10px;
}

/* Bouton contact mobile */
.mobile-contact {
  margin-top: 30px;
}

.mobile-btn-header {
  background: #F90;
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
}

.mobile-btn-header:hover {
  background: #E68500;
  transform: translateY(-2px);
}

/* Animation pour le menu mobile */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* État actif des liens de navigation */
.nav-link.active {
  color: #F90;
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* État actif des liens de navigation mobile */
.mobile-nav-link.active {
  color: #F90;
  font-weight: 600;
  background: rgba(255, 153, 0, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 2px 0;
}

.mobile-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #F90;
  border-radius: 0 2px 2px 0;
}

/* Effet de scroll sur le header */
.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .header-contact {
    display: none;
  }
  
  .header-mobile {
    display: block;
  }
  
  .header-content {
    padding: 17px 20px;
    height: 74px;
  }
  
  .logo {
    height: 35px;
  }

  /* Ajuster l'espacement pour mobile */
  .header-content {
    justify-content: space-between;
  }

  /* Masquer le dropdown sur mobile */
  .dropdown-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 14px 15px;
    height: 64px;
  }
  
  .logo {
    height: 30px;
  }
  
  .hamburger-line {
    width: 20px;
  }

  /* Menu mobile plus petit sur très petits écrans */
  .mobile-menu-panel {
    width: 280px;
    left: -280px;
    padding: 70px 25px 25px 25px;
  }
}
