html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* NV+Claude 2026-07-20 — Le popup SweetAlert2 (ex: "Pas de package") est dimensionné en
   em relatif à html { font-size }, qui vaut 14px sur mobile : titre, texte et boutons
   apparaissent donc trop petits au toucher. On agrandit la police du popup sur mobile,
   ce qui fait grossir proportionnellement tout son contenu (boutons inclus). */
@media (max-width: 767.98px) {
  div:where(.swal2-popup) {
    font-size: 1.2rem;
  }

  div:where(.swal2-actions) {
    width: 100%;
    gap: .5em;
  }

  button:where(.swal2-styled) {
    flex: 1 1 auto;
    min-width: 140px;
    min-height: 60px;
    padding: 1em 1.2em;
    font-size: 1.6em;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  padding-bottom:60px;
  /*margin-bottom: 60px;*/
}

.form-switch.withtext .form-check-input::before {
    font-weight: bold;
    position: absolute;
    top: 0.75rem;
}
.form-switch.withtext .form-check-input:active::before, .form-switch.withtext .form-check-input:active::before {
    font-weight: bold;
    top: 0.5rem;
}

.form-switch.withtext .form-check-input:checked::before {
    content: 'OUI';
    color: white;
    left: 1rem;
}


.form-switch.withtext .form-check-input:not(:checked)::before {
    content: 'NON';
    text-align: right;
    right: 1rem;
    color: --bs-primary;
    color: lightgrey;
}

.loading-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-modal {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-align: center;
    min-width: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
