/**
 * Styles Navbar
 * 1000 Mains et Merveilles
 */

/* ========== NAVBAR ========== */
.navbar-final {
    background: linear-gradient(135deg, #2b519f 0%, #1e3f7d 40%, #1a4a8a 70%, #20b4b7 100%);
    box-shadow: 0 4px 30px rgba(43, 81, 159, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 40px 40px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.navbar-logo-final {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-final-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.logo-final-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text-final {
    display: flex;
    flex-direction: column;
}

.logo-text-final strong {
    font-family: 'Fredoka', 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.logo-text-final small {
    font-family: 'Fredoka', 'Quicksand', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Menu */
.navbar-menu-final {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-menu-final a {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    padding: 10px 16px;
    border-radius: 50px;
    transition: color 0.3s ease;
}

.navbar-menu-final a:hover {
    color: #7dd8da;
}

.nav-highlight {
    color: #ffc837 !important;
}

.nav-highlight:hover {
    color: #ffe08a !important;
}

.btn-nav-final {
    background: linear-gradient(135deg, #f17f0a 0%, #ffc837 100%) !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(241, 127, 10, 0.35);
}

.btn-nav-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 127, 10, 0.5);
    background: linear-gradient(135deg, #f17f0a 0%, #ffc837 100%) !important;
}

/* Lien actif navbar */
.nav-active {
    color: #ffffff !important;
}

/* ========== BURGER MENU (Mobile) ========== */
.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.navbar-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation burger ouvert */
.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ========== RESPONSIVE NAVBAR ========== */
@media (max-width: 1100px) {
    .navbar-menu-final {
        gap: 4px;
    }

    .navbar-menu-final a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .btn-nav-final {
        padding: 8px 18px;
    }

    .logo-text-final strong {
        font-size: 18px;
    }

    .logo-text-final small {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .navbar-burger {
        display: flex;
    }

    .navbar-menu-final {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, #2b519f 0%, #1e3f7d 60%, #20b4b7 100%);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px 40px;
        gap: 10px;
        box-shadow: -10px 0 40px rgba(43, 81, 159, 0.3);
        transition: right 0.3s ease;
    }

    .navbar-menu-final.is-active {
        right: 0;
    }

    .navbar-menu-final a {
        font-size: 18px;
        padding: 14px 20px;
        width: 100%;
        border-radius: 15px;
    }

    .btn-nav-final {
        margin-top: 20px;
        text-align: center;
        border-radius: 50px;
    }

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

    .logo-final-circle {
        width: 46px;
        height: 46px;
    }
}

/* Overlay mobile */
.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 81, 159, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-overlay.is-active {
    display: block;
    opacity: 1;
}
