/* placeholder plus clair */
.form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  opacity: 0.4; /* Firefox */
}
.form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */
  opacity: 0.4;
}
.form-control::-ms-input-placeholder { /* Microsoft Edge */
  opacity: 0.4;
}

.form-label {
  margin-top: 3px;
  margin-bottom: 1px;
}

.topdf  svg {
  width: 30px;
  float: right;
  cursor: pointer;
  fill: var(--bs-primary);
}

#bug-report-button {
  border: 3px solid;
  border-color: var(--bs-warning-border-subtle);
  border-radius: 20%;
  background-color: var(--bs-body-bg);
  position: fixed;   
  bottom: 0;
  left: 0;
  margin: 30px;
  padding: 5px;
  z-index: 100;
  cursor: pointer;
  font-size: small;
}
#bug-report-button svg {
  width: 30px;
  fill: var(--bs-warning-border-subtle);
}
@media (max-width: 900px) {
  #bug-report-button {
    display: none;
  }
}


#help-new-topic {
  vertical-align: middle
}
#help-new-topic  svg {
  width: 15px;
  fill: var(--bs-primary-text-emphasis);
}

#bug-report-disclamer  {
  cursor: pointer;
  font-size: small;
}
#bug-report-disclamer svg {
  width: 15px;
  fill: var(---bs-primary-text-emphasise);
  vertical-align: -.125em;
}

#app-alert,
.calcul_level1,
.calcul_level2,
.calcul_level3,
.calcul_conso {
    display: none;
}

#app-alert {
    display: none;
    left: 0;
    margin: auto; 
    position: fixed;
    right: 0;
    text-align: center;
    bottom: 1em;
    width: 80%;
    z-index: 999; 
}

.resp-sharing-button__link {
  display: none;
}

.debug {
  display: none;
}

#dialog-custom-wall,
#dialog-contact,
#dialog-custom-material,
#dialog-rsirse,
#dialog-bridge,
#study-save-dialog,
#study-open-dialog {
  display:none;
}

#dialog-bridge {
  font-family: Arial, sans-serif; 
}
#dialog-bridge .container { 
  display: flex; flex-direction: column; align-items: center; 
}
#dialog-bridge .hidden { 
  display: none; 
}

/* Expert Mode */
.wall-rsi-rse-popup,
.wall-bridge-popup {
  cursor: pointer;
}
#temp_base_load {
  width: 20px;
  height: 20px;
  display: none;
}
#map {
    width: 100%;
    height: 300px;
}

#map-geocoder {
  margin-bottom: 0.5rem;
}

#map-geocoder:empty {
  display: none;
}

#map-geocoder .mapboxgl-ctrl-geocoder {
  width: 100%;
  max-width: none;
}

.temp-base-svg {
  width: 100%;
}
.temp-base-map-container {
  width: 100%;
  min-height: 420px;
  margin-top: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 8px;
  overflow: auto;
}
.temp-base-map-container svg {
  width: 100%;
  height: auto;
  display: block;
}
#opendata,
#result,
#help,
#suggestion {
    display: none;
}

#opendataTab {
    width: 100%
}

#opendataTab thead {
  text-align: center
}

#suggestion th {
  text-align: center;
}
#suggestion table {
  width: 100%;
}
#suggestion table,
#suggestion td,
#suggestion th {
  border: 1px solid #2F2F2F;
}
#suggestionTransparentConsole {
  font-size: 80%;
}
.card {
/*    padding: 10px;*/
    margin: 10px;
}
.input-group {
    margin-bottom: 3px;
    margin-top: 3px;
}

.opendata-link {
  text-align: center;
}

/* Expert mode */
.col-number {
  width: 100px;
}
#projectsvg  g[onclick^=rsirse] {
  cursor: pointer;
  outline-offset: 5px;
}
#projectsvg g:hover[onclick^=rsirse] {
  outline: solid 3px red;
}
/*#projectsvg svg  { 
  display: inline-block;
  position: absolute; 
  top: 0; 
  left: 0; 
}*/

/* Loader : */

#loadData_background {
  /* https://css-tricks.com/css-page-loader/ */
  position: absolute;
  top: 0;
  bottom: 0%;
  left: 0;
  right: 0%;
  /* https://www.primfx.com/creer-flou-arriere-plan-css/ */
  -webkit-backdrop-filter: blur(15px); /* assure la compatibilitÃ© avec safari */
  backdrop-filter: blur(15px) grayscale(2) opacity(0.9);
  z-index: 89;
}

#loadData_messages {
  /* https://css-tricks.com/css-page-loader/ */
  position: absolute;
  left: 50%;
  margin-left: -50px;
  top: 30%;
  margin-top: -50px;
  z-index: 99;
}

#loadData_messages .loading-gif,
#loadData_messages .message,
#loadData_error {
  text-align: center;
}
#loadData_error {
  display: none;
}

