@font-face {
  font-family: Pistili;
  src: url("fonts/Pistilli-Roman.otf");
}
@font-face {
  font-family: Hurme;
  src: url("fonts/HurmeRegular.otf");
}
.logo {
  position: static;
  vertical-align: middle;
  margin-left: 43%;
  margin-top: 1%;
}
#logo {
  width: 100%;
  max-width: 150px;
  height: auto;
}
.RA {
  font-family: Pistili;
  color: black;
  text-align: center;
  font-size: 2vw;
  vertical-align: middle;
  margin-left: 25%;
  margin-right: 25%;
  margin-top: 1%;
}
.link {
  text-decoration: none;
  color: black;
  width: 100%;
  display: block;
  height: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.link:hover {
  color: white;
}
.wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 40% 40%;
  grid-gap: 30px;
  margin-top: 2%;
  padding: 0% 5% 5% 5%;
  margin-left: 25%;
}
.button1 {
  background-color: #ee6352;
  border-radius: 14px;
  border: 2px solid #d62828;
  display: inline-block;
  cursor: pointer;
  color: black;
  font-family: Hurme;
  font-size: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 135px;
}
.button1:hover {
  color: white;
  -webkit-box-shadow: 1px 1px 18px -8px #000000;
  box-shadow: 1px 1px 18px -8px #000000;
  transition: 0.3s;
}
.button2 {
  background-color: #c6d8c2;
  border: 2px solid #b2c1af;
  border-radius: 14px;
  display: inline-block;
  cursor: pointer;
  color: black;
  font-family: Hurme;
  font-size: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 135px;
}
.button2:hover {
  color: white;
  -webkit-box-shadow: 1px 1px 18px -8px #000000;
  box-shadow: 1px 1px 18px -8px #000000;
  transition: 0.3s;
}
.button3 {
  background-color: #b9b4d2;
  border-radius: 14px;
  border: 2px solid #9c98b1;
  display: inline-block;
  cursor: pointer;
  color: black;
  font-family: Hurme;
  font-size: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 135px;
}
.button3:hover {
  color: white;
  -webkit-box-shadow: 1px 1px 18px -8px #000000;
  box-shadow: 1px 1px 18px -8px #000000;
  transition: 0.3s;
}
.button4 {
  background-color: #f4c8ba;
  border: 2px solid #c9a599;
  border-radius: 14px;
  display: inline-block;
  cursor: pointer;
  color: black;
  font-family: Hurme;
  font-size: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 135px;
}
.button4:hover {
  color: white;
  -webkit-box-shadow: 1px 1px 18px -8px #000000;
  box-shadow: 1px 1px 18px -8px #000000;
  transition: 0.3s;
}
.Title {
  text-align: center;
  justify-content: center;
  align-items: center;
  font-family: Pistili;
  padding-left: 23%;
  margin-top: 5%;
}
.Edito {
  position: absolute;
  top: 14rem;
  left: 1%;
  max-width: 350px;
  font-family: Hurme;
  border-radius: 10px;
  z-index: 500;
}
.closebtn {
  position: absolute;
  top: 14rem;
  left: 1%;
  color: black;
  font-size: 15px;
  cursor: pointer;
  z-index: 999;
  background-color: #6d6875;
  color: white;
  padding: 6px;
  border-radius: 10px;
}
.closebtn:hover {
  color: #ffcdb2;
}
.EditoHead {
  padding: 25px 15px;
  background: #6d6875;
  font-size: 30px;
  color: white;
  text-align: center;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}
