/* Chrome, Edge, Safari */
/* SCROLLBARR */
*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background-color: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 20px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* BACKGROUND-COLOR */
.main-blue-bg {
  background-color: #488FB1;
}

.grey-bg {
  background-color: #5f5f5e;
}

.yellow-bg {
  background-color: #ff9800;
}

.red-bg {
  background-color: #f24f3d;
}

.header {
  padding: 75px 0;
  background-color: #488FB1;
}

.header-content {
  margin-top: 50px;
}

body {
  background-color: #f1f1f1;
  font-family: "Segoe UI",Arial,sans-serif !important;
}

h1 {
  margin: 20px;
}

a:hover {
  color: #488FB1;
}

a.link-user-guide:hover {
  color: white;
  font-weight: 600;
}

ul {
  padding: 0;
  list-style: none;
}

.li-infos {
  margin-bottom: 8px;
}

.search-border {
  border-radius: 0;
}

.nav-item a:hover {
  font-weight: normal;
}

.icon {
  margin: 10px 10px 10px 0;
}

.icon-blue {
  color: #488FB1;
}

.button-text {
  padding: 1px 10px;
}

.button-intranet {
  width: 30px;
  height: 30px;
  border-style: solid;
  border-radius: 5px;
  border-color: gray;
  border-width: 1px;
  background-color: white;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 3px;
  margin: 5px;
  cursor: grab;
  border-bottom: solid 1px;
}

.py-5 {
  color: black;
}

body { /* problem ici */
  display: grid;
  grid-template-rows: 
  auto auto 1fr auto; 
  min-height: 100vh;
}

/*i need default body here*/
.motcle-search-page {
  display: block;
}

.uniform-card {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.uniform-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 10px;
}

.scrollable-section {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}

@media (max-width: 576px) {
    .uniform-card {
        padding: 10px 0;
    }
    .uniform-image {
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 1200px) {
  .col-xl-1-5 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* DARK MODE */

.dark-mode {
  background-color: #2c2c2c;
  color: white;
}

body.dark-mode > .header {
  background-color: #777777;
}

body.dark-mode .grey-bg {
  background-color: #3f3f3f;
}

body.dark-mode .main-blue-bg {
  background-color: #777777;
}

body.dark-mode .py-5 {
  color: white;
}

body.dark-mode .table {
  color: white;
}

body.dark-mode button {
  background-color: #2c2c2c;
}

body.dark-mode .nav-link {
  color: white;
}
body.dark-mode .trumbowyg-button-pane button {
  background-color: #ecf0f1;
}

body.dark-mode .button-intranet {
  background-color: #2c2c2c;
  color: white;
}

body.dark-mode th {
  background-color: #2c2c2c;
}

body.dark-mode .sortable-item {
  background-color: #2c2c2c;
}

body.dark-mode .zone_barre > a.lettre {
  color: white;
}

/* AUTRE */

.cookie-banner .container {
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner .buttons {
  display: flex;
  gap: 10px;
}
.cookie-banner p {
  margin: 0;
  flex-grow: 1;
  color: #2c2c2c;
}

/* ajouter un pseudo-élément ::before à votre élément cible lorsque celui-ci est visé par une ancre (:target) */
:target::before {
  content: "";
  display: block;
  height: 200px; /* hauteur du menu fixe + marge désirée */
  margin: -125px 0 0; /* inverse de la hauteur + marge désirée */
}

.zone_barre > a.lettre {
  color: #414140;
}

/* IMPRESSION */
@media print {
  /* Masquer le menu lors de l'impression */
  .navbar {
      display: none;
  }

  footer {
    display: none;
}

  .card-body {
    max-height: fit-content!important;
  }

  /* Définir les styles spécifiques à la version imprimée */
  /* .impression { */
      /* Ajoutez ici les styles spécifiques à la version imprimée */
  /* } */
}