/* GENERAL
–––––––––––––––––––––––––––––––––––––––––––––––––– */
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  font-family: "Droid Serif", serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DharmaGothicE', sans-serif;
  margin: 0;
  line-height: 1.1;
}

.hidden {
  display: none;
}


/* #VIZ
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz {
  background-color: #FFF;
  padding: 10px 15px;
}

#viz #main {
}

#viz section:not(:last-child) {
  margin-bottom: 20px;
}

#viz h1 {
  font-size: 4rem;
  margin-bottom: 10px;
}

#viz h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#viz h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

#viz h4 {
	font-size: 1.3rem;
	margin-bottom: 10px;
}

#viz p {
  line-height: 1.45;
  margin: 0 0 10px 0;
}

/* MAPS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .map .leaflet-bar {
  border-radius: 0;
  border-color: #000;
}

#viz .map .leaflet-control-attribution.leaflet-control {
  background-color: rgba(255,255,255,0.75);
  color: #000;
  font-family: "epocapro", sans-serif;
  font-style:  italic;
}

#viz .map .leaflet-control-attribution.leaflet-control a {
  font-style:  normal;
  color: blue;
}

/* LEGENDS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz .legend {
  font-family: "epocapro", sans-serif;
  font-size: 0.75rem;
  font-weight: 100;
}

#viz .legend .stronger {
  font-weight: 600!important;
}

#viz .legend img {
  height: 1.2rem;
  vertical-align: bottom;
}

#viz .legend .label {
  font-size: 0.7rem;
  padding: 1px 3px;
  border-radius: 1px;
}

#viz ul.legend {
	padding: 0;
	margin: 0;
}

#viz ul.legend li {
  display: inline-block;
  margin-right: 3px;
}

#viz ul.legend li .block {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-right: 5px;
	border: 2px solid #000;
  position: relative;
  top: 3px;
	background-color: yellow;
}


/* #VIZ #HEADER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz #header {
  margin-bottom: 20px;
}

#viz #header h1.title {
  font-size: 3.5rem;
  line-height: 0.9;
  margin-bottom: 10px;
}

#viz #header #social-bar-placeholder {
	height: 40px;
	background-color: #3C5A98;
}

#viz #header #social-bar-container {
	position: relative;
	z-index: 1;
  margin: 15px 0;
}

#viz #header img.banner {
  max-width: 100%;
  margin: 0;
  margin-bottom: 10px;
}
        
#viz #header p.intro {
  font-size: 1.2rem;
  line-height: 1.5;
}


/* #VIZ #MAP
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz #map {
  margin-bottom: 20px;
}

#viz #map #main-map {
  height: 71vh;
  background-color: #FAFAFC;
  display: block;
  width: 95%;
  margin-bottom: 5px;
}

#viz #map p.legend .label {
  color: #FFF;
}
#viz #map p.legend .label.privé {
  background-color: #1377D6;
}
#viz #map p.legend .label.public {
  background-color: #E34751;
}

#viz .map .leaflet-marker-icon.cluster {
  background-color: hsla(357,83%,49%,0.25);
  color: rgba(0,0,0,0.9);
  text-align: center;
  line-height: 40px;
/*  width: 150px!important;
  height: 150px!important;
*/
  border-radius: 50%;
  font-family: "epocapro", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

/* #VIZ #MAP popup
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/*
#viz ::-webkit-scrollbar {
    width:3px;
    height:3px;
    border-left:0;
    background:rgba(0,0,0,0.1);
}
#viz ::-webkit-scrollbar-track {
    background:none;
}
#viz ::-webkit-scrollbar-thumb {
    background:#444;
    border-radius:0;
}
*/

/* TODO: POPUP FLOATS _OVER_ ZOOM CONTROL */

#viz .info table {
  width: 100%;
  max-width: 100%;
  font-family: "epocapro", sans-serif;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
}

#viz .info .region,
#viz .info .organisme,
#viz .info .nom-adr,
#viz .info .secteur {
  font-family: "DharmaGothicE", sans-serif;
  text-align: center;
}

#viz .info p.region {
  font-size: 1.3rem;
  background-color: #444;
  color: #FFF;
  margin: 0;
}

#viz .info p.organisme {
  background-color: #555;
  color: #FFF;
  font-family: "epocapro", sans-serif;
  font-size: 0.75rem;
  margin: 0;
  padding: 1px 0;
}
#viz .info.privé p.organisme {
  padding: 0;
}


#viz .info .nom-adr {
  padding: 5px 0;
}
#viz .info.public .nom-adr { background-color: #E34751; }
#viz .info.privé .nom-adr { background-color: #1377D6; }
#viz .info .nom-adr p {
  font-size: 1.1rem;
  line-height: 1;
  color: #FFF;
  margin: 0;
}
#viz .info .nom-adr p.nom {
  font-size: 1.5rem;
}


