:root{
    --couleur-fond:#353535;
    --couleur-fond-secondaire:#292929;
    --couleur-symbole:#AFAFAF;
    --couleur-primaire:#FF971A;
    --couleur-secondaire:#FFEED2;
    --couleur-trois:#000AFF;
}

*{
    margin: 0;
    padding: 0;
    font-family: Verdana, sans-serif;
    box-sizing: border-box;
}

html,body{
    height: 100%;
}

body{
    background-color: var(--couleur-fond);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

main{
    min-width: 0;
    flex-grow: 1;
    padding: 1em;
    box-sizing: border-box;
}

h1,
h2,
h3,
p,
a,
th,
td,
caption,
button{
    color: white;
    font-size: clamp(0.8rem,2vw,1rem);
}

button{
    cursor: pointer;
}

a{
    text-decoration: none;
}

.pp{
    border-radius: 50%;
    width: 5em;
}

.hidden{
    display: none;
}

/*Page connexion*/

.success{
    color: #1AFF71!important;
    text-decoration: none!important;
}

.pageForms{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2em;
}

.pageForms>div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    min-height: 80%;
    padding: 1em;
    background-color: var(--couleur-fond-secondaire);
}

.pageForms form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
}

.pageForms form>div, .pageForms button{
    width:100%;
    max-width: 20rem;
}

.pageForms input{
    width: 100%;
    padding: 0.8em 1em;
}

.pageForms button{
    color: white;
    background-color: var(--couleur-primaire);
    position: relative;
    overflow: hidden;
    padding: 1em 0.8em;
    margin: 1em 0;
    font-size: clamp(0.8em,2vw,1.2em);
}

.pageForms button::after{
    content: '';
    background-color: black;
    border: var(--couleur-primaire);
    height: 100%;
    width:0px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transition: 150ms ease-in-out;
}

.pageForms button span{
    position: relative;
    z-index: 100;
}

.pageForms button:hover::after{
    width: 100%;
    z-index:1;
}

.pageForms input, .pageForms button{
    border-radius: 9px;
    /* margin-bottom: 1em; */
    border: 2px solid black;
}

.pageForms .passwordDiv{
    position: relative;
    margin: 1em 0;
}

.pageForms>div .show-password{
    font-size: 1em;
    color: black;
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    right: 1em;

}

.pageForms form p{
    color: red;
    margin: 1em 0;
}

.pageForms form p, .pageForms input{
    font-size: clamp(0.8em, 2vw, 1em);
}

.pageForms h1{
    text-align: center;
    font-size: clamp(1.5em,4vw,3em);
    margin-bottom: 1em;
    color: var(--couleur-primaire);
}

.passwordDiv{
    display: flex;
    flex-direction: row;
    align-items: center;
}

/*afficher password*/
.show-password {
    user-select: none;
}

/*Paragraphe pour changer de form Connexion|Inscription et a pour réinitialiser son mot de passe*/
.pageForms>div>p,
.pageForms>div>a{
    color: var(--couleur-primaire);
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 1em;
}

/*Menu sur le coté*/

nav{
    grid-area: 1/1/2/2;
    display: flex;
    flex-direction: row;
    justify-content: start;
    width: 100%;
    height: fit-content+5vw;
}

nav img,nav a, nav p{
    display: none;
}

.fa-bars{
    font-size: clamp(1.5em,5vw,2em);
    color: white;
    margin: 1em 0 0 1em;
}

.aggrandirMenu{
    width: 33vw;
    position: fixed;
    z-index: 10000000;
    height: 100vh;
    top: 0px;
    left: 0px;
    box-shadow: 15px 0 15px -5px rgba(0, 0, 0, 0.4);  
    background-color: var(--couleur-fond-secondaire);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
}

.aggrandirMenu div{
    width: 100%;
}

.aggrandirMenu img, .aggrandirMenu a, .aggrandirMenu p{
    display: block;
}

.aggrandirMenu i{
    display: none;
}

.aggrandirMenu div:first-of-type{
    display: flex;
    flex-direction: column;
}

.aggrandirMenu div:last-of-type{
    display: flex;
    flex-direction: column;
    margin: 2em 0 0 0;
}

.aggrandirMenu div:last-child p {
    color: var(--couleur-symbole);
    width: 100%;
    text-align: center;
    padding: 2em 0;
}

