/**
 * CSS pour la barre inférieure futuriste CLEAN
 * - Labels au-dessus du curseur
 * - Design bleuté cohérent avec la sidebar
 * - Pas de conflits de transform ou positionnement
 */

:root {
    /* Contrôle le décalage vertical des labels (distance entre curseur et label) */
    --fut-bottombar-label-vertical-offset: 220px;
    /* Décalage vertical de la barre elle-même */
    --fut-bottombar-bottom-offset: 20px;
}

/* 20260820 - La barre basse conserve exactement la geometrie mobile normale
   lorsque le document passe en plein ecran. */
@media (max-width:680px){
  html body > #fut-bottombar,
  html body > .fut-bottombar,
  html.unipay-native-fullscreen body > #fut-bottombar,
  html.unipay-native-fullscreen body > .fut-bottombar,
  html.unipay-root-fullscreen-active body > #fut-bottombar,
  html.unipay-root-fullscreen-active body > .fut-bottombar,
  html:fullscreen body > #fut-bottombar,
  html:fullscreen body > .fut-bottombar{
    left:24px !important;
    right:24px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
  }
}

/* ============================================
   CONTENEUR PRINCIPAL #fut-bottombar
   ============================================ */

#fut-bottombar {
    position: fixed;
    bottom: var(--fut-bottombar-bottom-offset, 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    min-height: auto;
    box-sizing: border-box;
    pointer-events: auto;
}

/* Éviter tout changement de hauteur au survol */
#fut-bottombar:hover,
#fut-bottombar:focus-within {
    height: auto;
    min-height: auto;
}

/* ============================================
   LISTE (.fut-bottom-list)
   ============================================ */

.fut-bottom-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    width: auto;
    height: auto;
    min-height: auto;
    box-sizing: border-box;
}

/* ============================================
   ITEMS (.fut-bottom-item)
   ============================================ */

.fut-bottom-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    padding: 8px 12px;
    width: auto;
    height: auto;
    min-height: auto;
    min-width: 44px;
    border: none;
    background: transparent;
    color: currentColor;
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
    outline: none;
}

.fut-bottom-item:hover,
.fut-bottom-item:focus {
    color: #00ffff;
}

/* SVG icône dans l'item */
.fut-bottom-item svg,
.fut-bottom-item .fut-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    stroke: currentColor;
    fill: none;
    transition: stroke 0.2s ease;
}

.fut-bottom-item:hover svg,
.fut-bottom-item:focus svg {
    stroke: #00ffff;
}

/* Active state */
.fut-bottom-item.active {
    color: #00ffff;
}

.fut-bottom-item.active svg {
    stroke: #00ffff;
}

/* ============================================
   LABEL (.fut-bottom-label)
   ============================================ */

.fut-bottom-label,
#fut-bottom-label {
    position: fixed;
    z-index: 9999;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    will-change: opacity, top, left;
    contain: strict;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    /* Design futuriste bleuté */
    background: linear-gradient(135deg, rgba(20, 110, 255, 0.98) 0%, rgba(0, 180, 255, 0.98) 50%, rgba(30, 140, 255, 0.98) 100%);
    color: #e8f5ff;
    border: 1.5px solid rgba(0, 255, 255, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.4) inset,
                0 0 15px rgba(30, 144, 255, 0.5),
                0 0 35px rgba(0, 191, 255, 0.3),
                0 0 55px rgba(30, 144, 255, 0.15);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    /* Pas de transform pour le positionnement — c'est le JS qui contrôle top/left */
    transform: none;
}

/* État visible */
.fut-bottom-label.show,
#fut-bottom-label.show {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.8) inset,
                0 0 20px rgba(30, 144, 255, 0.7),
                0 0 40px rgba(0, 191, 255, 0.5),
                0 0 60px rgba(30, 144, 255, 0.3),
                0 0 80px rgba(0, 191, 255, 0.2);
    animation: labelFlameEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               labelMicroPulse 2s ease-in-out infinite 0.3s;
}

/*
 * Desktop-mode override (Assistant)
 *
 * Toujours afficher la barre inférieure propre (clean) et
 * agrandir les éléments et leurs icônes. Ceci désactive la
 * version mobile pour cette barre.
 */

@media (max-width: 880px) {
  #fut-bottombar {
    display: flex !important;
  }
}

/* Agrandissement des éléments de la barre inférieure clean */
.fut-bottom-item {
  min-width: 64px !important;
  min-height: 64px !important;
  padding: 10px 14px !important;
}

