

.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10001 !important;
    background: #ffffff !important;
    border-bottom: 2px solid #e0e7ff !important;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06) !important;
    transition: all 0.2s ease !important;
}

.header.scrolled {
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12) !important;
}

.navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 70px !important;
    gap: 2rem !important;
    position: relative !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}

/* ==========================================
   LOGO MODERNE & �PUR�
   ========================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-text {
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text strong {
    color: inherit;
}

.logo-domain {
    color: inherit;
}

.logo-slogan {
    font-size: 0.6rem;
    color: #1e40af;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(8, 145, 178, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex !important;
    gap: 0.25rem !important;
    align-items: center !important;
    flex: 1 !important;
    justify-content: flex-end !important;
    position: relative !important;
    z-index: 1 !important;
}

.nav-link {
    text-decoration: none !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    position: relative !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.nav-link i {
    font-size: 0.875rem !important;
}

.nav-link:hover {
    color: #111827 !important;
    background: #f3f4f6 !important;
}

.nav-link.active {
    color: #1e40af !important;
    background: #eff6ff !important;
    font-weight: 600 !important;
}

/* Lien connexion */
.nav-link-login {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    margin-left: 0.5rem !important;
    border-radius: 8px !important;
}

.nav-link-login:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #14b8d4 100%) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

/* Lien d�connexion */
.nav-link-logout {
    color: #dc2626 !important;
}

.nav-link-logout:hover {
    color: #991b1b !important;
    background: #fef2f2 !important;
}

/* Lien Recruteurs */
.nav-link-recruteur {
    color: #059669 !important;
    font-weight: 600 !important;
}

.nav-link-recruteur:hover {
    color: #047857 !important;
    background: #f0fdf4 !important;
}

/* Image profil */
.nav-profile-img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Badge NEW */
.new-badge {
    display: inline-block !important;
    background: linear-gradient(135deg, #1e40af, #0891b2) !important;
    color: white !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    margin-left: 0.25rem !important;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4) !important;
    animation: pulse 2s infinite !important;
}

/* Lien Profil IA */
.nav-link.ai-magic-link {
    position: relative !important;
    color: #1e40af !important;
    font-weight: 600 !important;
    margin-right: 1rem !important;
}

/* ==========================================
   LIEN CV BUILDER - MISE EN VALEUR
   ========================================== */
.nav-link.nav-cv-builder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.nav-link.nav-cv-builder:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    color: white !important;
}

.nav-link.nav-cv-builder.active {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    color: white !important;
}

.nav-link.nav-cv-builder i {
    color: white !important;
}

/* Badge PRO dans le dropdown */
.badge-new {
    display: inline-block !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    font-size: 0.5rem !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
    margin-left: 4px !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
}

/* Items PRO dans le menu Mon Espace */
.pro-item {
    background: #f0fdf4 !important;
    border-left: 3px solid #22c55e !important;
}

.pro-item:hover {
    background: #dcfce7 !important;
}

.pro-item i {
    color: #22c55e !important;
}

