a {
  color: blue;
}

p {
  text-align: justify;
}


/* Page accueil */
.listeJeuxPM {
  padding: 10px;  
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.elementJeuxPM {
  width: 300px;
  margin-right: 20px;
  transition: 0.1s;
}

.elementJeuxPM:hover {
  -ms-transform: scale(1.05);
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.elementJeuxPM img {
  height: 350px;
  border-radius: 15px;
}

.listeJeuxPM a {
  color: blue;
  text-decoration: none;
}


/* Barre supérieure */
.listeElementsBarre {
  background-color: #C9C9FF;
  border: 2px #B4B4FF solid;
  border-radius: 15px;

  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.elementBarre {
  width: 200px;
  margin-right: 10px;
}

.elementBarre img {
  width: 90%;
  transition: 0.1s;
}

.elementBarre img:hover {
  -ms-transform: scale(1.05);
  -webkit-transform: scale(1.05);
  transform: scale(1.05);  
}


/* Sommaire */
.sommaireGlobal {
  background-color: #D2D2FF;
  margin: 10px;
  padding: 10px;
  width: 90%;
  border: 2px #C3C3FF solid;
  border-radius: 15px;
}

.sommaireGlobal a { 
  text-decoration: none;
  color: blue;
}

.sommaireGlobal p {  
  transition: 0.1s;
}

.sommaireGlobal p:hover {
  -ms-transform: scale(1.003);
  -webkit-transform: scale(1.003);
  transform: scale(1.003);
}

.presentationLicence p {
  text-align: center;
}


/* Image Présentation */
.imgPresentation {
  width: 30%;
  border-radius: 15px;
}

.imgPresentation2 {
  width: 40%;
  border-radius: 15px;
}


/* Personnages */
.personnagesGlobal {
  background-color: #D2D2FF;
  border: 2px #C3C3FF solid;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 10px;
  width: 98%;
  margin-bottom: 10px;
}

.personnagesGlobal h3 {
  width: 100%;
}

.personnagesCategorie {
  width: calc(100% - 20px);
  padding: 10px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.personnage {
  background-color: #C3C3FF;
  color: navy;
  margin: 10px;
  max-width: 250px;
  min-width: 250px;
  padding-bottom: 5px;
  padding-top: 5px;
  border-radius: 15px;
  border: 2px #C3C3FF solid;

  cursor: pointer;
  transition: 0.1s;
}

.personnage p {
  text-align: center;
}

.personnage:hover, .collectible:hover {
  -ms-transform: scale(1.05);
  -webkit-transform: scale(1.05);
  transform: scale(1.05);  
}


/* Personnages description */
.personnageDescription {
  display: none;
  position: fixed;
  z-index: 2;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.contenuPersonnage {
  background-color: #D2D2FF;
  border: 2px solid #C3C3FF;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  height: 50%;
  justify-content: space-around;
  margin: auto;
  overflow: auto;
  padding: 15px;
  width: 70%;
}

.personnageImg {
  width: calc(30% - 22px);
  height: auto;
  border-right: 2px solid #B4B4FF;
  padding: 10px;
  font-size: 20px;
}

.personnageImg img {
  width: 70%;
  margin-bottom: 10px;
}

.personnageImg p {
  text-align: center;
}

.personnageDesc {
  width: calc(70% - 30px);
  padding: 15px;
}

.personnageDesc img {
  height: 120px;
  border-radius: 10px;
  margin-left: 10px;
  margin-right: 10px;
  transition: 0.1s;
}



/* Lieux */
.carteGlobal {
  width: 50%;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.carteGlobal img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 15px;
}

.carteCaseLieu {
  width: 5%;
  padding-top: 5%;
  position: relative;
  z-index: 1;
  transition: 0.1s;
}

.carteCaseLieuPMLPM {
  width: 3%;
  padding-top: 2%;
  position: relative;
  z-index: 1;
  transition: 0.1s;
}

.carteCaseLieuPMCS {
  width: 2%;
  padding-top: 2%;
  position: relative;
  z-index: 1;
  transition: 0.1s;
}

.carteCaseLieu img, .carteCaseLieuPMLPM img, .carteCaseLieuPMCS img {
  width: 100%;
}

.carteCaseLieu:hover, .carteCaseLieuPMLPM:hover, .carteCaseLieuPMCS:hover {
  -ms-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);

  cursor: pointer;
}

.carteCaseVide {
  padding-top: 5%;
}

.carteCaseVidePMLPM {
  padding-top: 2%;
  /* background-color: rgb(255, 0, 0, 0.5); */ /* Test calque */
}

.carteCaseVidePMCS {
  padding-top: 2%;
}


/* Bulle Niveau */
.bulleLieu {
  position: relative;
  display: inline-block;
}

.bulleLieuContenu {
  visibility: hidden;
  width: 300px;
  background-color: #B4B4FF;
  text-align: center;
  border-radius: 10px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 95%;
  left: 50%;
  margin-left: -150px;
  border: 2px solid #A5A5FF;
}

.bulleLieuContenuPMLPM {
  bottom: 125%;
}

.bulleLieuContenuPMCS {
  bottom: 125%;
}

.bulleLieuContenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #A5A5FF transparent transparent transparent;
}

.bulleLieu:hover .bulleLieuContenu {
  visibility: visible;
}

.lieuFond {
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  overflow: auto;
}

.lieuGlobal {
  width: calc(50% - 24px);
  max-height: 70%;
  background-color: #D2D2FF;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 25%;
  margin-right: 25%;
  padding: 10px;
  border: 2px #C3C3FF solid;
  border-radius: 15px;
  overflow: auto;
}

.lieuGlobal img {
  width: 70%;
  border-radius: 15px;
}


/* Lieux (SPM) */
.boutonChapitre {
  width: 120px;
  padding: 10px;
  border-radius: 5px;
  margin: 5px;
  border: 2px #B4B4FF solid;
  color: navy;

  background-color: #D2D2FF;
  transition: 0.1s;
}

.boutonChapitre img {
  height: 60px;
}

.boutonChapitre:hover {
  background-color: #CACAFF;
}

#chap0Bouton {
  background-color: #C3C3FF;
}

.niveauxSPMGlobal {
  background-color: #D2D2FF;
  border: 2px #C3C3FF solid;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 98%;
  margin-bottom: 10px;
}

.chapitreGlobal {
  display: none;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 10px;
  width: 100%;
}

.chapitreGlobal:nth-child(1) {
  display: flex;
}

.niveauxSPM {
  font-size: 18px;
  width: 25%;
  height: auto;
}

.niveauxSPM img {
  height: 150px;
  cursor: pointer;
  transition: 0.1s;
}

.niveauxSPM img:hover {
  -ms-transform: scale(1.05);
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.niveauxSPM p {
  text-align: center;
}

.lieuGlobalSPM img {
  width: 30%;
}

#texteLieuSPM {
  font-size: 16px;
}


/* Lieux (PMSS) */
.tableauLieuxPMSS {
  border: 0;
  width: 98%;
  align: center;
  background-color: #A5A5FF;
  margin-bottom: 10px;
}

.tableauLieuxPMSS p {
  text-align: center;
}

.ligneLieuxPMSS td {
  background-color: #D2D2FF;
}

.ligneLieuxPMSS td:nth-child(1) {
  background-color: #C3C3FF;
  width: 20%;
}

.ligneLieuxPMSS td:nth-child(2), .ligneSpecialeLieuxPMSS td:nth-child(2) {
  width: 50%;
}

.ligneLieuxPMSS td:nth-child(3), .ligneSpecialeLieuxPMSS td:nth-child(3) {
  width: 15%;
}

.ligneLieuxPMSS td:nth-child(4), .ligneSpecialeLieuxPMSS td:nth-child(4) {
  width: 15%;
}

.ligneSpecialeLieuxPMSS td {
  background-color: #B4B4FF;
}

.ligneSpecialeLieuxPMSS td:nth-child(1) {
  width: 20%;
}


/* Lieux (PMTOK) */
.boutonMondePMTOK {
  width: 10%;
  height: 40px;
  margin-top: 10px;
  background-color: #D2D2FF;
  border: 2px #B4B4FF solid;
  color: navy;
  font-family: "Bahnschrift", Helvetica, Arial, sans-serif;
}

.boutonMondePMTOK:hover {
  background-color: #C3C3FF;
}

.boutonMondePMTOK:nth-child(2) {
  background-color: #C3C3FF;
}

#mondePMTOKRouge, #mondePMTOKBleu, #mondePMTOKJaune, #mondePMTOKViolet, #mondePMTOKVert, #mondePMTOKFinale {
  width: 40%;
}

#mondePMTOKBleu, #mondePMTOKJaune, #mondePMTOKViolet, #mondePMTOKVert, #mondePMTOKFinale {
  display: none;
}



