.no-alert {
    color: var(--no-alert);
}
.low-alert {
    color: var(--low-alert);
}
.medium-alert {
    color: var(--medium-alert);
}
.high-alert {
    color: var(--high-alert);
}

svg.icon {
    overflow: visible;
}

/* .clickable == tout contenu cliquable */
.clickable {
    cursor: pointer;
}

/* 
  "There is no “standard”, non-hacky way in CSS to create an element with a specific height-to-width ratio. 
  However, a few years back, Thierry Koblentz posted an article on A List Apart explaining a technique—known 
  today as The Padding Hack—that makes it possible to create intrinsic ratios for videos and iframes."
  https://tympanus.net/codrops/2014/08/19/making-svgs-responsive-with-css/ 
*/

div.svg-hack-metro {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 100%;
}

div.metro-container {
    position:relative;
}

div.metro-container svg.metro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.disease-tooltip-container {
    position: sticky;
    top: 10px;
    z-index: 2000;
}

#diseaseToolTip {
    display: none;
    position: absolute;
    top: 20px;
    right: 0;
    width: max-content;
    padding: 10px;
    background-color: white;
    border: 1px black solid;
    border-radius: 10px;
    color: black;
    cursor: pointer;
}

#diseaseToolTip:hover .respe-alerts-link {
    font-weight: bold;
}

#diseaseToolTip.drom-tooltip {
    top: 0;
    left: 50%;
    right: initial;
    transform: translate(-50%, -100%);
}

path.departement {
    stroke: rgba(24, 23, 23, 0.481);
}
path.departement.is-drom {
    stroke-width: 4px;
    stroke: rgb(58, 53, 53);
}
path.clickable:hover {
    stroke: black;
}

/*
   références RVB (RESPE) 2019 :
   - vert : 31-119-71
   - jaune : 232-190-38
   - orange : 235-106-14
   - rouge : 193-19-19 
*/

path.departement.no-alert {
    fill: var(--no-alert);
}

path.departement.low-alert {
    fill: var(--low-alert);
}

path.departement.medium-alert {
    fill: var(--medium-alert);
}

path.departement.high-alert {
    fill: var(--high-alert);
}

path.departement.unknown-alert {
    fill: var(--unknow-alert);
}

path.out-of-bounds {
    opacity: 0.3;
}

path.zoomed-in {
    -webkit-filter: url(#shadowFilter);
    filter: url(#shadowFilter);
}

g.panning {
    opacity: 0.5;
    -webkit-transform: translate(540px, 20px);
    -ms-transform: translate(540px, 20px);
    transform: translate(540px, 20px);
    -webkit-transition: opacity linear 0.3s;
    -o-transition: opacity linear 0.3s;
    transition: opacity linear 0.3s;
}

g.panning:hover {
    opacity: 1;
}

/* ------------------------------------------------------------------------- */
/* ---- MEDIA QUERIES ------------------------------------------------------ */
/* ------------------------------------------------------------------------- */

@media screen and (min-width: 544px) and (max-width: 767px) {
    main div.left {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-flex: 0;
        -webkit-flex: 0 1 auto;
        -ms-flex: 0 1 auto;
        flex: 0 1 auto;

        margin-bottom: 1rem;
    }

    div.metro-container {
        -webkit-box-flex: 5.5;
        -webkit-flex: 5.5;
        -ms-flex: 5.5;
        flex: 5.5;
    }
}

@media screen and (max-width: 543px) {
    main div.left {
        display: block;

        margin-bottom: 1rem;
    }
}

/* ---- IE11 READY --------------------------------------------------------- */

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    #metro {
        overflow: hidden;
    }
}

/* ------------------------------------------------------------------------- */