/* Badge PRO - Style vert comme le design */
.badge-pro {
    background: #22c55e !important;
    color: #fff !important;
    font-size: 9px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Menu Mon Espace - Styles �pur�s */
.mon-espace-menu {
    min-width: 400px !important;
    padding: 0.5rem !important;
}

.mon-espace-menu .nav-dropdown-item {
    padding: 0.875rem 1.125rem !important;
    margin-bottom: 0.5rem !important;
}

.mon-espace-menu .nav-dropdown-item:last-child {
    margin-bottom: 0 !important;
}

.mon-espace-menu .nav-dropdown-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.mon-espace-menu .nav-dropdown-desc {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    white-space: nowrap;
}

.menu-promo-header {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.menu-promo-header i {
    color: #f59e0b;
    font-size: 16px;
}

.menu-cta {
    padding: 12px 15px;
    background: transparent;
    border-top: 1px solid #f3f4f6;
    margin-top: 5px;
}

.btn-menu-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    color: #1e40af !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-menu-register:hover {
    color: #0891b2 !important;
    background: none;
    transform: none;
    box-shadow: none;
}

.btn-menu-register i {
    font-size: 12px;
    color: #22c55e;
}

.nav-link.ai-magic-link:hover {
    color: #1e3a8a !important;
    background: #eff6ff !important;
}

.nav-link.ai-magic-link i {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.nav-link.ai-magic-link > span:not(.new-badge) {
    background: linear-gradient(135deg, #1e40af, #0891b2) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

/* Ic�ne sparkle simple */
@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fa-sparkles {
    animation: sparkle 2s ease-in-out infinite !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 0.125rem;
    }
    
    .nav-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        background: transparent !important;
        border: none !important;
        padding: 0.5rem !important;
    }
    
    .mobile-menu-toggle span {
        pointer-events: none !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-height: calc(100vh - 64px) !important;
        overflow-y: auto !important;
        background: white !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 1rem !important;
        padding-top: 0.5rem !important;
        gap: 0.5rem !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
        border-top: 2px solid #e0e7ff !important;
        display: none !important;
        z-index: 10002 !important;
        /* Annuler les transform/opacity de style.css */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-links.active {
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-link {
        width: 100% !important;
        min-width: 100% !important;
        padding: 0.75rem 1rem !important;
        justify-content: flex-start !important;
        font-size: 0.9375rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        white-space: nowrap !important;
        text-align: left !important;
    }
    
    .nav-link i {
        font-size: 1rem !important;
        flex-shrink: 0 !important;
        width: 1.25rem !important;
    }
    
    /* Forcer l'affichage complet des spans de texte */
    .nav-link > span {
        display: inline !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 0.9375rem !important;
        color: inherit !important;
        white-space: nowrap !important;
    }
    
    /* S'assurer que le texte prend de la place */
    .nav-link {
        flex-wrap: nowrap !important;
    }
    
    /* Badge NEW en mobile - ne pas le compter dans flex */
    .nav-link .new-badge {
        flex-shrink: 0 !important;
    }
    
    /* Image profil */
    .nav-link .nav-profile-img {
        flex-shrink: 0 !important;
    }
    
    /* Badge NEW en mobile */
    .new-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-left: 0.5rem !important;
    }
    
    /* Lien Profil IA en mobile */
    .nav-link.ai-magic-link {
        margin-right: 0 !important;
    }
    
    .nav-link[href="/login"],
    .nav-link[style*="background: linear-gradient"] {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-slogan {
        font-size: 0.5625rem;
    }
}

/* Tr�s petits �crans (400px et moins) */
@media (max-width: 480px) {
    .navbar {
        height: 60px !important;
    }
    
    .nav-links {
        top: 60px !important;
        max-height: calc(100vh - 60px) !important;
        padding: 0.75rem !important;
    }
    
    .nav-link {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.875rem !important;
    }
    
    .logo-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
    
    .logo-text {
        font-size: 0.9rem !important;
    }
    
    .logo-slogan {
        font-size: 0.5rem !important;
    }
}

/* Image profil dans le menu */
.nav-link img {
    border-radius: 50%;
    object-fit: cover;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 0;
}

.header + * {
    margin-top: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-dropdown-toggle:hover {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.05);
}

.nav-dropdown-toggle i:first-child {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.nav-dropdown-arrow {
    font-size: 0.625rem !important;
    transition: transform 0.2s ease;
    margin-left: 0.25rem;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 320px;
    padding: 0.5rem;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
    z-index: 10002;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: #374151;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-dropdown-item:last-child {
    margin-bottom: 0;
}

.nav-dropdown-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    color: #1e40af;
    transform: translateX(2px);
}

.nav-dropdown-item i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover i {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    transform: scale(1.05);
}

.nav-dropdown-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.nav-dropdown-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.nav-dropdown-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.3;
}

.nav-dropdown-item:hover .nav-dropdown-desc {
    color: #64748b;
}

/* Mobile dropdown */
@media (max-width: 1024px) {
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start !important;
    }
    
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        display: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
        max-height: 500px;
        transform: none;
    }
    
    .nav-dropdown-item {
        padding: 0.75rem;
    }
    
    .nav-dropdown-item i {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}
