html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Styles pour centrer la carte de connexion verticalement */
.auth-fullscreen {
  min-height: 100vh; /* remplir la hauteur disponible */
  display: flex;
  align-items: center; /* centrer verticalement */
  justify-content: center; /* centrer horizontalement */
  background-color: #f8fafc;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

/* Normalize des champs dans la carte de connexion */
.auth-card .form-control {
  box-sizing: border-box;
  width: 100%;
  padding: .5rem .75rem;
}

.auth-card label {
  display: block;
  margin-bottom: .25rem;
  font-weight: 500;
}

.auth-card .form-check-input {
  margin-top: .25rem;
}

/* Login improvements */
.login-card {
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.login-card .card-body {
  padding: 1.5rem;
}

.logo {
  max-height: 70px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Assure un rendu minimaliste propre pour les cartes de contenu */
main.shadow-sm {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Badges d'état soft */
.bg-success-soft {
    background-color: #e6fcf5 !important;
}

.text-success {
    color: #0ca678 !important;
}

.bg-danger-soft {
    background-color: #fff5f5 !important;
}

.text-danger {
    color: #e03131 !important;
}

/* Formatage des chiffres décimaux propres */
.table td {
    font-variant-numeric: tabular-nums;
}