
/* RESET JDX */
[data-sectionLabel="actualite"] p::selection,
[data-sectionLabel="actualite"] strong::selection,
[data-sectionLabel="actualite"] b::selection,
[data-sectionLabel="actualite"] em::selection,
[data-sectionLabel="actualite"] time::selection,
[data-sectionLabel="actualite"] h1::selection,
[data-sectionLabel="actualite"] h2::selection,
[data-sectionLabel="actualite"] article::selection,
[data-sectionLabel="actualite"] img::selection,
[data-sectionLabel="actualite"] h3::selection,
[data-sectionLabel="actualite"] div::selection,
[data-sectionLabel="actualite"] a::selection,
[data-sectionLabel="actualite"] span::selection,
[data-sectionLabel="actualite"] em::selection {
    background: transparent !important;
}
.article-container {
    background-color: #eeeeee;
    padding: 0;
}
.article-container .tx-courant {
    max-width: 1000px;
    padding: 0;
}
.article-container .article-section-narrow {
    background-color: #fff;
    margin-bottom: 20px;
}
.article-container .tx-courant p,
.article-container .tx-courant li {
    font-family: 'DharmaGothicE', sans-serif;
}
.article-section-narrow.title-groupe {
    padding: 0;
    margin: -8px auto 20px;
}
.article-container h1.short,
.byline-container {
    display: none;
}
.element-embed{
    margin-top: -17px;
}

/* GLOBAL */
#viz-elections {
    background-color: #eeeeee;
    font-family: 'DharmaGothicE', sans-serif;
}
#viz-elections .flex {
    display: flex;
    display: -webkit-flex;
}
::selection {
    background: #FF0000; /* WebKit/Blink Browsers */
}
::-moz-selection {
    background: #FF0000; /* Gecko Browsers */
}
#viz-elections h1, #viz-elections h2, #viz-elections h3, #viz-elections h4 {
    font-family: 'DharmaGothicE', sans-serif;
}
#viz-elections h2 {
    margin-bottom: 1.5em;
    color: #000;
    font: 600 1.6em/1 'DharmaGothicE', sans-serif;
}
.article-container .tx-courant .article-main-txt h2,
[data-sectionLabel="actualite"] .tx-courant h3 {
    border-top: 0;
}
#viz-elections section {
    padding: 30px 40px;
    margin-bottom: 20px;
    background-color: #fff;
}
/* titre principal (à cacher) */
#viz-elections #header h1 {
    text-indent: -9999px;
}
/* heure de rafraichissement */
#viz-elections #header p {
    text-align: right;
    font-size: 20px;
    position: relative;
    top: -50px;
}

/* Header - New : LOGO */
#header {
    background: #fff url("../media/bg-titre-avec-logo.png") top left no-repeat;
    background-size: auto 100%;
    min-height: 110px;
}

/* Top images */
#majors,
#circons {
    clear: both;
    position: relative;
    margin-bottom: 40px;
}
#majors .flex div {
    position: relative;
    overflow: hidden;
    max-height: 100px;
    min-height: 50px;
    height: auto;
}
#majors .flex div p:first-of-type {
    /* Nom du parti dans la bande */
    position: absolute;
    bottom: 0;
    right: 10px;
    font-size: 1.5em;
    max-width: max-content;
    margin: 0;
    z-index: 1;
    font-weight: 300;
}
#majors .flex div p:last-of-type {
    /* Nombre de sièges gagnés */
    right: 10px;
    top: -5px;
    width: auto;
    position: absolute;
    font-size: 2.5em;
    font-weight: 600;
    max-width: max-content;
    margin: 0;
}
@media screen and (min-width: 1236px) and (max-width: 1485px) {
    #majors .flex div {
        width: 120%;
    }
}
@media screen and (min-width: 1029px) and (max-width: 1235px) {
    #majors .flex div {
        width: 140%;
    }
    #majors .flex div p:first-of-type {
        /* Nom du parti dans la bande */
        font-size: 1em;
    }
    #majors .flex div p:last-of-type {
        /* Nombre de sièges gagnés */
        font-size: 2em;
    }
}
@media screen and (max-width: 1028px) {
    #majors .flex div {
        width: 129%;
    }
}
@media screen and (min-width:769px) and (max-width: 1028px) {
    #majors .flex div p:first-of-type {
        bottom: -5px;
        right: 10px;
    }
}
@media screen and (min-width: 545px) and (max-width: 768px) {
    #majors .flex div p:first-of-type {
        /* Nom du parti dans la bande */
        bottom: 5px;
    }
    #majors .flex div p:last-of-type {
        /* Nombre de sièges gagnés */

    }
}
@media screen and (max-width: 545px) {
    #majors .flex div p:first-of-type {
        bottom: -5px;
    }
}
/* Répartition des votes && Barre des élus */
#viz-elections #majors .flex {
    color: #fff;
}
#viz-elections .bar.bar-short {
    width: calc(100%/125);
}
#viz-elections .bar p {
    font-size: 1.4rem;
}
#viz-elections #circons {
    position: relative;
}
#viz-elections #circons h3 {
    position: absolute;
    bottom: 43px;
    z-index: 0;
}
#viz-elections #circons div img-container {
    /* 63 sièges pour être majoritaires */
    padding-left: calc(100%/125 * 63);
    /* 13px pour arriver au milieu de la fleche? */
    margin-left: -13px;
    top: 16px;
    z-index: 1;
    position: relative;
}
#viz-elections #circons div img-container img {
    width: 40%;
    max-width: 300px;
    display: none;
}
#viz-elections #circons h3,
#viz-elections #shares h3 {
    text-transform: none;
    font-weight: 300;
    font-size: 1.4em;
    color: #000;
    margin-bottom: 10px;
}
#viz-elections #shares .bar p:not(.overlay) {
    margin-top: 80px;
    color: #000;
}

