/* =========================================
   LANG SWITCHER — Menu déroulant (Drop-up)
   ========================================= */

   .lang-switcher-container {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 300;
    font-family: var(--font-main, 'Montserrat', sans-serif);
  }
  
  /* Le bouton principal */
  .lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--color-primary, #0a528e);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 12px rgba(10, 82, 142, 0.3);
    transition: background-color 0.18s, transform 0.18s;
  }
  
  .lang-switcher-btn:active {
    background: #083d6a; /* Couleur un peu plus foncée au clic */
    transform: scale(0.97);
  }
  
  .lang-switcher-btn svg {
    flex-shrink: 0;
  }
  
  /* Le menu des langues (qui s'ouvre vers le haut) */
  .lang-switcher-menu {
    position: absolute;
    bottom: 100%; /* Positionne le menu au-dessus du bouton */
    right: 0;
    margin: 0 0 12px 0; /* Espace de 12px entre le menu et le bouton */
    padding: 8px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    min-width: 130px;
    
    /* Masqué par défaut avec animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  
  /* État ouvert (classe ajoutée en JS) */
  .lang-switcher-container.is-open .lang-switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Les liens à l'intérieur du menu */
  .lang-switcher-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
  }
  
  .lang-switcher-menu a:hover,
  .lang-switcher-menu a:focus {
    background-color: #f0f4f8;
    color: var(--color-primary, #0a528e);
  }
  
  /* Option de la langue actuelle */
  .lang-switcher-menu a.is-active {
    font-weight: 700;
    color: var(--color-primary, #0a528e);
    background-color: #f8fafc;
    pointer-events: none; /* Empêche de cliquer sur la langue déjà active */
  }