body
{
    margin: 0;
}

header
{
    background-color: #e30613;
    padding: 8px 16px;
    max-height: 300px;
    max-width: 100%;
}

h1
{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

h2
{
    margin: 0;
}

main
{
    margin-top: 8px;
    margin-bottom: 8px;
    
}

.selection
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.infos
{
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    color: white;
}

input
{
    max-width: 50px;
    text-align: center;
}

input:hover
{
    background-color: #eee;
}



main
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.espaceentre
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 32px;
    margin-right: 32px;
}

.fin
{
    display: flex;
    justify-content: end;
    align-items: center;
    margin-right: 32px;
}

.gap
{
    gap: 16px;
}

.gap4
{
    gap: 4px;
}

.gap48
{
    gap: 48px;
}

h3
{
    margin: 0;
}

.resultatpartie
{
    margin-top: 16px;
}

.equipe1_1
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background-color: white;
    padding: 8px;
}

.equipe1_2
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background-color: white;
    padding: 8px;
}

.equipe2_1
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background-color: white;
    padding: 8px;
}

.equipe2_2
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background-color: white;
    padding: 8px;
}

.resultat
{
    display: flex;
    justify-content: space-around;
    margin-top: 32px;
}

.resultate1
{
    min-width: 30%;
    margin-bottom: 16px;
    background-color: white;
}

.resultate2
{

    min-width: 30%;
    margin-bottom: 16px;
    background-color: white;
}

.points
{
    border: solid 1px black;
    padding: 8px;
    
}

.juge
{
    border: solid 1px black;
}

.bordure
{
    border: solid 1px black;
    padding: 2px;
}

/* Classes pour montrer la difference des parties et du match entre les 2 equipes*/

.partie1
{
    padding: 16px;
}

.partie2
{
    padding: 16px;
}

.totalpartie
{
    padding: 16px;
}

.vert
{
    color: green;
}

.rouge
{
    color: red;
}

/* Classes pour les formulaire */

form
{
    margin: auto;
	background-color: #0080d4;
	padding: 16px 32px;
	border-radius: 8px;
	max-width: 1000px;
    color: white;
}

label 
{
	display: flex;
	align-items: center;
    justify-content: space-between;
	gap: 8px;
    margin-bottom: 16px;
    min-width: 300px;
}




/* Classes pour le formulaire equipe */
.formulairee
{
    position: absolute;
    right: 100%;
}

.formecentre
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.formulairej
{
    position: absolute;
    right: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.formjcentre
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.titre
{
    display: flex;
    justify-content: center;
}

.valide
{
    display: flex;
    justify-content: center;
}




/* Classes pour le formulaire joueurs */

.jequipe
{
    position: absolute;
    right: 100%;
    background-color: #0080d4;
    padding: 16px 32px;
    border-radius: 8px;
    min-width: fit-content;
}

.jcentre
{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.jflex
{
    display: flex;
    gap: 8px;
}

.validj
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.jtitre
{
    color: white;
}


/* Style général pour le tableau */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
    background-color: #ffffff; /* Fond blanc pour le tableau */
    border-radius: 8px; /* Coins arrondis pour le tableau */
    overflow: hidden; /* S'assurer que les coins arrondis sont bien affichés */
}

/* Style pour les en-têtes de colonnes */
th {
    background-color: #0044cc; /* Fond bleu pour les en-têtes */
    color: #ffffff; /* Texte blanc pour les en-têtes */
    padding: 12px;
    border-bottom: 2px solid #003399; /* Bordure plus sombre pour les en-têtes */
}

/* Style pour les cellules du tableau */
td {
    padding: 10px;
    border-bottom: 1px solid #dddddd; /* Bordure claire pour les cellules */
    color: #333333; /* Couleur du texte */
}

/* Style pour les lignes impaires */
tr:nth-child(odd) {
    background-color: #f2f2f2; /* Fond gris clair pour les lignes impaires */
}

/* Style pour les lignes paires */
tr:nth-child(even) {
    background-color: #ffffff; /* Fond blanc pour les lignes paires */
}

/* Style pour la première ligne (en-tête) */
tr:first-child {
    font-weight: bold;
}




/* Classes pour faire apparaitre et disparaitre les formulaires */

.apparait
{
    /*transform: translateX(300%);*/
    right: 28%;
    left: 28%;
}




/* Classes pour mettre les nom des 2 equipes */
.nome1
{
    min-width: 50px;
    max-width: fit-content;
    border-radius: 1px;
    min-height: 25px;
    padding: 2px 4px;
    border-radius: 8px;
}

.nome2
{
    min-width: 50px;
    max-width: fit-content;
    border-radius: 1px;
    min-height: 25px;
    padding: 2px 4px;
    border-radius: 8px;
}




/* Classes pour la mise en page des tableaux*/

/* Classes pour la premiere ligne de chaque tableau */
p
{
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.indications
{
    display: grid;
    grid-template-columns: 200px 100px 206px 50px 206px 310px 258px 50px 50px 50px;
    gap: 8px;
    margin-bottom: 4px;
}

.nomprenom
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 1px black;    
}

.numlicence
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 1px black;
}

