@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,700;0,800;0,900;1,300;1,400;1,500;1,700;1,800;1,900&display=swap");

:root {
  --main-color-1: #2d8197;
  --main-color-2: #99c63d;
  --main-color-2-translucent: rgba(153, 198, 61, 0.9);
}

h1 {
  color: white;
  width: 100%;
  padding: 20px !important;
  margin: 2rem 0 !important;
  font-size: 2em !important;
  background-color: var(--main-color-1);
  font-weight: bold !important;
}

h3 {
  color: var(--main-color-1);
  margin: 1rem auto !important;
  font-weight: bold !important;
}

h2,
h4 {
  color: var(--main-color-2);
  font-weight: bold !important;
}

h2 {
  margin: 40px 0px !important;
}

h4 {
  margin: 1rem auto !important;
}

.bg-light {
  background-color: white !important;
}

.navbar-brand img {
  height: auto !important;
  max-width: 425px;
}

#block-connected-branding {
  max-width: 425px;
}

.navbar {
  max-width: 1200px;
  margin: auto;
}

.region-header {
  width: 100%;
}

.navbar-toggler {
  display: none;
}

#browser-warning {
  padding: 8px;
  display: none;
  color: red;
  opacity: 0.5;
  border: 1px solid red;
  border-radius: 5px;
}

#access-warning {
  padding: 8px;
  color: red;
  opacity: 0.5;
  border: 1px solid red;
  border-radius: 5px;
}

@media screen and (min-width: 990px) {
  #block-connected-main-menu {
    max-width: 300px;
    margin-right: 35px;
    float: right;
  }

  #block-connected-main-menu ul.navbar-nav > li {
    margin-right: 8px;
    background-color: var(--main-color-2);
    border-radius: 5px;
  }

  #block-connected-main-menu ul.navbar-nav > li:hover {
    background-color: var(--main-color-1);
  }

  #block-connected-main-menu ul.navbar-nav > li > a {
    color: white;
  }

  #block-connected-account-menu {
    float: right;
    color: var(--main-color-1);
  }
  .block-language-blocklanguage-interface {
    line-height: 2.45em;
    float: right;
  }
  #block-connected-account-menu a {
    color: var(--main-color-1);
  }
  .block-language-blocklanguage-interface a {
    color: var(--main-color-1);
  }
  .block-language-blocklanguage-interface li {
    margin-right: 10px;
  }
}

body,
p,
h1,
h2,
h3,
h4,
h5,
div,
span {
  font-family: "Montserrat", sans-serif !important;
}

.site-name {
  display: none;
}

.page-node-type-main-map-view,
.page-node-type-main-map-view .dialog-off-canvas-main-canvas {
  height: 100% !important;
}

.language-switcher-language-url {
  float: right;
  max-width: 225px;
}

.language-switcher-language-url ul.links {
  list-style-type: none;
}

.language-switcher-language-url .is-active {
  display: none;
}

/* FORM RELATED STYLES */

.btn-primary {
  background-color: var(--main-color-2) !important;
  border: 1px solid var(--main-color-2) !important;
}

.form-item label {
  font-weight: bold;
}

.path-add-organization main {
  max-width: 800px;
  margin: auto;
}

.path-add-project main {
  max-width: 800px;
  margin: auto;
}

#map {
  position: relative;
  max-width: 1064px;
  width: 100%;
  height: 500px;
  overflow: visible;
}

fieldset[data-drupal-selector="edit-geo"],
fieldset[data-drupal-selector="edit-keywords"],
fieldset[data-drupal-selector="edit-files"] {
  padding: 20px !important;
  border-radius: 7px !important;
  border: 3px solid var(--main-color-1) !important;
}

fieldset[data-drupal-selector="edit-geo"] legend {
  max-width: 420px !important;
  color: var(--main-color-1);
}

fieldset[data-drupal-selector="edit-keywords"] > legend,
fieldset[data-drupal-selector="edit-files"] > legend {
  max-width: 170px !important;
  color: var(--main-color-1);
}

