:root{
    --fond:#111827;
    --fond-secondaire:#1f2937;
    --carte:#374151;
    --texte:#ffffff;
    --texte-secondaire:#cbd5e1;
    --ombre:rgba(0,0,0,.45);
    --rayon:18px;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:var(--fond);
    color:var(--texte);
    font-family:Arial, Helvetica, sans-serif;
}

header{
    position:sticky;
    top:0;
    z-index:10;
    background:var(--fond-secondaire);
    padding:25px;
    box-shadow:0 5px 20px var(--ombre);
}

h1{
    margin:0 0 20px;
    text-align:center;
    font-size:35px;
}

.outils{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

.champ{
    display:flex;
    align-items:center;
    gap:10px;
    background:var(--carte);
    padding:10px 15px;
    border-radius:30px;
}

.champ input{
    width:220px;
    border:none;
    outline:none;
    background:transparent;
    color:var(--texte);
    font-size:16px;
}

select,
button{
    border:none;
    border-radius:14px;
    padding:12px 18px;
    cursor:pointer;
    background:var(--carte);
    color:var(--texte);
    font-size:16px;
}

button:hover{
    filter:brightness(1.15);
}

#stats{
    text-align:center;
    padding:15px;
    color:var(--texte-secondaire);
}

main{
    padding-bottom:95px;
}

#grille{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:20px;
    padding:25px;
}

.bouton-son{
    height:190px;
    border:none;
    border-radius:var(--rayon);
    color:white;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:10px;
    box-shadow:0 8px 18px var(--ombre);
    transition:.15s;
}

.bouton-son:hover{
    transform:scale(1.05);
}

.bouton-son:active{
    transform:scale(.95);
}

.icone{
    font-size:42px;
}

.titre-son{
    font-size:22px;
    font-weight:bold;
    text-align:center;
}

.categorie{
    font-size:13px;
    opacity:.8;
}

.joue{
    animation:pulse .6s infinite alternate;
}

@keyframes pulse{
    from{
        transform:scale(1);
    }
    to{
        transform:scale(1.06);
    }
}

footer{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:30px;
    padding:15px;
    background:var(--fond-secondaire);
    box-shadow:0 -5px 20px var(--ombre);
}

.volume{
    display:flex;
    align-items:center;
    gap:10px;
}

.volume input{
    width:200px;
}


/* Responsive */

@media(max-width:700px){
    h1{
        font-size:26px;
    }

    #grille{
        grid-template-columns:repeat(2,1fr);
        padding:15px;
        gap:12px;
    }

    .bouton-son{
        height:130px;
    }

    .icone{
        font-size:30px;
    }

    footer{
        flex-direction:column;
        gap:10px;
    }

}

@media(max-width:400px){
    #grille{
        grid-template-columns:1fr;
    }

}