/* ROBOT COMPAGNON - CSS Pro */

/* Conteneur Flottant */
#vm-robot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* En bas à droite */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Aligne la bulle à droite */
    pointer-events: none;
    /* Ne bloque pas le clic s'il n'y a rien */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Image du Robot */
.robot-img {
    width: 140px;
    /* Taille idéale */
    height: auto;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
    /* Ombre portée réaliste pour PNG */
    animation: robotFloat 4s ease-in-out infinite;
    /* Respiration/Lévitation */
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.robot-img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Animation Lévitation */
@keyframes robotFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* BULLE DE DIALOGUE (Speech Bubble) */
.robot-bubble {
    background: #fff;
    color: #333;
    padding: 12px 18px;
    border-radius: 15px 15px 2px 15px;
    /* Pointe vers le bas droite */
    font-size: 0.95rem;
    font-weight: 600;
    max-width: 200px;
    margin-bottom: 5px;
    margin-right: 40px;
    /* Centré par rapport à la tête */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--vm-orange);
    text-align: center;
}

/* Affichage de la bulle */
.robot-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ÉTATS SPÉCIAUX (Animations CSS supplémentaires) */

/* Shake (Pour attirer l'attention) */
.robot-shake {
    animation: robotShake 0.5s ease-in-out infinite;
}

@keyframes robotShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

/* Point (Pointe du doigt) */
.robot-point {
    transform: translateX(-20px);
    /* Se décale un peu */
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    #vm-robot-container {
        bottom: 10px;
        right: 10px;
    }

    .robot-img {
        width: 100px;
        /* Plus petit sur mobile */
    }

    .robot-bubble {
        font-size: 0.8rem;
        max-width: 160px;
        margin-right: 20px;
    }
}