legend {
  border-bottom: 0px;
}
#keywords-fieldset-wrapper,
#files-fieldset-wrapper {
  margin-top: -50px;
}

.project-form label,
.fieldset-legend {
  color: var(--main-color-1);
}

.form-type-checkbox label {
  color: #555555;
}

.form-control.form-checkbox,
.form-control.form-radio {
  transform: scale(1.5);
}

.form-checkboxes .form-item,
.form-radios .form-item {
  width: 350px;
  float: left;
}
.form-control.form-checkbox label,
.form-control.form-radio label {
  margin-left: 15px;
}

.field-prefix {
  display: block;
  font-size: small;
}

.geoinfo {
  font-weight: bold;
  color: white;
  padding: 12px;
  background-color: var(--main-color-1);
}

#partners-fieldset-wrapper .fieldset-legend {
  font-size: medium;
  font-weight: bold;
}
#partners-fieldset-wrapper .fieldset-wrapper {
  font-size: small;
}
.path-frontpage .page-title {
  display: none;
}

/* Projects list*/

.projects-lists-table,
.table {
  border-radius: 5px;
}

.projects-lists-table th,
.table th {
  background-color: var(--main-color-2);
  color: white;
}

.projects-lists-table th a,
.table th a {
  background-color: var(--main-color-2);
  color: white;
}

.projects-lists-table th,
.projects-lists-table td,
.table th,
.table td {
  padding: 5px;
}

.projects-lists-table tr:nth-child(even),
.table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/*Main mega menu*/

.block-we-megamenu-blockmain nav {
  background-color: white;
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    margin-top: 20px;
  }
  body:not(.we-mega-menu-backend) nav[data-style="Green"] {
    background-color: white;
  }
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-submenu
    li.we-mega-menu-li
    a,
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-submenu
    li.we-mega-menu-li
    span {
    color: white;
    font-size: 1em;
  }
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-ul
    > .we-mega-menu-li.active
    > a,
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-ul
    > .we-mega-menu-li.active
    > span,
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-ul
    > .we-mega-menu-li.active-trail
    > a,
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-ul
    > .we-mega-menu-li.active-trail
    > span {
    background-color: var(--main-color-2);
    color: #ffffbb;
  }
  nav[data-style="Green"]
    .we-mega-menu-ul
    > .we-mega-menu-li
    > a.we-mega-menu-li,
  nav[data-style="Green"]
    .we-mega-menu-ul
    > .we-mega-menu-li
    > .we-megamenu-nolink {
    background-color: var(--main-color-2);
  }
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-submenu {
    background-color: var(--main-color-2);
    border-color: var(--main-color-2);
  }
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-submenu
    li.we-mega-menu-li
    a:hover,
  body:not(.we-mega-menu-backend)
    nav[data-style="Green"]
    .we-mega-menu-submenu
    li.we-mega-menu-li
    span:hover {
    color: yellow;
  }
}

@media (min-width: 992px) {
  .home-page-photo-text {
    position: absolute;
    top: 50px;
    left: 40px;
    color: white;
    font-size: 30px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .home-page-photo-text {
    position: absolute;
    left: 20px;
    color: white;
    font-size: 15px;
    padding: 10px;
  }
}

@media (min-width: 480px) and (max-width: 992px) {
  .home-page-photo-text {
    position: absolute;
    top: 30px;
    left: 25px;
    color: white;
    font-size: 20px;
    padding: 10px;
  }
}

.block-we-megamenu-blockmain .nav-tabs .dropdown-menu {
  margin-top: 0px !important;
}

.block-system-branding-block,
.block-we-megamenu-blockmain,
#block-homepagemainphoto {
  float: left;
}

.block-system-branding-block {
  margin-top: 20px;
}

.block-system-branding-block {
  margin-bottom: 35px;
}

body:not(.groupadmin):not(.administrator):not(.connecteco_editor)
  .list-organizations {
  display: none;
}

