body, html {
    position:relative;
    height:100%;
    width:100%;
    font-family:Barlow;
}

h3 {
    font-size:20px;
    margin-bottom:10px;
    padding-bottom:5px;
    border-bottom:1px solid black;
}

/****** HEADER */

header {
    position:relative;
    height:50px;
}

header h1 {
    line-height:30px;
    font-size:30px;
}

header h2 {
    line-height:20px;
    font-size:20px;
}

header select {
    position:absolute;
    top:10px;
    right:10px;
    padding:5px;
    margin-bottom:10px;
    border:1px solid #ababab;
    background-color:white;
    font-family:Barlow;
    outline:none;
}

header input {
    position:absolute;
    top:10px;
    right:170px;
    padding:6px;
    margin-bottom:10px;
    border:1px solid #ababab;
    background-color:white;
    font-family:Barlow;
    outline:none;
    background: url(img/loupe.svg) no-repeat top 4px right 4px;
    background-size: 5%;
}

/****** CARTE */

section {
    position:relative;
    height:calc(100% - 85px);
}

div#map {
    height:100%;
    background-color:#eff0f0;
    pointer-events: none;
}

div#recentrer {
    position:absolute;
    bottom:20px;
    left:20px;
    
    background-color:rgba(255,255,255,0.9);
    cursor:pointer;
}

div#recentrer img {
    width: 50px;
}

div#legendes {
    position:absolute;
    top:20px;
    left:20px;
    width:400px;
}

div#legendes h3 {
    padding-bottom:0px;
    border-bottom:none;
}

div#legendes div.legende {
    position:relative;
    margin-bottom:20px;
    padding:10px 10px 5px 10px;
    background-color:rgba(255, 255, 255, 0.9);
}

div#legendes div.legende select {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ababab;
    background-color:white;
    font-size: 14px;
    font-family: Barlow;
    outline:none;
}

div#legendes div.legende select option {
    font-size: 14px;
}

div#legendes div.legende div.item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 5px;
    padding-bottom: 5px;
    line-height: 14px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #eee;
}

div#legendes div.legende div.item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

div#legendes div.legende div.item span.carton {
    display:block;
    float:left;
    width:20px;
    height:10px;
    margin-top:2px;
    margin-right:10px;
}

div#legendes div.legende div.item span.carton.round {
    width:10px;
    border-radius:50%;
}

div#legendes div.legende p.source {
    position:absolute;
    top:15px;
    right:12px;
    font-size:10px;
    font-style:italic;
}

/*************************************************************************************/
/********************************************************************** PANEL CANTON */
/*************************************************************************************/

div#canton {
    display:none;
    position:absolute;
    top:20px;
    bottom:20px;
    right:20px;
    padding:10px;
    width: 450px;
    background-color:rgba(255, 255, 255, 0.9);
    overflow-y: scroll;
}

div#canton h4 {
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    background-color: #eee;
}

/* DISPOSITIFS */

div#canton div#dispositifs {
    margin-bottom: 20px;
}

div#canton p.disclaimer {
    padding-bottom: 20px;
    font-style: italic;
    text-align: center;
    color: #ababab;
}

div#canton div#dispositifs div.boites, div#synthese div.boites {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

div#canton div#dispositifs div.boites div.boite, div#synthese div.boites div.boite {
    width: 130px;
    padding:0 10px;
    cursor: pointer;
}
div#synthese div.boites div.boite { width: 210px; cursor: default; }

div#canton div#dispositifs div.boites div.boite.active {
    cursor: default;
}

div#canton div#dispositifs div.boites div.boite h5, div#synthese div.boites div.boite h5 {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

div#canton div#dispositifs div.boites div.boite svg, div#synthese div.boites div.boite svg {
    margin: 10px 0;
}

div#canton div#dispositifs p.carres {
    margin-top: 15px;
}

div#canton div#dispositifs p.carres span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 1.25px;
    margin-right: 1.25px;
    border-radius: 3px;
    background-color: #bbb;
    cursor: pointer;
}

div#tooltip {
    display: none;
    position: absolute;
    padding: 5px;
    background-color: #eee;
    border: 1px solid #bbb;
    border-radius: 3px;
}

div#tooltip span {
    display:inline-block;
    width:12px;
    height:12px;
    margin-right:10px;
    border-radius:3px;
}

/* INDICATEURS */

div#canton div#indicateurs div.boites {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

div#canton div#indicateurs div.boites div.boite {
    width: 130px;
    padding:0 10px 20px 10px;
}

div#canton div#indicateurs div.boites div.boite h5 {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

div#canton div#indicateurs div.boites div.boite p.figure {
    padding: 30px 0 40px 0;
    font-size: 30px;
    text-align: center;
}

div#canton div#indicateurs div.boites div.boite p.figure span.unite {
    font-size: 14px;
}

div#canton div#indicateurs div.boites div.boite div.scale {
    position: relative;
    width: 130px;
    height: 10px;
    border-radius: 5px;
    background-color: #eee;
}

div#canton div#indicateurs div.boites div.boite div.scale div {
    position: absolute;
    top:0px;
    bottom:0px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
	background-color: #e03131;
}

div#canton div#indicateurs div.boites div.boite div.scale p.rank {
    position: absolute;
    top:-14px;
    color: #e03131;
    font-size: 12px;
}

div#canton div#indicateurs div.boites div.boite div.minmax {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

div#canton div#indicateurs div.boites div.boite div.minmax p {
    font-size: 12px;
    color: #aaa;
}

