
/************* menu ************/
/* limit de largeur pour le js */
@media (min-width: 1400px) {
  main,
  header,
  #main-navbar {
    padding-left: 240px;
  }
}
/* logo */
img#gdrSilex-logo{
  width: 200px;
}
/************* FontAwesome ************/
#main-navbar > .container-fluid > .btn > .fa-lg {
  line-height:1em !important;
}

/************* Body ************/

.card {
  width:100%;
}
.alert {
  margin-top: 1em;
}
.crop {
  object-fit: cover; /* Do not scale the image */
  object-position: center; /* Center the image within the element */
  width: 100%;
  max-height: 250px;
}



/************* map ************/

#map { 
	width: 100%; 
	height:450px; 
  padding:0px !important;
  margin:0px !important;
}
.leaflet-popup-content p {
	font-size: 0.8em!important;
}

.custom-popup .leaflet-popup-content-wrapper {
  background:#2c3e50;
  color:#fff;
  font-size:16px;
  line-height:24px;
  border-radius: 0px;
  }
.custom-popup .leaflet-popup-content-wrapper a {
    color:rgba(255,255,255,0.1);
  }
.custom-popup .leaflet-popup-tip-container {
  width:30px;
  height:15px;
  }
.custom-popup .leaflet-popup-tip {
    background: transparent;
    border: none;
    box-shadow: none;
}
.imagePopUp img {
	width:100%;
}
.myDivIcon .myDivIcon2 .myDivIcon3 .myDivIcon4 {
    text-align: center;
    line-height: 20px;
    font-size: 1.2em;
    opacity: 75%;
} 

.fa-border {
  border-color:#fff;
  padding: 0;
  border-radius:12px;
  border-style:solid;
  border-width: 2px;
}

.myDivIcon {
    color: #2ea598;
    }
.myDivIcon2 {
    color: #a56d2e;
  }
.myDivIcon3 {
    color: #a52e73;
  }
.myDivIcon4 {
    color: #402ea5;
  }
  .myDivIcon5 {
    color: #11cc30;
  }
  .myDivIcon6 {
    color: #f0ed3a;
  }
    .ToolTipId{
    font-size: 0.7em !important;
    padding: 0px !important;
    border: 0px !important;
    background: none !important;
    color:#000;
    opacity: 0.9 !important;
    box-shadow: none;
    font-weight: bold;
    /*margin: 1px 0px 0px -10px;*/
    text-shadow: 
    -1px -1px 0 #fff,  
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
    }
    
    .classTpArold {
      font-size: 0.6em !important;
      margin-left: -8px !important;
      padding: 1px !important;
      box-shadow: none !important;
    }

    .leaflet-tooltip-left:before {
    opacity: 0 !important;
    }
    
    .leaflet-tooltip-right:before {
    opacity: 0 !important;
    }

/************* HexBinMap ************/
    .hexbin-hexagon {
			stroke: #000;
			stroke-width: .5px;
		}

		.hexbin-container:hover .hexbin-hexagon {
			transition: 200ms;
			stroke: orange;
			stroke-width: 1px;
			stroke-opacity: 1;
		}

		.hexbin-tooltip {
			padding: 8px;
			border-radius: 4px;
			border: 1px solid black;
			background-color: white;
		}

/************* Legend HexBinMap ************/
#gradient-bar {
	height: 200px;
	width: 15px;
	border-radius: 10px;
	background: linear-gradient(#019136, #6a892d, #9d7325, #c0501c, #e31720);
}

#legend {
  position: relative;
  background: #fff;
  z-index: 999;
  opacity: 0.7;
  width: 90px;
  margin: 10px;
  padding: 5px;
  margin-left: auto;
  /* margin-right: 60px; */
  margin-top: 75px;
}
.legText{
font-size: 0.9em;
}
.indicator {
	position: absolute;
	top: 0;
	left: 30px;
font-size: 0.9em;
}

.scale {
	position: relative;
}

/************* Filters BP sur Leafleet ************/

#filtersBP {
  position: relative;
  z-index: 999;
  opacity: 1;
  padding: 5px;
  margin-right: auto;
  margin-top: 5px;
  margin-bottom: 10px;
}
#filtersBP > div {
  margin-right:3%;
}

.filter {
margin:0;
}



/************* Lightbox ************/





/************* Datatable ************/
/* icon modal pour éviter l'erreur Cannot read properties of undefined (reading 'classList')*/
i.fas.fa-info {
  pointer-events: none;
}

/*group by*/

tr.dtrg-level-0{
  background-color: #3a4759 !important;
}
tr.dtrg-level-0 td {
  font-variant: small-caps;
  font-size: 1.2em;
  font-weight: bold !important;
  color: #fff;
}
tr.dtrg-level-1, tr.dtrg-level-2, tr.dtrg-level-3, tr.dtrg-level-4 {
  background-color: #e7ecf0 !important;
  font-weight: 400 !important;
}
tr.dtrg-level-1 td {
  padding-left: 30px;
  padding-top:3px !important;
  padding-bottom:3px !important;
}
tr.dtrg-level-2 td {
  padding-left: 50px;
  padding-top:3px !important;
  padding-bottom:3px !important;
}
tr.dtrg-level-3 td {
  padding-left: 70px;
  padding-top:3px !important;
  padding-bottom:3px !important;
}
tr.dtrg-level-4 td {
  padding-left: 90px;
  padding-top:3px !important;
  padding-bottom:3px !important;
}