.aggrandirMenu img{
    width: clamp(4rem, 25vw, 10rem);
    align-self: center;
    margin: 2em 0;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.aggrandirMenu a{
    text-decoration: none;
    width: 100%;
    text-align: center;
    padding: 2em 0;
}

.aggrandirMenu a, .aggrandirMenu p{
    font-size: clamp(0.8rem,3vw,1rem);
}

.aggrandirMenu a:first-of-type{
    display: flex;
    justify-content: center;
    align-items: center;
}

.aggrandirMenu a:hover, .aggrandirMenu p:hover{
    background-color: black;
}

.aggrandirMenu div:first-child{
    display: flex;
    flex-direction: column;
}


/*animation logo*/

.aggrandirMenu a[href="./accueil.php"]{
    perspective: 1000px;
}

.aggrandirMenu img:hover{
    transform: rotateY(360deg);
}

/*Page accueil*/
#accueil{
    display: flex;
    flex-direction: column;
}

/*Profil et paramètres*/
#profilParametre{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding:3em;
    font-size: clamp(0.8em,2vw,1.2em);
}

#profilParametre>div:last-child{
    place-items: center;
    display: flex;
    flex-wrap: wrap;
    margin-left: 0.5em;
}

/*Partie profil*/
#ppContainer{
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    font-weight: 900;
}

#ppContainer p{
    word-wrap: anywhere;
}

#profilParametre img{
    width: clamp(1.5em,10vw,4em);
    border: 2px solid black;
    margin-right: 1em;
}

#profilParametre i{
    font-size: clamp(1em,8vw,2em);
    color: var(--couleur-symbole);
}

.fa-arrow-right-from-bracket{
    margin-right: clamp(0.5em,2vw,1em);
}

/*Mode de jeux*/

#modesDeJeu{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.mode{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 33%;
    min-width: 200px;
    margin-bottom: 2em;
}

.enTeteMode{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    justify-items: center;
    align-items: center;
}

.enTeteMode img{
    grid-area: 1/1/3/2;
}

.enTeteMode h2{
    grid-area: 1/2/2/3;
}

.enTeteMode p{
    grid-area: 2/2/3/3;
}

.mode div:last-child{
    margin: 1em;
    width: clamp(10em,20vw,30em);
}

.mode div:last-child h3{
    text-align: center;
    padding: 0.8em 1em;
    background-color: var(--couleur-fond-secondaire);
}

.logoMode{
    width: 30%;
}

.echiquier{
    width: 100%;
}

/*Historique de partie*/

.historique{
    display: flex;
    justify-content: center;
    margin: 2em 0;
    width: 100%;
}

table{
    background-color: var(--couleur-fond-secondaire);
    color: white;
    border-collapse:collapse;
    border-spacing: 0;
    width: 70%;
    font-size: clamp(0.8rem, 2vw, 1rem);
    border-radius: 0 0 1em 1em;
    overflow: hidden;
}

table img{
    max-width: 100%;
    height: auto;
}

caption{
    padding: 1em 2em;
    background-color: #1f1f1f;
    font-weight: bold;
    border-radius: 1em 1em 0 0;
}

thead{
    background-color: #181717;
}

tr{
    border-bottom: 2px solid black;
}

tr:last-child:not(.historique tbody tr){
    border: none;
}

tr:nth-of-type(2n){
    background-color: #303030;
}

th,td{
    padding: 1em 2em;
    text-align: center;
    overflow-wrap: break-word;
    text-overflow:ellipsis;
}

th{
    padding: 1em 2em;
}

#toggleVoirPlus{
    font-size: clamp(0.8em,2vw,1em);
}

.logoHistorique{
    width: 2em;
}

.logoGagnant{
    border-radius: 50%;
    border: 2px black solid;
}

.historique tfoot{
    overflow: hidden;
}

.historique tfoot button{
    width: 100%;
    height: 100%;
    color: white;
    background-color: var(--couleur-fond-secondaire);
    border: 0px;
    padding: 1em 2em;
    border-radius: 0 0 2em 2em;
}

tfoot td{
    padding: 0;
}

tfoot div{
    display: flex;
    align-items: center;
}

/*Page compte*/

#Compte{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

/*Partie Profil*/

