@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;600&display=swap');

#result_articles img{
  max-height:100px;
}

mark {
  background-color: yellow;
}

body {
  font-size: .875rem;
  font-family: 'Montserrat', sans-serif;
  color: #1D2850;
  overflow-y: scroll; /* Show vertical scrollbar */
}

.pointer {
  cursor: pointer;
}

.page-link {
  color: #1D2850 !important;
}

.page-item.active .page-link {
  background-color: #1D2850 !important;
  color: #fff !important;
  border-color: #1D2850 !important;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

.w-600 {
  font-weight: 600;
}

.text-primary {
  color: #263CFF;
}

.text-dark {
  color: #1D2850;
}

.fs-48 {
  font-size: 3rem;
}

.fs-14 {
  font-size: 0.875rem;
}

.fs-12 {
  font-size: 0.75rem;
}

/* Menu */

.bg-primary {
  background-color: #1D2850!important;
}

.bg-light-2 {
  background-color: #E9E9E9!important;
}

/* Sidebar */

.sidebar {
  position: fixed;
  top: 0;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100;
  /* Behind the navbar */
  padding: 75px 0 0;
  /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  overflow-y: scroll;
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
  /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather, .sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/* Navbar */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.text-justify {
  text-align: justify;
  text-align-all: justify;
  text-justify: inter-word;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control {
  font-size: .875rem;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .3);
}


.navbar-collapse {
  align-items: center;
  background-color: #1D2850!important;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: box-shadow .15s ease-in-out;
  margin-left: 290px;
}

.nav-item {
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (max-width: 991.98px){

  .navbar-collapse {
    margin-top: 200px !important;
    margin-right: 30px !important;
  }

  @media (prefers-reduced-motion: reduce){
    .navbar-toggler {
      transition: none;
      margin-right: 30px;
    }
  }

  #atlas_nav{
    margin-right: 4rem;
    margin-top: 8px !important;
  }

  #cartItemNb{
    font-size: 10px !important;
  }


  /* period_inputs ==> search-advanced.ejs */

  #period_inputs{

    flex-direction: column;
  }

  /* periode_date ==> results.ejs */

  #periode_date_results{
    flex-direction: column;
  }

  #periode_date_start_results{
    margin-bottom: 0.25rem;
  }

  #periode_date_end_results{
    margin-bottom: 0.5rem;
  }

  .toast-container{
    padding-bottom: 2rem;
    pointer-events: none;
  }

  .toast{
    pointer-events: none;
  }

  #title_only{
    font-size: x-small !important ;
  }

  #total_result{
    flex-direction: column;
    font-size: x-small !important ;
  }

}



.nav-link {
  padding-right: 0 !important;
  padding-left: 0 !important;
  font-weight: 600;
}

.nav-item .active:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 100%;
  bottom: 0;
  background: white;
  height: 2px;
  width: 100%;
}

.hvr-underline-from-left:before {
  background: white;
  height: 2px;
}

/* Search input */

.input-search img {
  top: 50%;
  transform: translateY(-50%);
  left: 8px;
  margin: 0;
}

.input-search input[type=search] {
  border-radius: 20px;
  background: #F5F5F5;
  border: 1px solid #F5F5F5;
  padding: .375rem .75rem .375rem 2.3rem;
}

/* Checkbox */

.form-check-label {
  font-size: 0.875rem;
  font-weight: 300;
}

/* Switch 1 */

.form-switch .form-check-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.form-switch .form-check-input {
  margin: 0;
}

.form-check-input:checked {
  background-color: #1D2850;
  border-color: #1D2850;
}

.form-switch .form-check-input:focus {
  border-color: rgba(0, 0, 0, .25);
  outline: none;
  box-shadow: none;
}

.form-check-input:active {
  filter: none;
}

.link-base {
  font-size: 0.75rem;
  text-decoration: none;
  color: #1D2850;
  font-weight: 300;
}

hr {
  background-color: #b6b6b6;
}

/* Accordion */

