/* Barre haute, même esprit que la barre basse :
   hauteur modérée, transparence légère. */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* même fond / transparence que la bottom-bar */
    background: rgba(0,0,0,0.35);
    color: #ddd;
}

/* même épaisseur visuelle que la bottom-bar : padding vertical 12px */
.topbar-inner {
    width: 100%;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo à gauche, boutons à droite */
}

/* Logo à gauche */
.site-logo {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: #ffffff;
    text-decoration: none;
}

/* Colonne de droite : langues + nav */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;          /* même écart partout */
    margin-left: auto;
}

.lang-switcher {
    position: relative;
    margin-right: 0;   /* pas d’espace supplémentaire côté FR */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

/* Boutons "pilule" */
.topbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(10, 33, 57, 0.80);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.topbar-pill:hover {
    background: rgba(255,255,255,0.10);
}

/* Contact un peu plus marqué, mais même taille */
.topbar-pill-primary {
    border-width: 2px;
}

/* Espace client : beige tirant vers les roseaux de la photo */
.topbar-pill-accent {
    background: #f0e3a4;
    border-color: #f0e3a4;
    color: #12202f;
    font-weight: 600;
}

.topbar-pill-accent:hover {
    filter: brightness(1.06);
}

/* Langues */
.lang-toggle {
    min-width: 56px; /* taille visuelle proche des autres boutons */
}

.chevron {
    margin-left: 6px;
    font-size: 9px;
}

/* Menu langues : ouverture au clic via JS (classe .open) */
.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: rgba(10, 33, 57, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 0;
    display: none;
}

.lang-menu.open {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 6px 14px;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.lang-menu a:hover,
.lang-menu a.active {
    background: rgba(255,255,255,0.18);
}

/* Dropdown Services */
.topbar-dropdown {
    position: relative;
}

.topbar-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: rgba(10, 33, 57, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 0;
    display: none;
}

.topbar-dropdown .dropdown-menu.open {
    display: block;
}

.topbar-dropdown .dropdown-menu a {
    display: block;
    padding: 6px 14px;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-dropdown .dropdown-menu a:hover {
    background: rgba(255,255,255,0.18);
}

/* Responsive léger */
@media (max-width: 900px) {
    .topbar-inner {
        padding: 8px 12px;
    }
    .topbar-right {
        gap: 6px;
    }
    .topbar-pill {
        padding: 4px 10px;
        font-size: 12px;
    }
}