.blue_button {
  background-color: var(--main-color-1);
  margin: 10px;
  padding: 6px 15px;
  color: white;
  display: inline-block;
}

.blue_button a {
  color: white;
}
.blue_button a:hover {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.green_button {
  background-color: var(--main-color-2);
  margin: 10px;
  padding: 6px 15px;
  color: white;
  display: inline-block;
}

.green_button a {
  color: white;
}
.green_button a:hover {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.pbox {
  border: 1px solid #c3c3c3;
  padding: 3px 9px;
  margin: 3px;
  display: inline-block;
  border-radius: 5px;
  color: #757575;
  font-weight: 600;
}

#block-projectscount {
  display: block;
  width: 100%;
  float: left;
  background: linear-gradient(
    to right,
    var(--main-color-2),
    var(--main-color-2),
    var(--main-color-1),
    var(--main-color-1)
  );
  color: white;
  padding: 7px 30px;
  font-weight: bold;
  text-align: right;
  font-size: 16px;
}

.report-display img {
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  margin-left: 10px;
  margin-right: 10px;
}

/***************************************************************************
Projet pour la boite a outils, initiative corridors ecologiques,
connectivite ecologique... (I don't actually know/forgot what the whole thing is called)

TODO: move to separate css file?

*/

/* Links for connecteco pages: tooltips and cards. */

.connecteco-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.connecteco-tooltip .connecteco-tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: 400px;
  line-height: 1.6;
  height: auto;
  font-size: 0.85rem;
  background-color: #555;
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 101;
  bottom: 125%;
  left: -30%;
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.connecteco-tooltip .connecteco-tooltiptext a {
  color: #fff !important;
  text-decoration: none;
}

.connecteco-tooltip .connecteco-tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 30%;
  margin-left: -5px;
  border-width: 10px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.connecteco-tooltip:hover .connecteco-tooltiptext {
  visibility: visible;
  opacity: 1;
}

.connecteco-card-link {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
  transition: 0.2s;
}

.connecteco-card-link a:hover,
.connecteco-card-link a:visited,
.connecteco-card-link a:link,
.connecteco-card-link a:active {
  text-decoration: none;
}

.connecteco-card-link:hover {
  transform: scale(1.02);
}

/* Overriding some site styles */

#block-connected-account-menu {
  z-index: 1;
}

.navbar {
  padding: 0 0 !important;
}

#block-homepagemainphoto {
  margin-top: 1rem;
}

.we-mega-menu-ul {
  display: flex !important;
  flex-wrap: wrap !important;
  row-gap: 1rem !important;
}

@media (min-width: 992px) {
  header .navbar {
    max-width: 935px !important;
  }
}

@media (min-width: 1200px) {
  header .navbar {
    max-width: 1110px !important;
  }
}

.subul {
  flex-direction: column;
}

/* Sidebar. Unused styles that should be removed eventually.
Used to be part of the MRC et Municipalite guides. */

#page-sidebar-first {
  top: 18px;
  position: sticky;
  overflow-y: hidden;
  overflow-x: hidden;
  height: 100vh;
  margin-top: 50px;
}

.connecteco-sidebar ul {
  list-style-type: none;
  padding-left: 1.3rem;
}

.connecteco-sidebar h4 {
  padding-left: 5px;
}

#connecteco-sidebar-contents {
  border: 1px solid var(--main-color-1);
  border-right: none;
  border-radius: 3px;
}

#connecteco-sidebar-first-list {
  padding-left: 0.4rem;
  font-size: 0.82rem;
}

.connecteco-sidebar li a {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0rem;
  padding-left: 0.2rem;
  text-decoration: none;
}

.connecteco-sidebar li a:hover {
  background-color: #f1f1f1;
  box-shadow: -5px 0px 0px 0px #c3c3c3;
}

/* connecteco page content styles for different block types */

._demarquer1 {
  /* Unused, to remove eventually */

  font-weight: 700;
  border-color: var(--main-color-2) !important;
  border-width: 2px !important;
  background-color: #f1f1f1 !important;
}

