html {
  height: 100%;
}

body {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* background-color: #c8ecff; */
  /* background-color: #eaf8ff; */
  /* background: url("/assets/img/lil_fiber.png") repeat;*/
  opacity: 0.9;
  /* padding-top: 48px; */
  min-height: 100%;
  position: relative;
}

a:not([type="button"]):hover {
  text-decoration: underline;
}

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 3vh;
  text-align: center;
}

.nav3dicons:hover {
  background-color: #124b68 !important;
}

.nav-item {
  display: inline-block;
  text-align: center;
}

#navbarToggleExternalContent,
#brand {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.25em;
  line-height: 4em;
  text-decoration: none;
  text-transform: uppercase;
}

.navbar-toggler-left {
  left: 9rem;
}

.navbar-toggler-right {
  right: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.5);
}

#brand {
  display: block;
  font-size: 0.8em;
  height: inherit;
  line-height: 1.65em;
  padding: 0 0.125em 0 0.375em;
}

#bars {
  width: 2.5em;
  margin-top: -0.5em;
  cursor: pointer;
}

#main {
  padding-top: 40px;
  /* gerer la hauteur pour fixer la carte leaflet */
  /* height: 5%;*/
}

/***********************************/
/* geoLocation                     */
/***********************************/
#map {
  height: 75vh;
  width: 100%;
}

.card-img-top {
  width: 100%;
}

.card-img {
  width: 80%;
  height: 10vw;
  object-fit: scale-down;
}

#a-card-img-center {
  margin: auto;
}

/*************************************/
/* scroll top thesaurus, index pages */
/*************************************/
.scroll-top {
  position: fixed;
  bottom: 0;
  /* right:10%; */
  left: 20%;
  z-index: 100;
  font-size: 24px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.scroll-top-fiche {
  position: fixed;
  bottom: 0;
  right: 10%;
  z-index: 100;
  font-size: 24px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.explore-scroll-top {
  position: fixed;
  bottom: 0;
  right: 10%;
  z-index: 100;
  font-size: 24px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

#menuCentre {
  max-height: 80vh;
  /* overflow-x: hidden; */
  /* overflow-y: auto;*/
}

#menuGaucheAdmin {
  height: calc(100vh - 32px);
  min-width: 480px;
}

#menuGaucheAdmin.offcanvas-xl.show {
  height: 100vh;
}

#menuCentreAdmin {
  max-height: calc(100vh - 52px);
  /* overflow-x: hidden; */
  overflow-y: auto;
}

@media screen and (max-width: 800px) {
  #menuGauche {
    max-height: 70vh;
    /* overflow-x: auto; */
    overflow-y: auto;
  }
}

@media screen and (min-width: 800px) {
  #menuGauche {
    max-height: 70vh;
    overflow-y: auto;
  }
}

#main-ul {
  /* list-style: none;*/
  /*margin-left:0; */
  padding-left: 1em !important;
}

#menuGauche li {
  font-size: medium;
}

/*************************************/
/* list tree menu gauche             */
/*************************************/
/* fonctionnel */
#menuGauche ul li input {
  display: none;
}
#menuGauche ul li input ~ ul {
  display: none;
}
#menuGauche ul li input:checked ~ ul {
  display: block;
}
#menuGauche ul li input ~ .fa-folder-open {
  display: none;
}
#menuGauche ul li input:checked ~ .fa-folder {
  display: none;
}
#menuGauche ul li input:checked ~ .fa-folder-open {
  display: inline;
}

/* habillage */
#menuGauche * li {
  display: block;
  /* padding-left: 0.2em; */
  padding-bottom: 0.2em;
  /* border: 1px solid transparent; */
}

#menuGauche * ul {
  padding-left: 10px;
}

/* li:hover {
    border: 1px solid grey ;
    border-radius: 3px;
    background-color: lightgrey;
} */

.mapPal {
  height: 70vh;
}

/* contanier map + item */

@media only screen and (min-width: 1100px) {
  .contenant {
    display: grid;
    grid-template-columns: 6fr 4fr;
  }

  .list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 15px;
    padding: 0 30px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .list3d {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 15px;
    padding: 0 30px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .map {
    position: sticky !important;
    /* top: 15vh; */
    left: 0;
    right: 0;
  }

  .listTabloid {
    /* combien de vignettes en largeur : 5  cf grid-template-columns */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }
  .list3dTabloid {
    /* combien de vignettes en largeur : 2  cf grid-template-columns */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }
}

@media only screen and (max-width: 1024px) {
  .contenant {
    display: grid;
    grid-template-columns: 6fr 4fr;
  }

  .list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 15px;
    padding: 0 30px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .map {
    position: sticky !important;
    /* top: 15vh; */
    left: 0;
    right: 0;
  }

  .listTabloid {
    /* combien de vignettes en largeur : 5  cf grid-template-columns */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }
}

/* on supprime toutes les vilaines mises en formes imposées par leaflet pour ne modifier que le marker au niveau du popup */
.marker .leaflet-popup-content-wrapper {
  background-color: transparent;
  color: inherit;
  box-shadow: none;
}

.marker.leaflet-popup {
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 25px !important;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  background-color: #fff;
}

.marker.leaflet-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -8px;
  /* le triangle */
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

.marker .leaflet-popup-content {
  text-align: inherit;
  padding-left: 6px;
  padding-right: 6px;
  color: inherit;
  margin: 0;
}

.marker .leaflet-popup-tip-container {
  display: none;
}

.marker.is-active,
.marker:hover {
  z-index: 300;
  background-color: #5069ff;
  color: inherit;
  box-shadow: none;
  text-align: inherit;
}

.marker.is-active::after,
.marker:hover::after {
  border-top-color: #5069ff;
}

.marker.is-expanded {
  background-color: #fff !important;
  color: inherit !important;
  z-index: 301;
  text-align: center;
  width: 350px !important;
}

#libelleProjet {
  font-size: small;
}