.figureplein
{
    display: flex;
    border: solid 1px black;
    gap: 4px;
}

.jetplein
{
    display: flex;
    flex-direction: column;
}

.numplein
{
    display: flex;
}

.tirplein
{
    min-width: 50px;
    max-width: 50px;
}

.totalplein
{
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 50px; 
}

.pleindouble
{
    display: flex;
    flex-direction: column;
    border: solid 1px black;
}

.figure4
{
    display: flex;
    flex-direction: column;
    border: solid 1px black;
}

.jetfigure4
{
    display: flex;
    gap: 2px;
}

.tirfigure4
{
    width: 50px;
}

.figure50
{
    border: solid 1px black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.figure25
{
    border: solid 1px black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.totalmatch
{
    max-width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 1px black;
}

.siglecategorie
{
    border: solid 1px black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sigledivision
{
    border: solid 1px black;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Classes pour chaque ligne du tableau*/
.joueur
{
    display: grid;
    grid-template-columns: 200px 100px 206px 50px 206px 310px 258px 50px 50px 50px;
    gap: 8px;
}

.joueur1
{
    display: grid;
    grid-template-columns: 200px 100px 206px 50px 206px 310px 258px 50px 50px 50px;
    gap: 8px;
}

.nomj
{
    border: solid 1px black;
}

.nlicencer
{
    max-width: 100px;
}

.nlicencev
{
    max-width: 100px;
}

.categorie
{
    border: solid 1px black;
}

.division
{
    border: solid 1px black;
}

.plein
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
}

.double
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.f4
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
}

.f50
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 2px;
}

.f25
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 2px;
}





/* Classes pour les div total*/

.total
{
    max-width: 50px;
    border: solid 1px black;
    border-radius: 1px;
    text-align: center;
}

.total1
{
    margin-top: 4px;
    min-height: 20px;
    max-height: 20px;
    max-width: 50px;
    border: solid 1px black;
    border-radius: 1px;
    grid-column-start: 8;
    text-align: center;
}

.total2
{
    grid-column-start: 7;
    display: flex;
    justify-content: end;
    text-align: center;
}

.totalp
{
    max-width: 50px;
    border: solid 1px black;
    border-radius: 1px;
    text-align: center;
}

.total50
{
    max-width: 50px;
    border: solid 1px black;
    border-radius: 1px;
    text-align: center;
}

.total25
{
    max-width: 50px;
    border: solid 1px black;
    border-radius: 1px;
    text-align: center;
}




button
{
    padding: 4px 8px;
    border-radius: 20px;
    border: none;
    background-color: #e30613;
    color: white;
}

button:hover
{
    background-color: white;
    color: #0080d4;
}

h1
{
    color: white;
}

.formulairej>form>label>input{
    min-width: 400px;
}