/* ===================================
   Language Switcher — FR / EN
   =================================== */

.lsw-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

/* ── Buttons ── */
.lsw-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: opacity 0.2s, transform 0.15s;
    text-decoration: none;
    line-height: 1;
}

.lsw-btn:hover {
    opacity: 0.75;
    transform: scale(1.08);
}

.lsw-btn:focus-visible {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

/* ── Flag emoji ── */
.lsw-flag {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
}

/* ── Text label ── */
.lsw-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #888;
    transition: color 0.2s;
}

/* ── Active state ── */
.lsw-btn.lsw-active .lsw-label {
    color: #4285F4;
}

.lsw-btn.lsw-active .lsw-flag {
    filter: none;
}

.lsw-btn:not(.lsw-active) .lsw-flag {
    filter: grayscale(40%) opacity(0.7);
}

.lsw-btn:not(.lsw-active) {
    opacity: 0.65;
}

.lsw-btn.lsw-active {
    opacity: 1;
}

/* ── Divider ── */
.lsw-divider {
    color: #ccc;
    font-weight: 300;
    font-size: 16px;
    user-select: none;
}

/* ── Loading spinner on active button ── */
.lsw-btn.lsw-loading .lsw-flag {
    animation: lsw-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes lsw-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Hide Google Translate toolbar ── */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.skiptranslate {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
    position: initial !important;
}

iframe.goog-te-banner-frame {
    display: none !important;
}