.demarquer1 {
  font-weight: 400;
  background-color: #206273 !important;
  padding: 5px 50px;
  color: white;
  box-shadow: 12px 12px 8px rgba(109, 132, 138, 0.6);
  margin: 5px 50px;
}

.demarquer1 a {
  color: white;
  font-weight: 900;
}

.demarquer1 h2 {
  color: white !important;
  font-weight: 800;
  font-size: 1.8em;
  padding: 10px 0px;
  margin: 10px 0px !important;
}

.demarquer1 p {
  font-size: 1em !important;
  line-height: 1.5em !important;
}

figcaption {
  font-size: 0.8rem;
}

.column-quote {
  width: 100%;
  height: max-content;
  padding: 40px;
  padding-left: 70px;
  padding-right: 70px;
  border: 10px solid var(--main-color-1);
}

.quote {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
}

.header-img {
  display: flex;
  justify-content: center;
  width: 100%;
}

.header-img .field__item {
  width: 100% !important;
}

.header-img .layout {
  width: 100%;
}

.header-img img {
  width: 100%;
  max-height: 480px;
}

.connecteco-title-on-border {
  border-top: 1px solid #000;
  width: 100%;
}

.connecteco-title-on-border h2 {
  text-align: left;
  margin-top: -10px !important;
  margin-left: 50px !important;
  height: 20px;
  line-height: 20px;
}

.connecteco-title-on-border h2 span {
  background-color: white;
}

.display-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

#connecteco-table {
  border: 2px solid var(--main-color-2);
  border-radius: 5px;
  margin: 15px 0;
  max-width: 700px;
}

#connecteco-table td {
  padding: 5px;
}

#connecteco-table td:first-child {
  font-weight: 700;
}

/* Foresterie page, including the video player.

For the video player: target only the .connecteco-formation
page, because there are styles that can break the interactive map page and
make you spend 3+ hours trying to find a non existent problem in the
connectivity_web module.
_Not speaking from personal experience, of course..._
*/

.connecteco-fiche-img {
  width: 70%;
  margin: 0.3rem 0;
}

.connecteco-foresterie-fiches {
  display: flex;
}

.connecteco-formation {
  margin-bottom: 2.5rem;
}

.connecteco-formation #toggle-menu-button {
  width: 50px;
}

.connecteco-formation-video-player {
  width: 100%;
  height: 90vh;
  padding-bottom: 2.5rem;
  border-radius: 3px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

.connecteco-formation-description {
  margin-bottom: 5.5rem;
}

.connecteco-formation #video-player-top-bar {
  background-color: var(--main-color-1);
  margin: 0;
  border-radius: 0;
}

.connecteco-formation #video-player-top-bar-content {
  display: flex;
  align-items: center;
}

.connecteco-formation #video-player-top-bar-content #top-bar-title {
  margin-left: auto;
  margin-top: auto;
  margin-bottom: auto;
  color: white;
}

.connecteco-formation #video-player-window {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.connecteco-formation #video-selector {
  height: 100%;
  width: 100%;
  transition: all 0.5s ease-in-out;
}

/** TODO: needs more adjustment for even smaller screens (mobile?)
eg. buttons are still too big */
@media screen and (min-width: 768px) {
  .connecteco-formation #video-selector {
    max-width: 200px;
  }
}

@media screen and (min-width: 992px) {
  .connecteco-formation #video-selector {
    max-width: 250px;
  }
}

@media screen and (min-width: 1200px) {
  .connecteco-formation #video-selector {
    max-width: 300px;
  }
}

@media screen and (min-width: 1300px) {
  .connecteco-formation #video-selector {
    max-width: 320px;
  }
}

.connecteco-formation .btn {
  background-color: var(--main-color-2);
  opacity: 0.9;
  padding: 2px 5px;
  margin: 5px;
}

.connecteco-formation #video-selector-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.connecteco-formation .module {
  height: max-content;
  width: 90%;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  background-color: white;
  margin: 1rem 0;
}