#profil{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin: 2em 0;
    gap: 1em;
    width: 80%;
    font-size: clamp(0.8em,2vw,1em);
}

#profil p{
    width:100%;
}

/*Div pp et bio*/

#profil div:first-of-type{
    display: flex;
    flex-direction: column;
    justify-content: start;
    min-height: 100%;
    box-sizing: border-box;
    min-width: 0;
    max-width: 40%;
    align-items: center;
    overflow-wrap: break-word;
}

#profil div:nth-of-type(2){
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 100%;
}

#profil div:nth-of-type(3){
    display: flex;
    flex-direction: column;
    justify-content: start;
    min-height: 100%;
}

#profil img{
    width: clamp(2em,10vw,5em);
    margin-bottom: 1em;  
}

#profil h1{
    font-size: 1.3em;
    margin-bottom: 0.5em;
    word-wrap: anywhere;
}

#profil a{
    text-decoration: 0;
}

#profil a,#profil p{
    color:var(--couleur-symbole);
    text-align: center;
}

/*Partie elo*/
.elo{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 2em 0;
}

.elo table{
    max-width: 35rem;
}

/*Partie amis*/

#amis{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 2em 0;
}

#amis img{
    width: clamp(0.8em,10vw,3em);
}

#amis table button{
    background-color: var(--couleur-primaire);
    border: none;
    border-radius: 10px;
    padding: 0.8em 1.2em;
}

/*Page modifierCompte*/

#modifierCompte{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

#modifierCompte form{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    max-width: 60rem;
}

#modifierCompte form label{
    color: white;
    margin-bottom: 0.5em;
    align-self: start;
}

#modifierCompte form>div{
    margin: 0 2rem;
    width: 80%;
}

#modifierCompte .divInputs{
    display: flex;
    flex-direction: column;
    align-items: start;
}

#modifierCompte input,
#modifierCompte textarea{
    width: 100%;
}


#modifierCompte input,
#modifierCompte textarea,
input[type="file"]::file-selector-button,
#modifierCompte form div:last-of-type
{
    padding: 0.8em 1.2em;
    box-sizing: border-box;
}

#divPP{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#modifierCompte img{
    width: clamp(6em,10vw,7em);
}

#modifierCompte input[type="file"]{
    color: white;
    font-size: clamp(0.7rem, 2vw, 1rem);
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    content: "Parcourir";
    min-width:25vw;
}

#modifierCompte input[type="file"]::file-selector-button{
    color: white;
    background-color: var(--couleur-primaire);
    border: none;
    border-radius: 10px;
    margin-right: 1em;
    cursor: pointer;
}

#modifierCompte form textarea{
    resize: none;
}

#modifierCompte form div:last-of-type{
    margin: 1em 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5em;
}

#modifierCompte button{
    background-color: var(--couleur-primaire);
    color: white;
    border: none;
    border-radius: 10px;
    min-width: 25%;
    padding: 1em;
}

#modifierCompte button{
    position: relative;
    overflow: hidden;
}

#modifierCompte button span{
    position: relative;
    z-index: 10;
}

#modifierCompte button::after{
    content: '';
    width: 0;
    height: 110%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: black;
    z-index: -1;
    transition: 150ms ease-in-out;
}

#modifierCompte button:hover::after{
    width: 110%;
    z-index: 1;
}


/*Jeu Local*/

.timer{
    background-color: var(--couleur-fond-secondaire);
    border: 2px solid black;
    padding: 0.8em;
    font-size: clamp(0.8em,2vw,1.2em);
    display: inline-block;
}

.timer-active{
    background-color: var(--couleur-primaire);
}

.timer-defeat{
    background-color: red;
}

body.jeuPage{
    display: grid;
    grid-template-columns: minmax(auto, 3fr) 1fr;
    grid-template-rows: 1fr 8fr;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
}

#jeuLocal{
    grid-area: 2/1/3/2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 1em;
    overflow:hidden;
    position: relative;
}

#j1, #j2{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1em;
    width: 100%;
}

#j1>div,
#j2>div{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    flex-grow: 1;
} 

#j1{
    order: 2;
}

#j1.reverseJ1{
    order: 0;
}

#j2{
    order: 0;
}

div#j2.reverseJ2{
    order: 2;
}