/* Agrandissement des icônes */
.fut-bottom-item svg,
.fut-bottom-item .fut-icon {
  width: 32px !important;
  height: 32px !important;
}

/* Animation d'entrée : émergence des flammes */
@keyframes labelFlameEntry {
    0% {
        opacity: 0;
        filter: blur(4px);
        transform: scale(0.75);
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Micro-pulse continu */
@keyframes labelMicroPulse {
    0%,
    100% {
        box-shadow: 0 0 0 1.5px rgba(0, 255, 255, 0.6) inset,
                    0 0 28px rgba(30, 144, 255, 0.72),
                    0 0 56px rgba(0, 191, 255, 0.35),
                    0 0 90px rgba(30, 144, 255, 0.18);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.8) inset,
                    0 0 35px rgba(30, 144, 255, 0.85),
                    0 0 70px rgba(0, 191, 255, 0.45),
                    0 0 110px rgba(30, 144, 255, 0.25);
    }
}

/* Pseudo-élément pour halo futuriste autour du label */
.fut-bottom-label.show::after,
#fut-bottom-label.show::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    background-image: radial-gradient(circle at 50% 20%,
                                      rgba(120, 200, 255, 0.42) 0%,
                                      rgba(30, 140, 255, 0.12) 30%,
                                      rgba(0, 80, 160, 0.05) 60%,
                                      transparent 80%);
    filter: blur(12px) saturate(110%);
    opacity: 0.65;
    mix-blend-mode: screen;
    animation: haloPulse 1.8s ease-in-out infinite;
}

/* Pulse du halo */
@keyframes haloPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.45;
        filter: blur(12px) saturate(95%);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 0.8;
        filter: blur(8px) saturate(120%);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.97);
        opacity: 0.48;
        filter: blur(12px) saturate(95%);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .fut-bottom-item {
        padding: 6px 10px;
    }

    .fut-bottom-item svg,
    .fut-bottom-item .fut-icon {
        width: 20px;
        height: 20px;
    }

    .fut-bottom-label,
    #fut-bottom-label {
        font-size: 11px;
        padding: 6px 10px;
    }

    .fut-bottom-label.show,
    #fut-bottom-label.show {
        box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.5) inset,
                    0 0 15px rgba(30, 144, 255, 0.5),
                    0 0 30px rgba(0, 191, 255, 0.2);
    }
}


/* === CONVERSATION HEADER STRUCTURE (INJECTED – DO NOT REMOVE) === */
.conversation-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.conversation-header-center {
  display: flex;
  justify-content: center;
}

.conversation-count {
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(0, 180, 255, 0.18);
  color: #00eaff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.35);
}

.conversation-header {
  overflow: visible;
  z-index: 2;
}


/* === SIDEBAR PANELS CORE (PHASE 2) === */
.sidebar-panel {
  position: fixed;
  top: 0;
  left: 72px;
  width: calc(100% - 72px);
  height: 100vh;
  z-index: 200;
}
.sidebar-panel-active { display: block !important; }

/* === PHASE 10.4 — Barre inférieure harmonisée avec raccourcis TV === */
#fut-bottombar .fut-bottom-list {
    max-width: min(98vw, 1180px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
#fut-bottombar .fut-bottom-item[data-unipay-shortcut] {
    flex: 0 0 auto;
}
@media (max-width: 768px) {
    #fut-bottombar {
        width: 100vw;
        max-width: 100vw;
        justify-content: flex-start;
        padding: 0 8px;
    }
    #fut-bottombar .fut-bottom-list {
        justify-content: flex-start;
        padding: 0 8px;
    }
}

/* Canonical five-destination navigation. Keep this block last: several legacy
   page stylesheets still contain broader bottom-bar declarations. */
:root {
    --fut-bottombar-label-vertical-offset: 18px;
    --fut-bottombar-bottom-offset: calc(env(safe-area-inset-bottom, 0px) + 12px);
}

