/* Logo texte */
[class^="header-"] .logo {
  width: 80px;
}
[class^="header-"] .logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--black);
}

/* ===========================================
    MEGA MENU DESKTOP
    =========================================== */
[class^="header-"] .nav-desktop {
  height: 100%;
}

[class^="header-"] .nav-desktop > * {
  height: 100%;
  display: flex;
  align-items: center;
}

/* ===========================================
    NAVIGATION MOBILE
    =========================================== */

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}
.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

.nav-mobile {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile.is-active {
  transform: translateX(0);
}
.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-mobile-close:hover {
  background: var(--secondary);
}

.nav-mobile-inner {
  padding: 20px;
}
.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  border-top: 1px solid var(--gray-dark);
}
.nav-mobile-inner > .nav-mobile-link:first-of-type {
  border-top: none;
}
.nav-mobile-link:last-of-type {
  border-bottom: 1px solid var(--gray-dark);
}
.nav-mobile-link svg {
  width: 20px;
  height: 20px;
  color: var(--gray-dark);
  transition: transform 0.3s ease;
}
.nav-mobile-item.is-open .nav-mobile-link svg {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Sous-menu mobile */
.mobile-submenu {
  display: none;
  padding: 0 16px 16px 16px;
}
.nav-mobile-item .mobile-submenu.is-open {
  display: block;
}
.mobile-submenu-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
}
.mobile-submenu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  text-decoration: none;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
}

.mobile-submenu-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-submenu-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.mobile-submenu-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-dark);
}
.nav-mobile-cta {
  display: block;
  margin: 24px 20px;
  padding: 18px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

/* ==========================
   MOBILE ONLY
   ========================== */

@media (max-width: 1440px) {
  .mega-menu-services {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .menu-toggle {
    display: none;
  }
}
