/* =====================================================
   🎯 STYLES SPÉCIFIQUES AU BOUTON PORTFOLIO
   ================================================= */

/* ===== STYLE GÉNÉRAL DU CONTENEUR DU BOUTON ===== */
.portfolio-button {
    display: flex;
    align-items: center;
    justify-content: center;
    /* MODIFIÉ : On aligne le modèle de boîte sur celui du .slider-container */
    margin: 2rem 0; /* Identique au .slider-container */
    padding: 0;     /* Le .slider-container n'a pas de padding */
    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) ===== */
.portfolio-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) ===== */
.portfolio-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);
}

/* =====================================================
   ✨ ANIMATION DU REFLET (POUR LE BOUTON PORTFOLIO) ✨
   ================================================= */

/* --- DÉFINITION DU REFLET --- */
.portfolio-button .next-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Position initiale, en dehors du bouton sur la gauche */
    width: 80%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease-in-out; /* Transition pour l'effet de survol */
}

/* --- 1. DÉCLENCHEMENT AU SURVOL (HOVER) --- */
.portfolio-button .next-button:hover::before {
    left: 150%; /* Le reflet traverse le bouton */
}

/* --- 2. DÉCLENCHEMENT UNIQUE VIA JAVASCRIPT --- */

/* Keyframes qui reproduit exactement l'animation du survol */
@keyframes shine-once {
    from { left: -150%; }
    to { left: 150%; }
}

/* 
   Cette classe est ajoutée par le JS sur le conteneur du bouton 
   (.portfolio-button) et cible le reflet à l'intérieur.
*/
.play-shine-animation .next-button::before {
    transition: none; 
    animation: shine-once 1.2s ease-in-out;
    animation-delay: 0.2s;
}