html:not(.unipay-bottom-ready) body #fut-bottombar,
html:not(.unipay-bottom-ready) body .fut-bottombar,
html:not(.unipay-bottom-ready) body .fut-bottom-bar,
html:not(.unipay-bottom-ready) body .bottom-bar,
html:not(.unipay-bottom-ready) body .bottombar,
html:not(.unipay-bottom-ready) body .uc-bottom-bar,
html:not(.unipay-bottom-ready) body .ui-bottom-bar,
html:not(.unipay-bottom-ready) body nav.bottom-navigation,
html:not(.unipay-bottom-ready) body .futuristic-bottom-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html body #fut-bottombar {
    position: fixed !important;
    right: auto !important;
    bottom: var(--fut-bottombar-bottom-offset) !important;
    left: 50% !important;
    z-index: 100010 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    overflow: visible !important;
    border: 1px solid rgba(105, 255, 231, .48) !important;
    border-radius: 16px !important;
    color: #eaffff !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .015) 40%, rgba(0, 0, 0, .13)),
        linear-gradient(100deg, rgba(0, 240, 255, .13), rgba(3, 12, 24, .58) 46%, rgba(255, 46, 124, .12)),
        repeating-linear-gradient(108deg, transparent 0 13px, rgba(0, 238, 255, .12) 15px 16px, transparent 18px 31px) !important;
    background-size: 100% 100%, 100% 100%, 220% 100% !important;
    animation: unipayBottomMaterialScan 3.2s linear infinite !important;
    will-change: background-position;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .05) inset,
        0 0 18px rgba(0, 231, 255, .27),
        0 0 24px rgba(255, 53, 132, .10) !important;
    backdrop-filter: blur(12px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(125%) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    transition: opacity .16s ease, visibility 0s linear .16s !important;
}

html body #fut-bottombar::before,
html body #fut-bottombar::after {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    left: 10px !important;
    right: 10px !important;
    height: 1px !important;
    border-radius: 999px !important;
    pointer-events: none !important;
}

html body #fut-bottombar::before {
    top: 0 !important;
    background: linear-gradient(90deg, transparent, rgba(120,255,230,.9), rgba(255,46,124,.5), transparent) !important;
    background-size: 160px 100% !important;
    animation: unipayBottomRail 1.9s linear infinite !important;
    will-change: background-position;
}

html body #fut-bottombar::after {
    bottom: 0 !important;
    background: linear-gradient(90deg, transparent, rgba(255,46,124,.45), rgba(0,238,255,.72), transparent) !important;
    opacity: .72 !important;
    animation: unipayBottomVapor 1.65s ease-in-out infinite !important;
    will-change: opacity, transform;
}

@keyframes unipayBottomMaterialScan {
    from { background-position: 0 0, 0 0, 100% 0; }
    to { background-position: 0 0, 0 0, -120% 0; }
}

@keyframes unipayBottomRail {
    from { background-position: -160px 0; }
    to { background-position: 160px 0; }
}

@keyframes unipayBottomVapor {
    0%, 100% { opacity: .28; transform: scaleX(.72); }
    50% { opacity: .9; transform: scaleX(1); }
}

html.unipay-bottom-ready body #fut-bottombar {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    transition: opacity .16s ease, visibility 0s linear 0s !important;
}

html body #fut-bottombar .fut-bottom-list {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    list-style: none !important;
    scrollbar-width: none !important;
}

html body #fut-bottombar .fut-bottom-list::-webkit-scrollbar {
    display: none !important;
}

/* Pre-peinture globale : aucun ancien bottom bar ne doit apparaitre avant la version canonique. */
html.unipay-bottom-prepaint body > #fut-bottombar,
html.unipay-bottom-prepaint body > .fut-bottombar,
html.unipay-bottom-prepaint body > .fut-bottom-bar,
html.unipay-bottom-prepaint body > .bottom-bar,
html.unipay-bottom-prepaint body > .bottombar,
html.unipay-bottom-prepaint body > .uc-bottom-bar,
html.unipay-bottom-prepaint body > .ui-bottom-bar,
html.unipay-bottom-prepaint body > nav.bottom-navigation,
html.unipay-bottom-prepaint body > .futuristic-bottom-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.unipay-brand-refreshing body {
    opacity: 0 !important;
    transition: opacity .12s ease !important;
}

.unipay-brand,
.unipay-brand-secondary,
[data-unipay-brand] {
    cursor: pointer;
}

html body #fut-bottombar .fut-bottom-item {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 50px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(127, 255, 236, .10) !important;
    border-radius: 12px !important;
    color: rgba(229, 255, 252, .88) !important;
    background: rgba(255, 255, 255, .025) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .02) inset !important;
    cursor: pointer !important;
    transform: translateY(0) !important;
    transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

html body #fut-bottombar .fut-bottom-item:hover,
html body #fut-bottombar .fut-bottom-item:focus-visible {
    color: #ffffff !important;
    border-color: rgba(129, 255, 235, .78) !important;
    background: rgba(0, 231, 255, .14) !important;
    box-shadow: 0 0 15px rgba(0, 231, 255, .40), 0 0 21px rgba(255, 53, 132, .12) !important;
    outline: none !important;
    transform: translateY(-2px) !important;
}