.connecteco-formation .module h4 {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.6rem 0;
  padding-left: 0.3rem;
  text-align: center;
}

.connecteco-formation .modules {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  row-gap: 1.5rem;
  align-items: center;
  overflow-y: scroll;
  background-color: #f7f7f7;
  border-radius: 2px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.connecteco-formation .dummy-thumbnail {
  height: max-content;
  max-height: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.connecteco-formation .dummy-thumbnail img {
  height: inherit;
  margin-bottom: -10px;
}

.connecteco-formation .module-links {
  border-top: 1px solid var(--main-color-1);
  height: max-content;
}

.connecteco-formation .module-links .bar {
  display: flex;
  margin: 0.2rem 0;
  margin-bottom: 0.3rem;
}

.connecteco-formation .module-links .bar .play-btn {
  margin-left: auto;
  padding: 5px 0.95rem;
}

.connecteco-formation .module-links .bar .download-btn {
  padding: 5px 2rem;
}

.connecteco-formation .module li {
  text-decoration: none;
  list-style-type: none;
  display: flex;
}

.connecteco-formation .download-ppt-modules a {
  width: 100%;
  height: 100%;
  padding: 5px 5px;
  text-decoration: none;
}

.connecteco-formation .download-ppt-modules a:hover {
  background-color: #ececec;
}

.connecteco-formation .module ul {
  padding: 0;
}

.connecteco-formation #video-display {
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.connecteco-formation .video-play {
  padding-top: 15px;
  display: flex;
  justify-content: center;
}

.connecteco-formation .video-play video {
  max-width: 100%;
  max-height: 600px;
}

.connecteco-formation .video-title {
  text-align: center;
}

.connecteco-formation .col-0 {
  width: 0 !important;
}

.connecteco-formation .menu-display-none {
  display: none;
}

.connecteco-formation .row [class*="col-"] {
  transition: all 0.3s ease-in-out;
}

.connecteco-formation-video-player .row {
  margin: 0;
}

.connecteco-formation .clickable {
  cursor: pointer;
}

.connecteco-formation .mod-video,
.connecteco-formation .mod-video-desc {
  display: none;
}

/**
	Styles for a type of custom block that is supposed to a type of "banner"
	with links in it. Is unused and should be eventually removed if the block type
	is deleted.
*/

.connecteco-banner-container {
  margin: 75px 0;
  padding: 5px 5px;
  border-top: 2px solid var(--main-color-2);
  border-radius: 1px;
}

.connecteco-banner-container h2 {
  text-align: center;
  margin-bottom: 10px;
}

.connecteco-banner-container .banner-links {
  display: flex;
  justify-content: space-around;
  padding: 30px 0;
}

.connecteco-banner-container .banner-link {
  padding: 25px;
  margin: 0 15px;
  max-width: 30%;
}

.connecteco-banner-container .banner-link a {
  font-size: 0.8rem;
}

.connecteco-main-color-1 {
  background-color: var(--main-color-1);
}

.connecteco-main-color-2 {
  background-color: var(--main-color-2);
}

/* --------------------------------- NEW MENU --------------------------------- */

.connecteco-sticky-guide {
  display:none;
  position: fixed;
  top: 13%;
  right: -290px;
  z-index: 100;
  display: flex;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  align-items: center;
  height: 580px;
  color: white;
}

.connecteco-sticky-guide .sticky-tab {
  width: 64px;
  height: 64px;
  border-radius: 25px 0px 0px 25px;
  background-color: #98c63dbc;
  -webkit-backdrop-filter: blur(5px); /* Add this line first, it fixes blur for Safari*/
  backdrop-filter: blur(5px);
  z-index: 11;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /*clip-path: inset(-20px 0px -20px -20px);*/
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  /* box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px; */
  box-shadow: 5px 5px 15px #6494219a inset;
}

.connecteco-sticky-guide.expanded {
  right: 0;
}

.connecteco-sticky-guide .sticky-tab.expanded {
  /* height: 500px; */
  height: 60%;
  border-radius: 25px 0px 0px 25px;
  /* box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px; */
  box-shadow: 5px 5px 15px #6494219a inset;

}

@media screen and (min-width: 1726px) { /* screens w/ height lower than 700 but width higher than 1736 */
  .connecteco-sticky-guide {
    right: 0;
  }
  .connecteco-sticky-guide.expanded {
    right: -290px;
    border-radius: 25px 0px 0px 25px;
  }

  #layout-builder .connecteco-sticky-guide {
    right: -290px;
  }

  .connecteco-sticky-guide .sticky-tab.expanded {
    width: 64px;
    height: 64px;
    /* border-radius: 50%; */
    border-radius: 25px 0px 0px 25px;
    box-shadow: 5px 5px 15px #6494219a inset;
  }

  .connecteco-sticky-guide .sticky-tab {
    height: 580px;
    box-shadow: 5px 5px 15px #6494219a inset;

    border-radius: 25px 0px 0px 25px;
  }

  .connecteco-sticky-guide .sticky-contents {
    height: 580px;
  }
}

.connecteco-sticky-guide .sticky-contents {
  max-width: 280px;
  height: 60%;
  padding-right: 8px;
  padding-bottom: 15px;
  border-radius: 0px 25px 25px 0px;
  overflow-y: scroll;
  background-color: #ffffffd5;
  -webkit-backdrop-filter: blur(5px); /* blur for Safari */
  backdrop-filter: blur(5px);
  /* background-color: #D4F1F7eb; */
  margin-right: 10px;
  /* filter: brightness(0.95); */
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  /* scrollbar-width: none; */
  /* box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px; */
  box-shadow: -5px 0px 15px #7aae3298 inset;
  /* -ms-scrollbar-style: none; */
}

.connecteco-sticky-guide .sticky-contents::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 5px;
}

