html {
  scroll-behavior: smooth;
}

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

#grille {
  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: 50%;
  padding: 10px 20px;
  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: 20;
  left: 20;
  cursor: pointer;
}

#imgfermer {
  width: 40px;
}

#contenu {
  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: 80vw;
  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;
}

.bouton>img {
  width: 30px;
  height: 30px;
}

@media (max-width: 1000px) {
  #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)
  }
}

.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);
}

.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);
}

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

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