/* Main header container - fixed at top */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent; /* transparent au lieu de blanc */
  box-shadow: none;        /* supprime l’ombre */
  z-index: 1000;
}


/* Header content container */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1366px;
    margin: 0 auto;
    padding: 15px 40px;
    position: relative;
}

/* Logo styles */
.header-logo {
    flex-shrink: 0;
    z-index: 1001; /* Higher than navigation for mobile */
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

/* Logo hover effect */
.logo-img:hover {
    transform: scale(1.05);
}

/* Navigation container - positioned towards the right */
.header-nav {
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes nav to the right */
    margin-right: 40px; /* Additional right spacing */
}

/* Main navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
    align-items: center;
}

/* Individual navigation items */
.nav-item {
    position: relative;
}

/* Navigation links */
.nav-link {
    display: block;
    padding: 8px 0;
    color: var(--color-primary, #0a244e);
    text-decoration: none;
    font-family: 'MomoTrustSans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect for navigation links */
.nav-link:hover {
    color: var(--color-secondary, #3b82f6);
    transform: translateY(-1px);
}

/* Underline animation on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary, #3b82f6);
    transition: width 0.3s ease;
}

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

/* ================================================
   DROPDOWN MENU STYLES
   ================================================ */

/* Dropdown container */
.nav-item-dropdown {
    position: relative;
}

/* Dropdown menu - hidden by default */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    list-style: none;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
}

/* Show dropdown on hover */
.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown menu items */
.dropdown-menu li {
    margin: 0;
}

/* Dropdown links */
.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--color-primary, #0a244e);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Dropdown link hover effect */
.dropdown-menu a:hover {
    background: var(--color-gray-light, #f8f9fa);
    color: var(--color-secondary, #3b82f6);
    padding-left: 30px;
}

/* ================================================
   CTA BUTTON STYLES
   ================================================ */

/* CTA button specific styles */
.nav-button {
    background: var(--color-secondary);
    color: var(--color-white, #ffffff) !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Remove underline from CTA button */
.nav-button::after {
    display: none;
}

/* CTA button hover effects */
.nav-button:hover {
    background: var(--color-tertiary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 36, 78, 0.15);
}

/* ================================================
   MOBILE RESPONSIVE STYLES
   ================================================ */

@media (max-width: 1024px) {
    .header-container {
        padding: 15px 30px;
    }
    
    .nav-menu {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
    }
    
    .header-nav {
        margin-right: 0;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 15px;
    }
    
    /* Adjust dropdown for mobile */
    .dropdown-menu {
        min-width: 200px;
    }
}

@media (max-width: 640px) {
    /* Stack logo and navigation for very small screens */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .header-nav {
        margin: 0;
        width: 100%;
        justify-content: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Adjust dropdown positioning for mobile */
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .nav-item-dropdown:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* ================================================
   ACCESSIBILITY & PERFORMANCE
   ================================================ */

/* Focus styles for keyboard navigation */
.nav-link:focus,
.nav-button:focus {
    outline: 2px solid var(--color-secondary, #3b82f6);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .nav-link,
    .dropdown-menu,
    .nav-button,
    .logo-img {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link {
        border-bottom: 2px solid transparent;
    }
    
    .nav-link:hover {
        border-bottom-color: currentColor;
    }
}
