@import url("reset.d41d8cd98f00.css");
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

/* Icon size and shape */
.btn i.bi {
  width: 2em;
  height: 2em;
  line-height: 2em;
}

/* Styles pour la navbar */
.navbar-nav .nav-link {
  padding-right: .5rem;
  padding-left: .5rem;
}

.dropdown-menu {
  right: 0;
  left: auto;
}
.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 0.25rem;
}

.btn-danger:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

/* Zone de dépôt pour le téléversement de fichiers */
.drop-zone {
  width: 100%;
  border: 2px dashed #17a2b8;
  border-radius: 0.5rem;
  padding: 1.5rem;
  background-color: rgba(23, 162, 184, 0.1);
  cursor: pointer;
  color: #17a2b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drop-zone.hover {
  border-color: #138496;
  background-color: rgba(19, 132, 150, 0.2);
}

.drop-zone input[type=file] {
  display: none;
}

.drop-zone i {
  font-size: 2rem;
}

@keyframes subtle-pulse-once {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.06); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

/* Replace infinite pulsing with a single subtle highlight to avoid flashing.
   Apply by adding 'pulse' class; it will animate once and then be removed by JS if desired. */
.pulse {
  animation: subtle-pulse-once 650ms ease-in-out 1;
  will-change: transform, box-shadow;
}

/* Short-lived highlight (no infinite animation) for user menu when reports are ready */
.highlight-report {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.cadmos-offcanvas {
  --bs-offcanvas-width: clamp(360px, 50vw, 780px);
  width: clamp(360px, 50vw, 780px) !important;
  min-width: 360px;
  max-width: 780px;
}

.cadmos-offcanvas iframe {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

@media (max-width: 992px) {
  .cadmos-offcanvas {
    --bs-offcanvas-width: 100vw;
    width: 100vw !important;
    min-width: 0;
  }
}

.cadmos-form-stack .form-control,
.cadmos-form-stack .form-select,
.cadmos-form-stack textarea {
  border-radius: 0.5rem;
}

.cadmos-form-stack .btn-success,
.cadmos-form-stack .btn-danger {
  min-width: 160px;
}

.cadmos-form-stack .cadmos-remark-content {
  width: 96%;
  margin: 0 2%;
  display: block;
}