#j1 p,#j2 p{
    font-size: clamp(1em,3vw,1.2em);
}

.groupeProfil{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8em;
    font-size: clamp(0.8em,2vw,1em);
    font-weight: 900;
}

#jeuLocal .pp{
    width: clamp(1.2em,12vw,3em);
}

#interactionJeu{
    grid-area: 1/2/3/3;
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4em;
    z-index: 100;
    height: 100%;
}

#interactionJeu .fa-angle-up{
    display:none;
}

#interactionJeu h1{
    font-size: clamp(1.2em,2vw,1.7em);
}

#interactionJeu button{
    padding: 0.8em;
    background-color: var(--couleur-fond-secondaire);
    color: white;
    font-size: clamp(0.8em,2vw,1em);
    border: none;
    border-radius: 5px;
    min-width: 60%;
}

#interactionJeu>button{
    padding: 0.8em;
    font-size: clamp(0.7rem,2vw,1.2rem);
    font-weight: 900;
}

#interactionJeu i:not(.fa-angle-up){
    color: white;
    font-size: clamp(0.8em,2vw,1.2em);
    background-color: var(--couleur-fond-secondaire);
    border: black 1px solid;
    border-radius: 4px;
    padding: 0.8em;
}

#interactionJeu i.reverse-active{
    background-color: var(--couleur-primaire);
}

#reverseButtons{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#historiqueCoups{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#historiqueCoups i:nth-child(n+3){
    rotate: 180deg;
}

#historiqueCoups i.button-unusable{
    background-color: var(--couleur-symbole);
}


/*partie jeu*/
#chessboardContainer{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1em 0;
    order: 1;
    flex-grow: 1;
    position: relative;
    max-height: 75%;
    max-width: 100%;
}

#chessboard {
    height: 90%;
    aspect-ratio: 1 / 1;
    border:solid;
    transition: transform 1s ease-in-out;
}

.reverse{
    transform: rotate(180deg);
}

.ligne{
    height : 12.5%;
    width : 100%;
    display: flex;
}

.case{
    height : 100%;
    width : 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.case img{
    width: 100%;
}

.ligne:nth-child(2n+1)>.case:nth-child(2n+1), .ligne:nth-child(2n)>.case:nth-child(2n){
    background-color: #FFEED2 ;
}

.ligne:nth-child(2n)>.case:nth-child(2n+1), .ligne:nth-child(2n+1)>.case:nth-child(2n){
    background-color: #FF971A ;
}

.select{
    background: rgb(104 255 154 /50%);
}

.possible{
    background: rgb(0 0 0 /40%);
    border-radius: 50%;
    width: 20%;
    height: 20%;
    transition: height 300ms, width 300ms;
}

.possible:hover{
    width: 40%;
    height: 40%;
}

.survolee{
    background: rgb(0 0 0 /40%);
}

.possiblePiece{
    position: absolute;
    border: solid rgb(0 0 0 /40%);
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1/1;
    z-index: 100;
}

#arrowCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
}

.bouton-option-temps.selected {
    background-color: orange;
}

.bouton-option-ia.selected {
    background-color: orange;
}

/*Piece prises*/

.piecesPrises{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(10px,-2vw,25px);

}

.piecesPrises img{
    width:clamp(25px,2vw,55px);
}


.column{
    height : 90%;
    width : 2%;
    display: flex;
    flex-direction: column;
}

.reverseCol{
    flex-direction: column-reverse;
}

.chiffre{
    height : 100%;
    width : 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.lettre{
    height : 50%;
    width : 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#clotureGameWindow{
    width: 50vw;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: var(--couleur-fond-secondaire);
    border: 5px solid var(--couleur-primaire);
    align-self: center;
    justify-self: center;
    position: absolute;
    z-index: 100000;
    box-shadow: 15px 15px 15px 0px rgba(0, 0, 0, 0.3);
    perspective: 1000px;
    padding:1em;
}

/*logo*/
#clotureGameWindow>img{
    width: clamp(4rem, 25vw, 8rem);
    margin-left: 1em;
    align-self: start;
}

#clotureGameWindow>img.animation{
    transform: rotateY(360deg);;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/*Paragraphe d'annonce*/
#clotureGameWindow>p{
    font-size: clamp(0.8em,5vw,1.2em);
    font-weight: bold;
    margin-bottom: 1em;
    align-self: center;
}

