/* ═══════════════════════════════════════════════════════════════
   Sylvania — Global Premium Topbar (Visibility Optimized)
   ═══════════════════════════════════════════════════════════════ */

.global-topbar {
    background: rgba(0, 0, 0, 0.95); /* Plus sombre pour faire ressortir les couleurs */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 2px solid rgba(197, 160, 89, 0.5); /* Bordure plus visible */
    padding: 8px 0;
    position: relative;
    z-index: 10000; /* Toujours au-dessus de tout */
    width: 100%;
}

.topbar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Language Switcher in Topbar ── */
.topbar-lang-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
}

.topbar-lang-flag {
    font-size: 1.4rem; /* Plus grand pour être immanquable */
    text-decoration: none;
    opacity: 1; /* Pleine visibilité par défaut */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: none; /* Suppression du gris, couleurs pleines */
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
}

.topbar-lang-flag:hover {
    transform: scale(1.3);
}

.topbar-lang-flag.active {
    border-bottom: 3px solid #C5A059;
    padding-bottom: 2px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .topbar-content {
        justify-content: center;
    }
    .topbar-lang-flag {
        font-size: 1.6rem; /* Envie de plus gros sur mobile */
    }
}

/* ── Dropdown CSS fallback (compatible sans Bootstrap) ── */
.topbar-lang-switcher.dropdown {
    position: relative;
    display: inline-block;
}

.topbar-lang-switcher .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #1a1f2a !important;
    border: 1px solid rgba(197, 160, 89, 0.5) !important;
    border-radius: 4px !important;
    padding: 5px 0 !important;
    margin: 5px 0 0 0 !important;
    list-style: none !important;
    min-width: 130px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
    z-index: 10001 !important;
}

/* Ouverture au survol (hover) pour un accès rapide et compatibilité sans JS/Bootstrap */
.topbar-lang-switcher.dropdown:hover .dropdown-menu {
    display: block !important;
}

.topbar-lang-switcher .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 15px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
}

.topbar-lang-switcher .dropdown-item:hover {
    background-color: rgba(197, 160, 89, 0.2) !important;
    color: #C5A059 !important;
}

.topbar-lang-switcher .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.4em;
    vertical-align: 0.2em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    color: #C5A059;
}

.topbar-lang-switcher .dropdown-toggle {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

