/**
 * ============================================
 * STYLES GOOGLE TRANSLATE SIMPLIFIÉ - JUKEBOX-CAB
 * ============================================
 * Version alternative avec select HTML natif
 */

/* Conteneur principal du widget */
.google-translate-container {
    display: inline-flex !important;
    align-items: center;
    margin-left: auto;
    position: relative;
    min-height: 40px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999 !important;
    pointer-events: auto !important;
}

/* Masquer la barre Google et éléments indésirables */
.goog-te-banner-frame,
.goog-te-balloon-frame,
div#goog-gt-tt,
div.goog-te-balloon-frame,
.goog-logo-link,
.goog-te-gadget span:first-child {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Style du gadget */
.goog-te-gadget {
    font-family: inherit !important;
    display: inline-block !important;
    visibility: visible !important;
    color: transparent !important;
}

/* Cacher le texte "Sélectionner une langue" par défaut */
.goog-te-gadget > span > span {
    display: none !important;
}

/* Style du sélecteur natif */
.goog-te-combo {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 8px 35px 8px 12px !important;
    color: #fff !important;
    font-size: 14px !important;
    cursor: pointer !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    min-width: 150px !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
}

.goog-te-combo:hover {
    background-color: rgba(74, 144, 226, 0.2) !important;
    border-color: #4a90e2 !important;
}

.goog-te-combo:focus {
    background-color: rgba(74, 144, 226, 0.3) !important;
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2) !important;
}

/* Style des options */
.goog-te-combo option {
    background-color: #1a2332 !important;
    color: #fff !important;
    padding: 8px !important;
}

.goog-te-combo option:hover {
    background-color: #4a90e2 !important;
}

/* Icône globale avant le select */
.google-translate-container::before {
    content: "";
    font-size: 18px;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .google-translate-container {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }
    
    .goog-te-combo {
        width: 100% !important;
        max-width: 200px;
    }
}

/* Assurer que le widget ne cause pas de scroll horizontal */
html, body {
    overflow-x: hidden !important;
}

/* Navbar z-index */
.navbar {
    z-index: 900 !important;
}

.navbar .container {
    position: relative;
    z-index: 901 !important;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.google-translate-container {
    animation: fadeIn 0.3s ease;
}

/* ============================================ */
/* CLASSE NOTRANSLATE - Ne pas traduire */
/* ============================================ */
.notranslate {
    /* Google Translate respecte cette classe automatiquement */
    /* Vous pouvez ajouter un style visuel optionnel : */
}

/* Style optionnel pour voir les éléments non traduits en mode debug */
/*
.notranslate {
    border-bottom: 1px dashed rgba(74, 144, 226, 0.3);
}
*/