#viz {
  border: 2px solid #ddd;
  border-radius: 12px;
  box-sizing: border-box;
  color: #000000;
  font-family: "DharmaGothicE", "sans-serif";
  margin: auto;
  padding: 0.5rem;
  width: 100%;
}
#viz * {
  text-align: left;
}
#viz .dharma {
  font-family: "DharmaGothicE", "sans-serif";
}
#viz .epocapro {
  font-family: "epocapro", "sans-serif";
}
#viz .droid {
  font-family: "Droid Serif", serif;
}
#viz .ND {
  background-color: #000;
}
#viz .caq {
  background-color: #1EB5EF;
}
#viz .plq {
  background-color: #EB1F34;
}
#viz .pq {
  background-color: #1E4485;
}
#viz .qs {
  background-color: #FC5620;
}
#viz .ind {
  background-color: #AAAAAA;
}
#viz .bold {
  font-weight: 500;
}
#viz .dib {
  display: inline-block;
}
#viz .events-none {
  pointer-events: none;
}
#viz .flex-row {
  display: flex;
  flex-direction: row;
}
#viz .hidden {
  display: none;
}
#viz .justify-between {
  justify-content: space-between;
}
#viz .mb0 {
  margin-bottom: 0;
}
#viz .mb1 {
  margin-bottom: 0.25rem;
}
#viz .mb2 {
  margin-bottom: 0.5rem;
}
#viz .mb3 {
  margin-bottom: 1rem;
}
#viz .ml0 {
  margin-left: 0;
}
#viz .ml1 {
  margin-left: 0.25rem;
}
#viz .ml2 {
  margin-left: 0.5rem;
}
#viz .ml3 {
  margin-left: 1rem;
}
#viz .oc {
  outline: 1px solid cyan;
}
#viz .of {
  outline: 1px solid fuchsia;
}
#viz .ol {
  outline: 1px solid lime;
}
#viz .or {
  outline: 1px solid red;
}
#viz .os {
  outline: 1px solid silver;
}
#viz .ot {
  outline: 1px solid teal;
}
#viz .ow {
  outline: 1px solid #EEE;
}
#viz .p1 {
  padding: 1rem 0;
}
#viz .tc {
  text-align: center;
}
#viz .uc {
  text-transform: uppercase;
}
#viz .nomo {
  display: none;
}
@media only screen and (min-width: 768px) {
  #viz .nomo {
    display: inline;
  }
}
#viz h1 {
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 2.3rem;
  font-weight: 400;
  grid-area: titl;
  line-height: 1;
  margin: 0 0 0.5rem 0;
  padding: 0;
  text-transform: uppercase;
}
#viz h2 {
  border: none;
  color: #444;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.5rem 0;
  padding: 0;
  line-height: 1.2;
  text-transform: uppercase;
}
#viz h3 {
  border: none;
  color: #444;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 0.25rem 0;
}
#viz h3.inverse {
  background: #111;
  border-top: none;
  color: #FFF;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0;
  padding: 0.5rem 0;
  text-align: center;
  text-transform: uppercase;
}
#viz h4 {
  font-family: "DharmaGothicE", "sans-serif";
  font-weight: 400;
}
#viz p {
  font-family: "Droid Serif", serif;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}
#viz p.help {
  color: #333;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
