/* ============================================
   HEADER SITE - Navigation sticky
   Utilise .site-header pour éviter conflits
   ============================================ */

/* Reset fort pour le header */
.site-header,
.site-header * {
    box-sizing: border-box;
}

.site-header ul,
.site-header li {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 99999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .site-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Logo */
.site-header .logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #1a1a1a;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.site-header .logo:hover {
    opacity: 0.8;
}

.site-header .logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-header .logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.site-header .logo-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #1a1a1a;
    white-space: nowrap;
}

.site-header .logo-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
    white-space: nowrap;
}

/* Navigation links */
.site-header .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-header .nav-links > li {
    position: relative;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

.site-header .nav-links > li > a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    white-space: nowrap;
    padding: 10px 0;
    display: block;
    border: none;
    background: none;
    box-shadow: none;
    outline: none;
}

.site-header .nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #000091;
    transition: width 0.3s ease;
}

.site-header .nav-links > li > a:hover {
    color: #000091;
}

.site-header .nav-links > li > a:hover::after {
    width: 100%;
}

/* ============================================
   DROPDOWN (sous-menus)
   ============================================ */

.site-header .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100000;
    list-style: none;
    margin: 0;
}

.site-header .nav-links > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header .dropdown li {
    margin: 0;
}

.site-header .dropdown a {
    display: block;
    padding: 10px 16px;
    color: #4b5563;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-header .dropdown a::after {
    display: none !important;
}

.site-header .dropdown a:hover {
    background: #f3f4f6;
    color: #000091;
}

/* CTA Navigation */
.site-header .cta-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* Language switcher */
.site-header .lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: transparent;
    border-radius: 6px;
}

.site-header .lang-link {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.site-header .lang-link::after {
    display: none !important;
}

.site-header .lang-link:hover {
    color: #1a1a1a;
    background: #e5e7eb;
}

.site-header .lang-link.active {
    color: #000091;
    background: transparent;
    font-weight: 600;
}

.site-header .lang-separator {
    color: #d1d5db;
    font-size: 0.875rem;
    user-select: none;
    font-weight: 300;
}

/* Boutons navigation */
.site-header .btn-nav {
    padding: 10px 20px;
    background: #000091;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.site-header .btn-nav::after {
    display: none !important;
}

.site-header .btn-nav:hover {
    background: #00006b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 145, 0.3);
}

.site-header .btn-nav.btn-admin {
    background: #6b7280;
}

.site-header .btn-nav.btn-admin:hover {
    background: #4b5563;
}

/* ============================================
   MENU MOBILE
   ============================================ */

.site-header .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 100001;
    position: relative;
}

.site-header .mobile-menu-btn:hover {
    opacity: 0.7;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.mobile-menu-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    color: #6b7280;
}

.mobile-menu-close:hover {
    background: #000091;
    border-color: #000091;
    color: white;
}

.mobile-menu-content {
    flex: 1;
    padding: 32px 24px;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0 0 40px 0;
    list-style: none;
}

.mobile-menu .nav-links li {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-menu .nav-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu .nav-links li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu .nav-links li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu .nav-links li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu .nav-links li:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu .nav-links li:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInMenu {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu .nav-links a {
    display: block;
    padding: 24px 0;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-menu .nav-links a::after {
    display: none;
}

.mobile-menu .nav-links a:hover {
    color: #000091;
    padding-left: 16px;
}

.mobile-menu-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.mobile-menu .lang-switch {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    gap: 8px;
}

.mobile-menu .lang-link {
    font-size: 0.9375rem;
    padding: 8px 16px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-menu .lang-link:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.mobile-menu .lang-link.active {
    color: #000091;
    font-weight: 600;
}

.mobile-menu .lang-separator {
    color: #d1d5db;
}

.mobile-menu .cta-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.mobile-menu .btn-nav {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 0.9375rem;
    background: #000091;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-menu .btn-nav:hover {
    background: #00006b;
}

.mobile-menu .btn-nav.btn-admin {
    background: #6b7280;
}

.mobile-menu .btn-nav.btn-admin:hover {
    background: #4b5563;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .site-header .site-nav {
        padding: 0 24px;
    }

    .site-header .nav-links,
    .site-header .cta-nav {
        display: none;
    }

    .site-header .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        max-width: 100%;
    }
    
    .site-header .logo-text {
        display: none;
    }
    
    .site-header .logo-img {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}