body {
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --main-color: rgb(0, 123, 255);
  --largeur-max-calendrier: 100%;
}

#container-calendrier {
  -moz-box-shadow: 0px 0px 20px 0px #babdf3;
  -webkit-box-shadow: 0px 0px 20px 0px #babdf3;
  -o-box-shadow: 0px 0px 20px 0px #babdf3;
  box-shadow: 0px 0px 20px 0px #babdf3;
  border: none;
  padding: 5px;
  margin: 10px;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
  width: var(--largeur-max-calendrier);
}

#calendrier-wrap {
  padding-top: 10px;
  width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: left;
  align-items: center;
}
.calendar-days {
  width: 100%;
  margin-top: 10px;
}

.calendar-days ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
  overflow: hidden;
}

.calendar-days ul li {
  box-sizing: border-box;
  float: left;
  display: block;
  width: 14.2857%;
  border-right: 1px solid #fff;
  font-size: 14px;
  text-align: center;
  overflow: hidden;
  letter-spacing: 1px;
  color: grey;
}

.label-check {
  font-size: 14px;
  padding-bottom: 3px;
  cursor: pointer;
  color: white;
  margin-left: 10px;
  text-transform: capitalize;
  padding-right: 10px;
}

.coche::before {
  content: url(check.svg);
  color: white;
  position: relative;
  top: 5px;
}

.choix-categories {
  margin-top: 15px;
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  left: 10px;
}

.choix-categories input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.boutons-wrap {
  position: relative;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.formations,
.check-formations {
  color: white;
  background-color: rgb(91, 171, 196);
}
.formateurs,
.check-formateurs {
  color: white;
  background-color: rgb(196, 194, 87);
}
.secouristes,
.check-secouristes {
  color: white;
  background-color: rgb(158, 94, 218);
}
.DPS,
.check-DPS {
  color: white;
  background-color: rgb(83, 224, 106);
}
.vehicules,
.check-vehicules {
  color: white;
  background-color: rgb(250, 95, 56);
}
.lots,
.check-lots {
  color: white;
  background-color: rgb(250, 198, 56);
}

.choix-categories {
  font-size: 14px;
}

.calendar-dates {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  border-left: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.calendar-dates ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.calendar-dates ul li {
  position: relative;
  z-index: 20;
  background-color: white;
  padding-top: 2px;
  float: left;
  min-height: 150px;
  max-height: 150px;
  width: 14.2857%;
  text-align: center;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  overflow: hidden;
}

.calendar-dates ul li:hover {
  background: #f8f8f8 !important;
}

.calendar-dates ul .datecasesemaine {
  min-height: 80vh;
}

.jourDefaut,
.jourDefautSemaine {
  color: rgb(66, 66, 66);
  letter-spacing: 1px;
  width: 100%;
}

.jourAutresMois {
  color: lightgrey;
  letter-spacing: 1px;
}

.voirplus {
  position: absolute;
  top: 126px;
  margin: auto;
  cursor: pointer;
  font-size: 12px;
  width: 100%;
  padding: 1px 2px;
  border-radius: 6px;
  background-color: rgb(104, 103, 103);
  color: white;
  transition: background-color 0.3s ease-in-out;
}

.voirplus:hover {
  background-color: darkslategrey;
}

/* flatpickr */
.container-pickr .form-control[readonly] {
  cursor: pointer;
  background-color: white;
  min-width: 150px;
  min-height: 30px;
  transition: background-color 0.5s, min-width 1s, min-height 1s ease-in-out;
}

.container-pickr .form-control[readonly]:hover {
  background-color: rgb(250, 246, 210);
  min-width: 155px;
  min-height: 32px;
}

/* precedent-suivant */
.prec i,
.suiv i {
  color: grey;
  font-size: 38px;
  cursor: pointer;
}

.prec i:hover,
.suiv i:hover {
  color: rgb(102, 101, 101);
}

/* evenement */
.calendar-dates ul li span {
  font-size: 12px;
  text-align: center;
  max-width: 96%;
  max-height: 20px;
  margin: auto;
  word-wrap: normal;
  overflow: hidden;
}

.cont_container {
  min-height: 149px;
}
.cont_container:first-child,
.cont_container_semaine:first-child {
  margin-top: 2px;
  overflow: hidden;
}

.container-evenement {
  color: white;
  font-size: 12px;
  padding: 1px 8px;
  display: block;
  width: 100%;
  cursor: pointer;
  padding-left: 5px;
  filter: contrast(100%);
  transition: filter 0.2s ease-in-out;
}

.container-evenement:hover {
  filter: contrast(140%);
}

.format-jour-mobile {
  display: none;
}

.box-shadow {
  -moz-box-shadow: 0px 0px 20px 0px #babdf3;
  -webkit-box-shadow: 0px 0px 20px 0px #babdf3;
  -o-box-shadow: 0px 0px 20px 0px #babdf3;
  box-shadow: 0px 0px 20px 0px #babdf3;
  border: none;
}

.modal.fade .modal-dialog {
  transition : transform 0.3s ease-out;
  transform  : translate(0, 0);
}

.modal-backdrop.fade {
  opacity: 0;
}

/* VERSION MOBILE */
@media only screen and (max-width: 480px) {
  #container-calendrier {
    margin: 2px;
  }

  .cont_container {
    min-height: 9vh;
  }

  .cont_container:first-child,
  .cont_container_semaine:first-child {
    margin-top: 10px;
  }

  .calendar-wrap {
    width: 100%;
  }

  .boutons-wrap {
    margin-top: 10px;
    margin: 0;
    padding: 0;
  }

  .coche::before {
    content: "";
  }

  .label-check {
    padding: 5px 5px;
    font-size: 14px;
    width: 100px;
    cursor: pointer;
    color: white;
    margin-left: 10px;
    text-align: center;
    border-radius: 10px;
  }

  .prec i,
  .suiv i {
    font-size: 28px;
  }

  .flatpickr-mobile {
    min-width: 200px;
    margin: auto;
    text-align: center;
  }

  .container-pickr .form-control[readonly] {
    cursor: pointer;
    background-color: white;
    min-width: 150px;
    margin-top: 10px;
  }

  .calendar-days {
    display: none;
  }

  .calendar-dates ul li {
    width: 98%;
    min-height: 80px;
    max-height: inherit;
  }

  .calendar-dates ul li span {
    font-size: 16px;
    min-height: 40px;
    line-height: 40px;
    border-radius: 12px;
  }

  .calendar-dates ul .datecasesemaine {
    min-height: 15vh;
    padding-bottom: 10px;
  }

  /* evenement */
  .container-evenement {
    font-size: 16px;
  }

  .format-jour-mobile {
    display: block;
  }

  .format-jour-desktop {
    display: none;
  }
  .mois-out {
    display: none;
  }

  .voirplus {
    visibility: hidden;
  }
}
