/* Styles pour les bulles de texte à côté des Laure */
.navbar-laure-gallery {
    position: relative;
    overflow: visible;
}

@keyframes hacker-text {
    0% { color: #5ffa83; text-shadow: 0 0 5px rgba(95, 250, 131, 0.8); }
    15% { color: #f5e9d3; text-shadow: 0 0 3px rgba(245, 233, 211, 0.5); }
    30% { color: #5ffa83; text-shadow: 0 0 5px rgba(95, 250, 131, 0.8); }
    45% { color: #f5e9d3; text-shadow: 0 0 3px rgba(245, 233, 211, 0.5); }
    60% { color: #f5e9d3; text-shadow: 0 0 3px rgba(245, 233, 211, 0.5); }
    75% { color: #5ffa83; text-shadow: 0 0 5px rgba(95, 250, 131, 0.8); }
    90% { color: #f5e9d3; text-shadow: 0 0 3px rgba(245, 233, 211, 0.5); }
    100% { color: #5ffa83; text-shadow: 0 0 5px rgba(95, 250, 131, 0.8); }
}

@keyframes glitch-effect {
    0% { transform: translate(-50%, -50%) skew(0deg, 0deg); }
    20% { transform: translate(-50%, -50%) skew(1deg, 0.5deg); }
    40% { transform: translate(-50%, -50%) skew(0deg, 0deg); }
    60% { transform: translate(-50%, -50%) skew(-1deg, -0.5deg); }
    80% { transform: translate(-50%, -50%) skew(0.5deg, 0.5deg); }
    100% { transform: translate(-50%, -50%) skew(0deg, 0deg); }
}

@keyframes blink-cursor {
    0% { border-right-color: rgba(95, 250, 131, 0.7); }
    49% { border-right-color: rgba(95, 250, 131, 0.7); }
    50% { border-right-color: transparent; }
    100% { border-right-color: transparent; }
}

@keyframes flicker-out {
    0% { opacity: 1; }
    10% { opacity: 0.8; }
    20% { opacity: 1; }
    30% { opacity: 0.6; }
    40% { opacity: 1; }
    50% { opacity: 0.4; }
    60% { opacity: 0.8; }
    70% { opacity: 0.2; }
    80% { opacity: 0.5; }
    90% { opacity: 0.1; }
    100% { opacity: 0; }
}

.laure-greeting {
    position: absolute;
    left: 50%; /* Positionné au centre horizontalement */
    top: 50%;
    transform: translate(-50%, -50%); /* Parfaitement centré */
    color: #5ffa83; /* Couleur verte hacker */
    font-family: 'Press Start 2P', monospace; /* Police pixel art */
    font-size: 8px; /* Taille réduite */
    opacity: 0; /* Invisible par défaut */
    text-shadow: 0 0 5px rgba(95, 250, 131, 0.8); /* Lueur verte */
    pointer-events: none;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Transition uniquement sur l'opacité et transform */
    background: rgba(0, 0, 0, 0.8); /* Fond sombre pour effet hacker */
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(95, 250, 131, 0.4); /* Bordure verte */
    z-index: 20; /* Augmenté pour être au-dessus des images */
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(95, 250, 131, 0.4), inset 0 0 8px rgba(95, 250, 131, 0.3);
    backdrop-filter: blur(1px);
}

/* Effet hover pour afficher le texte uniquement au survol */
.navbar-laure-gallery:hover .laure-greeting {
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: hacker-text 2s infinite, glitch-effect 3s infinite;
    box-shadow: 0 0 15px rgba(95, 250, 131, 0.4), inset 0 0 8px rgba(95, 250, 131, 0.3);
    border-color: rgba(95, 250, 131, 0.7);
    border-right: 4px solid rgba(95, 250, 131, 0.7); /* Barre de typing */
    animation-name: hacker-text, glitch-effect, blink-cursor; /* Ajout du clignotement de curseur */
    animation-duration: 2s, 3s, 0.8s;
    animation-iteration-count: infinite, infinite, infinite;
}

/* Effet de disparition lors de la sortie du survol */
.navbar-laure-gallery .laure-greeting.fade-out {
    animation: flicker-out 0.8s forwards;
    border-right-color: transparent; /* Masquer le curseur pendant la disparition */
}

/* Style adapté pour mobile */
@media (max-width: 768px) {
    .laure-greeting {
        left: 50%; /* Centré horizontalement */
        top: 50%; /* Centré verticalement */
        transform: translate(-50%, -50%); /* Centrage parfait */
        font-size: 6px; /* Taille réduite pour mobile */
        padding: 4px 6px; /* Padding réduit */
        border-radius: 3px;
        z-index: 50; /* Z-index très élevé pour s'assurer qu'il reste visible */
        opacity: 0; /* Invisible par défaut sur mobile aussi */
        background: rgba(0, 0, 0, 0.9); /* Fond plus opaque pour lisibilité */
        border: 1px solid rgba(95, 250, 131, 0.8); /* Bordure plus visible */
        box-shadow: 0 0 12px rgba(95, 250, 131, 0.6); /* Lueur plus intense */
        border-right: 4px solid rgba(95, 250, 131, 0.9); /* Barre de typing plus visible sur mobile */
    }
    
    /* Classe spéciale pour le mode mobile */
    .laure-greeting.mobile-greeting {
        transform: translate(-50%, -50%); /* Maintenir le centrage parfait */
    }
    
    /* Animation plus rapide sur mobile */
    .navbar-laure-gallery .laure-greeting {
        animation-name: hacker-text, glitch-effect, blink-cursor;
        animation-duration: 1.5s, 2s, 0.6s; /* Animations plus rapides */
        animation-iteration-count: infinite, infinite, infinite;
    }
    
    /* Effet de disparition plus rapide pour mobile */
    .navbar-laure-gallery .laure-greeting.fade-out {
        animation: flicker-out 0.6s forwards; /* Disparition plus rapide */
    }
}