/* ============================================
   LANGUAGE TOGGLE - Patte de chien FR/EN
   Version sobre et elegante
   ============================================ */

.language-toggle {
    display: flex;
    align-items: center;
}

.language-toggle-switch {
    position: relative;
    width: 52px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.language-toggle-switch:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Labels FR et EN */
.language-toggle-switch::before {
    content: 'EN';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.language-toggle-switch::after {
    content: 'FR';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* La patte de chien (curseur) - icone Font Awesome */
.language-toggle-paw {
    position: absolute;
    top: 0px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    /* Fond opaque en forme de pillule */
    background-color: var(--primary-color, #212C21);
    width: 30px;
    height: 22px;
    border-radius: 11px;
    /* Centrage parfait */
    font-size: 18px;
    text-align: center;
    line-height: 22px;
}

/* Decaler la patte de 1px vers le bas */
.language-toggle-paw.fa-paw::before {
    position: relative !important;
    top: 1px !important;
}

/* Position FR (droite) - cache le FR */
.language-toggle-switch[data-locale="fr"] .language-toggle-paw {
    left: 21px;
}

/* Position EN (gauche) - cache le EN */
.language-toggle-switch[data-locale="en"] .language-toggle-paw {
    left: 1px;
}

/* Hover effect */
.language-toggle-switch:hover .language-toggle-paw {
    opacity: 0.9;
}

/* Version mobile */
@media (max-width: 991px) {
    .language-toggle {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .language-toggle-switch {
        width: 48px;
        height: 22px;
    }
    
    .language-toggle-paw {
        font-size: 18px;
        width: 22px;
        height: 22px;
    }
    
    .language-toggle-switch[data-locale="fr"] .language-toggle-paw {
        left: 24px;
    }
    
    .language-toggle-switch::before,
    .language-toggle-switch::after {
        font-size: 8px;
    }
}
