:root {
  --chemindefer: #004226;
  --silver: #e1e2e4;
  --charte: #de0b2d;
  --green: #00663a;
  --over: black;
}

body {
  /*background: url("background.jpg") left center no-repeat;
  background-size: cover;
  background-color: var(--silver);
  background-position: left top;*/
  background-color: var(--charte);
  display: flex;
  flex-flow: raw nowrap;
  justify-content: center;
  font-weight: "Lato";
  height: 100vh;
  overflow: hidden;
}

#optionNav {
  display: flex;
  z-index: 1000;
  height: 30px;
  position: absolute;
  margin-top: 0px;
  background-color: white;
}
.onglet {
  height: 30px;
  width: 30px;
  font-size: 6px;
  background-color: white;
  cursor: default;
}
.onglet:hover {
  background-color: var(--over);
  color: white;
}
.ongletLarge {
  color: gray;
  cursor: default;
}
#exit-message {
  font-size: 12px;
  padding: 8px 12px;
}

.bkSilver {
  background-color: var(--silver);
}
.bkSilver:hover {
  background-color: black;
  color: white;
}

/* SOMMAIRE ---------------------------------------  */

#sommaire {
  display: flex;
  flex-flow: column wrap;
  text-align: left;
  background-color: var(--chemindefer);
  overflow: hidden;
  transition: all 0.2s;
  width: 400px;
}
.titre {
  background-color: white;
  color: var(chemindefer);
  padding: 10px;
  font-size: 20px;
  font-family: "lato";
  font-weight: 900;
}

.ligne {
  display: flex;
  flex-flow: row;
  border-bottom: 1px solid var(--silver);
  padding: 10px;
  color: var(--silver);
  transition: all 0.2s;
}
.ligne:hover {
  background-color: var(--charte);
  color: white;
  cursor: default;
}
.numPage {
  color: white;
  width: 10px;
  font-size: 10px;
  height: 100%;
}
.chapitre {
  padding-left: 10px;
  font-size: 12px;
  font-weight: 100;
}

/* PLANCHE ---------------------------------------  */

#planche {
  background-color: var(--chemindefer);
  transition: all 0.2s;
}
#planche:hover {
}

.num {
  text-align: center;
  font-size: 10px;
  color: white;
}

.vignette {
  width: 100%;
  margin: 10%;
}
#planche .minipage {
  float: left;
  background-image: url("../pages/thumb/page1.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  width: 40%;
  padding-top: 110px;
  text-align: center;
  margin-bottom: 10px;
  color: white;
  font-size: 10px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
#planche .minipage:hover {
  opacity: 1;
}

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

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

/* scroll */

.scroll {
  overflow-y: scroll;
}
.scroll:hover {
}

.scroll::-webkit-scrollbar {
  width: 4px;
}
.scroll::-webkit-scrollbar-track {
  /*background: var(--darkB);*/
}
.scroll::-webkit-scrollbar-thumb {
  background: white;
}
.scroll::-webkit-scrollbar-thumb:hover {
  background: white;
}

/* */

.exit-message > div {
  background: white;
  color: black;
}

@media screen and (max-width: 780px) {
  #optionNav {
    margin-top: 10vh;
  }
  .onglet {
    height: 50px;
    width: 50px;
  }
  .ongletLarge {
    height: 50px;
  }
  #exit-message {
    font-size: 18px;
    padding: 14px 20px 6px 20px;
    height: 100%;
  }
  #planche {
  }
  #sommaire {
    z-index: 1000;
    position: absolute;
    margin-top: calc(10vh + 60px);
    width: 90%;
    transition: all 0s;
  }
  #margeTop {
    height: 115px;
  }
  .pcOnly {
    display: none;
  }
}