html body #fut-bottombar .fut-bottom-item.active {
    color: #061419 !important;
    border-color: rgba(225, 255, 249, .90) !important;
    background: #8fffe9 !important;
    box-shadow: 0 0 16px rgba(0, 231, 255, .48), 0 0 21px rgba(255, 53, 132, .11) !important;
}

html body #fut-bottombar .fut-bottom-item[data-key="logout"] {
    color: #ff8b9a !important;
    border-color: rgba(255, 91, 119, .28) !important;
}

html body #fut-bottombar .fut-bottom-item[data-key="logout"]:hover,
html body #fut-bottombar .fut-bottom-item[data-key="logout"]:focus-visible,
html body #fut-bottombar .fut-bottom-item[data-key="logout"].pending {
    color: #ffffff !important;
    border-color: rgba(255, 105, 132, .82) !important;
    background: rgba(255, 55, 93, .18) !important;
    box-shadow: 0 0 16px rgba(255, 55, 93, .38) !important;
}

html body #fut-bottombar .fut-bottom-item[data-key="logout"].pending .fut-icon {
    animation: unipayBottomLogoutPulse .7s ease-in-out infinite alternate;
}

@keyframes unipayBottomLogoutPulse {
    from { opacity: .48; }
    to { opacity: 1; }
}

html body #fut-bottombar .fut-bottom-item .fut-icon,
html body #fut-bottombar .fut-bottom-item svg {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    pointer-events: none !important;
}

html body #fut-bottom-label.fut-bottom-label {
    position: fixed !important;
    z-index: 100040 !important;
    display: block !important;
    width: max-content !important;
    max-width: calc(100vw - 16px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    overflow: visible !important;
    border: 1px solid rgba(132, 255, 236, .66) !important;
    border-radius: 5px !important;
    color: #f5ffff !important;
    background: rgba(2, 12, 23, .97) !important;
    box-shadow: 0 0 15px rgba(0, 231, 255, .37), 0 0 20px rgba(255, 53, 132, .10) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    pointer-events: none !important;
    contain: none !important;
    transition: opacity .12s ease, visibility 0s linear .12s !important;
}

html body #fut-bottom-label.fut-bottom-label.show {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: opacity .12s ease, visibility 0s linear 0s !important;
}

html body #fut-bottom-label.fut-bottom-label::after {
    content: none !important;
}

/* Une seule barre de navigation : les anciennes variantes sont retirees par le JS
   et restent invisibles si elles arrivent depuis un ancien fragment de page. */
html body > .fut-bottombar,
html body > .fut-bottom-bar,
html body > .bottom-bar,
html body > .bottombar,
html body > .uc-bottom-bar,
html body > .ui-bottom-bar,
html body > nav.bottom-navigation,
html body > .futuristic-bottom-bar {
    display: none !important;
}

html body #fut-bottombar .fut-bottom-item:hover,
html body #fut-bottombar .fut-bottom-item:focus-visible {
    filter: drop-shadow(0 0 8px rgba(112, 255, 235, .72));
}

@media (max-width: 680px) {
    :root {
        --fut-bottombar-bottom-offset: calc(env(safe-area-inset-bottom, 0px) + 8px);
    }

    html body #fut-bottombar {
        max-width: calc(100vw - 14px) !important;
        padding: 4px 5px !important;
    }

    html body #fut-bottombar .fut-bottom-list {
        gap: 3px !important;
    }

    html body #fut-bottombar .fut-bottom-item {
        flex-basis: 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    html body #fut-bottombar .fut-bottom-item .fut-icon,
    html body #fut-bottombar .fut-bottom-item svg {
        width: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        height: 22px !important;
        min-height: 22px !important;
        max-height: 22px !important;
    }
}

/* 20260818 - La navigation basse conserve exactement sa geometrie en plein
   ecran mobile. Seul le contenu principal change de surface disponible. */