/* i18n */
.locale-switcher {
    position: fixed;
    top: 0px;
    right: 20px;
    padding: 6px;
    border: 1px solid #2F2F2F;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        background: #616161;
        -moz-box-shadow: 0 0 10px black;
        -webkit-box-shadow: 0 0 10px black;
        box-shadow: 0 0 10px black;
        opacity: 0.9;
        z-index: 999;
        display: flex;
        align-items: center;
        gap: 8px;
}
.locale-switcher .global-menu {
    position: relative;
}
.locale-switcher .global-menu .btn {
    padding: 2px 8px;
    font-size: 0.85rem;
}
.locale-switcher .global-menu .dropdown-menu {
    min-width: 12rem;
    padding: 0.25rem 0;
}
.locale-switcher .global-menu .dropdown-item {
    font-size: 0.85rem;
}
.locale-switcher > ul > li {
    display: inline-block;
}
.locale-switcher > ul {
    margin: 0px;
    padding: 0px;
    list-style-type:none;
    display: flex;
    align-items: center;
}
.locale-switcher img {
        margin-right: 6px;
        margin-left: 6px;
}
.locale-switcher .active {
        opacity: 0.50;
}

.locale-switcher .unit-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.locale-switcher .unit-switcher label {
    margin: 0;
    color: #fff;
    font-size: 0.85rem;
}

.locale-switcher .unit-switcher select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #212529;
    padding: 2px 6px;
    font-size: 0.85rem;
    height: 26px;
}

#study-open-list {
    padding-left: 0;
    max-height: 18rem;
    overflow-y: auto;
}

#study-open-dialog .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#study-open-dialog .study-open-empty {
    margin-bottom: 0.75rem;
}

#study-open-dialog .study-open-title {
    min-width: 0;
}

#study-open-dialog .study-open-actions {
    gap: 0.25rem;
}

/* Default */

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}
.bd-mode-toggle {
    z-index: 1500;
}

/* Bouton de partage : https://sharingbuttons.io/ */
/*.resp-sharing-button__link,*/
.resp-sharing-button__icon {
  display: inline-block
}

.resp-sharing-button__link {
  text-decoration: none;
  color: #fff;
  margin: 0.5em
}

.resp-sharing-button {
  border-radius: 5px;
  transition: 25ms ease-out;
  padding: 0.5em 0.75em;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif
}

.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: top
}

.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #fff;
  fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #fff;
  stroke: none
}

.resp-sharing-button--twitter {
  background-color: #55acee
}

.resp-sharing-button--twitter:hover {
  background-color: #2795e9
}

.resp-sharing-button--pinterest {
  background-color: #bd081c
}

.resp-sharing-button--pinterest:hover {
  background-color: #8c0615
}

.resp-sharing-button--facebook {
  background-color: #3b5998
}

.resp-sharing-button--facebook:hover {
  background-color: #2d4373
}

.resp-sharing-button--tumblr {
  background-color: #35465C
}

.resp-sharing-button--tumblr:hover {
  background-color: #222d3c
}

.resp-sharing-button--reddit {
  background-color: #5f99cf
}

.resp-sharing-button--reddit:hover {
  background-color: #3a80c1
}

.resp-sharing-button--google {
  background-color: #dd4b39
}

.resp-sharing-button--google:hover {
  background-color: #c23321
}

.resp-sharing-button--linkedin {
  background-color: #0077b5
}

.resp-sharing-button--linkedin:hover {
  background-color: #046293
}

.resp-sharing-button--email {
  background-color: #777
}

.resp-sharing-button--email:hover {
  background-color: #5e5e5e
}

.resp-sharing-button--xing {
  background-color: #1a7576
}

.resp-sharing-button--xing:hover {
  background-color: #114c4c
}

.resp-sharing-button--whatsapp {
  background-color: #25D366
}

.resp-sharing-button--whatsapp:hover {
  background-color: #1da851
}