#viz .info .summary {
  background-color: #FAFAFC;
  text-align: center;
  padding: 1px 0;
}
#viz .info.privé .summary {
  background-color: hsla(209,84%,56%,1);
  color: #FFF;
}
#viz .info.public .summary {
  background-color: hsla(356,74%,67%,1);
  color: #FFF;
}
#viz .info .summary {
  background-color: #FAFAFC;
}
#viz .info .summary p.secteur {
  font-family: "epocapro", sans-serif;
  font-size: 0.75rem;
  margin: 0;
}
#viz .info .summary table {
  font-size: 0.75rem;
}
#viz .info .summary table thead {
  border-bottom: 1px solid #333;
}
#viz .info .summary table thead tr {
}
#viz .info .summary table th {
  font-weight: 500;
  line-height: 1.1;
  padding-bottom: 5px;
}
#viz .info .summary table td {
  font-weight: 400;
  line-height: 1.1;
  padding-top: 5px;
  padding-bottom: 5px;
}



#viz .info .students {
  background-color: #FFD900;
  text-align: center;
  padding: 5px 20px;
  margin: 0;
}

#viz .info .students p {
  font-family: "epocapro", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0;
}


#viz .info .details {
  background-color: #FAFAFC;
  text-align: center;
  padding: 5px 0;
}
#viz .info .details table {
  font-size: 0.75rem;
}
#viz .info .details table thead {
}
#viz .info .details table thead tr {
  border-bottom: 1px solid #333;
}
#viz .info .details table th {
  font-weight: 500;
  line-height: 1.1;
  padding-bottom: 5px;
}
#viz .info .details table th:first-child {
  text-align: left;
}
#viz .info .details table tbody tr:nth-child(5) {
}
#viz .info .details table td {
  font-weight: 400;
  line-height: 1.2;
}
#viz .info .details table th:nth-of-type(even),
#viz .info .details table td:nth-of-type(even) {
  background-color: #EEE;
}
#viz .info .details table td:first-child {
  text-align: left;
}
#viz .info .details table td:not(first-child) {
  text-align: right;
}


/* LIGHTBOX
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz #the-school.lightbox {
  background-color: #FFF;
}

#viz #the-school.lightbox .content {
  padding: 10px;
  background-color: #FFF;
  max-height: 100vh;
  overflow: hidden;
}



/* #VIZ #LIST
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz #list {
  margin-bottom: 20px;
}

#viz #list h3 {
  margin: 0;
  margin-bottom: 5px;
}

#viz #list .scrollable {
  width: 95%;
  max-height: 52vh;
  overflow: auto;
  padding-right: 5px;
  background-color: #FAFAFC;
  margin-bottom: 20px;
}

#viz #list table {
  width: 100%;
  max-width: 100%;
  font-family: "epocapro", sans-serif;
  font-size: 0.75rem;
  border-collapse: collapse;
  border-spacing: 0;
}

#viz #list table thead th {
  vertical-align: top;
}

#viz #list table th {
  font-weight: 500;
  border-bottom: 1px solid #333;
  text-align: left;
  padding: 5px 2px;
  cursor: pointer;
}

#viz #list table th:nth-child(3),
#viz #list table td:nth-child(3) {
  text-align: right;
  width: 50px;
}

#viz #list table tr:nth-of-type(even) {
  background-color: #EEE;
}

#viz #list table tr:hover {
  background-color: #DDD;
}

#viz #list table td {
  padding: 3px 0;
  font-weight: 400;
  vertical-align: top;
}


/* #VIZ #COMMENTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#viz #comments {
  padding-bottom: 15px;
}



/* LARGER (THAN MOBILE) SCREENS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (min-width:400px) {
  #viz #header h1.title {
    font-size: 4rem;
  }

  #viz #the-school.lightbox .content {
    max-width: 400px;
    margin: 50px auto 20px auto;
  }
}

@media screen and (min-width:551px) {
  #viz #header h1.title {
    font-size: 5rem;
  }

  #viz h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
  }
  
  #viz h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  #viz #header #social-bar-container {
  	margin: 20px 0;
  }

  #viz #header img.banner {
    margin-bottom: 20px;
  }

  #viz .legend {
    font-family: "epocapro", sans-serif;
    font-size: 0.9rem;
  }

  #viz #map #main-map {
    width: 100%;
    height: 75vh;
  }

  .leaflet-popup-content-wrapper {
    width: 380px;
    max-height: 500px;
    overflow: auto;
  }

  .info {
  	width: 350px;
  	max-height: 520px;
  	overflow: auto;
  }
}

@media screen and (min-width:750px) {
  .leaflet-popup-content-wrapper {
    max-height: 550px;
  }
}
