@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");

*,
:after,
:before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
}

body,
html,
#map {
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  background-color: #f1f1f1;
}

svg:not(:root) {
  overflow: hidden;
}

.hidden {
  display: none;
}

.active-sidebar .leaflet-left {
  transform: translateX(490px);
}

.sidebar {
  display: block;
  position: absolute;
  width: 100%;
  max-width: 480px;
  z-index: 99999;
  background: #fff;
  overflow: hidden;
  height: 100%;
  transform: translateX(calc(-100% - 20px));
  box-shadow: 0px 0px 22px -11px rgba(66, 68, 90, 1);
}

.active-sidebar .sidebar {
  max-width: 560px;
  width: 100%;
  transform: translateX(0);
}

@media (min-width: 768px) {
  .sidebar {
    top: 10px;
    left: 10px;
    border-radius: 5px;
    height: calc(100% - 20px);
    transition: transform 0.3s ease-in-out;
  }

  .active-sidebar .sidebar {
    max-width: 480px;
    width: 100%;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
  }

  .active-sidebar .leaflet-left {
    transform: translateX(485px);
    transition: transform 350ms;
  }
}

.close-button {
  cursor: pointer;
  position: absolute;
  top: 1px;
  right: 11px;
  border: none;
  padding: 5px;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  z-index: 1;
  background: none;
}

.sidebar .close-button svg {
  fill: #fff;
  width: 30px;
  height: 30px;
}

.sidebar svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: #3f3f3f;
  pointer-events: none;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  height: 100%;
}

/* sidebar-content */
.sidebar-content {
  height: inherit;
  overflow:auto;/*pour avoir l'ascenceur dans la popup -> test ; il faut voir si ca ne perturbe pas le reste*/  
}

.sidebar-content h1 {
  position: sticky;
  top: 0;
  color: #fff;
  background: #0052b1;
  padding: 10px 35px 10px 15px;
}

.sidebar-content img {
  /*display: block;*/
  max-width: 100%;
  height: auto;
  padding-top:5px;
  object-position:0px 0px;
}

.sidebar-content small {
  display: block;
  padding: 5px 15px;
}

.info-description {
  padding: 5px 15px 15px;
  line-height: 150%;
}

.info-content {
  height: 100%;
  overflow: auto;
  padding-bottom: 50px;
}

.marker-id {
  font-size: 3rem;
  font-weight: bold;
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.info-content::-webkit-scrollbar {
  width: 10px;
}

.info-content::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 81, 255, 0.3);
}

.info-content::-webkit-scrollbar-thumb {
  background-color: #003764;
  outline: 1px solid #002449;
}

/* marker sport études */
.leaflet-marker-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  /*line-height: 1;
  color: #fff;*/
  font-size: 12px;
  /*box-shadow: 0px 0px 3px #007ebf;
  border-radius: 100%;
  border: 2px solid #fff;
  background: #b8d487;
  background: #007ebf;*/
}

/*leaflet-marker-icon*/
.active-sidebar .selectedMarker,
.leaflet-marker-icon:hover {
  animation: border-pulse 1.5s infinite;
}

@keyframes border-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 255);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 255, 0);
  }
}

/*style personnalisé pour la description dans la popup*/
.qqvbed-p83tee {
	font-size : 14px;
	margin : 16px 0 26px;
}

.qqvbed-p83tee-V1ur5d {
  color: #9e9e9e;
  font-size: 12px;
  vertical-align: top;
  margin-right: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  max-width: 100%;
}

.qqvbed-p83tee-lTBxed {
  color: rgba(0,0,0,.87);
  display: inline-block;
  line-height: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  max-width: 100%;
  margin-top: 4px;
}

.qqvbed-tJHJj {
  height: 64px;
  background-color: #db4437;
  position: relative;

}

.qqvbed-bN97Pc {
  overflow:auto;/*pour avoir l'ascenceur dans la popup -> test ; il faut voir si ca ne perturbe pas le reste*/  
}	

.SfQLQb-T3iPGc .qqvbed-tJHJj-fmcmS {
  max-width: -moz-calc(100% - 48px - 48px - 11px - 13px - 24px);
  max-width: calc(100% - 48px - 48px - 11px - 13px - 24px);
}

.qqvbed-tJHJj-fmcmS {
  color: #fff;
  font-size: auto;
  font-weight: 600;
  max-width: -moz-calc(100% - 48px - 11px - 13px - 24px);
  max-width: calc(100% - 48px - 11px - 13px - 24px);
  display: inline-block;
  /*margin: 21px 0 19px 0;*/
  white-space: nowrap;
  /*text-overflow: ellipsis;
  overflow: hidden;*/
  position: absolute;
  left: 5px;
  top: 0;
}

.qqvbed-UmHwN {
  padding: 12px 24px 20px;
}


/* pour joli checkbox*/
form {
    max-width: 250px;
    position: relative;
    margin: 100px 0 0;
    font-size: 15px;
	z-index:500;
}
.radiobtn {
    position: relative;
    display: block;
}
.radiobtn label {
    display: block;
    background: rgba(0, 0, 0, 0.2);
    color: #000;
    border-radius: 5px;
    padding: 10px 20px;
    border: 2px solid grey;
    margin-bottom: 5px;
    cursor: pointer;
}
.radiobtn label:after, .radiobtn label:before {
    content: "";
    position: absolute;
    right: 11px;
    top: 11px;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background:grey;
}
.radiobtn label:before {
    background: transparent;
    transition: 0.1s width cubic-bezier(0.075, 0.82, 0.165, 1) 0s, 0.3s height cubic-bezier(0.075, 0.82, 0.165, 2) 0.1s;
    z-index: 2;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: 13px;
    background-position: center;
    width: 0;
    height: 0;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNS4zIDEzLjIiPiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE0LjcuOGwtLjQtLjRhMS43IDEuNyAwIDAgMC0yLjMuMUw1LjIgOC4yIDMgNi40YTEuNyAxLjcgMCAwIDAtMi4zLjFMLjQgN2ExLjcgMS43IDAgMCAwIC4xIDIuM2wzLjggMy41YTEuNyAxLjcgMCAwIDAgMi40LS4xTDE1IDMuMWExLjcgMS43IDAgMCAwLS4yLTIuM3oiIGRhdGEtbmFtZT0iUGZhZCA0Ii8+PC9zdmc+);
}
input[type="radio"] {
    /*display: none;
    position: absolute;
    width: 100%;
    appearance: none;*/
}
input[type="radio"]:checked + label {
    background:grey;
    animation-name: blink;
    animation-duration: 1s;
 border-color: $accentcolor;
}
input[type="radio"]:checked + label:after {
 background: $accentcolor;
}
input[type="radio"]:checked + label:before {
    width: 20px;
    height: 20px;
}