/*zone des pseudos et pp*/
#clotureGameWindow #joueurs{
    align-self: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(1em,10vw,5em);
}

#clotureGameWindow #joueurs>div{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

#clotureGameWindow .pseudo{
    font-size: clamp(0.8em,2vw,1em);
    white-space: nowrap;
}

#clotureGameWindow .pp{
    border: 2px solid black;
    margin-right: 1em;
    width: clamp(1.5em,15vw,5em);
}

/*Page de confirmation de match nul*/
.drawConfirmation{
    background-color: var(--couleur-fond-secondaire);
    border: 5px solid var(--couleur-primaire);
    padding: 1em;
    position: absolute;
    align-self: center;
    justify-self: center;
    z-index: 10000;
    width: 33vw;
    height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.drawConfirmation p{
    font-size: clamp(0.8em,6vw,1.5em);
    margin-bottom: 1em;
}

.drawConfirmation div{
    display: flex;
    flex-direction: row;
    gap: clamp(1em,8vw,5em);
}

.drawConfirmation div>button{
    padding: clamp(0.5em,5vw,1em) clamp(0.8em,8vw,1.5em);
    font-size: clamp(0.8em,5vw,1.2em);
    background-color: var(--couleur-primaire);
    color: white;
    border: 2px solid white;
    border-radius: 10px;
}

.drawConfirmation div>button:first-child:hover{
    color: green;
    border-color: green;
}

.drawConfirmation div>button:last-child:hover{
    color: red;
    border-color: red;
}

/*Page parametrage jeu*/

#parametrageJeu{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#parametrageJeu form{
    width: clamp(180px, 90vw, 450px);
}

#parametrageJeu h1{
    margin-bottom: 1em;
    font-size: clamp(1em,3vw,2em);
    text-align: center;
}

/*Select pour choisir le mode (en ligne, en local, ia)*/
#parametrageJeu form select{
    width: 100%;
    background-color: #494846;
    padding: 0.8em 1em;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: clamp(0.8em,2vw,1em);
}

/*Chaque catégorie*/
#parametrageJeu form .categorie{
    margin: 1em 0;
}

/*En tete des parties (bullet, blitz, rapid)*/
#parametrageJeu form img{
    width: 1.7em;
    margin-right: 1em;
}

#parametrageJeu form .categorie div:first-of-type p{
    font-size: clamp(0.9em,2vw,1.2em);
}

#parametrageJeu form .categorie div:first-of-type{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

/*Différentes timer des parties*/
#parametrageJeu button{
    width: 30vw;
    max-width: 10em;
    padding: 0.8em 0;
    background-color: #494846;
    border: none;
    color: white;
    border-radius: 5px;
    white-space: nowrap;
    font-size: clamp(0.8em,2vw,1em);
}

#parametrageJeu button.selected{
    box-shadow: inset 0 0 0 2px var(--couleur-primaire);
}

#parametrageJeu .options-temps{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-top: 10px;
}

/*bouton jouer*/
#parametrageJeu form>button:last-child{
    max-width: none;
    padding: 1em 0;
    width: 100%;
    background-color: var(--couleur-primaire);
    margin-top: 2em;
    position: relative;
    overflow: hidden;
}

#parametrageJeu form>button:last-child::after{
    content: '';
    width: 0;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: 150ms ease-in-out;
    background-color: black;
    z-index: -1;
}

#parametrageJeu form>button:last-child:hover::after{
    width:100%;
    z-index: 1;
}

#parametrageJeu form>button:last-child span{
    z-index: 100;
    position: relative;
}


/*mode IA*/

#parametrageJeu .options-ia{
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#parametrageJeu .options-ia button{
    width : 100%;
    padding: 1em 1.2em;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 2em;
    text-align: center;
}

#parametrageJeu .options-ia button:first-of-type{
    margin-top: 3em;
}

#parametrageJeu .options-ia button img{
    width: 3em;
}

#enCoursDeDev{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#enCoursDeDev div{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#enCoursDeDev h1{
    font-size: clamp(1em,3vw,2em);
    text-align: center;
}

#enCoursDeDev img{
    width: clamp(50px,30vw,400px);
    text-align: center;
    margin-bottom: 5em;
}

