/* --- SÉLECTEUR BOGO INLINE STRICT : FR | EN (BOGO SUITE - V2.0.0) --- */

/* 1. Reset destructif : On écrase toute l'ancienne logique de dropdown */
.wp-block-bogo-language-switcher,
.wp-block-bogo-language-switcher *,
.bogo-language-switcher,
.bogo-language-switcher * {
    box-sizing: border-box !important;
    position: static !important; /* Interdit le mode absolu/dropdown */
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* 2. Le conteneur principal devient une simple ligne flexbox */
.wp-block-bogo-language-switcher {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.bogo-language-switcher {
    display: inline-flex !important;
    flex-direction: row !important; /* Force l'affichage horizontal strict */
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    gap: 8px !important; /* Espacement entre FR, |, et EN */
}

/* 3. Les éléments de la liste sur la même ligne */
ul.bogo-language-switcher li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* 4. Le séparateur vertical "|" ajouté automatiquement entre les langues */
ul.bogo-language-switcher li + li::before {
    content: "|" !important;
    margin-right: 8px !important;
    color: #000000 !important;
    opacity: 0.3 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
}

/* 5. On détruit définitivement l'ancienne petite flèche ▾ du dropdown */
ul.bogo-language-switcher li.current span.bogo-language-name::after {
    content: none !important;
    display: none !important;
}

/* ──── STYLE DES TEXTES ÉPURÉS (FR / EN) ──── */

ul.bogo-language-switcher li a,
ul.bogo-language-switcher li span.bogo-language-name {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-decoration: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

/* Langue active (noire) */
ul.bogo-language-switcher li.current span.bogo-language-name {
    opacity: 1 !important;
    cursor: default !important;
}

/* Langue inactive (grise, devient noire au survol) */
ul.bogo-language-switcher li:not(.current) a {
    opacity: 0.4 !important;
    transition: opacity 0.2s ease !important;
}

ul.bogo-language-switcher li:not(.current) a:hover {
    opacity: 1 !important;
    color: #000000 !important;
    background: transparent !important;
}