.connecteco-sticky-guide .sticky-contents::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(0,0,0,.5);
  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

@media screen and (min-height: 700px) { /* screens w/ height larger than 700 but width lower than 1726 */
  .connecteco-sticky-guide .sticky-contents {
    height: 580px;
  }

  /* add dark bar here to adjust height */
  .connecteco-sticky-guide .sticky-tab {
    box-shadow: none;
    border-radius: 25px 0px 0px 25px;
    box-shadow: 5px 5px 15px #6494219a inset;
  }

  .connecteco-sticky-guide .sticky-tab.expanded {
    border-radius: 25px 0px 0px 25px;
    height: 580px;
    box-shadow: 5px 5px 15px #6494219a inset;
  }
}

@media screen and (min-height: 700px) and (min-width: 1726px) { /* screens bigger than 700 x 1736 */
  .connecteco-sticky-guide .sticky-tab.expanded {
    width: 64px;
    height: 64px;
    border-radius: 25px 0px 0px 25px;
    box-shadow: 5px 5px 15px #6494219a inset;
  }
}

.connecteco-sticky-guide .sticky-contents ul {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  line-height: 1.1;
  overflow-y: scroll;
}

.connecteco-sticky-guide .sticky-contents ul::-webkit-scrollbar {
  width: 8px;
  border-radius: 4px;
  background-color: #98c63d32;
}

.connecteco-sticky-guide .sticky-contents ul::-webkit-scrollbar-track {
  background: #98c63d32;
}
.connecteco-sticky-guide .sticky-contents ul::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #96c733a6;
}