.logoAnimation.animation{
    transform: rotateY(360deg);
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.promotion{
    width: 27%;
    height: 7em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: var(--couleur-fond);
    border: 5px solid var(--couleur-primaire);
    align-self: center;
    justify-self: center;
    position: absolute;
    z-index: 100000;
    box-shadow: 15px 15px 15px 0px rgba(0, 0, 0, 0.3);
    perspective: 1000px;
    gap: 2%;
}

.promotion>button{
    width: 7em;
    aspect-ratio: 1/1;
    background-color: var(--couleur-fond-secondaire);
    border: 2px solid var(--couleur-primaire);
    border-radius: 10%;
}


/*Page ajout d'amis*/

#ajoutAmis{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 1.5em;
}

#ajoutAmis h1{
    text-align: center;
    font-size: clamp(1.5em,3vw,1.8em);
    margin-bottom: 1.5em;
    width: 100%;
    color: var(--couleur-primaire);
}

#ajoutAmis h2{
    font-size: clamp(1.2em,2vw,1.5em);
    margin-bottom: 1em;
    color: var(--couleur-primaire);
}

#ajoutAmis>div{
    width: 100%;
    max-width: 60rem;
}

#ajoutAmis .pp{
    margin-bottom: 0.5em;
}

#ajoutAmis div:first-of-type{
    margin-bottom: 1em;
}

#ajoutAmis>div:first-of-type div{
    display: flex;
    flex-direction: column;
    align-items: start;
}

#ajoutAmis input{
    padding: 0.8em 1em;
    width: 60%;
    margin-bottom: 1em;
    max-width: 20rem;
}

#ajoutAmis .success{
    margin: 1.5em 0;
}

#results{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    max-width: 60rem;
}

#results>div{
    width: 100%;
    min-height: 10em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1em 0;
    border-bottom: 2px solid #5e5e5e;
    box-sizing: border-box;
}

.formAjtAmis{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 85%;
}

#results form>div{
    display: flex;
    flex-direction: column;
    align-items: start;
    max-width: 50%;
}

#results form span{
    color: var(--couleur-primaire);
    font-weight: 700;
}

#results form button{
    background-color: var(--couleur-primaire);
    border: none;
    border-radius: 10px;
    width: 20%;
    min-width:fit-content;
    height: fit-content;
    padding: 1em 1.2em;
}


