:root {
    --primary: #005588;
    --accent: #00ff88;
    --text: #e0e0e0;
}

.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--accent);
    z-index: 2147483647;
    padding: 18px 40px;
    font-family: 'Cormorant Garamond', serif;
}

.navbar-container {
    max-width: 1900px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2.7rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 3px;
    line-height: 1.05;
}

.brand-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 8px;
    display: block;
    margin-top: -4px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: var(--accent); /* ← VERT EN PERMANENCE */
    text-decoration: none;
    font-size: 1.15rem;
    position: relative;
    transition: all .3s;
}

.nav-link:hover {
    opacity: 0.85; /* Légère variation au hover pour garder un feedback */
}

/* Barre soulignement au hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all .4s;
}

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

.dropdown {
    position: relative;
}

.dropdown-toggle i {
    margin-left: 6px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    border: 1px solid rgba(0,255,136,0.4);
    border-radius: 12px;
    min-width: 280px;
    padding: 15px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .3s ease;
    z-index: 9999;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    top: 110%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 25px;
    color: var(--text);
    text-decoration: none;
    transition: all .3s;
}

.dropdown-menu a:hover {
    background: rgba(0,255,136,0.15);
    color: var(--accent);
}

.user-welcome,
.user-welcome a,
.user-welcome span,
.user-welcome strong {
    color: #fff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.user-block {
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.35);
    border-radius: 16px;
    padding: 14px 18px;
    min-width: 340px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 0 25px rgba(0,255,136,0.15);
}

.user-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 6px;
}

.user-links a:hover {
    color: var(--accent);
}

.user-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #999;
    gap: 8px;
}

.search-box {
    position: relative;
}

.search-box input {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 6px 32px 6px 10px;
    border-radius: 20px;
    width: 130px;
    transition: all .4s;
}

.search-box input:focus {
    width: 160px;
    border-color: var(--accent);
    outline: none;
}

.search-box i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
}

.admin-panel {
    background: rgba(0,255,136,0.12);
    border: 1px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
}

.admin-header {
    background: var(--accent);
    color: #000;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header i {
    transition: transform .4s;
}

.admin-panel.open .admin-header i {
    transform: rotate(180deg);
}

.admin-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .6s ease;
    background: #111;
    padding: 0 12px;
}

.admin-panel.open .admin-content {
    max-height: 3000px;
    padding: 20px 12px;
}

.admin-submenu {
    margin: 16px 0;
}

.submenu-title {
    background: rgba(0,255,136,0.2);
    color: var(--accent);
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.submenu-title::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    transition: transform .4s;
}

.admin-submenu.open .submenu-title::after {
    transform: rotate(90deg);
}

.submenu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
}

.admin-submenu.open .submenu-items {
    max-height: 2000px;
    padding: 8px 0;
}

.submenu-items a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.94rem;
    transition: all .3s;
}

.submenu-items a:hover {
    background: rgba(0,255,136,0.25);
    color: #fff;
}

.mobile-toggle {
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

/* Indicateur En Ligne */
.online-status {
    color: #00ff88;
    font-weight: 600;
    font-size: 0.9em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@media (max-width:992px) {
    .navbar-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .nav-menu,
    .user-block {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .mobile-toggle {
        display: block;
    }
    .mobile-toggle.active ~ .nav-menu,
    .mobile-toggle.active ~ .user-block {
        display: flex;
    }
    .user-block {
        padding: 20px;
        background: rgba(10,10,10,0.98);
        border: none;
        border-radius: 0;
    }
    .admin-panel {
        border-radius: 0;
        margin-top: 0;
    }
}