/* Attaques */
.boutonAttaque, .boutonCollectible {
  width: 120px;
  padding: 10px;
  border-radius: 5px;
  margin: 5px;
  border: 2px #B4B4FF solid;
  color: navy; 
  background-color: #D2D2FF;
}

.boutonAttaque:nth-child(2), .boutonCollectible:nth-child(2) {
  background-color: #C3C3FF;  
}


.attaquesGlobal {
  background-color: #D2D2FF;
  border: 2px #C3C3FF solid;
  border-radius: 15px;
  display: flex;
  justify-content: left;
  width: 98%;
  margin-bottom: 10px;
}

.attaquesListeGlobal {
  width: 40%;
  height: 480px;
  border-right: 2px #C3C3FF solid;
  overflow: auto;
  scrollbar-width: thin;
}

.attaquesListeCategorie {
  display: none;
}

.attaquesListeCategorie:nth-child(1) {
  display: block;
}

.attaquesDescription {
  width: 60%;
  height: 470px;
  overflow: auto;
  scrollbar-width: thin;
  padding-top:  10px;
  padding-left: 10px;
  padding-right: 10px;
}

.attaquesDescription img, .descriptionCollectibles img {
  width: 15%;
}

.atttaqueListe {
  display: none;
}

.atttaqueListe:nth-child(1) {
  display: block;
}

