* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: url(/asset/img/bg1.png);
    background-size: cover;
    color: #FFF;
    font-family: 'Noto Sans JP', sans-serif;
    background-attachment: fixed;
}

.container-prim {
    width: 100%;
    text-align: center;
}

.palmares-list {
    margin-top: 75px;
    display: inline-flex;
    flex-wrap: wrap; /* Pour passer à une disposition en ligne sur les petits écrans */
    justify-content: center; /* Pour centrer les éléments sur les petits écrans */
}

.palmares-pic {
    background: #ff0a1e;
    width: 210px;
    height: 500px;
    margin: 10px;
    border-radius: 50px;
}

.int {
    background: url(/asset/img/international.jpeg);
    background-position: center;
    background-size: cover;
    filter: grayscale(1);
    border: solid 1px grey;
    transition: all 1.5s;
}

.int:hover {
    filter: grayscale(0);
    border: solid 1px #010e1f ;
    box-shadow: 0 0 20px #010e1f ;
}

.texte-image-int,
.texte-image-fr,
.texte-image-commu{
    color: white;
    opacity: 0;
    animation: fadeOut 0.3s ease-out;
}

.palmares-pic:hover .texte-image-int,
.palmares-pic:hover .texte-image-fr,
.palmares-pic:hover .texte-image-commu{
    animation: fadeIn 0.2s ease-in;
    animation-fill-mode: forwards;
}

@keyframes fadeOut{
    0% {opacity: 1;}
    100% {opacity: 0;}
}

@keyframes fadeIn{
    0%{opacity: 0;}
    100% {opacity: 1;}
}

.fr {
    background: url(/asset/img/france.jpg);
    background-position: center;
    background-size: cover;
    filter: grayscale(1);
    border: solid 1px grey;
    transition: all 1.5s;
}

.fr:hover {
    filter: grayscale(0);
    border: solid 1px #ff0a1e ;
    box-shadow: 0 0 20px #ff0a1e ;
}
a{
    text-decoration: none!important;
}

.commu {
    background: url(/asset/img/communautaire.jpg);
    background-position: center;
    background-size: cover;
    filter: grayscale(1);
    border: solid 1px grey;
    transition: all 1.5s;
}

.commu:hover {
    filter: grayscale(0);
    border: solid 1px #220aff ;
    box-shadow: 0 0 20px #220aff ;
}

@media (max-width: 600px) {
    body{
        background: black!important;
    }
    .palmares-pic{
        width: 100vw;
        border-radius: 0;
        margin: 0;
    }
    .palmares-list{
        gap: 2rem;
    }
    .int,
    .fr,
    .commu{
        filter: grayscale(0);
    }

    .texte-image-palma-int,
    .texte-image-palma-fr,
    .texte-image-palma-commu{
        color: white;
        animation: none;
        opacity: 1;
    }
    a{
        text-decoration: none!important;
    }
}