/* =====================================================
   NAVBAR PROFESSIONNELLE - ULTRA MODERNE
   ===================================================== */

.navbar-pro {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.navbar-pro.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Navbar toujours visible - pas de masquage au scroll */
.navbar-pro.navbar-hidden {
    transform: translateY(0);
}

.navbar-pro-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2D5016, #5cb85c, #2D5016);
    transition: width 0.3s ease;
    z-index: 10;
}

/* ========== LOGO SECTION ========== */
.navbar-pro-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-pro-logo:hover {
    transform: scale(1.05);
}

.logo-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2D5016 0%, #4a8028 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.logo-icon {
    font-size: 26px;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, #2D5016, #5cb85c);
    border-radius: 12px;
    filter: blur(10px);
    opacity: 0.4;
    z-index: 1;
    animation: glow 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-text-main {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a2f0d, #2D5016);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-text-sub {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== MENU PRINCIPAL ========== */
.navbar-pro-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.08), rgba(92, 184, 92, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.15);
}

.nav-link:hover {
    background: rgba(45, 80, 22, 0.08);
    color: #2D5016;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #2D5016 0%, #4a8028 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.nav-link.active::before {
    display: none;
}

.nav-link.active i {
    color: white;
}

/* ========== DROPDOWN UTILISATEUR ========== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05), rgba(92, 184, 92, 0.05));
    border-radius: 25px;
    border: 1.5px solid rgba(45, 80, 22, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D5016, #5cb85c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.user-avatar i {
    font-size: 20px;
    color: white;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    background: linear-gradient(135deg, #2D5016 0%, #4a8028 100%);
    padding: 1.25rem 1rem;
    color: white;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dropdown-user-avatar i {
    font-size: 24px;
    color: white;
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.dropdown-user-email {
    font-size: 0.8rem;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    color: #6c757d;
    transition: color 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(45, 80, 22, 0.05);
    color: #2D5016;
}

.dropdown-item:hover i {
    color: #2D5016;
}

.dropdown-item.highlight {
    background: linear-gradient(90deg, rgba(45, 80, 22, 0.08), rgba(92, 184, 92, 0.08));
    font-weight: 600;
}

.dropdown-item.highlight i {
    color: #2D5016;
}

.dropdown-item.danger:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.dropdown-item.danger:hover i {
    color: #dc3545;
}

/* ========== BOUTONS CTA ========== */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-nav-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #2D5016 0%, #4a8028 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-nav-login:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(45, 80, 22, 0.4);
    color: white;
}

/* ========== TOGGLE BURGER ========== */
.navbar-pro-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.toggle-bar {
    width: 28px;
    height: 3px;
    background: #2D5016;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-pro-toggle:hover .toggle-bar {
    background: #4a8028;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .navbar-pro-container {
        padding: 0.75rem 1.5rem;
    }

    .navbar-pro-toggle {
        display: flex;
    }

    .navbar-pro-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 90vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 5rem 0 2rem 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .navbar-pro-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        padding: 1.25rem 2rem;
        border-radius: 0;
        justify-content: flex-start;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
        margin-top: 0;
    }

    .nav-dropdown-menu.active {
        transform: none;
    }

    .nav-cta {
        padding: 1.5rem 2rem;
    }

    .btn-nav-login {
        width: 100%;
        justify-content: center;
    }

    .logo-text-sub {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar-pro-container {
        padding: 0.75rem 1rem;
    }

    .logo-text-main {
        font-size: 1.1rem;
    }

    .logo-icon-wrapper {
        width: 42px;
        height: 42px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .user-name {
        max-width: 100px;
    }
}

/* ========== BODY LOCK (menu ouvert) ========== */
body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
