.documentheque-section {
  padding-top: 64px;
  width: 100vw;
  position: relative;
  left: calc(-50vw + 50%);
}

.section-link {
  position: absolute;
  right: 30px;
  top: 0;
  color: #ffff;
  background: rgba(0,166,217,0.24);
  padding: 11px;
  border-radius: 21px;
  width: auto;
  height: 2.8em;
  margin-bottom: 20px;
  display: flex;
  vertical-align: middle;
  align-items: center;
}
.section-link:hover {
  background-color: #15252C;
}

.section-link a {
  margin: 0 15px;
}

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

.section-link img {
  width: 1.8em;
}

.section-link span {
  padding-left: 10px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'NunitoSansExtraBold';
}

.documentheque-section .view-header {
  font-family: NunitoSansExtraBold;
  font-size: 36px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.28;
  margin: 39px 0 34px 0;
}

.documentheque-section .view-filters {
  display: none;
}

.documentheque-filter .select-keynames , 
.documentheque-filter .select-categories, 
.documentheque-filter .select-date, 
.documentheque-filter .select-sort {  
  display: inline-block;
  position: relative;
}

.documentheque-filter .select-categories, 
.documentheque-filter .select-date, 
.documentheque-filter .select-sort {  
  margin-left: 25px;
}

.documentheque-filter .select-keynames .options, 
.documentheque-filter .select-categories .options, 
.documentheque-filter .select-date .options, 
.documentheque-filter .select-sort .options {
  background-color: white;
  padding: 20px;
  color: #10181d;
  position: absolute;
  font-weight: 600;
  top: 32px;
  font-size: 14px;
  font-family: 'NunitoSans';
  z-index: 3;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.5);
}

.documentheque-filter .select-categories .options {
  max-height: 237px;
  overflow-y: scroll;
}

.documentheque-filter .options::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #aeaeae;
    border: 3px solid white;
}

.documentheque-filter .options::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 14px;
}

.documentheque-filter .select-categories .options, 
.documentheque-filter .select-date .options, 
.documentheque-filter .select-sort .options {
  width: 440px
}

.documentheque-filter .select-keynames .options div, 
.documentheque-filter .select-categories .options div, 
.documentheque-filter .select-date .options div, 
.documentheque-filter .select-sort .options div {
  cursor: pointer;
  margin-bottom: 17px;
}
 
.documentheque-filter .select-date .options .selected, 
.documentheque-filter .select-sort .options .selected {
  color: #00ceff;
}

.documentheque-filter .select-keynames .label, 
.documentheque-filter .select-categories .label, 
.documentheque-filter .select-date .label, 
.documentheque-filter .select-sort .label {
  text-transform: uppercase;
  font-family: NunitoSansBlack;
  font-size: 13px;
  font-weight: 900;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  width: 116px;
  overflow-x: hidden;
  cursor: pointer;
  overflow-x: hidden;
  white-space: nowrap;
}

.documentheque-filter .filter {
  width: 100%;
  background-image: linear-gradient(to right, transparent 0%, rgba(16, 24, 29, 0.5) 90%, #10181d 95%, #10181d 98%);
  position: absolute;
  top: 0;
  bottom: 2px;
  left: 0;
  right: 0;
  pointer-events: none;
  display: none;
}

.documentheque-filter .selected .filter { 
  display: block;
}

.documentheque-filter .arrow { 
  background-image: url('/themes/swi/images/components/global/arrow-down-gray.svg');
  background-position: right;
  background-repeat: no-repeat;
  background-size: 10px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  pointer-events: none;
}

.documentheque-filter .selected .arrow { 
  background-image: url('/themes/swi/images/components/global/arrow-down-blue.svg');
}

.documentheque-filter .select-sort .label {
  width: auto;
  min-width: 200px;
  padding-right: 20px;
}

.documentheque-filter .select-keynames.selected .label, 
.documentheque-filter .select-categories.selected .label, 
.documentheque-filter .select-date.selected .label, 
.documentheque-filter .select-sort.selected .label {
  color: #00ceff;
  text-transform: none;
}

 /* Mots clés */
.documentheque-filter .select-keynames input {
    border: none;
    outline: none;
    color: black;
 }

.documentheque-filter .select-keynames input::-webkit-input-placeholder { /* Edge */
  color: #B1B1B1;
}

.documentheque-filter .select-keynames input:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #B1B1B1;
}

.documentheque-filter .select-keynames input::placeholder {
  color: #B1B1B1;
}

.documentheque-section h3.no-result {
  margin: 100px;
  text-align: center;
}





/** Catégories */

.documentheque-section .select-categories .category-title {
  background-image: url(/themes/swi/images/components/global/arrow-right-black.svg);
  background-position: right;
  background-repeat: no-repeat;
  background-size: 10px;
}

.documentheque-section .select-categories .category-title.only-one-section {
  background: unset !important;
}

.documentheque-section .select-categories .category-title.only-one-section.selected {
  color: #00ceff;
  text-transform: none;
}

.documentheque-section .select-categories .options {
  height: 237px;
}

.documentheque-section .select-categories .category.selected {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
}

.documentheque-section .select-categories #all-categories.selected {
  color: #00ceff;
}

.documentheque-section .select-categories .category.selected .category-title {
  color: #00ceff;
  font-family: "NunitoSansExtraBold";
  font-weight: 800;
  font-size: 16px;
  border-bottom: 1px solid #00ceff;
  background-image: none;
  padding-left: 40px;
  padding-right: 45px;
  padding-bottom: 13px;
}

.documentheque-section .select-categories .category.selected .category-title:before {
  content: '';
  background-image: url(/themes/swi/images/components/global/arrow-left-blue.svg);
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  left: 20px;
  top: 7px;
  height: 10px;
  width: 10px;
}