/* COMMENTAIRE */

div#canton div#commentaire p {
    text-align: justify;
    margin-bottom: 0;
}

div#canton div#commentaire p img {
    float: left;
    width: 40px;
    margin: 5px 5px 0 5px;
}

/*************************************************************************************/
/****************************************************************** PANEL DISPOSITIF */
/*************************************************************************************/

div#dispositif {
    display:none;
    position:absolute;
    top:20px;
    bottom:20px;
    right:20px;
    width:450px;
    padding:10px;
    background-color:rgba(255, 255, 255, 0.9);
    overflow-y: scroll;
}

div#dispositif h4 {
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    background-color: #eee;
}

div#dispositif p {
    margin-bottom:10px;
}

div#dispositif a {
    color:black;
    border-bottom: 1px solid #aaa;
    text-decoration:none;
}

div#dispositif a:hover {
    border-bottom: 1px solid black;
    text-decoration:none;
}

/* CONTACT */

div#dispositif div#contact {
    margin-bottom: 20px;
}

div#dispositif div#contact table {
    border-collapse: collapse;
    margin-bottom: 15px;
}

div#dispositif div#contact table tr td:first-child {
    padding-right:15px;
    border-right:1px solid #ababab;
}

div#dispositif div#contact table tr td:last-child {
    padding-left:15px;
}

div#dispositif div#contact table tr td img.picto {
    width: 25px;
    vertical-align: top;
}

/* CARACTERISTIQUES */

div#dispositif div#caracteristiques {
    margin-bottom: 20px;
}

div#dispositif div#caracteristiques table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

div#dispositif div#caracteristiques table tr {
    border-bottom:1px solid #ddd;
    cursor: pointer;
}

div#dispositif div#caracteristiques table tr td {
    padding: 10px 0 12px 0;
}

div#dispositif div#caracteristiques table tr td:first-child {
    color: #e03131;
}

div#dispositif div#caracteristiques table tr.active td {
    font-weight: bold;
}

div#dispositif div#caracteristiques table tr.active:hover {
    cursor: default;
}

div#dispositif div#caracteristiques table tr td:last-child {
    text-align: right;
}

div#dispositif div#caracteristiques table tr td:last-child span.carton.round {
    display:inline-block;
    width:10px;
    height:10px;
    margin-top:2px;
    margin-right:10px;
    border-radius:50%;
}

div#dispositif div#caracteristiques table tr td:last-child span.secondaire {
    color: #aaa;
}

div#dispositif div#caracteristiques table tr:first-child td {
    padding-top: 0;
}

div#dispositif div#caracteristiques table tr:last-child {
    border-bottom: none;
}

div#dispositif div#caracteristiques table tr:last-child td {
    padding-bottom: 0;
}

/* COMMENTAIRE */

div#dispositif div#commentaire {
    margin-bottom: 20px;
}

div#dispositif div#commentaire p {
    text-align: justify;
    margin-bottom: 0;
}

/* CONTRIBUTION */

div#dispositif div#contribution {
    margin-bottom: 20px;
}

div#dispositif div#contribution p {
    text-align: center;
}

div#dispositif div#contribution p.red {
    color: #e03131;
}

div#dispositif div#contribution p.red img {
    width: 25px;
}

/*************************************************************************************/
/**************************************************************************** PANELS */
/*************************************************************************************/

div#canton h3,
div#dispositif h3 {
    padding-right: 50px;
}

div#dispositif div.share,
div#dispositif div.close,
div#canton div.share,
div#canton div.close {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
}

div#dispositif div.share,
div#canton div.share {
    right: 32px;
}

div#dispositif div.share img,
div#dispositif div.close img,
div#canton div.share img,
div#canton div.close img {
    width: 25px;
}

/****** FOOTER */

footer {
    display: flex;
    flex-direction: row;
    padding:10px;
    height:15px;
}

footer p {
    margin-right: 15px;
    line-height:15px;
    font-size:15px;
}

footer p a {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

footer p a:hover {
    text-decoration: underline;
}

div#overlay {
    display: none;
    justify-content: space-around;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

div#overlay div.modale {
    position: relative;
    width: 690px;
    margin: 100px auto 0 auto;
    padding: 10px;
    background-color: white;
}

div#overlay div.modale p {
    margin-top: 10px;
    text-align: justify;
}

div#overlay div.modale p.center {
    text-align: center;
}

div#overlay div.modale p.lien {
    padding: 10px;
    text-align: center;
    background-color: #eee;
}

div#overlay div.modale p.lien a {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

div#overlay div.modale p.lien a:hover {
    text-decoration: underline;
}

div#overlay div.modale#erreur h3 {
    color: red;
}

div#overlay div.modale#erreur p.adresse {
    padding: 10px;
    text-align: center;
    font-style: italic;
    background-color: #eee;
}

div#overlay div.modale div.close {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
}

div#overlay div.modale div.close img {
    width: 25px;
}

div#loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5);
}

div#loading div#inner {
    position: relative;
    width: 400px;
    margin: 400px auto 0 auto;
    padding: 20px;
    background-color: white;
}

div#loading div#inner div#loadingBar, div#loading div#inner div#loadedBar {
    position: absolute;
    top: 65px;
    left: 2 0px;
    width: 112px;
    height: 7.5px;
    background-color: #ffe3e3;
}

div#loading div#inner div#loadedBar {
    width: 0;
    background-color: #f03e3e;
}