#viz p.legend {
  color: #111111;
  font-family: "epocapro", "sans-serif";
  font-size: 1rem;
  line-height: 1.2;
}
#viz .lightbox_bg {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  z-index: 5000000;
  top: 0;
  left: 0;
}
#viz .flex-title {
  z-index: 4;
  background-color: #EEEEEE;
  border-radius: 0 8px 8px 8px;
  box-sizing: content-box;
  color: #666666;
  margin: 5px;
  position: relative;
  width: calc(45% - 6px);
  font-size: 36px;
  line-height: 43.2px;
  font-weight: 700;
  text-align: left;
  padding: 20px 12px;
}
#viz .flex-title p {
  font-family: "Droid Serif", serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  position: relative;
}
#viz .btn {
  background-color: #EEEEEE;
  border: 2px solid #D6D6D6;
  border-radius: 8px;
  box-sizing: content-box;
  color: #666666;
  cursor: pointer;
  margin: 5px;
  position: relative;
  width: calc(15% - 10px);
}
@media (hover: hover) {
  #viz .btn:hover:not(.selected) {
    background-color: #666666;
    color: #EEEEEE;
  }
}
#viz .btn.selected {
  background-color: #666666;
  color: #EEEEEE;
}
#viz .btn.disabled {
  color: #666666 !important;
  opacity: 0.5;
  pointer-events: none;
  background: #EEEEEE !important;
}
#viz #head {
  grid-area: head;
  margin-bottom: 2rem;
}
#viz select {
  border-color: #000;
  border-radius: 5px;
  border-width: 2px;
  font-family: "epocapro", "sans-serif";
  font-size: 1rem;
  margin-bottom: 0.5rem;
  padding: 2px;
}
#viz #ministres {
  grid-area: mini;
  margin-bottom: 4rem;
}
#viz #ministres .grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  justify-content: space-between;
}
#viz #ministres .grid .btn.selected {
  background-color: unset;
}
#viz #ministres .grid .btn img {
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  display: block;
  opacity: 0;
  pointer-events: none;
  width: 100%;
}
@media (hover: hover) {
  #viz #ministres .grid .btn:hover:not(.selected) img {
    transition: opacity 1s;
    opacity: 1;
  }
}
#viz #ministres .grid .btn.selected img {
  opacity: 1;
}
#viz #ministres .grid .btn p {
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 18px;
  font-weight: 400;
  line-height: 19px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
}
@media (hover: hover) {
  #viz #ministres .grid .btn:hover:not(.selected) p {
    color: #EEEEEE;
    transition: opacity 1s;
    opacity: 0;
  }
}
#viz #ministres .grid .btn.selected p {
  opacity: 0;
}
#viz #summary {
  display: grid;
  grid-gap: 0.5rem;
  grid-template-columns: 1fr 2fr;
  grid-template-areas: "photo name" "titre titre";
  grid-template-rows: auto auto;
  grid-area: summ;
  margin: 1rem 0;
}
#viz #summary img {
  grid-area: photo;
  margin: 0;
  height: 125px;
}
#viz #summary h2 {
  grid-area: name;
  color: #444;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0;
}
#viz #summary h3 {
  color: #0C6181;
  font-size: 50px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0;
}
#viz #summary h3 span {
  font-weight: 400;
}
#viz #summary p {
  grid-area: titre;
  color: #111111;
  font-size: 1.1rem;
}
#viz #trimestres {
  grid-area: trim;
  margin-bottom: 1rem;
}
#viz #trimestres .stack {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
  position: relative;
}
#viz #trimestres .row {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 0.125rem;
  width: 100%;
}
#viz #trimestres .row p {
  background-color: #f3f3f3;
  border: 3px solid #f3f3f3;
  border-radius: 8px;
  color: #444;
  flex: 1 1 auto;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 18px;
  margin: 0 5px 0 0;
  padding: 10px;
  text-align: center;
}
#viz #trimestres .row p:first-child {
  max-width: 30%;
}
#viz #trimestres .row p.btn {
  background-color: #eee;
  border: 3px solid #666;
  border-radius: 8px;
  color: #000;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 1.2rem;
  margin: 0 2px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: unset;
}
#viz #trimestres .row p.btn.disabled {
  border-color: #eee;
  opacity: 0.2;
}
#viz #trimestres .row p.btn.selected {
  background-color: #666;
  border-color: #666;
  color: #FFFFFF;
}
@media (hover: hover) {
  #viz #trimestres .row p.btn:hover.selected {
    background-color: #666;
    border-color: #960000;
    color: #FFFFFF;
  }
  #viz #trimestres .row p.btn:hover:not(.selected) {
    background-color: #eee;
    border-color: #0A0;
    color: #000;
  }
}
#viz #trimestres .row > div {
  flex: 1 0 auto;
  display: flex;
  flex-direction: row;
}
#viz #chart__container {
  grid-area: char;
  margin-bottom: 1rem;
  position: relative;
  z-index: 5;
}
#viz #chart__container > div {
  background-color: #f3f3f3;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
