/* ============================================================
   NosJardinsEco Theme – topbar.css
   Topbar sticky – simple, robuste, cross-browser
   ============================================================ */

.site-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 300;
    width: 100%;
    height: 34px;
    /* Fond solide – pas de transparency/blur sur le topbar */
    background-color: #1F6F2B;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    /* Safari : pas de will-change ni transform qui briserait sticky */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    overflow: hidden;
}

.topbar-items {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.topbar-item svg {
    width: 12px;
    height: 12px;
    stroke: #E4C97A;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    overflow: visible;
    display: block;
}

.topbar-sep {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.65rem;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 479px) {
    .topbar-item:not(:first-child),
    .topbar-sep {
        display: none;
    }
}

@media (min-width: 480px) and (max-width: 639px) {
    .topbar-item:last-child,
    .topbar-sep:last-of-type {
        display: none;
    }
}
