/* Style modernisé pour le sélecteur flottant (position gauche) */
.floating-translate {
    position: fixed;
    bottom: 20px; /* Ajusté pour être plus proche du bord */
    left: 20px;   /* Déplacé à gauche */
    z-index: 9999;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif; /* Police moderne */
}

/* Bouton principal */
.floating-translate .gt_switcher .gt_selected {
    background: linear-gradient(135deg, #4285f4, #34a853) !important;
    color: white !important;
    padding: 12px 24px !important; /* Légèrement plus large */
    border-radius: 30px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    font-weight: 600 !important; /* Semi-gras */
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Effet de survol */
.floating-translate .gt_switcher .gt_selected:hover {
    background: linear-gradient(135deg, #3367d6, #2d8c4a) !important;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Menu déroulant */
.floating-translate .gt_switcher .gt_options {
    border-radius: 12px !important; /* Bords plus arrondis */
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    max-height: 400px !important; /* Plus grand si besoin */
    margin-bottom: 10px; /* Espace avec le bouton */
    background: white !important;
}

/* Options de langue */
.floating-translate .gt_switcher .gt_option {
    padding: 12px 20px !important; /* Plus spacieux */
    transition: background 0.2s ease;
}

.floating-translate .gt_switcher .gt_option:hover {
    background: #f5f5f5 !important;
}

/* Icône de langue */
.floating-translate .gt_switcher .gt_selected a:before {
    content: "🌐";
    margin-right: 10px;
    font-size: 1.2em;
}

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

.floating-translate .gt_switcher .gt_options {
    animation: fadeIn 0.3s ease-out;
}
