:root {
  --exvoto-yellow: #FAED26;
  --exvoto-deep: #46344E;
  --exvoto-charcoal: #5A5560;
  --exvoto-mauve: #9D8D8F;
  --exvoto-taupe: #9B786F;
  --exvoto-white: #fff;
  --exvoto-black: #000;
  --exvoto-ink: #000;
  --exvoto-panel: #1c1720;
  --exvoto-panel-soft: #2b2230;
}

html,
body {
  background: #fff;
  color: var(--exvoto-ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

body,
button,
input,
select,
textarea,
.pv-wrapper,
.pv-wrapper *,
.modal,
.modal *,
.ui-widget,
.ui-widget * {
  font-family: "Roboto", Arial, sans-serif !important;
}

#top {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.34) 38%, rgba(0, 0, 0, 0.10) 100%),
    url("../bandeau-fond-exvoto.png") center 30% / cover no-repeat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.exvoto-brand {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding-left: 32px;
  color: var(--exvoto-white);
}

.exvoto-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.exvoto-subtitle {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

#buttoninfo {
  position: absolute;
  top: 96px;
  right: 28px;
  left: auto;
  z-index: 3;
  border-color: var(--exvoto-yellow);
  background: var(--exvoto-yellow);
  color: var(--exvoto-black);
  font-family: inherit;
}

#buttoninfo:hover,
#buttoninfo:focus {
  border-color: var(--exvoto-white);
  background: var(--exvoto-white);
  color: var(--exvoto-deep);
}

#page,
.pv-wrapper,
.pv-mainpanel {
  background: #fff;
}

.pv-toolbarpanel {
  border-bottom-color: var(--exvoto-yellow);
  background: var(--exvoto-panel);
  filter: none;
}

.pv-toolbarpanel-facetbreadcrumb,
.pv-toolbarpanel-info,
.pv-toolbarpanel-name {
  color: var(--exvoto-white);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.pv-toolbarpanel-facetbreadcrumb-facet,
.pv-toolbarpanel-facetbreadcrumb-values,
.pv-toolbarpanel-facetbreadcrumb-separator,
.pv-countbox {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.pv-filterpanel-version {
  color: #000;
  text-shadow: none;
}

.pv-filterpanel-clearall {
  color: var(--exvoto-white);
}

.pv-filterpanel-search,
.pv-toolbarpanel-search {
  border-color: var(--exvoto-mauve);
  background: var(--exvoto-white);
  color: var(--exvoto-ink);
}

.pv-infopanel {
  border: 1px solid var(--exvoto-mauve);
  background: linear-gradient(180deg, var(--exvoto-deep), var(--exvoto-panel));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  color: var(--exvoto-white);
  box-sizing: border-box;
  max-height: calc(100% - 16px);
  overflow: hidden;
}

.pv-infopanel-heading,
.pv-infopanel-details,
.pv-infopanel-copyright,
.pv-infopanel-related {
  color: var(--exvoto-white);
}

.pv-infopanel-heading {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.pv-infopanel-details {
  max-height: calc(100vh - 245px);
  padding-right: 4px;
  font-size: 13px;
  line-height: 1.35;
  overflow-y: auto !important;
  overflow-x: hidden;
}

.pv-infopanel-detail {
  border-color: rgba(157, 141, 143, 0.34);
}

.pv-infopanel-detail-description {
  color: var(--exvoto-mauve);
}

.detail-item-title,
.detail-item-value,
.pv-facet-facetitem-label,
.pv-facet-customrange-label,
.pv-filterpanel-version,
.pv-filterpanel-clearall,
.pv-filterpanel-accordion .ui-accordion-header a {
  font-size: 13px;
  line-height: 1.35;
}

.detail-item-title {
  color: var(--exvoto-yellow);
  font-weight: 700;
}

.detail-item-value {
  color: var(--exvoto-white);
  font-weight: 400;
}

.detail-item-value-filter:hover {
  background: var(--exvoto-charcoal);
}

.pv-infopanel a {
  color: var(--exvoto-yellow);
}

.pv-viewpanel {
  z-index: 1;
}

.pv-mapview-canvas {
  z-index: 1;
}

.pv-mapview-canvas .leaflet-control-container {
  position: relative;
  z-index: 2;
}

.pv-filterpanel,
.pv-infopanel,
.pv-altinfopanel,
.pv-toolbarpanel {
  z-index: 1000;
}

#page {
  height: calc(100vh - 135px);
}

#pivotviewer,
.pv-wrapper {
  height: 100%;
}

.pv-mainpanel {
  height: calc(100% - 37px);
}

.pv-canvas {
  touch-action: none;
}

.modal {
  z-index: 2000;
}

.modal-backdrop {
  z-index: 1990;
}

#myModal .modal-content,
#myModal .modal-header,
#myModal .modal-body,
#myModal .modal-footer {
  background: var(--exvoto-panel);
  color: var(--exvoto-white);
  border-color: var(--exvoto-mauve);
}

#myModal .modal-dialog {
  max-width: 50vw;
  width: 50vw;
}

#myModal a {
  color: var(--exvoto-yellow);
}