.fakelink {
  cursor: pointer;
}

.modal-dialog:not(.custom-modal),
.modal-content:not(.custom-modal) {
  height: 90vh;
}

.modal-body {
  position: relative;
  overflow-y: auto;
  max-height: 100vh;
  padding: 15px;
}

#modalinfo {
  height: auto !important;
}

#modalRootproj {
  height: 300px;
}

@media (min-width: 992px) {
  .modal-lg {
    min-width: 850px !important;
    max-width: 850px !important;
  }
}

@media (min-width: 768px) {
  .form-group.row > .col-form-label {
    text-align: right;
  }
}

.loader {
  display: none;
  position: fixed;
  z-index: 1051; /* plus haut que la modal qui est à 1050 */
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.8) url("/assets/images/wait.gif") 50% 50% no-repeat;
  background-size: 100px;
}

body.loading {
  overflow: hidden;
}

body.loading .loader {
  display: block;
}

.select_perm {
  min-height: 30vh;
  font-size: small;
  /* max-width: 30em; */
  overflow-x: scroll !important;
}

.select_project {
  min-width: 30vw;
  max-width: 30em;
  overflow: auto;
}

.select_petit_perm {
  min-height: 20vh;
  font-size: small;
  min-width: 30vw;
  max-width: 30em;
  overflow-x: scroll !important;
}

input,
.select_perm,
.select_petit_perm,
.select_project {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/*************************************/
/* list sortable drag and drop       */
/*************************************/
.drop-placeholder {
  background-color: #242943;
  height: 3.5em;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.2em;
}

.select_synch {
  height: 30vh;
}
.select_petitsynch {
  height: 10vh;
}

/* form entity admin */
.capitalize {
  text-transform: capitalize;
}

.textform {
  width: 100%;
}

/* form edit */
.latlngPerso {
  width: 100%;
}

/* Pour garder une fenêtre global à 100% et un contenu variable */
#tabloid {
  height: 75vh;
  overflow: auto;
}

#assignRights :required:invalid + label {
  color: red;
}
#assignRights :required:valid + label {
  color: green;
}

.blue {
  margin-left: 5%;
  color: darkblue;
}

.list-group-item {
  padding: 0.5rem 1.25rem;
}

.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  display: none;
  min-width: 160px;
  padding: 4px 0;
  margin: 0 0 10px 25px;
  list-style: none;
  background-color: #ffffff;
  border-color: #ccc;
  border-color: rgba(0, 0, 0, 0.2);
  border-style: solid;
  border-width: 1px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
}

.ui-menu-item > a.ui-corner-all {
  display: block;
  padding: 3px 15px;
  clear: both;
  font-weight: normal;
  line-height: 18px;
  color: #555555;
  white-space: nowrap;
  text-decoration: none;
}

.ui-state-hover,
.ui-state-active {
  color: #ffffff;
  text-decoration: none;
  background-color: #0088cc;
  border-radius: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  background-image: none;
}

.ui-helper-hidden-accessible {
  display: none;
}

.centre {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5%;
}

/* ************ */
/* context menu */
/****************/
.ctxmenu {
  position: absolute;
  min-width: 128px;
  height: auto;
  padding: 8px;
  margin: 0;
  margin-left: 32px;
  margin-top: -16px;
  border: 1px solid #999;
  background: #f8f8f8;
  box-shadow: 2px 2px 2px #aaa;
  z-index: 11;
  overflow: visible;
}
.ctxline {
  display: block;
  margin: 0px;
  padding: 2px 2px 2px 8px;
  border: 1px solid #f8f8f8;
  border-radius: 3px;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  overflow: visible;
}
.ctxline:hover {
  border: 1px solid #bbb;
  background-color: #f0f0f0;
  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: linear-gradient(top, #ffffff, #e6e6e6);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',
    endColorstr='#e6e6e6', GradientType=0);
}

#content {
  position: static;
  margin-left: 218px;
  margin-top: 92px;
}

.img_respARCHEOGRID {
  max-width: 100%;
  height: auto;
}

/*********************
         DOI
 *********************/
#doi {
  font-size: small;
  line-height: 1em;
  height: 88vh;
  overflow: auto;
  padding-left: 15px;
}

.tab-article {
  margin-top: 20px;
  margin-bottom: 0;
  width: 100%;
}