.EditoContainer {
  padding: 15px;
  background-color: #ffcdb2;
  color: black;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.buttonPgM {
  float: left;
  margin-left: 79%;
  background-color: #ffd942;
  border-radius: 10px;
  border: 1px solid #20458f;
  cursor: pointer;
  color: black;
  font-family: Hurme;
  font-size: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  z-index: 999;
}
.buttonPgM:hover {
  color: #20458f;
  -webkit-box-shadow: 1px 1px 18px -8px #000000;
  box-shadow: 1px 1px 18px -8px #000000;
  transition: 0.3s;
}
.buttonPg {
  float: right;
  margin-right: 5%;
  background-color: #c6d8c2;
  border-radius: 10px;
  border: 1px solid #b2c1af;
  cursor: pointer;
  color: black;
  font-family: Hurme;
  font-size: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  z-index: 999;
}
.buttonPg:hover {
  -webkit-box-shadow: 1px 1px 18px -8px #000000;
  box-shadow: 1px 1px 18px -8px #000000;
  color: white;
  transition: 0.3s;
}
ul {
  display: block;
  margin-top: -7%;
}
body {
  display: flex;
  min-height: 100vh;
  min-width: 60vh;
  flex-direction: column;
  transition: all 0.4s;
  font-family: Hurme;
  color: #333533;
}
.site-content {
  flex: 1;
  background-image: url("background.png");
  background-attachment: fixed;
  background-size: cover;
  background-blend-mode: darken;
}
footer {
  background-color: #22223b;
  color: white;
  -webkit-box-shadow: 0px -3px 8px -4px #000000;
  box-shadow: 0px -3px 8px -4px #000000;
  padding: 1%;
}
.Conditions {
  width: 47%;
  font-size: 9px;
}
.Adresse {
  float: right;
  font-size: 9px;
  margin-top: -2%;
  margin-right: 5%;
}
@keyframes cube {
  from {
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    opacity: 1;
  }
  to {
    transform: scale(20) rotate(960deg) translate(-50%, -50%);
    opacity: 0;
  }
}
.background {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  background: #f4f3ee;
  overflow: hidden;
  z-index: -2;
}
.background li {
  position: absolute;
  top: 73vh;
  left: 20vw;
  width: 10px;
  height: 10px;
  border: solid 1px #dbdad6;
  color: transparent;
  transform-origin: top left;
  transform: scale(0) rotate(0deg) translate(-50%, -50%);
  animation: cube 17s ease-in forwards infinite;
}
.background li:nth-child(0) {
  animation-delay: 0s;
  left: 18vw;
  top: 68vh;
  border-color: #f9d2bd;
}

.background li:nth-child(1) {
  animation-delay: 2s;
  left: 14vw;
  top: 22vh;
  border-color: #b9b4d2;
}

.background li:nth-child(2) {
  animation-delay: 4s;
  left: 37vw;
  top: 52vh;
}

.background li:nth-child(3) {
  animation-delay: 6s;
  left: 47vw;
  top: 11vh;
  border-color: #f4c8ba;
}

.background li:nth-child(4) {
  animation-delay: 8s;
  left: 46vw;
  top: 70vh;
  border-color: #c6d8c2;
}
.background li:nth-child(5) {
  animation-delay: 10s;
  left: 50vw;
  top: 26vh;
  border-color: #22223b;
}
a {
  text-decoration: none;
}
#sidebar.active {
  margin-left: -17rem;
}
#content.active {
  width: 100%;
  margin: 0;
}
footer {
  margin-left: 17rem;
}
#content {
  width: calc(100% - 17rem);
  margin-left: 17rem;
  transition: all 0.4s;
  overflow: auto;
}
#sidebarCollapse {
  margin-top: 0%;
  margin-left: 13%;
  z-index: 999;
  cursor: pointer;
  position: fixed;
  display: none;
}
#sidebarCollapse.active {
  margin-left: 0%;
  transition: all 0.4s;
}
footer.active {
  margin-left: 0;
}
@media (max-width: 768px) {
  body {
    min-width: 80vh;
  }
  .Edito {
    top: 32%;
    display: none;
  }
  .closebtn {
    top: 32%;
    left: 1.2%;
  }
  .Adresse {
    margin-top: -15%;
    margin-right: 4%;
  }
  .buttonPg {
    margin-bottom: 3%;
  }
  .buttonPgM {
    margin-left: 35%;
  }
  #sidebarCollapse {
    display: block;
  }
  #sidebar {
    margin-left: -17rem;
  }
  #sidebar.active {
    margin-left: 0;
  }
  #content {
    width: 100%;
    margin: 0;
  }
  #content.active {
    margin-left: 17rem;
    width: calc(100% - 17rem);
  }
  footer {
    margin-left: 0rem;
  }
}
