/* Extrait de templates/base.html (servi par core/ressources.py, gardé en cache par le navigateur). */
    .ai-floating-btn {
      position: fixed !important;
      bottom: 160px !important;
      right: 16px !important;
      z-index: 99999 !important;
      width: 40px !important;
      height: 40px !important;
      border-radius: 50% !important;
      background: linear-gradient(135deg, #FFD73A 0%, #FFD73A 100%) !important;
      border: 1px solid var(--ixc-bord,#111) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-shadow: 0 4px 15px rgba(255, 215, 58, 0.4) !important;
      cursor: grab !important;
      text-decoration: none !important;
      user-select: none;
      -webkit-user-drag: none;
      touch-action: none;
      opacity: 1 !important;
      transition: opacity 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    }
    
    body.fab-menu-open #ai-floating-btn,
    body:has(#fab-options.open) #ai-floating-btn {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
    }
    
    .ai-floating-btn.ai-btn-transparent:not(:hover):not(:active) {
      opacity: 0.45 !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .ai-floating-btn:active {
      cursor: grabbing !important;
    }
    
    @media (min-width: 1024px) {
      .ai-floating-btn {
        width: 48px !important;
        height: 48px !important;
        bottom: 100px !important;
        right: 24px !important;
      }
    }
    
    .ai-btn-icon-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      perspective: 1000px;
    }

    .ai-btn-icon-wrapper svg {
      display: block;
      width: 20px !important;
      height: 20px !important;
      transform-style: preserve-3d;
      animation: ai-3d-rotate 5s ease-in-out infinite;
    }
    
    @media (min-width: 1024px) {
      .ai-btn-icon-wrapper svg {
        width: 24px !important;
        height: 24px !important;
      }
    }

    @keyframes ai-3d-rotate {
      0% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0);
      }
      25% {
        transform: rotateY(30deg) rotateX(10deg) translateZ(3px);
      }
      50% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0);
      }
      75% {
        transform: rotateY(-30deg) rotateX(-10deg) translateZ(3px);
      }
      100% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0);
      }
    }
  