.accordion-button {
  padding: .65rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid #F5F5F5;
  background-color: #F5F5F5;
  border-radius: 6px;
}

.like-accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: .5rem;
  padding: .65rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: #212529;
  text-align: left;
  background-color: #F5F5F5;
  border: 1px solid #F5F5F5;
  border-radius: 6px;
  overflow-anchor: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
}

.like-accordion-button::after {
  background-image: none;
}

.accordion-button:not(.collapsed) {
  background-color: #F5F5F5;
  color: #1D2850;
}

.accordion-button:not(.collapsed)::after {
  background-image: url(/assets/img/icon-arrow-right.svg);
  transform: rotate(90deg);
}

.accordion-button::after {
  background-image: url(/assets/img/icon-arrow-right.svg);
}

.accordion-collapse {
  border: none;
}

.accordion-body {
  padding: .5rem .75rem;
}

.accordion-body ul li {
  padding: 0.35rem 0;
}

.accordion-item {
  margin-bottom: .5rem;
}

.accordion-button:focus {
  border-color: transparent;
  box-shadow: none;
}

/* Progress */

.progress {
  background-color: #f2f5ff;
}

.progress-bar {
  background-color: #d4ddfa;
}

/* Cards */

.card {
  background-color: #fff;
  border: 1px solid #E3E9FF;
}

.card-highlight:hover {
  background-color: #F5F5F5;
  border: 1px solid #1D2850;
  border-radius: 5px;
}

.accordion-header:hover {
  background-color: #F5F5F5;
  border: 1px solid #1D2850;
  border-radius: 5px;
}

.highlightHover:hover {
  background-color: #F5F5F5 !important;
}

.accordion-header {
  border: 1px solid #ffffff;
  border-radius: 5px;

}

.card.result-selected {
  background-color: #F4F7FF;
}

.card .card-header {
  font-weight: 600;
  background-color: #fff;
  border-bottom: none;
  border-radius: .25rem;
}

.btn-group .btn-dropdown {
  border: 1px solid #E4E4E4;
  font-weight: 600;
  font-size: .75rem;
}

.btn-light {
  color: #1D2850;
}

/* Dropdown */

.dropdown-menu {
  min-width: 12rem;
  border: 1px solid #E3E9FF;
}

.dropdown-menu .dropdown-item {
  font-size: .75rem;
}

.dropdown-toggle::after {
  background-image: url(/assets/img/icon-arrow-bottom.svg);
  border: none;
  width: 18px;
  height: 18px;
  margin-left: .5em;
}

.dropdown-toggle {
  z-index: 999;
}

.dropdown-toggle > .dropdown-toggle:not(:has(news))::after {
  background-image: url(/assets/img/icon-close.svg);
  border: none;
  width: 28px;
  height: 28px;
  margin-left: .5em;
}

/* Badge */

.badge {
  font-size: .75rem;
  padding: .5em .75em;
  --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.025), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-group-xs>.btn, .btn-xs {
  padding: .335em .75em;
  font-size: .75rem;
  border-radius: .25rem;
  max-height: 26px;
  font-weight: 600;
  border: 0;
}

.btn-primary {
  color: #fff;
  background-color: #1D2850;
  border-color: #1D2850;
}

.btn-primary:hover {
  background-color: #1D2850;
  border-color: #1D2850;
}

.btn-check:active+.btn-primary, .btn-check:checked+.btn-primary, .btn-primary.active, .btn-primary:active, .show>.btn-primary.dropdown-toggle {
  background-color: #1D2850;
  border-color: #1D2850;
}

.btn-check:focus+.btn-primary, .btn-primary:focus {
  background-color: #1D2850;
  border-color: #1D2850;
}

/* Button close */

.btn-close {
  box-sizing: content-box;
  width: 14px;
  height: 14px !important;
  padding: 0;
  color: #000;
  background: url(/assets/img/icon-close.svg) no-repeat;
  border: 0;
  border-radius: 0;
  opacity: 1;
}

/* Nav Tabs */

.nav-tabs .nav-item {
  padding: 0;
}

