/* Style pour le sélecteur de langue en position sticky */
.language-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: bounceIn 0.6s ease forwards;
}

.language-sticky .sticky-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.language-sticky .sticky-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.language-sticky .sticky-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-width: 50px;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.language-sticky.open .sticky-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.language-sticky .sticky-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.language-sticky .sticky-item:hover {
    background-color: #f2f3ff;
}

.language-sticky .sticky-item.active {
    background-color: rgba(123, 137, 255, 0.1);
}

.language-sticky .sticky-flag {
    font-size: 24px;
    display: block;
    /* Pour éviter des problèmes de rendu avec les emoji de drapeaux */
    line-height: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Animation des éléments dans le menu */
.language-sticky.open .sticky-item:nth-child(1) {
    animation: slideIn 0.3s ease forwards;
}
.language-sticky.open .sticky-item:nth-child(2) {
    animation: slideIn 0.3s ease 0.05s forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