div.dt-button-collection {
    width: 400px;
}
 
div.dt-button-collection button.dt-button {
    display: inline-block;
    width: 32%;
}
div.dt-button-collection button.buttons-colvis {
    display: inline-block;
    width: 49%;
}
div.dt-button-collection h3 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: 100;
    border-bottom: 1px solid #9f9f9f;
    font-size: 1em;
}
div.dt-button-collection h3.not-top-heading {
    margin-top: 10px;
}

/************* Slide photo ************/
.mySlides {
	display:none;
	width:100%;
}
.mySlides:first-child {
	display:block;
	width:100%;
}

.w3-btn, .w3-button {
  position: absolute;
  /* left: 88%; */
  /* width: 35px; */
  /* height: 35px; */
  /* border-radius: 50%; */
  opacity: 0.6;
  /* background-color: black; */
  z-index: 19;	
}

.w3-display-right {
  position: relative;
  /* left: 83%; */
  /* transform: translate(-420%,-57%); */
  z-index: 20;
}
.w3-display-left {
  position: relative;
  /* left: 7%; */
  /* transform: translate(360%,-57%); */
  z-index: 20;
}
.w3-display-right:hover {
	cursor: pointer;
}
.w3-display-left:hover {
	cursor: pointer;
}

.cropSlide {
  object-fit: cover; /* Do not scale the image */
  object-position: center; /* Center the image within the element */
  width: 100%;
  max-height: 180px;
}

/************* photo legende ************/

p.PCom {
	font-style: italic;
    font-size: 0.9em;
	margin-bottom: 0;
}
p.PLink{
	font-size: 0.9em;
}

div.titreSite > p.PSite {
	font-size: 1.5em;
    font-weight: bold;
	margin-bottom: 5px;
	color:#2c3e50;
	line-height: 1.3em;
}
div.locSite {
	width: 100%;
}
div.titreSite {
	width: 100%;
}
.sample{
    width: 100%;
}
#AffichageResultat{
	display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.result {
  /* display: inline-block; */
  flex-grow: 1;
  /* flex-shrink: 1; */
  /* flex-basis: auto; */
  /* align-self: normal; */
  margin: 6px;
  width: auto;
  background-color: #f3f3f3!important;
  padding: 5px;
  /* max-width: 400px; */
}

.sample > .content {
	margin:0 0 5px 0;
	font-size: 0.8em;
}
span.Biblio {
	padding-top:2px;
	display: block;
	font-size:0.8em;
}
span.Copyright {
	padding-top: 2px;
    font-size: 0.8em;
    font-style: italic;
    display: block;
}
span.titre {
	text-decoration: underline;
}

/************* recherche autocomplete ************/
.autocomplete > .form-control {
  margin-top: 10px;
  /*display: inline-flex !important;*/
}

.autocomplete {
  /*the container must be positioned relative:*/
  position: relative !important;
}
.autocomplete-items {
  position: relative;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important;
  color: #ffffff;
}

::placeholder{
color: #c3c3c3 !important;
}


/************* je ne me souviens plus… ************/
[data-title] {
	position:relative;

}
[data-title]:before {
	content:'';
	/* hides the tooltip when not hovered */
	display:none;
	content:'';
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid #1a1a1a;	
	position:absolute;
	top:30px;
	right:35px;
	z-index:8;
	font-size:0;
	line-height:0;
	width:0;
	height:0;
}
[data-title]:after {
	display:none;
	content:attr(data-tip);
	position:absolute;
	top:35px;
	right:0px;
	padding:5px 8px;
	background:#1a1a1a;
	color:#fff;
	z-index:9;
	font-size: 0.75em;
	line-height:18px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	white-space:nowrap;
	word-wrap:normal;
}
[data-title]:hover:before,
[data-title]:hover:after {
	display:block;
}

/************* légende carto ************/
.legend {
  padding: 6px 8px;
  font: 14px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  /*border-radius: 5px;*/
  line-height: 24px;
  color: #555;
}
.legend h4 {
  text-align: center;
  font-size: 16px;
  margin: 2px 12px 8px;
  color: #777;
}

.legend span {
  position: relative;
  bottom: 3px;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin: 0 8px 0 0;
  opacity: 0.7;
}

.legend i.icon {
  background-size: 18px;
  background-color: rgba(255, 255, 255, 1);
}

/************* Modal ************/
td.first-td {
  width: 50%;
}

/************* HighCharts ************/
.highcharts-figure,
.highcharts-data-table table {
    margin: 1em auto;
}

.highcharts-data-table table {
    border-collapse: collapse;
    border: 1px solid #ebebeb;
    margin: 10px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}

.highcharts-data-table th {
    font-weight: 600;
    padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
    padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}

.highcharts-data-table tr:hover {
    background: #f1f7ff;
}

/************* Pages détail ************/
#h4Map {
  margin-top: 30px;
}
.justify {
  text-align: justify;
}
.cropPhoto {
  max-height: 180px;
  object-fit: cover;
}
.cropPhoto2 {
  max-height: 100px;
  object-fit: cover;
}


/************* bouton back to top ************/
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index:999;
}