.nav-tabs .nav-item .nav-link {
  padding: .5rem 1rem !important;
  color: rgba(29, 40, 80, .5);
  font-weight: 300;
}

.nav-tabs .nav-link.active {
  font-weight: 600;
  color: #1D2850;
}

/* Results */

.results .card .card-body {
  padding: .5rem .65rem;
}

.results .card .card-body .card-date {
  font-size: .75rem;
}

.results .card .card-image {
  height: 100%;
  background-size: cover;
  border-radius: 4px;
}

.results .card .dropdown button {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0;
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
}

.results .card .dropdown button::after {
  background-image: url(/assets/img/icon-dots.svg);
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 2px;
}

.results .card .card-body .badge {
  font-size: .625rem;
  padding: .35em .45em;
}

.results .card .card-body .badge.bg-primary {
  color: #263CFF;
  background-color: #E3E9FF !important;
}

.results .card .card-body .badge.bg-secondary {
  color: #FF9097;
  background-color: #FFEEEF !important;
}

.btn-outline-primary {
  border-color: #1D2850 !important;
  color: #1D2850 !important;
  border-radius: 5px !important;
}

.btn-outline-primary:hover {
  color: #ffffff !important;
  background-color: #1D2850 !important;
}

.btn-check:checked+.btn-outline-primary {
  color: #ffffff !important;
  background-color: #1D2850 !important;

}

.results .card .card-body h5.card-title {
  font-size: 1rem;
  font-weight: 600;
}

/* Search Input LG */

.input-search-lg .form-control {
  border-top-left-radius: 20px !important;
  border-bottom-left-radius: 20px !important;
  border: 1px solid #F5F5F5;
  background-color: #F5F5F5;
}

.input-search-lg button.btn {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  color: #fff;
  background-color: #1D2850;
  font-size: .875rem;
}

/* Auth */

.form-signin {
  width: 100%;
  max-width: 480px;
  margin: auto;
}

.form-signin form {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.form-signin .checkbox {
  font-weight: 400;
}

.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 10px;
}

.form-signin .form-control:focus {
  z-index: 2;
}

/* Article */

.card-article .card-header {
  border-radius: 0;
}

.card-article .card-header h5 {
  font-size: 1rem;
  font-weight: 600;
}

.card-article .card-body .card-date {
  font-size: .75rem;
}

.card-article .card-body .badge.bg-primary {
  color: #263CFF;
  background-color: #E3E9FF !important;
  font-size: .625rem;
  padding: .35em .45em;
}

/* Recherche avancée */

.search-advanced .form-control {
  width: initial;
  border: 1px solid #E4E4E4;
  background-color: #F5F5F5;
  font-weight: 600;
  font-size: .75rem;
  padding: .25rem .5rem;
}

/* Frequency */
.frequency {

}

/* Modal panier */

.modal {
  left:initial;

}

.modal-fullscreen {
  width: 420px;
  margin-left: auto;
}

.modal-dialog-slideout {
  min-height: 100%;
  margin: 0 0 0 auto;
  background: #fff;
}
.modal.fade .modal-dialog.modal-dialog-slideout {
  -webkit-transform: translate(100%,0);
  transform: translate(100%,0);
}
.modal.fade.show .modal-dialog.modal-dialog-slideout {
  -webkit-transform: translate(0,0);
  transform: translate(0,0);
  flex-flow: column;
}
.modal-dialog-slideout .modal-content{
  border: 0;
}

.modal-body .card-body .badge.bg-primary {
  color: #263CFF;
  background-color: #E3E9FF !important;
}

/* recherche simple */
.scrollDiv {
  max-height: 50vh;
  overflow: auto;
}

.modal-open {
  overflow: scroll;
}

body {
  padding-right: 0 !important;
}

.hover_img a { position:relative; }
.hover_img a span { position:absolute; display:none; z-index:99; }
.hover_img a:hover span { display:block; }

.hover_img:hover {
  transition: all .2s ease-in-out;
  transform: scale(1.15);
}