.documentheque-section .select-categories .category.selected .category-title-options {
  display: block !important;
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
  padding: 0 55px 0 30px;
}

.documentheque-section .select-categories .category.selected .category-title-options .category-option.selected {
  color: #00ceff;
}




/** Date **/
.documentheque-section .select-date .by-year {
  border-top: 1px solid lightgray;
  padding-top: 17px;
  margin-bottom: 0;
}

.documentheque-section .select-date .by-year .year {
  width: 49%;
  display: inline-block;
  padding-top: 17px;
  padding-bottom: 0;
  margin-bottom: 0;
}


/* Pagniation */
.documentheque-section .pagination {
  display: inline-flex;
  position: relative;
}

.documentheque-section .view-documentheque, 
.documentheque-section .documentheque-filter {
  width: 100% !important;
  max-width: 1305px !important;
  margin: auto;
  position: relative;
  padding: 15px;
}


.documentheque-section .view-documentheque nav {
  text-align: center;
}

.documentheque-section .page-link {
  background-color: transparent;
  border: none;
  color: white;
}

.documentheque-section .page-item {
  margin: 2px;
}

.documentheque-section .page-item.active .page-link, .page-link:hover {
  background-color: #00ceff;
  border-color: #00ceff;
  border-radius: 20px;
  color: white !important;
}

.documentheque-section a[rel="prev"], .documentheque-section a[rel="next"] {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url(/themes/swi/images/components/global/arrow-right-white.svg);
  color: transparent !important;
  outline: none;
  height: 9px;
  top: 13px;
}

.documentheque-section a[rel="prev"] span, .documentheque-section a[rel="next"] span{ 
  display: none;
}

.documentheque-section a[rel="next"] {
  right: -20px;
}

.documentheque-section a[rel="prev"] {
  left: -20px;
  transform: rotate(180deg);
}

.documentheque-section a[rel="prev"]:hover, 
.documentheque-section a[rel="next"]:hover {
  background-color: transparent;
  border-color: transparent;
  color: white;
}

.documentheque-section li.page-item[role=presentation] {
  padding-top: 2px;
}

.documentheque-section li.page-item[role=presentation] .page-link:hover {
  background-color: transparent;
  border-color: transparent;
  color: white;
}

.documentheque-section .pagination span {
  color: black !important;
  display: none !important;
  width: 0;
  height: 0;
  position: absolute;

}

.documentheque-section li.page-item.active span {
  color: white;
  display: block;
}


.documentheque-section .filters .close {
  display: none;
}

.documentheque-section .page-item:last-child .page-link,
.documentheque-section .page-item:first-child .page-link {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Reinit button*/
.documentheque-section .reinit-button {
  display: inline-flex;
  align-items: center;
  margin: 10px;
  font-size: 10px;
  cursor: pointer;
}

.documentheque-section .reinit-button svg {
  margin-right: 8px;
}

@media only screen and (max-width: 1305px) { 
  .view-documentheque .view-content {
    justify-content: center;
  }
}


@media only screen and (max-width: 768px) { 
  .documentheque-filter .select-keynames .label, .documentheque-filter .select-categories .label, .documentheque-filter .select-date .label, .documentheque-filter .select-sort .label {
    width: 100%;
  }

  .documentheque-section {
    padding-top: 20px;
    width: 100%;
    position: relative;
    left: 0;
  }

  .documentheque-section .section-link {
    right: auto;
    left: auto;
    display: inline-block !important;
    margin-left: 14px !important;
  }

  .documentheque-filter {
    padding-left: 0;
  }

  .documentheque-section .view-header {
    padding-left: 0;
  }

  .documentheque-section .view-documentheque .view-content {
    margin: 0;
  }

  .documentheque-section .view-documentheque .view-content .views-row,
  .documentheque-section .view-documentheque .fichier-telecharge {
    width: 100%;
    margin-bottom: 15px;
  }

  .documentheque-filter .select-categories .options, .documentheque-filter .select-date .options, .documentheque-filter .select-sort .options {
    width: 100%;
  }

  .documentheque-filter .arrow {
    left: auto;
  }

  .documentheque-section .view-documentheque, .documentheque-section .documentheque-filter {
    padding: 0;
  }


  /* Bouton filtre */
  .documentheque-section .section-filter-mobile {
    padding: 8px 20px 8px 20px;
    border-radius: 19.5px;
    border: solid 1px #ffffff;
    color: white;
    display: inline-block !important;
    vertical-align: middle;
    margin-bottom: 20px;
  }

  .documentheque-section .filters.show {
    display: block !important;
  }

  .documentheque-section .filters .close {
    background-image: url(/themes/swi/images/components/header/close-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    width: 19.3px;
    height: 19.2px;
    position: fixed;
    right: 22px;
    top: 22px;
    z-index: 3;
  }

  .documentheque-filter .select-keynames, .documentheque-filter .select-categories, .documentheque-filter .select-date, .documentheque-filter .select-sort {
    display: block !important;
    margin-left: 0 !important;
    padding-left: 0;
    margin-bottom: 15px;
  }

  .documentheque-filter .select-categories .options,
  .documentheque-filter .select-sort .options,
  .documentheque-filter .select-date .options {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    max-height: none;
    padding-top: 100px;
    z-index: 2;
  }

  .documentheque-section .select-categories .category.selected .category-title-options {
    position: relative !important;
    top: 0;
  }

  .documentheque-section .select-categories .category.selected {
    top: 103px;
  }

  .documentheque-filter .select-keynames .options {
    width: 100%;
  }

  .documentheque-section .fichier-telecharge {
      margin: 7px auto !important;

  }
}