.attaque {
  width: 90%;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 5px;
  margin-right: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 15px;
  background-color: #C3C3FF;
  color: navy;
  overflow: auto;
  scrollbar-width: none;
  display: flex;
  justify-content: left;
  border: 2px #C3C3FF solid;
  transition: 0.1s;
}

.attaque:hover {
  -ms-transform: scale(1.05);
  -webkit-transform: scale(1.05);
  transform: scale(1.05);

  cursor: pointer;
  background-color: #BFBFFF;
}

.attaqueImage {
  width: 34%;
  margin: auto;
}

.attaqueImage img {
  border-radius: 10px;
}

.attaqueNom {
  width: 66%;
  margin: auto;
}



/* Collectibles */
.collectiblesGlobal {
  width: 98%;
  margin-bottom: 20px;
  display: flex;
  justify-content: left;
}

.listeCollectibles {
  width: 55%;
  height: 530px;
  padding: 10px;
  display: flex;
}

.collectiblesListeCategorie {
  display: none;
  flex-wrap: wrap;
  justify-content: space-around;
  overflow: auto;
  scrollbar-width: thin;
  width: 100%;
}

.collectiblesListeCategorie:nth-child(1) {
  display: flex;
}

.collectible {
  background-color: #C3C3FF;
  color: navy;
  margin: 5px;
  width: 180px;
  height: 95px;
  padding-bottom: 10px;
  padding-top: 10px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.1s;
}

.collectible img {
  height: 90px;
}

.descriptionCollectibles {
  width: 45%;
  height: 530px;
  padding-top: 15px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #D2D2FF;
  border-radius: 15px;
  overflow: auto;
}



/* Ajustement téléphone (pas 100% compatible) */
@media all and (max-width: 1100px) {
  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 35px;
  }

  p {
    font-size: 30px;
  }

  
  /* Accueil */
  .elementJeuxPM {
    width: 400px;
    margin-right: 25px;
  }

  .elementJeuxPM img {
    height: 450px;
  }


  /* Barre supérieur */
  .elementBarre {
    min-width: 300px;
    max-width: 300px;
  }

  .elementBarre img {
    height: auto;
  }


  /* Image présentation */
  .imgPresentation, .imgPresentation2 {
    width: 80%;
  }


  /* Personnages */
  .contenuPersonnage {
    width: 90%;
  }

  .personnageImg {
    width: calc(100% - 20px);
    border-bottom: 2px solid #B4B4FF;
    border-right: none;
  }

  .personnageImg img {
    width: 60%;
    margin-bottom: 10px;
  }

  .personnageDesc {
    width: calc(100% - 30px);
  }

  .personnageDesc h2 {
    text-align: center;
  }


  /* Lieux */
  .carteGlobal {
    width: 90%;
  }

  .lieuGlobal {
    width: calc(90% - 24px);
    margin-left: 5%;
    margin-right: 5%;
  }

  .lieuGlobal img {
    width: 90%;
    border-radius: 15px;
  }


  /* Lieux (SPM) */
  .boutonChapitre {
    width: 250px;
  }

  .boutonChapitre img {
    height: 100px;
  }

  .niveauxSPM {
    width: 40%;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
  }

  .niveauxSPM img {
    height: 225px;
  }

  .lieuGlobalSPM img {
    width: 70%;
  }

  #texteLieuSPM {
    font-size: 25px;
  }


  /* Lieux (PMTOK) */
  .boutonMondePMTOK {
    width: 20%;
    height: 100px;
    padding-right: 5px;
    font-size: 25px;
  }

  #mondePMTOKRouge, #mondePMTOKBleu, #mondePMTOKJaune, #mondePMTOKViolet, #mondePMTOKVert, #mondePMTOKFinale {
    width: 90%;
  }


  /* Attaques */
  .boutonAttaque, .boutonCollectible {
    width: 180px;
    height: 120px;
    font-size: 25px;
  }

  .attaquesListeGlobal {
    height: 700px;
  }

  .attaquesDescription {
    height: 690px;    
  }

  .attaquesDescription img {
    width: 40%;
  }

  .attaque {
    flex-wrap: wrap;
  }

  .attaqueImage {
    width: 100%;
  }

  .attaqueNom {
    width: 100%;
  }

  .attaqueNom p {
    text-align: center;
  }


  /* Collectibles */
  .collectiblesGlobal {
    display: block;
  }

  .listeCollectibles {
    width: 100%;
  }

  .collectible {
    width: 250px;
    height: 130px;
  }

  .collectible img {
    height: 120px;
  }

  .descriptionCollectibles {
    width: 100%;
    height: 700px;
  }

  .descriptionCollectibles img {
    width: 20%;
  }
}