/* Liste des circonscriptions */
#viz-elections .btn-bar .btn.btn-selected {
    background: #eeeeee;
    border-color: transparent;
    color: #000;
    border: 0;
    width: 50%;
    padding: 10px 20px;
    margin: 0;
    font-size: 1.7em;
}
#viz-elections .btn-bar .btn:not(.btn-selected) {
    border: 0;
    background: #000856;
    color: #fff;
    margin: 0;
    width: 50%;
    vertical-align: bottom;
    font-size: 1.2em;
}
/* circo wrapper */
#viz-elections #list .list .expandable {
    border: 2px solid #bababa;
    padding: 0;
    margin-top: 20px;
}
/* titre circo */
#list .list .expandable h4 {
    text-transform: uppercase;
    color: #000856;
    font-family: 'DharmaGothicE',sans-serif;
    padding: 25px 20px;
    font-size: 2em;
    margin-bottom: 40px;
    margin-top: 0;
    border-bottom: 2px solid #aaaaaa;
    cursor: pointer;
}
/* flèche */
.fa, .fas {
    float: right;
    cursor: pointer;
}
#list .list .expandable .details {
    padding: 0 20px;
}
/* nom du candidat */
#list .list .expanded .panel .panel p {
    padding: 0 20px;
    margin-bottom: 0;
    font-size: 1.2em;
}
/* nombre de votes */
#list .list .expanded .panel .panel p span {
    float: right;
}
/* barres de chargement */
#viz-elections #list .chart {
    margin: 0 20px 2rem 20px;
    height: 21px;
    position: relative;
    z-index: 1;
}
#viz-elections #list .panel .bar p {
    background: rgba(0,0,0,0.2);
    font-size: 1.2rem;
    padding:1px 4px 1px 3px !important;
    text-align: left;
    background-color: rgba(0,0,0,0.2);
}
#viz-elections #shares .chart {
    /* height: 21px; */
    position: relative;
    z-index: 1;
}
#viz-elections #shares .bar {
  border-right: 0;
}
#viz-elections #list .bar {
  height: 21px;
  border-right: 0;
  justify-content: left;
}
#viz-elections #shares .bar.other:nth-of-type(even),
#viz-elections #list .bar.other:nth-of-type(even) {
  opacity: 0.5;
}
#viz-elections .expanded .btn {
    background: #000856;
    border: 0;
    border-radius: 1px;
    color: #fff;
    cursor: pointer;
    display: block;
    width: 170px;
    margin: 30px auto 10px;
    padding: 5px 35px;
    text-align: center;
    text-transform: uppercase;
}

/* If élu, le style change */
/* expanded */
#list .list .expandable.expanded .panel .panel.elu {
    background: #e4e4e4 url('../media/elu-indicateur.png') left center no-repeat;
    background-size: auto 100%;
    height: 80px !important;
    padding-left: 60px;
    padding-top: 4px;
    margin: 0 20px 30px;
}
#list .list .expandable.expanded .panel .panel.elu .chart {
    background: #fff;
}
/* collapsed */
#list .list .expandable:not(.expanded).elu {
    background: #f3f3f3;
}
#list .list .expandable.elu h4 span {
    padding-left: 10px;
    color: #aaaaaa;
}


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

@media screen and (min-width: 769px) {
    .btn-bar, .list {
        margin-left: 50px;
        margin-right: 50px;
    }
}
@media screen and (max-width: 767px) {
    /* Header - New : LOGO */
    #header {
        background-size: auto 50%;
        min-height: 120px;
        padding-top: 100px !important;
    }
    #viz-elections h2 {
        font: 600 1.4em/1 'DharmaGothicE', sans-serif;
    }
    #viz-elections section {
        padding: 30px 20px;
    }
    /* heure de rafraichissement */
    #viz-elections #header p {
        text-align: left;
        font-size: 19px;
        padding-bottom: 0;
        top: 0;
    }
    /* Top images */
    #viz-elections #majors .flex {
        display: block;
    }
    #viz-elections #majors .flex div {
        position: relative;
        overflow: hidden;
        max-height: 124px;
        max-width: 300px;
        margin: auto;
        margin-bottom: 20px;
    }
    #viz-elections #circons .chart {
        margin-top: -30px;
    }
    #viz-elections #circons h3 {
        position: inherit;
        bottom: 0;
        z-index: 0;
    }
    #list .list .expandable h4 {
        font-size: 1.5em;
    }
    #viz-elections .bar.bar-short {
        width: calc(100%/30);
        margin-bottom: 33px;
    }
    #viz-elections #circons div img-container img {
        width: 230px;
        max-width: 230px;
    }
    #viz-elections #circons div img-container {
        padding-left: calc(100%/30 * 3);
        margin-left: -18px;
        z-index: 1;
        position: relative;
        top: 132px;
    }
    /* if elu expanded */
    #list .list .expandable.expanded .panel .panel.elu {
        background: #e4e4e4 url('../media/elu-indicateur-mobile.png') top left no-repeat;
        background-size: 50px auto;
        padding-left: 0;
        height: 100px !important;
        padding-top: 25px;
    }
}
