/* RevizBAC - Header de la page d'accueil publique (index.php).
   Fond clair volontaire (contraste avec le hero sombre en dessous),
   pleine largeur avec glassmorphism + reduction au scroll. */

.rvz-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    animation: rvzTopbarDrop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rvzTopbarDrop {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

.rvz-topbar-inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px -14px rgba(31, 22, 74, 0.28);
    transition: box-shadow 0.3s ease, padding 0.3s ease, background 0.3s ease;
}

.rvz-topbar.is-scrolled .rvz-topbar-inner {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 34px -10px rgba(31, 22, 74, 0.32);
    padding-top: 12px;
    padding-bottom: 12px;
}

.rvz-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.rvz-topbar-logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rvz-topbar-brand:hover .rvz-topbar-logo {
    transform: rotate(-8deg) scale(1.08);
}

.rvz-topbar-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.rvz-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rvz-topbar-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.rvz-topbar-link:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
}

.rvz-topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px -6px rgba(102, 126, 234, 0.55);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.rvz-topbar-cta i {
    font-size: 0.8em;
    transition: transform 0.25s ease;
}

.rvz-topbar-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -6px rgba(102, 126, 234, 0.65);
}

.rvz-topbar-cta:hover i {
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .rvz-topbar-inner {
        padding: 12px 16px;
        gap: 10px;
    }

    .rvz-topbar-name {
        font-size: 1rem;
    }

    .rvz-topbar-link {
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .rvz-topbar-cta {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .rvz-topbar-cta span {
        display: none;
    }
}
