body {
    margin: 0;
    padding: 0;
    font-family: 'Bebas Neue', sans-serif;
    background: #1a1a1a;
    color: #fff;
    overflow-y: hidden;
}

.choose-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    height: 100vh;
}

h1 {
    font-size: 3rem;
    color: #ff0000;
    text-shadow: 2px 2px #000;
    margin-bottom: 40px;
}

/* ARÈNE ET JOUEURS */
.arena {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
    margin-left: -60px;
}

.player-slot {
    width: 150px;
    height: 200px;
    border: 3px solid #fff;
    border-radius: 15px;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 20px;
    background: rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.player-slot img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#player1 {
    border: 2px solid #4da6ff;
}

#player2 {
    border: 2px solid #ff4d4d;
}

#player2 img {
    transform: scaleX(-1);
}

.player-slot.selected {
    box-shadow: 0 0 20px #ff0;
    transform: scale(1.1);
}

.vs {
    font-size: 5rem;
    color: #ff0000;
    text-shadow: 3px 3px #000;
}

/* GRID DES PERSOS */
.container-perso-grid {
    position: absolute;
    right: 0;
    top: 70px;
    width: 550px;
    scrollbar-width: auto;
}


.container-perso-grid h1 {
    text-align: left;
    color: #ff0;
    font-size: 2rem;
} 

.perso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px;

    height: 500px;
    overflow-y: auto;
}

.perso-card {
    background: #111;
    border: 2px solid #fff;
    border-radius: 15px;
    padding: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
    height: 200px;
}

.perso-card img {
    margin-top: auto;
    max-width: 100px;
    max-height: 100px;
    border-radius: 10px;
}

.perso-card h2 {
    margin: 10px 0 5px 0;
    font-size: 1.5rem;
    color: #ffcc00;
}

.perso-card .stats {
    display: flex;
    justify-content: space-around;
    font-size: 1rem;
}

/* EFFET HOVER */
.perso-card:hover {
    box-shadow: 0 0 20px #ff0;
}

.selected-p1 {
    outline: 4px solid #4da6ff;
}

.selected-p2 {
    outline: 4px solid #ff4d4d;
}

/* BOUTON COMBAT */
#fightBtn {
    padding: 20px 60px;
    font-size: 1.8rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(to right, #ff0000, #ffcc00);
    cursor: pointer;
    color: #000;
    font-weight: bold;
    transition: transform 0.3s;
}

#fightBtn:hover:enabled {
    transform: scale(1.1);
}

#fightBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* BOUTON ACCUEIL FLOTTANT SANS DÉGRADÉ */
.btn-home-floating {
    position: fixed;     
    top: 20px;          
    left: 20px;       
    padding: 10px 18px;
    font-size: 1.4rem;
    border: 2px solid #ffcc00;  
    border-radius: 12px;
    background-color: #ff0000; 
    color: #ffcc00;              
    color: #fff;           
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;              
    transition: transform 0.2s;
}

.btn-home-floating:hover {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    body {
        overflow-y: auto;
    }

    .perso-grid {
        height: auto;
    }
    
    .choose-container {
        max-width: 90%;
        padding: 15px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .arena {
        flex-wrap: wrap;
        justify-content: center;
        margin: 20px 0;
    }

    .vs {
        font-size: 4rem;
        margin: 15px 0;
    }

    .player-slot {
        width: 130px;
        height: 180px;
        margin: 10px;
    }

    .player-slot img {
        max-width: 90px;
        max-height: 90px;
    }

    .container-perso-grid {
        position: relative;
        max-width: 500px;
        height: 55vh;
        padding: 10px;
    }

    .perso-card {
        height: 180px;
    }
}

@media (max-width: 992px) {

    .vs {
        font-size: 3.5rem;
        margin: 20px 0;
    }

    .container-perso-grid {
        width: 100%;
        max-width: 100%;
        height: 50vh;
    }

    .perso-card h2 {
        font-size: 1.2rem;
    }

    .perso-card .stats {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {

    .vs {
        font-size: 3rem;
        margin: 15px 0;
    }

    .player-slot {
        width: 120px;
        height: 160px;
    }

    .player-slot img {
        max-width: 80px;
        max-height: 80px;
    }

    .container-perso-grid {
        max-width: 95%;
        height: 45vh;
        padding: 5px;
    }

    .perso-card {
        height: 160px;
    }

    .perso-card h2 {
        font-size: 1rem;
    }

    .perso-card .stats {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .vs {
        font-size: 2.5rem;
        margin: 10px 0;
    }

    .player-slot {
        width: 100px;
        height: 140px;
    }

    .player-slot img {
        max-width: 70px;
        max-height: 70px;
    }

    .container-perso-grid {
        width: 100%;
        height: 40vh;
        padding: 5px;
    }

    .perso-card {
        height: 170px;
    }

    .perso-card h2 {
        font-size: 0.9rem;
    }

    .perso-card .stats {
        font-size: 0.7rem;
    }

    #fightBtn {
        padding: 12px 30px;
        font-size: 1.2rem;
    }
}