/* Styles pour la bannière des Laure dans la signature */

/* Container pour la bannière des Laure dans la signature */
.signature-laure-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(95, 250, 131, 0.3);
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Styles pour la galerie Laure dans la signature */
.signature-laure-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    position: relative;
}

.signature-laure-gallery .laure-item {
    width: 30px;
    height: 30px;
    margin: 0 3px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    opacity: 0; /* Pour l'animation d'apparition */
}

/* Ajouter une flèche au-dessus des Laure au survol */
.signature-laure-gallery .laure-item::before {
    content: '▼';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--main-decor-color);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.signature-laure-gallery .laure-item:hover {
    transform: scale(1.1);
}

.signature-laure-gallery .laure-item:hover::before {
    opacity: 1;
    animation: arrow-bounce 0.6s infinite alternate;
}

@keyframes arrow-bounce {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-3px); }
}

/* Animation pour l'augmentation du score */
.signature-laure-gallery .laure-item.score-up {
    animation: scoreUp 0.3s ease-out;
}

@keyframes scoreUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.signature-laure-gallery .laure-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.signature-laure-gallery .laure-item:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--main-decor-color);
}

.signature-laure-gallery .laure-item .score {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background-color: var(--main-decor-color);
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    opacity: 0.9;
    z-index: 1;
    transition: all 0.2s;
}

/* Style pour le score qui vient d'être incrémenté */
.signature-laure-gallery .laure-item.score-up .score {
    color: #ff0;
    background-color: #00cc66;
    transform: scale(1.3);
}

/* Style pour la Laure ayant le meilleur score */
.signature-laure-gallery .laure-item.top-score {
    transform: scale(1.2);
    z-index: 5;
}

.signature-laure-gallery .laure-item.top-score img {
    box-shadow: 0 0 10px #5ffa83, 0 0 20px rgba(95, 250, 131, 0.4);
    border: 2px solid #5ffa83;
}

.signature-laure-gallery .laure-item.top-score .score {
    font-weight: bold;
    background-color: #5ffa83;
    color: #000;
    width: 15px;
    height: 15px;
    font-size: 8px;
    box-shadow: 0 0 5px #5ffa83;
}

/* Styles pour la bulle de texte "salut ça va" */
.signature-laure-gallery .laure-greeting {
    position: absolute;
    left: 50%;
    top: -25px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #5ffa83;
    padding: 5px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    z-index: 10;
    opacity: 0;
    text-shadow: 0 0 5px rgba(95, 250, 131, 0.5);
    border: 1px solid rgba(95, 250, 131, 0.5);
    box-shadow: 0 0 8px rgba(95, 250, 131, 0.3);
    white-space: nowrap;
    border-right: 5px solid rgba(95, 250, 131, 0.7);
    animation-name: hacker-text, glitch-effect, blink-cursor;
    animation-duration: 2s, 3s, 0.8s;
    animation-iteration-count: infinite, infinite, infinite;
}

/* Animation pour les Laure dans la signature */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de disparition de la bulle */
@keyframes flicker-out {
    0% { opacity: 1; }
    10% { opacity: 0.7; }
    20% { opacity: 0.9; }
    30% { opacity: 0.2; }
    40% { opacity: 0.8; }
    50% { opacity: 0.3; }
    60% { opacity: 0.5; }
    70% { opacity: 0.7; }
    80% { opacity: 0.2; }
    90% { opacity: 0.1; }
    100% { opacity: 0; }
}

/* Classe pour l'effet de disparition */
.signature-laure-gallery .laure-greeting.fade-out {
    animation: flicker-out 0.8s forwards;
}

/* Style adapté pour mobile */
@media (max-width: 768px) {
    .signature-laure-banner {
        max-width: 380px; /* Augmenté pour que tous les Laure tiennent sur une seule ligne */
        padding: 8px 5px;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        position: relative;
        transform: translateX(0); /* Annule tout décalage potentiel */
        box-sizing: border-box; /* Inclut padding dans la largeur */
        width: 100%; /* Largeur totale pour maximiser l'espace */
    }
    
    .signature-laure-gallery {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap; /* Empêche l'alignement sur plusieurs lignes */
        overflow-x: visible; /* Assure que tout est visible */
    }
    
    .signature-laure-gallery .laure-item {
        width: 25px;
        height: 25px;
        margin: 0 2px;
    }
    
    .signature-laure-gallery .laure-greeting {
        font-size: 10px;
        padding: 4px 6px;
        top: -20px;
    }
}