/*
 * _header.css — Navbar & navigation
 * ✅ Variables centralisées dans main.css (plus de :root ici)
 * ✅ Harmonisé avec home.css et trips.css
 */

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
    background-color: rgba(10, 22, 40, 0.96) !important; /* --blue-900 avec légère transparence */
    box-shadow: 0 2px 16px rgba(10,22,40,.18);
    padding: .9rem 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ✅ CORRIGÉ : .bg-light2 utilise la même couleur que .navbar */
.bg-light2 {
    background-color: rgba(10, 22, 40, 0.96) !important;
}

/* ═══════════════════════════════════════════
   LOGO
═══════════════════════════════════════════ */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.navbar-brand img {
    width: 48px;
    height: auto;
}

.navbar-brand .text-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: .01em;
    line-height: 1;
}

/* ═══════════════════════════════════════════
   LIENS DE NAVIGATION
═══════════════════════════════════════════ */
.nav-link {
    color: rgba(255,255,255,.80) !important;
    font-weight: 500;
    font-size: .93rem;
    padding: .5rem .9rem !important;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,.08);
}

.nav-link.active {
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   DROPDOWN
═══════════════════════════════════════════ */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    margin-top: .4rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: .55rem .9rem;
    font-size: .9rem;
    color: var(--text-dark);
    transition: background .15s;
}

.dropdown-item:hover {
    background: var(--blue-50);
    color: var(--blue-700);
}

.dropdown-item.text-danger:hover {
    background: #fff0f0;
    color: #dc2626;
}

.dropdown-divider {
    border-color: var(--border);
    margin: .35rem .5rem;
}

/* ═══════════════════════════════════════════
   BOUTON INSCRIPTION (CTA navbar)
   ✅ CORRIGÉ : rouge → bleu cohérent, hover propre
═══════════════════════════════════════════ */
.btn-aventurusse {
    background: var(--red-flag);   /* rouge russe — accent distinctif */
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    padding: .55rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s, transform .15s, box-shadow .15s;
    text-decoration: none;
    display: inline-block;
}

.btn-aventurusse:hover {
    /* ✅ CORRIGÉ : reste dans la même famille de rouge, pas un saut vers le vert */
    background: #b02416;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(213,43,30,.4);
}

/* ═══════════════════════════════════════════
   TOGGLER MOBILE
═══════════════════════════════════════════ */
.navbar-toggler {
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: var(--radius-sm);
    padding: .35rem .65rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--blue-900);
        border-radius: var(--radius-md);
        padding: .75rem 1rem;
        margin-top: .5rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-link {
        padding: .6rem .75rem !important;
    }

    .btn-aventurusse {
        margin-top: .5rem;
        display: block;
        text-align: center;
    }
}