@media (max-width: 680px) {
    html.unipay-mobile-app body #fut-bottombar,
    html.unipay-mobile-app.unipay-native-fullscreen body #fut-bottombar,
    html.unipay-mobile-app.unipay-root-fullscreen-active body #fut-bottombar,
    html.unipay-mobile-app:fullscreen body #fut-bottombar {
        top: auto !important;
        right: auto !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
        left: 50% !important;
        z-index: 100010 !important;
        max-width: calc(100vw - 14px) !important;
        padding: 4px 5px !important;
        transform: translateX(-50%) !important;
    }

    html.unipay-mobile-app body #fut-bottombar .fut-bottom-list,
    html.unipay-mobile-app.unipay-native-fullscreen body #fut-bottombar .fut-bottom-list,
    html.unipay-mobile-app.unipay-root-fullscreen-active body #fut-bottombar .fut-bottom-list,
    html.unipay-mobile-app:fullscreen body #fut-bottombar .fut-bottom-list {
        gap: 3px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        touch-action: pan-x !important;
    }

    html.unipay-mobile-app body #fut-bottombar .fut-bottom-item .fut-icon,
    html.unipay-mobile-app.unipay-native-fullscreen body #fut-bottombar .fut-bottom-item .fut-icon,
    html.unipay-mobile-app.unipay-root-fullscreen-active body #fut-bottombar .fut-bottom-item .fut-icon,
    html.unipay-mobile-app:fullscreen body #fut-bottombar .fut-bottom-item .fut-icon {
        width: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        height: 22px !important;
        min-height: 22px !important;
        max-height: 22px !important;
    }
}

/* Geometrie finale commune aux modes normal et plein ecran. */
@media (max-width:680px){
  html.unipay-mobile-app body > #fut-bottombar,
  html.unipay-mobile-app.unipay-native-fullscreen body > #fut-bottombar,
  html.unipay-mobile-app.unipay-root-fullscreen-active body > #fut-bottombar,
  html.unipay-mobile-app:fullscreen body > #fut-bottombar{
    left:24px !important;
    right:24px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    transform:none !important;
  }
}

