*{
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
}


/*hearder et footer*/
header
{
    width: 100%;
    height: 65px;
    display: flex;
    background-color: #91928f;
    color: black;
}
header img{
    height: 100px;
    margin-top: -25px;
}

.navbar-expand-lg .navbar-nav {
    flex-direction: row;
    background-color: #91928f;
    width: 100%;
}

footer
{
   background-color: #91928f;
   display: flex;
   justify-content: center;
   margin-top: auto;
   color: black;
}


main {
    background-color: #F5F5F5;
    margin-bottom: 10px;
    gap : 5px;
}
h1 {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: bold;
}


/*accueil et prod2*/
#historique{
    display: flex;
	flex-direction: column;
}
#historique img {
    width: 700px;
    border-radius: 5px;
    box-shadow: 5px 10px 10px 0px #040404;
    margin-bottom: 10px;
}
#historique p{
    display: flex;
    font-size : 17px;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 20px;
}


#clubsaison{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap : 5px;
    margin-left: 10px;
    margin-right: 10px;
}
#toulouse , #toulon , #castres, #clermont , #larochelle , #stadefrançais , #perpignan, #prod2{
    border-radius: 5px;
    background-color: #dac8a6;
    color: black;
}
#bordeaux , #bayonne , #lyon , #montpellier , #pau , #racing, #vannes{
    border-radius: 5px;
    background-color: #040404;
    color: white;
}
#clubsaison p{
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 10px;
}

h3{
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
h3 li{
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
li a{
    color: black;
    text-decoration: none;
}


#clubsaisonprod2{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap : 5px;
    margin-left: 10px;
    margin-right: 10px;
}
#grenoble , #brive , #montauban , #colomiers , #biarritz , #nevers , #valence , #aurillac ,#nat1 {
    border-radius: 5px;
    background-color: #b3c8e6;
    color: black;
}
#provence , #beziers , #soyaux , #oyonnax ,#dax , #montois , #agen , #nice{
    border-radius: 5px;
    background-color: #042c44;
    color: white;
}
#clubsaisonprod2 p{
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 10px;
}


/*catalogue*/
h4{
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

#joueur{
    display: flex;
    grid-template-columns: repeat(5, 1fr);
    gap : 5px;
    margin-left: 10px;
    margin-right: 10px;
    flex-wrap: wrap;
    transition-duration: 0.3s;
}
#joueur > div {
    border-radius: 5px;
    background-color: #040404;
    color: #dac8a6;
    width: 350px;
    filter: grayscale(0.5);
    transform: scale(0.9);
    transition-duration: 0.3s;
}
#joueur > div:hover {
    border-radius: 5px;
    background-color: #040404;
    color: #dac8a6;
    width: 350px;
    filter: grayscale(0);
    transform: scale(1);
}
#joueur > div img{
    margin-top: 10px;
    display: flex;
   justify-content: center;
   width: 300px;  
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}
#joueur > div p{
    margin-bottom: 5px;
    margin-right: 15px;
    margin-left: 15px;
}


/*recherche*/
#boutton{
    background-color: #dac8a6;
    color: #040404;
    border-radius: 5px;
    box-shadow:  0 2px 4px #040404;
}

/*national1*/
#clubnat{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap : 5px;
    margin-left: 10px;
    margin-right: 10px;
}
#chambery , #rouen , #massy , #albi , #tarbes , #suresnes , #marcq {
    border-radius: 5px;
    background-color: #74849c;
    color: black;
}
#narbonne , #carcasonne , #perigueux , #bourg ,#bourgoin , #langon , #hyeres{
    border-radius: 5px;
    background-color: #04224a;
    color: white;
}
#clubnat p{
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 10px;
}

/*regles*/
#carte {
    width: 150px;
    height: 150px;
    perspective: 1000px; 
    display: inline-block;
    cursor: pointer;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
#validation {
    display: none;
}
#faces {
    width: 160px;
    height: 160px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