#viz #chart {
  color: #111111;
  display: inline-block;
  height: 250px;
  width: 250px;
  position: relative;
}
#viz #chart svg .centroid-dot {
  fill: #000000;
}
#viz #chart svg .line {
  stroke: #000000;
  stroke-width: 2px;
}
#viz #chart svg .label {
  fill: #000000;
  font-family: "epocapro", "sans-serif";
}
#viz #chart svg .label.sm {
  font-size: 0.7rem;
  font-weight: 500;
}
#viz #chart svg .label.lg {
  font-size: 2.5rem;
}
#viz #chart svg path.caq {
  fill: #1EB5EF;
}
#viz #chart svg path.plq {
  fill: #EB1F34;
}
#viz #chart svg path.pq {
  fill: #1E4485;
}
#viz #chart svg path.qs {
  fill: #FC5620;
}
#viz #chart svg path.ind {
  fill: #AAAAAA;
}
#viz #chart #total {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
#viz #chart #total h4 {
  color: #444;
  font-size: 1.75rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}
#viz #chart #total h4 span {
  font-weight: 400;
}
#viz ul.chart__legend {
  list-style-type: none;
  margin: 0;
  padding: 0 0 1rem 0;
}
#viz ul.chart__legend li {
  display: inline-block;
  font-size: 0.7rem;
  font-family: "epocapro", "sans-serif";
  font-weight: 500;
  margin: 0 5px;
  padding: 0;
  text-transform: uppercase;
  width: unset;
}
#viz ul.chart__legend .square {
  display: inline-block;
  height: 10px;
  width: 10px;
  position: relative;
  top: 1px;
}
#viz #table {
  grid-area: tabl;
}
#viz #table .table-wrapper th {
  position: sticky;
  top: 0;
}
#viz #table table {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
}
#viz #table th {
  background-color: #EEEEEE;
  border: 3px solid #666;
  border-radius: 0;
  color: #666;
  cursor: pointer;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 20px;
  line-height: 18px;
  font-weight: 400;
  padding: 10px 2px;
  text-align: center;
  text-transform: uppercase;
}
#viz #table th span,
#viz #table th i {
  pointer-events: none;
}
#viz #table th:first-child {
  border-radius: 8px 0 0 0;
}
#viz #table th:last-child {
  border-radius: 0 8px 0 0;
}
#viz #table th:nth-child(1) {
  width: 5%;
}
#viz #table th:nth-child(2) {
  width: 30%;
}
#viz #table th:nth-child(3) {
  width: 50%;
}
#viz #table th.selected {
  background-color: #666;
  border-color: #666;
  color: #FFFFFF;
}
@media (hover: hover) {
  #viz #table th:hover.selected {
    border-color: #960000;
  }
  #viz #table th:hover:not(.selected) {
    border-color: #0A0;
  }
}
#viz #table tr {
  background-color: #DDDDDD;
  color: #333333;
}
#viz #table tr:nth-of-type(even) {
  background-color: #EEEEEE;
}
#viz #table td {
  font-family: "Droid Serif", serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 2px 0;
  vertical-align: middle;
}
@media only screen and (min-width: 768px) {
  #viz #table td {
    padding: 10px;
  }
}
#viz #table td:first-child {
  color: #EEEEEE;
  text-align: center;
  text-transform: uppercase;
}
#viz #table td:nth-child(4) {
  text-align: right;
}
#viz #table #show-more {
  margin: 1rem 0;
  text-align: center;
}
#viz #table #show-more a {
  background-color: #eee;
  border: 3px solid #666;
  border-radius: 8px;
  color: #666;
  cursor: pointer;
  display: inline-block;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 18px;
  padding: 10px;
  text-transform: uppercase;
}
@media (hover: hover) {
  #viz #table #show-more a:hover {
    background-color: #666;
    color: #FFFFFF;
  }
}
#viz #fiche .viz__card {
  max-width: 550px;
  height: 85vh;
  max-height: 1000px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 18px;
  padding: 20px;
  margin: auto;
  margin-top: 5.5vh;
  font-family: "Droid Serif", serif;
  line-height: 18px;
  font-weight: 400;
  color: #333333;
  position: relative;
}
#viz #fiche .viz__card h1 {
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 36px;
  line-height: 43.2px;
  text-transform: none;
  color: #333333;
  padding-bottom: 15px;
}
#viz #fiche .viz__card.verso h1 {
  font-size: 32px;
  line-height: 28px;
}
#viz #fiche .viz__card.verso #show-recto {
  height: 36px;
  background-image: url('https://m1.quebecormedia.com/emp/jdx-prod-images/photo/7dd73f54-cfe3-4e97-b287-68d1af83a9f1_back.png');
  background-repeat: no-repeat;
  cursor: pointer;
}
#viz #fiche .viz__card .close {
  font-family: "epocapro", "sans-serif";
  text-align: center;
  font-size: 24px;
  line-height: 36px;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 36px;
  background: #666666;
  position: absolute;
  top: 1%;
  right: 1%;
  cursor: pointer;
}
#viz #fiche .viz__card #show-verso {
  width: 50%;
  background: white;
  color: black;
  font-family: "Droid Serif", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  position: absolute;
  bottom: 2%;
  left: 25%;
  padding: 10px 0;
}
#viz #fiche .viz__card .ministre_info {
  width: 100%;
  display: flex;
  padding-bottom: 15px;
}
#viz #fiche .viz__card .img_wrapper {
  flex-basis: 25%;
}
#viz #fiche .viz__card .img_wrapper img {
  width: 100%;
  border: 2px solid #00A8E7;
  border-radius: 8px;
}
#viz #fiche .viz__card .info_wrapper {
  padding-left: 15px;
}
#viz #fiche .viz__card .info_wrapper ul {
  list-style: none;
  overflow-y: inherit;
  margin: 0;
  padding: 0;
  font-family: "Droid Serif", serif;
  font-style: 12px;
  line-height: 14px;
  font-weight: 700;
  color: #333333;
}
#viz #fiche .viz__card .info_wrapper li {
  list-style-type: none;
}
#viz #fiche .viz__card .scrollable_info {
  height: 70%;
  overflow-y: scroll;
}
#viz #fiche .viz__card h2 {
  margin: 0 0 10px 0;
}
#viz #fiche .viz__card h3 {
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 34px;
  line-height: 40.8px;
  font-weight: 400;
  text-transform: none;
  color: #333333;
  margin: 5px 0;
  border-top: none;
}
#viz #fiche .viz__card p {
  margin: 10px 0;
}
#viz #fiche .viz__card li {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
}
#viz #fiche .viz__card .viz__inset {
  margin-top: 15px;
}
#viz #fiche .viz__card .table_wrapper {
  overflow-y: scroll;
  height: 90%;
}
#viz #fiche .viz__card table {
  border-collapse: separate;
  border-spacing: 0 2px;
  width: 100%;
}
#viz #fiche .viz__card th {
  background-color: #EEEEEE;
  color: #666666;
  font-family: "DharmaGothicE", "sans-serif";
  font-size: 24px;
  line-height: 18px;
  font-weight: 400;
  padding: 15px 10px;
  text-align: left;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
