html {
  scroll-behavior: smooth;
}

body {
  background: no-repeat url(fleche.svg);
  background-size: contain;
  background-position: center;
  /*overflow: hidden;*/
  text-align: center;
}

#grille,#elements {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

#controle {
  position: fixed;
  top: 0px;
  left: 50vw;
  padding: 5px 5px;
  border: 3px solid black;
  border-radius: 5px;
  z-index: 800;
  background-color: white;
}

.bouton {
  display: inline;
  margin-left: 4px;
  margin-right: 4px;
}

#ligne0 {
  font-size: 40px;
}

.ligne {
  display: grid;
  grid-gap: 10px;
  grid-auto-rows: minmax(100px, auto);
}

.case, .caseoptionnelle {
  display: flex;
  box-shadow: 0 4px 7.36px 0.64px rgb(0 0 0/24%), 0 0px 7.68px 0.32px rgb(0 0 0/16%);
  text-align: center;
  cursor: pointer;
  user-select: none;
  border-radius: 15px;
}

#ferme {
  z-index: 100;
  position: fixed;
  top: 20px;
  left: 20px;
  cursor: pointer;
}
#imgPE{
cursor:pointer;
width: 40px;
height:40px;
}

#imgfermer {
  width: 40px;
}
.bouton>img {
  width: min(30px,5vw);
  height: min(30px,5vw);
}

#contenu {
text-align:center;
  position: absolute;
  top: 10px;
  box-shadow: 0 4px 7.36px 0.64px rgb(0 0 0/24%), 0 0px 7.68px 0.32px rgb(0 0 0/16%);
  text-align: center;
  margin: auto;
  margin-bottom: auto;
  margin-bottom: 30px;
  height: calc( 100% - 15px);
  min-width: calc(100% - 20px);
  height: calc( 100% - 25px);
}

#contenuinner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: hidden;
}

video, iframe, .pdf {
  position: relative;
  width: calc(100vw - 10px);
  border: 0px;
  max-height: calc(100% - 5px);
}

iframe {
  height: calc(100% - 5px);
}

.pdf {
  background: no-repeat url(attente.gif);
  background-position: center;
  overflow: scroll;
  height: 100%;
}

.bouton {
  text-decoration: none;
}





.caseD {
  background:no-repeat bottom 0px right 0px /30px url(icone/debutant.png),no-repeat bottom 0px right 5px /30px url(icone/apprenti.png) ,no-repeat bottom 0px right 10px /30px url(icone/confirme.png) ,no-repeat bottom 0px right 15px /30px url(icone/expert.png);
  background:no-repeat bottom 0px right 0px /30px url(icone/debutant.png);
}

.caseA {
  background:no-repeat bottom 0px right 5px /30px url(icone/apprenti.png) ,no-repeat bottom 0px right 10px /30px url(icone/confirme.png) ,no-repeat bottom 0px right 15px /30px url(icone/expert.png);
  background:no-repeat bottom 0px right 0px /30px url(icone/apprenti.png) ;
}

.caseC {
  background:no-repeat bottom 0px right 10px /30px url(icone/confirme.png) ,no-repeat bottom 0px right 15px /30px url(icone/expert.png);
  background:no-repeat bottom 0px right 0px /30px url(icone/confirme.png);
}

.caseE {
  background: no-repeat bottom 0px right 0px /30px url(icone/expert.png);
}

.elementajout{
  display: block;
  box-shadow: 0 4px 7.36px 0.64px rgb(0 0 0/24%), 0 0px 7.68px 0.32px rgb(0 0 0/16%);
  text-align: center;
  cursor: pointer;
  user-select: none;
  border-radius: 15px;
  margin-bottom: 10px;
  padding : 5px;
}

/*@media (max-width: 600px) {
  #contenuinner {
    flex-direction: column;
    min-height: calc(100vh - 20px);
  }
  iframe, .pdf, video {
    width: calc(100vw - 20px);
    border: 0px;
    height: auto;
  }
  iframe {
    height: calc(100vh - 15px);
  }
  #contenu {
    height: calc(100vh - 15px)
  }
}*/

#PE
{
display: inline-block;
text-align: center;
height : 40px;
}