#avant , #arriere {
    width: 160px;
    height: 160px;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
}
#avant {
    background: #040404;
    color: white;
    box-shadow: 0 4px 8px #dac8a6;
}
#arriere {
    background: #dac8a6;
    color: black;
    transform: rotateY(180deg);
    box-shadow: 0 4px 8px #040404;
}
#validation:checked + #faces {
    transform: rotateY(180deg);
}
#avant h6 , #arriere h6{
    margin-right: 5px;
    margin-left: 5px;
}

/*admin*/
#admin{
    display: inline-block;
    background-color: black;
    color: #dac8a6;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
    margin-left: 5px;
}

/*gestion*/
table{
    border-collapse : collapse;
    width: 95%;
    border-width: 1px;
}
tbody, td, tfoot, th, thead, tr{
    border-width: 1px;
}
thead{
    font-weight: bold;
}

/*tel*/
@media screen and (max-width : 576px) {
    header img{
        height: 100px;
        margin-top: -25px;
        margin-left: -150px;
    }

    h1 {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
        margin-left: 30px;
        margin-right: 10px;
        font-weight: bold;
    }

    #historique img {
        width: 410px;
    }

    #clubsaison{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap : 5px;
        margin-left: 10px;
        margin-right: 10px;
    }
    #toulouse , #toulon , #castres, #clermont , #larochelle , #stadefrançais , #perpignan, #prod2 {
        border-radius: 5px;
        background-color: #dac8a6;
        color: black;
    }
    #bordeaux , #bayonne , #lyon , #montpellier , #pau , #racing, #vannes{
        border-radius: 5px;
        background-color: #040404;
        color: white;
    }
    #clubsaison p{
        margin-bottom: 5px;
        margin-right: 3px;
        margin-left: 3px;
    }

    #clubsaisonprod2{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap : 5px;
        margin-left: 10px;
        margin-right: 10px;
    }
    #grenoble , #brive , #montauban , #colomiers , #biarritz , #nevers , #valence , #aurillac ,#nat1 {
        border-radius: 5px;
        background-color: #b3c8e6;
        color: black;
    }
    #provence , #beziers , #soyaux , #oyonnax ,#dax , #montois , #agen , #nice{
        border-radius: 5px;
        background-color: #042c44;
        color: white;
    }
    #clubsaisonprod2 p{
        margin-bottom: 5px;
        margin-right: 3px;
        margin-left: 3px;
    }

    #clubnat{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap : 5px;
        margin-left: 10px;
        margin-right: 10px;
    }
    #chambery , #rouen , #massy , #albi , #tarbes , #suresnes , #marcq {
        border-radius: 5px;
        background-color: #74849c;
        color: black;
    }
    #narbonne , #carcasonne , #perigueux , #bourg ,#bourgoin , #langon , #hyeres{
        border-radius: 5px;
        background-color: #04224a;
        color: white;
    }
    #clubnat p{
        margin-bottom: 5px;
        margin-right: 3px;
        margin-left: 3px;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
        background-color: #91928f;
        width: 255%;
        margin-left: -100px;
        z-index: 10000000000 !important;
    }

    /*catalogue*/
    h4{
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }

    #joueur{
        display: flex;
        grid-template-columns: repeat(5, 1fr);
        gap : 5px;
        margin-left: 10px;
        margin-right: 10px;
        flex-wrap: wrap;
        transition-duration: 0.3s;
    }
    #joueur > div {
        border-radius: 5px;
        background-color: #040404;
        color: #dac8a6;
        width: 350px;
        filter: grayscale(0);
    }
    #joueur > div:hover {
        border-radius: 5px;
        background-color: #040404;
        color: #dac8a6;
        width: 350px;
    }
    #joueur > div img{
        margin-top: 10px;
        display: flex;
    justify-content: center;
    width: 300px;  
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
    }
    #joueur > div p{
        margin-bottom: 5px;
        margin-right: 15px;
        margin-left: 15px;
    }


}