.td_doi_col1 {
  font-weight: bold;
  width: 40%;
  text-align: left;
  vertical-align: top;
  padding: 5px;
}

.td_doi_col2 {
  width: 60%;
  /*padding: 5px; */
  /* vertical-align: top; */
}

/*
* Search page
*/
#search-div {
  height: 85.5vh;
}

#search-div .btn-secondary {
  /* background-color: #FFF; */ /* mise à jour boottrap efface les boutons ! */
}

#search-left-div {
  padding-right: 0.5vw;
  flex: auto;
  overflow: auto;
}

.hidden-search {
  display: none !important;
}

#explore-results {
  overflow-y: auto;
}

#explore-grid {
  display: grid;
  grid-template-columns: repeat(5, 0.5fr);
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  flex: auto;
}

.check_item.checked .see-select {
  box-shadow: inset 0px 0px 5px var(--bs-primary);
}

#left-top > #main-ul {
  padding-left: 0 !important;
  overflow: auto;
  max-height: 60vh;
}

/*
* Search bars 
*/
.search-bar-list :first-child .input-group-addon {
  display: none;
}

.search-bar > *,
.group-borders > *,
.group-borders > .dropdown > button {
  border-radius: 0rem;
}

.search-bar > :first-child,
.group-borders > :first-child,
.group-borders > :first-child.dropdown > button {
  border-bottom-left-radius: 0.25rem !important;
  border-top-left-radius: 0.25rem !important;
}

.search-bar > :last-child,
.group-borders > :last-child {
  border-bottom-right-radius: 0.25rem !important;
  border-top-right-radius: 0.25rem !important;
}

/* when addon is hidden */
.search-bar-list :first-child > :nth-child(2) {
  border-bottom-left-radius: 0.25rem !important;
  border-top-left-radius: 0.25rem !important;
}

.add-search-bar {
  color: rgb(0, 200, 0);
}

.remove-search-bar {
  color: rgb(200, 0, 0);
}

/*
* Collapse icons 
*/
/* Rotation */
.btn-collapse-search > .fa-chevron-right {
  transition: all 0.3s ease;
}

.btn-collapse-search:not(.collapsed) > .fa-chevron-right {
  transition: all 0.3s ease;
  transform: rotate(90deg);
}

/*
* Folders tree 
*/
#folders-dropdown {
  flex: auto;
}

#folders-button {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

#folders-button,
#caret {
  position: absolute;
}

#folders-menu {
  max-width: 30vw;
}

.ui-autocomplete {
  max-height: 60vh;
  overflow: scroll;
}

.modal-open > .ui-autocomplete {
  max-height: 30vh;
  z-index: 1050;
}

ul,
#folders-tree {
  list-style-type: none;
}

/* Remove margins and padding from the parent ul */
#folders-tree {
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 40vh;
}

#folders-tree {
  margin: 0;
  padding: 0;
}

#folders-tree span {
  user-select: none;
}

.folder-parent {
  cursor: pointer;
}

.folder-parent::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 6px;
}

.folder-parent-down::before {
  transform: rotate(90deg);
}

.folder-children {
  display: none;
}

.folder-children.active {
  display: block;
}

/* Search */
.highlight-search {
  background-color: #fffd8f;
}

.folder-selected,
.folder-selected-hover {
  background-color: #6f9dff;
  /* border-style: solid; */
  /* border-width: 2px; */
  border-radius: 5px;
}

.folder-hover {
  background-color: #97c2f3;
  /* border-style: dashed; */
  /* border-width: 2px; */
  border-radius: 5px;
}

.tag {
  display: flex;
  align-items: flex-end;
  min-width: 1%;
  font: 400 14px Arial;
  border-style: solid;
  border-width: 1px;
  border-radius: 4px;
  background-color: lavender;
}

/*
* Results
*/
#display-menu > * {
  width: auto;
  height: min-content;
  margin-right: 0.5rem !important;
}

#item-selection {
  line-height: normal;
}

/*
* Profil
*/
#profil-tab .nav-link {
  color: black !important;
  text-decoration: underline !important;
}

#profil-tab .nav-link:hover {
  color: #014c8c !important;
  text-decoration: underline !important;
}

#searches-table td,
#searches-table th {
  text-align: center;
}

#alerts {
  position: fixed;
  top: 10px;
  left: 0px;
  width: 100%;
}

.ui-menu-item-wrapper {
  cursor: pointer;
}

.verticalContainer {
  height: 70vh;
  position: relative;
}

.verticalCenter {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* Pour garder une fenêtre global à 100% et un contenu variable lorsqu'il y a un entet / bandeau (cf 3DIcons) */
#tabloid_entete {
  height: 35vh;
  overflow: auto;
}

/* bouton ancre visuel bleu ArcheoGRID */

.superpose {
  display:flex;
  position: relative;
  align-items:center;
  justify-content: center;
  width: 100%;
}
.image_superpose {
  position: absolute;
  align-items:center;
  justify-content: center;
  top: 0;
  opacity: 55%;
  width: 2.5rem;
}



.see-select {
  border-style: dashed;
  transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.check_item.checked .see-select {
  background-color: var(--bs-primary-bg-subtle);
  border-style: solid;
}