@import url(variable.css);


/* Div principal  */
.conteneur {
  background: var(--fond-grisatre);
  border-radius: 10px;
  width: 60%;
  margin: auto;
}

.conteneur div {
  padding: 20px;
}


/*----------------------------------------------------------*/

/*Formulaire de connexion*/
.connexion {
  display: flex;
  flex-direction: column;
  width: 60%;
  margin: auto;
  margin-top: 25px;
}

.connexion input {
  padding: 5%;
  margin: 2% 0%;
  transition: all 0.3s;
  border-radius: 100rem;
  border: 2px solid white;
}



.connexion input:focus, .inscritpion input:focus {
  outline: none;
}

.connexion input:focus-visible, .inscritpion input:focus-visible {
  outline: 2px solid #007bff; /* Exemple de contour bleu */
}


h2 {
  text-align: center;
  color: white;
  margin-top: 20px;
}

a {
  color: black;
  font-size: 20px;
}

a:hover {
  text-decoration: none;
}

/*----------------------------------------------------------*/

/*Emplacement du boutton S'inscrire*/
.signup {
  border-top: 2px black solid;
  padding: 20px;
}

.signup div {
  display: flex;
}

.signup a {
    border-radius: 5px;
    width: 120px;
    height: 30px;
    margin: auto;
    margin-bottom: 10px;
    margin-top: 20px;
    background: white;
    text-align: center;
    align-content: center;
}

/*----------------------------------------------------------*/

/*Formulaire d'inscription*/
.inscritpion {
  display: flex;
  flex-direction: column;
  width: 60%;
  margin: auto;
  margin-top: 20px;
}

.inscritpion input {
  padding: 5%;
  margin: 2% 0%;
  margin-top: 20px;
  border: 2px solid white;
  border-radius: 100rem;
  transition: all 0.3s;
}

.inscritpion button {
  margin-top: 40px;
  margin-bottom: 20px;
}

/*----------------------------------------------------------*/

/*Profil Compte*/
.img {
  width: 200px;
  height: 200px;
  position: relative;
}

.pfp {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 5px 5px var(--fond-bouton-actif);
}

.badge {
  width: 32px;
  height: 32px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  border-radius: 50%;
}

.profil {
  display: flex;
  justify-content: center;
  color: white;
  font-size: 20px;
  align-items: center;
}

.compte {
  width: 100%;
}

.pseudo {
  font-size: 30px;
}

/*----------------------------------------------------------*/

/*Boutton changement de la page*/
.changement {
  padding-bottom: 0px !important;
  display: flex;
  justify-content: center;
}

.changement button {
  width: 120px;
  border-radius: 0px;
  font-size: 20px;
  color: white;
  border: 0px;
  padding: 5px;
}

.changement button:hover {
  cursor: pointer;
}

.actif {
  background: var(--background-noir-profond);
}

.nonActif {
  background: rgb(54, 54, 54);
}



#affichageAnidex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 35px;
  padding: 0%;
}

#affichageAnidex article {
  margin-bottom: 40px;
  width: 200px;
  height: 280px;
}

#affichageAnidex article a {
  width: 200px;
  height: 280px;
}

#affichageAnidex article a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 5px 5px var(--fond-bouton-actif);
  transition: all 0.4s ease-in-out;
}

#affichageAnidex article a img:hover {
  transform: scale(1.05);
}

.anidex p {
  color: white;
  text-align: center;
}

.divTrier {
  text-align: center;
  color: white;
  display: flex;
  justify-content: space-between;
}

.affichageTitre {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.titre button, .titre article {
  border-radius: 10px;
  width: 125px;
  height: 72px;
  font-size: 17px;
  padding: 5px;
}

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

.boutonTrier {
  background: rgb(115, 13, 13);
  border-radius: 10px;
  padding: 10px;
  align-items: center;
  display: flex;
  gap: 5px;
  height: 60px;
}

.boutonTrier button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 35px;
  border-radius: 10px;
  color: white;
  height: 90%;
}

.btnDesac {
  background: rgb(115, 13, 13);
  border: 1px solid rgb(115, 13, 13);
}

.boutonTrier button img {
  margin-left: 5px;
  height: 16px;
}

