/* WPML Language Switcher - Style Distinctif */
/* Sélecteurs plus spécifiques pour surcharger Tailwind */

/* Conteneur principal du switcher - Plus spécifique */
li.wpml-ls-item.menu-item {
    margin-left: 1rem !important;
}

/* Le bouton principal du switcher (ES/EN) - Très spécifique */
li.wpml-ls-item.menu-item > div.flex {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    transition: all 0.2s ease !important;
}

li.wpml-ls-item.menu-item > div.flex:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%) !important;
    border-color: #9ca3af !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Le lien à l'intérieur */
li.wpml-ls-item.menu-item a {
    pointer-events: none !important;
}

/* Le texte du code langue (ES/EN) - Override style inline */
li.wpml-ls-item.menu-item .wpml-ls-native,
li.wpml-ls-item.menu-item span.wpml-ls-native {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: #374151 !important;
    text-transform: uppercase !important;
}

/* Icône de dropdown - Override Tailwind */
li.wpml-ls-item.menu-item svg {
    color: #6b7280 !important;
    width: 1rem !important;
    height: 1rem !important;
}

/* Dropdown submenu - Plus spécifique */
li.wpml-ls-item.menu-item ul.absolute {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

/* Items dans le dropdown */
li.wpml-ls-item.menu-item ul li a {
    background: white !important;
    transition: all 0.15s ease !important;
    pointer-events: auto !important;
}

li.wpml-ls-item.menu-item ul li a:hover {
    background: #f3f4f6 !important;
    padding-left: 1.25rem !important;
}

li.wpml-ls-item.menu-item ul li a .wpml-ls-native {
    color: #1f2937 !important;
}

/* Globe icon avant le code langue */
li.wpml-ls-item.menu-item > div.flex::before {
    content: '🌐';
    margin-right: 6px;
    font-size: 14px;
    display: inline-block;
}

/* Responsive mobile */
@media (max-width: 1024px) {
    li.wpml-ls-item.menu-item {
        margin-left: 0 !important;
    }
    
    li.wpml-ls-item.menu-item > div.flex {
        width: 100% !important;
    }
}