/* Nanoriade: the common bottom navigation grows from its central control. */
html body #fut-bottombar {
  width: max-content !important;
  max-width: calc(100vw - 12px) !important;
  padding: 0 !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
  will-change: auto !important;
}
html body #fut-bottombar::before,
html body #fut-bottombar::after { content: none !important; }
html body #fut-bottombar .fut-bottom-list {
  gap: 0 !important;
  width: max-content !important;
  max-width: calc(100vw - 12px) !important;
  overflow: visible !important;
  background: transparent !important;
}
html body #fut-bottombar .fut-bottom-wing-host {
  position: relative;
  flex: 0 0 auto;
  width: 0;
  min-width: 0;
  height: 52px;
  overflow: hidden;
  opacity: 0;
  box-sizing: border-box;
  transition: width .52s cubic-bezier(.18,.82,.19,1), opacity .33s ease;
}
html body #fut-bottombar.is-expanded .fut-bottom-wing-host {
  width: var(--unipay-bottom-wing-width, 176px);
  opacity: 1;
}
html body #fut-bottombar .fut-bottom-wing-host::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(65,220,255,.7), rgba(171,115,255,.55));
  box-shadow: 0 0 12px rgba(67,219,255,.7);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .52s cubic-bezier(.18,.82,.19,1);
}
html body #fut-bottombar .fut-bottom-wing-host--right::before {
  background: linear-gradient(90deg, rgba(171,115,255,.55), rgba(65,220,255,.7), transparent);
  transform-origin: left center;
}
html body #fut-bottombar.is-expanded .fut-bottom-wing-host::before { transform: scaleX(1); }
html body #fut-bottombar .fut-bottom-wing {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}
html body #fut-bottombar .fut-bottom-wing--left { justify-content: flex-end; width: 100%; }
html body #fut-bottombar .fut-bottom-wing--right { justify-content: flex-start; width: max-content; }
html body #fut-bottombar .fut-bottom-wing-host--right { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
html body #fut-bottombar .fut-bottom-wing-host--right::-webkit-scrollbar { display: none; }
html body .fut-nanoriade-message {
  position: fixed;
  z-index: 100009;
  left: 50%;
  bottom: calc(var(--fut-bottombar-bottom-offset, 12px) + 82px);
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(91, 228, 255, .7);
  border-radius: 18px;
  background: rgba(3, 18, 39, .94);
  box-shadow: 0 0 24px rgba(32, 200, 255, .32);
  color: #edfcff;
  font: 13px/1.45 system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 18px) scale(.96);
  transition: opacity .35s ease, transform .45s ease;
}
html body .fut-nanoriade-message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
html body .fut-nanoriade-message img {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}
html body #fut-bottombar .fut-bottom-wing .fut-bottom-item {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(22px) scale(.72) !important;
  transition: opacity .28s ease, transform .52s cubic-bezier(.18,.82,.19,1), color .16s ease, border-color .16s ease, background-color .16s ease !important;
}
html body #fut-bottombar .fut-bottom-wing--right .fut-bottom-item { transform: translateX(-22px) scale(.72) !important; }
html body #fut-bottombar.is-expanded .fut-bottom-wing .fut-bottom-item {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(0) scale(1) !important;
}
html body #fut-bottombar .fut-bottom-hub-host {
  position: relative;
  z-index: 3;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body #fut-bottombar .fut-bottom-nanoriade {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,39,75,.95), rgba(4,12,31,.72) 70%, transparent 74%);
  box-shadow: 0 0 14px rgba(65,220,255,.32), 0 0 28px rgba(147,91,255,.2);
  cursor: pointer;
  isolation: isolate;
}
html body #fut-bottombar .fut-bottom-nanoriade:focus-visible { outline: 2px solid #aeefff; outline-offset: 3px; }
html body #fut-bottombar .fut-nanoriade-ring {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 8deg, #55ebff 0deg 10deg, transparent 10deg 16deg, #7c91ff 16deg 23deg, transparent 23deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 75%, #000 79%);
  mask: radial-gradient(circle, transparent 75%, #000 79%);
  animation: unipayNanoriadeOrbit 8.3s linear infinite;
  pointer-events: none;
}
html body #fut-bottombar .fut-nanoriade-ring--middle {
  inset: 8px;
  background: repeating-conic-gradient(from 13deg, #b880ff 0deg 13deg, transparent 13deg 22deg, #de8dff 22deg 30deg, transparent 30deg 40deg);
  animation: unipayNanoriadeOrbitReverse 5.7s linear infinite;
}
html body #fut-bottombar .fut-nanoriade-ring--inner {
  inset: 16px;
  background: repeating-conic-gradient(from 3deg, #ffe19a 0deg 16deg, transparent 16deg 25deg, #4df4dc 25deg 34deg, transparent 34deg 45deg);
  animation: unipayNanoriadeOrbit 11.6s linear infinite;
}
html body #fut-bottombar .fut-nanoriade-core {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  overflow: hidden;
  border: 1px solid rgba(188,243,255,.85);
  border-radius: 50%;
  background: #04132f;
  box-shadow: 0 0 12px rgba(84,224,255,.6), inset 0 0 10px rgba(129,91,255,.3);
}
html body #fut-bottombar .fut-nanoriade-core img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 36%;
  animation: unipayNanoriadeLogo 4.7s ease-in-out infinite;
}
@keyframes unipayNanoriadeOrbit { to { transform: rotate(360deg); } }
@keyframes unipayNanoriadeOrbitReverse { to { transform: rotate(-360deg); } }
@keyframes unipayNanoriadeLogo {
  0%, 100% { transform: scale(2.25); }
  50% { transform: scale(2.55); }
}
@media (prefers-reduced-motion: reduce) {
  html body #fut-bottombar .fut-nanoriade-ring,
  html body #fut-bottombar .fut-nanoriade-core img { animation: none !important; }
  html body #fut-bottombar .fut-bottom-wing-host,
  html body #fut-bottombar .fut-bottom-wing .fut-bottom-item { transition-duration: .01ms !important; }
}

/* R004 - Icônes plus lisibles et repli automatique des ailes après 2,6 s d’inactivité. */
html body #fut-bottombar .fut-bottom-item {
  border: 1.5px solid rgba(91, 225, 255, .72) !important;
  background: linear-gradient(145deg, rgba(7, 28, 48, .72), rgba(31, 15, 49, .54)) !important;
  box-shadow: 0 0 0 1px rgba(180, 117, 255, .24) inset, 0 0 10px rgba(50, 210, 255, .28), 0 0 16px rgba(164, 94, 255, .12) !important;
}
html body #fut-bottombar .fut-bottom-item .fut-icon,
html body #fut-bottombar .fut-bottom-item svg {
  stroke-width: 1.9px !important;
  filter: drop-shadow(0 0 3px rgba(96, 232, 255, .55));
}
html body #fut-bottombar .fut-bottom-item:focus-visible {
  outline: 2px solid rgba(207, 151, 255, .95) !important;
  outline-offset: 2px !important;
}
html body #fut-bottombar .fut-bottom-item svg * {
  stroke-width: 1.9px !important;
}

/* R008 - Le fond couvre tout le viewport mobile et evite le canvas noir visible en bas. */
html {
  min-height: 100%;
  background-color: var(--unipay-viewport-canvas, #020817);
}
html body {
  min-height: 100vh;
  min-height: 100dvh;
}