#viz #fiche .viz__card th:first-child {
  border-radius: 8px 0 0 0;
}
#viz #fiche .viz__card th:last-child {
  border-radius: 0 8px 0 0;
  text-align: right;
}
#viz #fiche .viz__card tr {
  color: #333333;
}
#viz #fiche .viz__card tr:nth-child(even) {
  background: #eee;
}
#viz #fiche .viz__card td {
  font-family: "Droid Serif", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  padding: 10px;
  vertical-align: middle;
}
#viz #fiche .viz__card td:nth-child(2) {
  text-align: right;
}
@media only screen and (max-width: 767px) {
  .column {
    padding: 0;
  }
  #viz .flex-title {
    width: 100%;
    padding: 12px 12px 0 12px;
  }
  #viz .btn {
    width: calc(32% - 10px);
  }
  #viz #fiche .viz__card h1 {
    padding-bottom: 0;
  }
  #viz #fiche .viz__card h3 {
    font-size: 28px;
    line-height: 22.8px;
  }
  #viz #fiche .viz__card ul {
    padding-left: 20px;
  }
  #viz #fiche .viz__card li {
    font-size: 1rem;
  }
  #viz #fiche .viz__card #show-verso {
    width: 60%;
    left: 20%;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1089px) {
  #viz h2 {
    font-size: 2.5rem;
  }
  #viz p {
    margin: 0;
  }
  #viz #head h1 {
    font-size: 72px;
  }
  #viz #head p {
    font-size: 1.2rem;
  }
  #viz #ministres .btn img {
    width: 100%;
    opacity: 1;
  }
  #viz #table h3 {
    border-top: none;
  }
  #viz.viz--recherche {
    display: block;
  }
}
@media only screen and (min-width: 768px) {
  #viz.viz--recherche {
    border-radius: 18px;
    display: block;
    margin: auto;
    padding: 1rem;
    width: 100%;
  }
  #viz.viz--recherche h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  #viz.viz--recherche h2 {
    font-size: 2.7rem;
  }
  #viz.viz--recherche h3 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
  }
  #viz.viz--recherche p {
    font-size: 1.2rem;
  }
  #viz.viz--recherche p.help {
    font-size: 1.2rem;
  }
  #viz.viz--recherche select {
    border-width: 3px;
    font-size: 1.2rem;
  }
  #viz.viz--recherche #summary {
    grid-template-columns: auto 1fr;
    grid-template-areas: "photo name" "photo titre";
    grid-template-rows: auto 1fr;
    margin-bottom: 2rem;
  }
  #viz.viz--recherche #summary img {
    height: 200px;
  }
  #viz.viz--recherche #summary h2 {
    font-size: 2.8rem;
  }
  #viz.viz--recherche #summary h3 {
    font-size: 4rem;
  }
  #viz.viz--recherche #summary p {
    font-size: 1.25rem;
  }
  #viz.viz--recherche #trimestres {
    margin-bottom: 2rem;
  }
  #viz.viz--recherche #trimestres .stack .row {
    margin-bottom: 0.25rem;
  }
  #viz.viz--recherche #trimestres .stack p {
    font-size: 1.5rem;
    padding: 15px;
  }
  #viz.viz--recherche #chart__container {
    margin-bottom: 2rem;
  }
  #viz.viz--recherche #chart__container > div {
    flex-direction: row;
    justify-content: space-evenly;
  }
  #viz.viz--recherche #chart {
    height: 400px;
    width: 400px;
  }
  #viz.viz--recherche #chart svg .line {
    stroke-width: 2px;
  }
  #viz.viz--recherche #chart svg .label.sm {
    font-size: 1rem;
  }
  #viz.viz--recherche #chart svg .label.lg {
    font-size: 2.5rem;
  }
  #viz.viz--recherche #chart #total h4 {
    font-size: 3rem;
  }
  #viz.viz--recherche ul.chart__legend {
    padding: 0;
  }
  #viz.viz--recherche ul.chart__legend li {
    display: block;
    font-size: 1rem;
    margin: 5px 0;
  }
  #viz.viz--recherche ul.chart__legend .square {
    height: 16px;
    width: 16px;
  }
  #viz.viz--recherche #table th {
    font-size: 1.75rem;
    padding: 15px 10px;
  }
  #viz.viz--recherche #table th:nth-child(1) {
    width: auto;
  }
  #viz.viz--recherche #table td {
    font-size: 1rem;
  }
  #viz.viz--recherche #table #show-more {
    margin: 2rem 0;
  }
  #viz.viz--recherche #table #show-more a {
    font-size: 1.75rem;
    padding: 15px 10px;
  }
  #viz.viz--fiche {
    display: block;
    margin: auto;
    width: 100%;
  }
  #viz.viz--fiche h2 {
    font-size: 2.5rem;
  }
  #viz.viz--fiche p {
    margin: 0;
  }
}
