/* dropdown autocomplete */
.search--open {
  max-height: 400px;
  opacity: 1;
  padding: 32px 0;
  visibility: visible;
}
.search .container {
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

.dropdown__expand {
  background-color: #fff;
  display: block;
  padding: 15px 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.dropdown__expand .link {
  display: block;
  position: relative;
}

.dropdown__expand .link:hover,
.dropdown__expand .link:focus {
  opacity: 1;
  color: #fff;
}

.dropdown__expand .link:hover span,
.dropdown__expand .link:focus span {
  z-index: 2;
  position: relative;
}

.dropdown__expand .link:hover:before,
.dropdown__expand .link:focus:before {
  opacity: 1;
}

.dropdown__expand .link:before {
  background-color: #5897fb;
  bottom: 0;
  content: '';
  left: -100vw;
  opacity: 0;
  position: absolute;
  pointer-events: none;
  right: -100vw;
  top: 0;
}

/* Ajustement centré champs de recherche */
.section-search-results .section__head blocRecherche {
  display: flex;
  justify-content: center;
}
.section-search-results .section__head.blocRecherche .input-group{
  flex-wrap: nowrap;
  padding: 0 10px;
  max-width: 1000px;
}
.section-search-results .section__head.blocRecherche .parentInputSearch {
  width: 100%;
}

.section-search-results .section__head {
  padding:  0 !important;
}

.search-input {
  background: transparent !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-style: hidden !important;
  border-right-style: hidden !important;
  border-left-style: hidden !important;
  border-bottom: 2px solid #000 !important;
  color: #000 !important;
  font-size: 38px !important;
  line-height: 38px !important;
  height: auto !important;
}

button.search-btn {
  background: transparent;
  border: none;
  outline: 0;
}

.input-group .input-group-search {
  background: none;
  color: #000;
  border-top: transparent;
  border-right: transparent;
  border-left: transparent;
  border-radius: 0;
  border-bottom: 2px solid;
}

.parentInputSearch {
  width:  100%;
}

#search-espace-media-categorie-result {
  margin-top: 50px;
}

.card-result.active {
  background-color: #5897fb;
  border: 0;
}

.card-result::after, .card-result::before {
  box-sizing: border-box;
}

.card-result {
  border:  1px solid;
  border-radius: 3px;
  cursor: pointer;
  font-size: 20px;
  height: 100px;
  padding: 40px 20px;
  margin-bottom: 20px;
  width: 32%;
}

.card-result div {
  font-size: 18px;
  font-weight: 600;
}

.card-result.no-result {
  background-color: #ededed;
  border: 0;
  color: gray;
  cursor: default;
}

.d-flex {
  display: flex !important;
}

.d-flex::after, .d-flex::before {
  box-sizing: border-box;
}

.text-center {
  text-align: center !important;
}

.divCenter {
  margin-left: auto;
  margin-right: auto;
}

.btn-n2 .btn-lrdm {
  background-color: #0b09b3;
  border-radius: 10px;
  border: 0;
  color: #fff;
  height: 55px;
  font-family: lato;
  font-weight: 600;
  font-size: 16px;
  padding: 0 25px;
}

/* Ajustement spécifique de l'espace des méta du contenu de la liste des résultats */
.btn-lrdm.plusHits {
  align-items: center;
  display: flex;
  height: 55px;
  transition: background 0.4s, color 0.4s;
  outline: none;
}

.section-search-results .article__content  .article__meta {
  margin-bottom: 10px;
}

/* Picto + avec animation de rotation en continue lors du clique sur le bouton "Afficher plus" */
.btn-lrdm.plusHits:hover {
  background: #f8f9fa;
  color: #000000;
}
.btn-lrdm.plusHits:hover svg {
  fill: #000000;
}

/* Icone Plus */
.btn-lrdm.plusHits svg {
  fill: #ffffff;
  transition: background 0.4s, color 0.4s;
}
.plusHits svg {
  margin-right: 10px;
}
.plusHits.rotate-infinite svg {
  animation-duration: 800ms;
  animation-name: rotate-anim;
}
/*.btn-lrdm.rotate-infinite svg {
  animation: rotation 2s infinite linear;
  animation-name: rotate-anim;
}*/

/* Champs de recherche */
.container.js-search-hits {
  padding-left: 55px;
}
.search-form input {
    border: none;
}
.search-form input:focus {
    outline-style: none;
    box-shadow: none;
    border-color: transparent;
}

/* bouton de recherche */

.btn-close {
    box-sizing: content-box;
    display: inline-block;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: .25rem;
}

.search-btn .btn-close svg {
  display: none;
}

.search .btn-close {
  position: absolute;
  top: 38px;
  right: 118px;
  z-index: 2;
}

.search .search__btn {
  position: absolute;
  top: 0;
  right: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  padding: 5px;
  border: none;
  background: none;
  visibility: hidden;
  opacity: 0;
}

/* Select 2 : Etat liste déroulante ouverte */
.select--open {
  z-index: 9;
  filter: drop-shadow(0 7px 30px rgba(0,0,0,0.07));
}

/* Têtière liste déroulante */
.select.select--alt .select2-container {
  margin-left: 40px;
}
.select2.select2-container--open span.select2-selection.select2-selection--single {
  border: none;
  filter: drop-shadow(0 0px 2px rgba(0,0,0,0.07));
  z-index: 10;
  position: relative;
}
.select--open .select2-selection:before {
  background: #e1e6e4;
  content: '';
  left: 20px;
  height: 1px;
  position: absolute;
  right: 20px;
  top: calc(100% - 1px);
  z-index: 9;
}
.select2-container .select2-results__option {
  font-size: 14px;
  font-weight: 600;
}

/* Contenu liste ouverte */
.select2-container .select2-dropdown {
  border: none;
  filter: drop-shadow(0 7px 30px rgba(0,0,0,0.07));
  z-index: 0;
}

/* Animation Keyframe de rotation d'objet */
@keyframes rotate-anim {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