/*pop up de l'accueil pour les demandes d'amis*/
.notification {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.notification>div {
    background-color: var(--couleur-fond);
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    max-height: 50vw;
    height: auto;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    overflow: hidden;
    overflow-y: scroll;
}

.notification h2{
    font-size: clamp(1em,2vw,1.2em);
}

.notification>div>p{
    margin: 2em 1em;
}

.notification button{
    background-color: var(--couleur-primaire);
    border: none;
    border-radius:10px;
    padding: 0.8em 1em;
    box-sizing: border-box;
    min-width:30% ;
}

.notification form button:first-of-type{
    background-color: green;
}

.notification form button:last-of-type{
    background-color: red;
}

div[id^="demande-"]{
    width: 90%;
    margin-bottom: 2em;
    border-bottom: 2px solid rgb(31, 31, 31);
    padding: 0.5em 0;
}

div[id^="demande-"] form{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

div[id^="demande-"] form div{
    display: flex;
    flex-direction: column;
    gap: 1em;
}

div[id^="demande-"] form div:nth-of-type(1){
    align-items: start;
}

div[id^="demande-"] form div:nth-of-type(2){
    align-items: center;
}

div[id^="demande-"] form div button{
    width: 100%;
    padding: 0.5em 1em;
}

@media only screen and (max-width: 1000px){

    .notification>div{
        width: 70%;
        max-height: 60%;
    }

    nav.aggrandirMenu{
        width: 50vw;
    }

    body.jeuPage{
        display: flex;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        position: relative;
    }

    main#jeuLocal{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
        gap: 0.5em;
    }

    div.ligne:last-child{
        display: none;
    }

    div#chessboardContainer .column{
        display: none;
    }

    div#j1{
        height: 10vh;
        order: 2;
    }

    div#j1.reverseJ1{
        order: 0;
    }

    div#j2{
        height: 10vh;
        order: 0;
    }

    div#j2.reverseJ2{
        order: 2;
    }

    div#chessboardContainer{
        aspect-ratio: 1/1;
        order: 1;
    }

    main#jeuLocal #chessboard{
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    aside#interactionJeu{
        position: absolute;
        top: 0;
        right: 0;
        padding: 0;
        border-left: 4px solid white;
        border-radius: 30px 0 0 30px;
        background-color: var(--couleur-fond-secondaire);
        width: 40%;
        transition: 100ms ease-in-out;
    }

    aside#interactionJeu button{
        background-color: var(--couleur-fond);
    }

    aside#interactionJeu .fa-angle-up{
        display:inline;
        position: absolute;
        top: 50%;
        left: -35px;
        padding: 0 20px;
        border-radius: 0 0 30% 30%;
        transform: rotate(90deg);
        background-color: white;
    }

    aside#interactionJeu.menuFerme{
        left: 100%;
    }

    aside#interactionJeu.menuFerme .fa-angle-up{
        transform: rotate(-90deg);
        border-radius: 30% 30% 0 0;
    }

    div#clotureGameWindow{
        width: 70vw;
        height: 55vh;
    }

    div.drawConfirmation{
        width: 45vw;
        height: 35vh;
    }
}
/*Changer la taille de l'échiquier lui faire prendre toute la largueur de l'écran sur téléphone*/
@media only screen and (max-width: 500px){

    .notification>div{
        width: 80%;
        max-height: 70%;
    }

    nav.aggrandirMenu{
        width: 80vw;
    }

    main.pageForms>div{
        width: 100%;
        height: 100%;
    }

    main.pageForms form{
        width: 90%;
    }

    table{
        width: 100%;
    }

    th{
        display: none;
    }

    tbody td:not(tfoot td){
        display: grid;
        grid-template-columns: 15ch auto;
        place-items: center;
    }

    tbody td:first-child{
        padding-top: 2rem;
    }

    tbody td:last-child{
        margin-bottom: 2rem;
    }

    tbody td:not(tfoot td)::before{
        font-weight: 700;
        text-transform: capitalize;
        justify-self: start;
        min-height: 3em;
        display: flex;
        align-items: center;
    }
    
    /*Historique*/
    section.historique tbody td:nth-of-type(1):not(tfoot td)::before{
        content: "Type : ";
    }

    section.historique td:nth-of-type(2):not(tfoot td)::before{
        content: "Adversaire : ";
    }

    section.historique td:nth-of-type(3):not(tfoot td)::before{
        content: "Résultat : ";
    }

    section.historique td:nth-of-type(4):not(tfoot td)::before{
        content: "Coups : ";
    }

    section.historique td:nth-of-type(5):not(tfoot td)::before{
        content: "Date : ";
    }


    /*Elo*/
    section.elo tbody td:nth-of-type(1)::before{
        content: "Bullet : ";
    }

    section.elo td:nth-of-type(2)::before{
        content: "Blitz : ";
    }

    section.elo td:nth-of-type(3)::before{
        content: "Rapide : ";
    }

    /*Amis*/
    section#amis tbody td:nth-of-type(1):not(tfoot td)::before{
        content: "Utilisateur : ";
    }

    section#amis td:nth-of-type(2):not(tfoot td)::before{
        content: "Amis depuis : ";
    }

    section#amis td:nth-of-type(3):not(tfoot td)::before{
        content: "Historique : ";
    }

    #amis table td:last-child{
        justify-content: center;
    }


    div.mode{
        width: 100%;
        max-width: none;
    }

    div.mode a{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    div.mode a div{
        width: 80% !important;
    }

    main#jeuLocal{
        padding-inline: 0;
    }

    div#chessboardContainer{
        width: 90vw;
        max-height: 50vh;
        aspect-ratio: 1/1;
        flex-grow: 0;
        margin: 1.5em 0.5em;
    }

    main#jeuLocal div#chessboard{
        margin: 0.5em 0;
        width: auto;
        height: 100%;
    }

    div#j1, div#j2{
        flex-direction:column;
        width: 100%;
    }

    div#clotureGameWindow{
        width: 80vw;
        height: 60vh;
    }

    div.drawConfirmation{
        width: 60vw;
        height: 45vh;
    }

    aside#interactionJeu{
        width: 70%;
    }

}