.boutonTrier select {
  background: var(--fond-bouton-actif);
  color: white;
  border: 1px solid var(--fond-bouton-actif);
  border-radius: 5px;
  height: 90%;
}

.top {
  position: fixed;
  right: 2%;
  bottom: 10px;
  background: var(--fond-grisatre);
  border-radius: 5px;
  width: 32px;
  height: 32px;
}
.top:hover {
  cursor: pointer;
  
}

/*----------------------------------------------------------*/

/*Emplacement de modifier*/
.bordure {
  border-top: 5px var(--background-noir-profond) solid;
  border-bottom: 5px var(--background-noir-profond) solid;
}

.modifier form {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  margin: auto;
  margin-top: 25px;
}

.modifier form input {
  width: 60%;
  padding: 1.5%;
  margin: 1.5% 0%;
  border-radius: 100rem;
  border: 2px solid white;
}

.modifier form input:focus {
  outline: none;
  border: 2px solid blue;
}

.pfpChanger {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;

}

.bgAffichage {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.divBg {
  width: 150px;
  height: 83px;
}

.divBg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.points {
  position: absolute;
  bottom: 0px;
  right: 0px;
  cursor: pointer;
  background: #7b7975b0;
}

.fond {
  background-color: wheat;
}

.menuPopup {
  width: 100px;
  height: 80px;
  background-color: wheat;
  position: absolute;
  top: 100%;
  right: 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.menuPopup label, .menuPopup button, .btnDefaut, form button, form label {
  border-radius: 10px;
  border: 2px solid rgb(61, 61, 61);
  background: var(--fond-grisatre);
  color: white;
  padding: 5px;
  width: 70px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.menuPopup label:active, .menuPopup button:active {
  background-color: rgb(61, 61, 61);
}

.menuPopup label {
  width: 56px;
}

.btnDefaut, form button, form label {
  background: white;
  color: black;
  display: block;
  margin: auto;
  width: 120px;
  font-size: 18px;
  border: 2px solid rgb(119,119,119);
  transition: all 0.4s ease-in-out;
}

form button {
  margin-top: 5%;
}

.btnDefaut:hover, form button:hover, form label:hover {
  background: rgb(221, 221, 221);
}


/*----------------------------------------------------------*/

.fondDesac {
  position: relative;  /*les .picto-item deviennent référents*/
  cursor: help;
  border-radius: 50%;
}

/* on génère un élément :after lors du survol et du focus :*/

.fondDesac:hover:after,
.fondDesac:focus:after {
  content: attr(aria-label);  /* on affiche aria-label */
  position: absolute;
  top: -2.4em;
  left: 50%;
	transform: translateX(-50%); /* on centre horizontalement  */
  z-index: 1; /* pour s'afficher au dessus des éléments en position relative */
  white-space: nowrap;  /* on interdit le retour à la ligne*/
  padding: 5px 14px;
  background: #413219;
  color: #fff;
  border-radius: 4px;
  font-size: 1.2rem;
}

/* on génère un second élément en :before pour la flèche */

[aria-label]:hover:before,
[aria-label]:focus:before {
  content: "▼";
  position: absolute;
  top: -1em;
	left: 50%;
	transform: translateX(-50%); /* on centre horizontalement  */
  font-size: 20px;
  color: #413219;
}

/* pas de contour durant le :focus */
[aria-label]:focus {
  outline: none;
}

/*----------------------------------------------------------*/

/*Boutton Deconnection*/
.boutton {
  display: flex;
  justify-content: center;
}

.boutton a {
  background: white;
  padding: 1%;
  width: 150px;
  text-align: center;
  border-radius: 5px;
}

.boutton a:hover {
  background: rgb(200,200,200);
}

@media screen and (max-width: 400px) {
  .changement button {
    width: 33.3%;
  }
}

@media screen and (max-width: 640px) {
  .divTrier {
    flex-direction: column;
    gap: 10px;
  }

  .boutonTrier {
    justify-content: space-evenly;
  }
}

@media screen and (max-width: 1000px){
  main {
    width: 90%;
  }

  .profil {
    flex-direction: column;
  }

  .pseudo {
    text-align: center;
  }

  .modifier form {
    width: 100%;
  }

  .conteneur {
    width: 100%;
  }


  #affichageAnidex article {
    width: 120px;
    height: 168px;
  }
}