.sticky-contents a {
  text-decoration: none;
  font-weight: 500;
  color: #74b534;
  width: 100%;
  display: block;
  height: 100%;
  padding: 7px 10px;
  /*border-bottom: 1px solid rgba(211, 211, 211, 0.5);*/
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  -webkit-transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.sticky-contents a:hover {
  text-decoration: none;
  color: #446900; 
  /* background-color: #98c63dd0; */
  background-color: #98c63d88;
  -webkit-backdrop-filter: blur(3px); 
  backdrop-filter: blur(3px);
  border-radius: 15px 5px 15px 5px;
  box-shadow: 0px 0px 10px #72a33176 inset;
  /* transition: 1 all ease-in-out; */
}

.sticky-contents li {
  list-style-type: none;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  padding-top: 7px;
}

.sticky-contents ul {
  padding-right: 17px;
}

/* --------------------------------- END OF MY CODE --------------------------------- */


/* Fixed position menu for long pages.
Like MRC, municipalite, quest-ce que la connectivite 
-- commenting it out temporarily */

/* .connecteco-sticky-guide {
  display:none; 
  position: fixed;
  top: 13%;
  right: -280px;
  z-index: 100;
  display: flex;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  align-items: center;
  height: 580px;
  color: white;
} */

/* .connecteco-sticky-guide .sticky-tab {
  width: 45px;
  height: 100px;
  background-color: var(--main-color-2);
  z-index: 11;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px;
} */

/* .connecteco-sticky-guide .sticky-tab-text {
  font-size: 0.87rem;
  padding-bottom: 2px;
  margin-bottom: 5px;
}

.connecteco-sticky-guide.expanded {
  right: 0;
}

.connecteco-sticky-guide .sticky-tab.expanded {
  height: 500px;
  box-shadow: none;
} */

/* @media screen and (min-width: 1726px) {
  .connecteco-sticky-guide {
    right: 0;
  }
  .connecteco-sticky-guide.expanded {
    right: -280px;
  }

  #layout-builder .connecteco-sticky-guide {
    right: -280px;
  }

  .connecteco-sticky-guide .sticky-tab.expanded {
    height: 100px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
      rgba(0, 0, 0, 0.22) 0px 10px 10px;
  }

  .connecteco-sticky-guide .sticky-tab {
    height: 580px;
    box-shadow: none;
  }
} */

/* .connecteco-sticky-guide .sticky-contents {
  max-width: 280px;
  height: 500px;
  padding-right: 5px;
  overflow-y: auto;
  background-color: var(--main-color-2);
  filter: brightness(0.95);
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  scrollbar-width: none;
  -ms-scrollbar-style: none;
} */

/* .connecteco-sticky-guide .sticky-contents::-webkit-scrollbar {
  display: none;
} */

/* @media screen and (min-height: 700px) {
  .connecteco-sticky-guide .sticky-contents {
    height: 580px;
  }

  .connecteco-sticky-guide .sticky-tab.expanded {
    height: 580px;
  }
}

@media screen and (min-height: 700px) and (min-width: 1726px) {
  .connecteco-sticky-guide .sticky-tab.expanded {
    height: 100px;
  }
} */

/* .connecteco-sticky-guide .sticky-contents ul {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  line-height: 1.1;
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: var(--main-color-2-translucent) var(--main-color-2);
} */

/* .connecteco-sticky-guide .sticky-contents ul::-webkit-scrollbar {
  width: 12px;
}

.connecteco-sticky-guide .sticky-contents ul::-webkit-scrollbar-track {
  background: var(--main-color-2);
}
.connecteco-sticky-guide .sticky-contents ul::-webkit-scrollbar-thumb {
  background: #6b8831;
} */

/* .sticky-contents a {
  text-decoration: none;
  color: rgba(255, 255, 255, 1);
  width: 100%;
  display: block;
  height: 100%;
  padding: 7px 10px;
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  -webkit-transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  font-weight: 500;
} */

/* .sticky-contents a:hover {
  text-decoration: none;
  color: white;
  background-color: rgba(132, 172, 53, 0.9);
} */

/* .sticky-contents li {
  list-style-type: none;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  padding-top: 7px;
} */

/* .sticky-contents ul {
  padding-left: 17px;
} */

/* end of the old green menu */

.connecteco-back-top-button {
  position: fixed;
  bottom: 20px;
  right: 50px;
  height: 64px;
  width: 64px;
  background-color: var(--main-color-2);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  z-index: 11;
  transition: all 0.5s ease-in-out;
}

.connecteco-back-top-button:hover {
  opacity: 1;
}

.hide-top-button {
  visibility: hidden;
  opacity: 0;
}

/* Connecteco header things. With hexagones too.
Used for large titles. */

.connecteco-header-banner {
  height: 190px;
  border-top: 18px solid rgb(153, 198, 31);
  margin: 40px 0px;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  color: white;
  background: linear-gradient(rgba(153, 198, 31, 0.6), rgba(103, 228, 53, 0.6))
    black;
  filter: brightness(0.98);
  margin-top: 70px;
}

.connecteco-header-banner-hex {
  /* use this one with hexagones a droite.
	c'est mieux si les hexagones ne sont pas transparents*/
  border-top: 7px solid rgb(153, 198, 31);
  margin: 40px 0px;
  color: white;
  /*background: url('/sites/default/files/bg_hex1.png');*/
  filter: brightness(0.98);
  margin-top: 70px;
  max-width: 1000px;
  border-image: linear-gradient(
      45deg,
      rgba(135, 176, 42, 0.98),
      rgb(255, 255, 255)
    )
    1;
}

.connecteco-header-banner h2 {
  font-family: "Montserrat Alternates", "Montserrat", Verdana;
  font-weight: 900;
  padding: 50px;
  font-size: 2em;
  color: white;
}

.connecteco-header-banner-hex h2 {
  font-family: "Montserrat Alternates", "Montserrat", Verdana;
  font-weight: 900;
  padding: 30px 0px 0px 100px;
  font-size: 2em;
  color: #1f6071;
  max-width: 1200px;
}

.connecteco-header-banner-hex h2::before {
  content: "\2b22";
  color: #20627352;
  line-height: 1em;
  margin-top: 15px;
  margin-left: -43px;
  padding-right: 15px;
}

.header-container {
  position: relative;
  margin-top: 175px;
}

.connecteco-hexagones {
  position: absolute;
  top: -50px;
  right: -130px;
  max-height: 0;
}

@media (min-width: 576px) {
  .connecteco-hexagones {
    right: -30px;
    top: -20px;
    max-height: 150px;
  }
}

@media (min-width: 768px) {
  .connecteco-hexagones {
    max-height: 200px;
  }
}

@media (min-width: 992px) {
  .connecteco-hexagones {
    max-height: 250px;
  }
}

@media (min-width: 1200px) {
  .connecteco-hexagones {
    top: -50px;
    max-height: 300px;
  }
}

/* connecteco page font */
.page-node-type-page-connecteco p {
  font-size: 1.15em;
  line-height: 1.8em;
  margin-left: 25px;
  margin-right: 15px;
}

/* connecteco logos for footer. */

.connecteco-logos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 25px;
  overflow: hidden;
}

.connecteco-logos img {
  height: 90px;
  width: auto;
}

/* Counter block type */

.connecteco-count {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.connecteco-count p {
  font-size: 0.9rem;
}

.connecteco-count .count-text {
  align-items: center;
  text-align: center;
}

.connecteco-menu-buttons {
  padding: 15px 30px;
}

.connecteco-menu-buttons .card {
  margin: 5px 10px;
  display: block;
  float: left;
  border: none;
}

.connecteco-menu-buttons .card a {
  font-size: 0.8em;
  background-color: #98c63db5 !important;
  -webkit-backdrop-filter: blur(3px); 
  backdrop-filter: blur(3px);
  border-radius: 15px 5px 15px 5px;
  font-weight: bold;
  box-shadow: 0px 0px 10px #72a33176 inset;
  color: #446900;
}

.connecteco-menu-buttons .card a:hover {
  background-color: #98c63d4b !important;
  font-weight: bold;
  box-shadow: 0px 0px 15px #70b3196a inset;
  color: #74b534;
}

.connecteco-list-group-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.connecteco-list-group-item h3 {
  padding: 15px;
  border: 2px solid var(--main-color-1);
  border-radius: 2px;
}