#myModal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.pv-filterpanel-accordion .ui-accordion-header,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-default,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-hover,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-focus,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-active {
  background: var(--exvoto-deep);
  color: var(--exvoto-white);
  border-color: var(--exvoto-deep);
}

.pv-filterpanel-accordion .ui-accordion-header a {
  color: var(--exvoto-white);
}

.pv-filterpanel-accordion .ui-accordion-header.ui-state-hover,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-focus {
  background: var(--exvoto-charcoal);
  border-color: var(--exvoto-charcoal);
}

.pv-filterpanel-accordion .ui-accordion-content {
  border-color: var(--exvoto-taupe);
  background: var(--exvoto-panel-soft);
  color: var(--exvoto-white);
}

.pv-filterpanel-accordion-facet-list-item {
  min-height: 22px;
  padding: 2px 0;
  position: relative;
}

.pv-facet-facetitem {
  margin-top: 3px;
}

.pv-facet-facetitem-label {
  color: var(--exvoto-white);
  font-size: 12px;
  line-height: 18px;
  margin-top: 0;
}

.pv-facet-customrange-label {
  color: var(--exvoto-white);
  font-size: 12px;
  line-height: 18px;
  margin-top: 0;
}

.pv-facet-facetitem-label:hover {
  background: var(--exvoto-charcoal);
}

.pv-facet-facetitem-count {
  color: var(--exvoto-white);
  margin-top: 1px;
  padding: 0 7px;
  border-radius: 10px;
  background: var(--exvoto-deep);
  background-image: none !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.pv-countbox,
.pv-bucket-countbox {
  background: var(--exvoto-deep);
  color: var(--exvoto-white);
}

.pv-filterpanel-accordion-facet-sort,
.pv-infopanel-detail-description-more {
  background: var(--exvoto-charcoal);
  color: var(--exvoto-white);
}

.pv-filterpanel-accordion-facet-sort:hover,
.pv-infopanel-detail-description-more:hover {
  background: var(--exvoto-taupe);
}

.pv-filterpanel-numericslider-range-val {
  color: var(--exvoto-white);
}

.pv-filterpanel-accordion-facet-chart rect {
  stroke: var(--exvoto-black);
  fill: var(--exvoto-yellow);
}

.bucketview-bucket-dark {
  background-color: rgba(70, 52, 78, 0.18);
}

.bucketview-bucket-light {
  background-color: rgba(157, 141, 143, 0.16);
}

.bucketview-bucket-hover {
  background-color: rgba(250, 237, 38, 0.22);
}

.pv-bucketview-overlay-bucket-infobox,
.pv-bucketview-overlay-bucket-titlebox,
.pv-bucketview-overlay-bucket-titlebox-left {
  border-color: var(--exvoto-taupe);
  background: var(--exvoto-panel);
  color: var(--exvoto-white);
}

.pv-tableview-heading {
  background: var(--exvoto-deep);
  color: var(--exvoto-white);
}

.pv-tableview-odd-row {
  background-color: rgba(157, 141, 143, 0.18);
}

.pv-tableview-even-row {
  background-color: rgba(155, 120, 111, 0.16);
}

.pv-tableview-odd-row:hover,
.pv-tableview-even-row:hover {
  background-color: rgba(250, 237, 38, 0.22);
}

.ui-widget-content {
  color: var(--exvoto-white);
}

.ui-slider .ui-slider-handle {
  border-color: var(--exvoto-black);
  background: var(--exvoto-yellow);
}

.ui-slider .ui-slider-range {
  background: var(--exvoto-yellow);
}

.modal-body,
.pv-infopanel-details {
  overflow-y: auto;
}

.modal-body {
  max-height: calc(100vh - 190px);
}

.pv-credits-button {
  font-family: inherit;
}

.pv-tableview-heading {
  min-width: 80px;
  resize: horizontal;
  overflow: auto;
}

@media (max-width: 900px) {
  #myModal .modal-dialog {
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
  }

  .exvoto-brand {
    padding-left: 18px;
    padding-right: 92px;
  }

  .exvoto-title {
    font-size: 24px;
  }

  .exvoto-subtitle {
    font-size: 13px;
  }
}
