/* =====================================================
   🎯 STYLES SPÉCIFIQUES AU BOUTON "RENCONTRER L'AVATAR"
   ================================================= */

/* ===== STYLE GÉNÉRAL DU CONTENEUR DU BOUTON ===== */
.rencontrer_l_avatar_button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    padding: 1rem;
    min-height: 80px; 
    box-sizing: border-box;
    /* L'opacité, la transformation et l'affichage sont gérés par JavaScript */
}

/* ===== STYLE VISUEL DU LIEN (BOUTON) ===== */
.rencontrer_l_avatar_button .next-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(145deg, #FFF5C3, #FFD700 30%, #C48E00 70%, #A67000);
    color: #4A2F00;
    text-shadow: 1px 1px 1px rgba(255, 248, 220, 0.5);
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 18px rgba(30, 10, 5, 0.5);
    position: relative; /* Indispensable pour le positionnement du reflet */
    overflow: hidden;   /* Cache le reflet quand il est en dehors du bouton */
    transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}

/* ===== EFFET AU SURVOL (HOVER) ===== */
.rencontrer_l_avatar_button .next-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px 6px rgba(255, 100, 0, 0.30),
        0 12px 22px rgba(30, 10, 5, 0.4);
}

/* =====================================================
   ✨ ANIMATIONS DE REFLET ✨
   ================================================= */

/* --- 1. REFLET AU SURVOL (utilise ::before) --- */
.rencontrer_l_avatar_button .next-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease-in-out;
}

.rencontrer_l_avatar_button .next-button:hover::before {
    left: 150%;
}


/* --- 2. REFLET AU SCROLL (utilise ::after, déclenché par JS) --- */

/* Le pseudo-élément pour le reflet. On utilise ::after pour ne pas
   interférer avec le reflet du survol. */
.rencontrer_l_avatar_button .next-button::after {
    content: '';
    position: absolute;
    top: 0;
    transform: translateX(-150%) skewX(-20deg); /* Position initiale */
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
}

/* La classe '.play-shine-animation' est ajoutée par JS au conteneur.
   Ceci déclenche l'animation sur le pseudo-élément ::after du bouton. */
.play-shine-animation .next-button::after {
    animation: shine-once 0.85s forwards;
}

/* L'animation du reflet, jouée une seule fois. */
@keyframes shine-once {
    100% {
        transform: translateX(250%) skewX(-20deg);
    }
}