.resp-sharing-button--hackernews {
background-color: #FF6600
}
.resp-sharing-button--hackernews:hover, .resp-sharing-button--hackernews:focus {   background-color: #FB6200 }

.resp-sharing-button--vk {
  background-color: #507299
}

.resp-sharing-button--vk:hover {
  background-color: #43648c
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
  background-color: #2d4373;
  border-color: #2d4373;
}

.resp-sharing-button--twitter {
  background-color: #55acee;
  border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
  background-color: #2795e9;
  border-color: #2795e9;
}

.resp-sharing-button--tumblr {
  background-color: #35465C;
  border-color: #35465C;
}

.resp-sharing-button--tumblr:hover,
.resp-sharing-button--tumblr:active {
  background-color: #222d3c;
  border-color: #222d3c;
}

.resp-sharing-button--email {
  background-color: #777777;
  border-color: #777777;
}

.resp-sharing-button--email:hover,
.resp-sharing-button--email:active {
  background-color: #5e5e5e;
  border-color: #5e5e5e;
}

.resp-sharing-button--pinterest {
  background-color: #bd081c;
  border-color: #bd081c;
}

.resp-sharing-button--pinterest:hover,
.resp-sharing-button--pinterest:active {
  background-color: #8c0615;
  border-color: #8c0615;
}

.resp-sharing-button--linkedin {
  background-color: #0077b5;
  border-color: #0077b5;
}

.resp-sharing-button--linkedin:hover,
.resp-sharing-button--linkedin:active {
  background-color: #046293;
  border-color: #046293;
}

.resp-sharing-button--reddit {
  background-color: #5f99cf;
  border-color: #5f99cf;
}

.resp-sharing-button--reddit:hover,
.resp-sharing-button--reddit:active {
  background-color: #3a80c1;
  border-color: #3a80c1;
}

.resp-sharing-button--xing {
  background-color: #1a7576;
  border-color: #1a7576;
}

.resp-sharing-button--xing:hover
.resp-sharing-button--xing:active {
  background-color: #114C4C;
  border-color: #114C4C;
}

.resp-sharing-button--whatsapp {
  background-color: #25D366;
  border-color: #25D366;
}

.resp-sharing-button--whatsapp:hover,
.resp-sharing-button--whatsapp:active {
  background-color: #1DA851;
  border-color: #1DA851;
}

.resp-sharing-button--hackernews {
  background-color: #FF6600;
  border-color: #FF6600;
}

.resp-sharing-button--hackernews:hover
.resp-sharing-button--hackernews:active {
  background-color: #FB6200;
  border-color: #FB6200;
}

.resp-sharing-button--vk {
  background-color: #507299;
  border-color: #507299;
}

.resp-sharing-button--vk:hover
.resp-sharing-button--vk:active {
  background-color: #43648c;
  border-color: #43648c;
}

.resp-sharing-button--telegram {
  background-color: #54A9EB;
}

.resp-sharing-button--telegram:hover {
  background-color: #4B97D1;}



@media print {
  .locale-switcher, .contact {
    display: none;
  }
  footer{
    display: none;
  }
  header {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #f1f1f1;
  }

  a {
    color: #8ab4f8;
  }

  a:hover,
  a:focus {
    color: #a7c5ff;
  }

  .card {
    background-color: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
    color: inherit;
  }

  .card-header {
    background-color: #262626;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: inherit;
  }

  .card-body {
    color: inherit;
  }

  label,
  .form-label,
  .form-text,
  .lead,
  .disclamer,
  .contact,
  .card h4,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    color: inherit;
  }

  .form-control,
  .form-select,
  .input-group-text,
  .dropdown-menu,
  .list-group-item,
  .modal-content {
    background-color: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.16);
    color: #f1f1f1;
  }

  .form-control:focus,
  .form-select:focus {
    background-color: #222;
    border-color: rgba(138, 180, 248, 0.5);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(138, 180, 248, 0.25);
  }

  .input-group-text {
    background-color: #252525;
  }

  .table,
  .table thead th,
  .table tbody td {
    color: #f1f1f1;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .table-striped tbody tr:nth-of-type(odd) {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.04);
    color: inherit;
  }

  .btn {
    color: inherit;
  }

  .btn-primary,
  .btn-outline-primary {
    color: #f1f1f1;
  }

  .btn-secondary,
  .btn-outline-secondary {
    color: #f1f1f1;
    background-color: #2f2f2f;
    border-color: #4a4a4a;
  }

  .btn-secondary:hover,
  .btn-secondary:focus,
  .btn-secondary:active,
  .btn-outline-secondary:hover,
  .btn-outline-secondary:focus,
  .btn-outline-secondary:active {
    color: #fff;
    background-color: #3d3d3d;
    border-color: #5c5c5c;
  }

  .btn-outline-secondary {
    background-color: transparent;
  }

  #bug-report-button {
    background-color: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.16);
  }

  #bug-report-button svg {
    fill: #fbc02d;
  }

  .locale-switcher {
    background: rgba(33, 33, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  }

  .locale-switcher .unit-switcher select {
    background-color: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.2);
    color: #f1f1f1;
  }

  .locale-switcher .unit-switcher label {
    color: #f1f1f1;
  }

  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple {
    background-color: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.16);
    color: #f1f1f1;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered,
  .select2-container--default .select2-selection--multiple .select2-selection__rendered,
  .select2-results__option,
  .select2-search__field {
    color: #f1f1f1;
  }

  .select2-dropdown,
  .select2-search__field {
    background-color: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.16);
  }

  .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2a2a2a;
    color: #fff;
  }

  .list-group-item {
    background-color: #1f1f1f;
  }

  .dropdown-item {
    color: #f1f1f1;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: #2a2a2a;
    color: #fff;
  }

  .dropdown-item.active,
  .dropdown-item:active {
    background-color: #3a3a3a;
    color: #fff;
  }

  .modal-header,
  .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
  }
}
