@import url(https://fonts.googleapis.com/css?family=Titillium+Web:300);
@import url("https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto&display=swap");

@keyframes dataUpdate {
  0% {
    opacity: 0;
    transform: translateX(15px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.dataUpdate {
  animation: dataUpdate 0.2s ease-out;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
.spinner {
  animation: spinner 1s linear infinite;
}

@keyframes jello-horizontal {
  0% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }

  100% {
    transform: scale3d(1, 1, 1);
  }
}
.jello-horizontal {
  animation: jello-horizontal 0.9s both;
}

@keyframes slide-out-top {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-1000px);
    opacity: 0;
  }
}
.slide-out-top {
  animation: slide-out-top 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-1000px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.slide-in-top {
  animation: slide-in-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-1000px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.slide-in-left {
  animation: slide-in-left 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slide-in-right {
  0% {
    transform: translateX(1000px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.slide-in-right {
  animation: slide-in-right 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slide-out-left {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-1000px);
    opacity: 0;
  }
}
.slide-out-left {
  animation: slide-out-left 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

@keyframes slide-out-right {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(1000px);
    opacity: 0;
  }
}
.slide-out-right {
  animation: slide-out-right 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

@keyframes eblink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}
.eblink {
  animation: eblink 0.9s infinite both;
}

@keyframes pulsate-fwd {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}
.pulsate-fwd {
  animation: pulsate-fwd 4s ease-in-out infinite both;
}

@keyframes heartbeat {
  from {
    transform: scale(1);
    transform-origin: center center;
    animation-timing-function: ease-out;
  }

  10% {
    /* transform: scale(.91); */
    transform: scale(0.94);
    animation-timing-function: ease-in;
  }

  17% {
    transform: scale(0.98);
    animation-timing-function: ease-out;
  }

  33% {
    /* transform: scale(.87); */
    transform: scale(0.92);
    animation-timing-function: ease-in;
  }

  45% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}
.heartbeat {
  animation: heartbeat 3s ease-in-out infinite both;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
}

*::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

*::-webkit-scrollbar-thumb:active {
  background: rgba(0, 0, 0, 0.9);
}

body {
  margin: 0;
  display: flex;
  flex-direction: row;
  font-family: "Roboto", sans-serif;
  color: var(--font-dark-color);
}

.area {
  float: left;
  background: var(--light-bg-background);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Open Sans", sans-serif;
}

hr {
  border: solid 1px var(--nav-bg);
}

/* Les popup */

.superposition-back {
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(2px);
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.superposition-front {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--light-bg-background);
  border: solid 1px var(--mid-bg-background);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border-radius: 5px;
  z-index: 3;
  max-height: 90vh;
  overflow: auto;
  min-width: 20vw;
  max-width: 70vw;
  padding: 0px 2rem 0px 2rem;
}

.superposition-front h3 {
  margin-top: 0;
  padding: 1rem 0px 1rem 0px;
  width: 100%;
  text-align: center;
  border-bottom: solid 2px var(--nav-bg);
}

.superposition-close {
  position: absolute !important;
  cursor: pointer;
  color: var(--font-mid-color);
  top: 5px;
  right: 5px;
  top: 5px;
  width: auto !important;
  height: auto !important;
  font-size: 1rem !important;
}

.indent {
  margin-left: 10px;
  width: -webkit-fill-available;
}
.opaque {
  opacity: 1 !important;
}
.transparent {
  opacity: 0 !important;
}

/* Les flex de base */
.col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0px 5px;
  width: 100%;
  height: 100%;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-evenly;
  margin: 3px 0px;
  width: 100%;
  height: 100%;
}

/* Les panels */
.panel_liste {
  width: 30%;
  height: 100%;
  background: var(--light-bg-background);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel_traitement {
  width: 70%;
  height: 100%;
  position: relative;
  background: var(--mid-bg-background);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.panel_traitement p {
  margin: 3px 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.panel_traitement h3 {
  margin: 5px 12px;
}

/* les forms */
button {
  background: var(--couleur-action);
  color: var(--font-light-color);
  border: solid 1px var(--light-bg-background);
  border-radius: 5px;
  padding: 8px 12px;
  margin: 3px 5px;
  align-self: center;
  font-family: "Open Sans", sans-serif;
  font-size: 0.8em;
  transition: all 0.2s ease-in-out;
  margin-top: 8px;
  cursor: pointer;
}

button:hover {
  background: var(--couleur-action-hover);
  color: var(--font-light-color);
  border: solid 1px var(--mid-bg-background);
}

input,
select {
  -webkit-writing-mode: horizontal-tb !important;
  padding: 8px;
  text-rendering: auto;
  color: initial;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  -webkit-appearance: textfield;
  background: var(--light-bg-background);
  -webkit-rtl-ordering: logical;
  cursor: text;
  font: 400 13.3333px Arial;
  padding: 1px 0px;
  border-width: 2px;
  border-style: inset;
  border-color: initial;
  border-image: initial;
}

input[type="color"] {
  padding: 0;
  border: none;
  height: calc(0.8em + 0.75rem + 2px);
  background: transparent;
  cursor: pointer;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="email"],
.inputList,
select {
  display: block;
  height: calc(0.8em + 0.75rem + 2px);
  padding: 0.175rem 0.25rem;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
  color: var(--font-dark-color);
  background: var(--light-bg-background);
  background-clip: padding-box;
  border: 1px solid var(--mid-bg-background);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

textarea {
  display: block;
  width: 100%;
  min-height: calc((0.8em + 0.75rem + 2px) * 3);
  padding: 0.175rem 0.75rem;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
  color: var(--font-mid-color);
  background: var(--light-bg-background);
  background-clip: padding-box;
  border: 1px solid var(--mid-bg-background);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  resize: vertical;
  font-family: "Titillium Web", sans-serif;
  height: 99%;
}

.disabled {
  color: var(--mid-bg-background) !important;
  background: var(--light-bg-background) !important;
  cursor: not-allowed !important;
}
.annuler {
  /* color: var(--font-light-color) ; */
  background: var(--light-bg-background);
  border: solid 2px var(--mid-bg-background);
  color: var(--font-dark-color);
}
.annuler:hover {
  background: var(--light-bg-background);
  border: solid 2px var(--dark-bg-background);
  color: var(--font-dark-color);
}

/* Les tableaux */
table {
  border-collapse: collapse;
}

thead {
  color: var(--font-light-color);
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody {
  color: var(--font-dark-color);
  background: var(--light-bg-background);
}

tbody tr {
  padding: 3px 5px;
  transition: all 0.2s ease-in-out;
  border-bottom: solid transparent 2px;
}

tbody tr:hover {
  background: var(--hover-bg-background);
}

td img {
  max-width: 70px;
  width: 70px;
  max-height: 70px;
  height: 70px;
  object-fit: cover;
  object-position: center;
}

.list {
  width: 30%;
  height: 100%;
  background: var(--light-bg-background);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.display {
  width: 70%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.display p,
.superposition-front p {
  margin: 3px 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.display h3 {
  margin: 5px 12px;
}

.selected {
  border-color: var(--couleur-selected) !important;
  background: var(--hover-bg-background);
}

.separateur {
  height: 1vh;
  width: 95%;
  margin: 10px auto;
  background: var(--nav-bg);
}

.card {
  display: flex;
  flex-direction: row;
  position: relative;
  padding: 5px 0px 4px 8px;
  /* border: solid 2px transparent; */
  border-bottom: solid 2px transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.card:hover {
  background: var(--hover-bg-background);
  color: var(--font-dark-color);
}

.card .color {
  height: 100%;
  width: 15px;
  position: absolute;
  top: 0;
  left: 0;
}

.card .icons {
  position: absolute;
  top: 5px;
  right: 5px;
}

.card h2 {
  font-size: 1.1em;
  margin: 0 0 3px 0;
}

.card i {
  font-size: 0.7em;
}

.card .fa,
.card .fas {
  font-size: 1em;
}

.card p {
  display: flex;
  margin: 2px 0px;
}

.card img {
  width: 70px;
  min-width: 70px;
  height: 70px;
  min-height: 70px;
  object-fit: cover;
  object-position: center;
}

.red {
  background: var(--couleur-rouge-leger);
}

.critere_selected {
  color: #ffc107;
  visibility: visible !important;
}

.invisible {
  visibility: hidden;
}

.material-symbols-sharp {
  cursor: pointer;
  color: var(--font-dark-color);
  transition: all 0.2s ease-in-out;
}
thead .material-symbols-sharp {
  cursor: pointer;
  color: var(--font-medium-color);
  transition: all 0.2s ease-in-out;
}

.material-symbols-sharp:hover {
  color: var(--font-medium-color);
}

.fa-trash-arrow-up {
  opacity: 1; /*Oblige l'affichage des enregistrements archivés*/
}

.alwaysVisible {
  visibility: visible !important;
}

article {
  margin: 5px 0;
  padding: 8px 6px;
  background-color: var(--hover-bg-background);
  border: solid 1px var(--couleur-action);
}

.page_filtre {
  flex-direction: column;
  cursor: default;
}

.page_filtre p {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page_filtre h4 {
  margin: 0;
}
/* Nouveau loader qui sera en bas à droite de la page */
/* HTML: <div class="loader"></div> */
.loader {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 30px;
  aspect-ratio: 1;
  background: var(--dark-bg-background);
  display: grid;
  animation: l4-0 1s infinite linear;
  z-index: 10;
}

.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  background: var(--font-mid-color);
  animation: inherit;
  animation-name: l4-1;
}

.loader::after {
  background: var(--couleur-action);
  --s: 60deg;
}

@keyframes l4-0 {
  0%,
  20% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(90deg);
  }
}

@keyframes l4-1 {
  50% {
    transform: rotate(var(--s, 30deg));
  }

  100% {
    transform: rotate(0);
  }
}
