/* ============================================================
   Barre de navigation + menu mobile offcanvas
   Extrait de templates/partials/navbar.html.twig
   ============================================================ */

/* ── Navbar Core ─────────────────────────────────────── */
.iz-navbar {
    height: 72px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(10, 14, 26, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.iz-navbar.iz-navbar--scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(10, 14, 26, 0.08);
    box-shadow: 0 4px 24px rgba(10, 14, 26, 0.08);
    height: 72px;
}

/* ── Brand ───────────────────────────────────────────── */
.iz-navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0;
}

.iz-navbar__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EEF1F9, #F8F9FF);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(21, 87, 255, 0.15);
}

.iz-navbar__brand:hover .iz-navbar__logo {
    background: #1557FF;
    box-shadow: 0 4px 16px rgba(21, 87, 255, 0.35);
    transform: rotate(-5deg);
}

.iz-navbar__brand:hover .iz-navbar__logo img {
    filter: brightness(0) invert(1);
}

.iz-navbar__brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0A0E1A;
    letter-spacing: -0.04em;
    text-decoration: none;
}

/* ── Nav Links ───────────────────────────────────────── */
.iz-nav-link {
    position: relative;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4B5563;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.iz-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 28px);
    height: 2px;
    background: #1557FF;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.iz-nav-link:hover {
    color: #1557FF;
    background: rgba(21, 87, 255, 0.06);
}

.iz-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.iz-nav-link.active {
    color: #1557FF;
}

.iz-nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ── Mobile ──────────────────────────────────────────── */
.iz-navbar__burger {
    background: transparent;
    border: none;
    color: #0A0E1A;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.iz-navbar__burger:hover {
    background: rgba(21, 87, 255, 0.08);
    color: #1557FF;
}

.iz-navbar__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 2px solid rgba(10, 14, 26, 0.1);
    border-radius: 8px;
}

.iz-navbar__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #0A0E1A;
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* ── Offcanvas ───────────────────────────────────────── */
.iz-offcanvas {
    width: 320px !important;
}

.iz-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.iz-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0A0E1A;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.iz-mobile-nav__link:hover {
    background: rgba(21, 87, 255, 0.06);
    color: #1557FF;
    padding-left: 20px;
}

.iz-mobile-nav__link i:first-child {
    width: 20px;
    color: #1557FF;
    font-size: 0.9rem;
}

.iz-offcanvas__footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #EEF1F9;
}
