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;
}

/* Development-only 2FA bypass (DevAuth:SkipTwoFactor) */
.dev-auth-banner {
  padding: 0.4rem 1rem;
  background: #b91c1c;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Lot 13d: title of the page and « À quoi sert cette page ? » (rendered by the layout) */
@media (min-width: 768px) {
  .page-heading-narrow {
    max-width: 50%;
    margin: 0 auto;
  }
}

.page-help {
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid #0d6efd;
  background: #f1f5fb;
  border-radius: 0.25rem;
}

.page-help summary {
  font-weight: 600;
  cursor: pointer;
}

.page-help p {
  margin: 0.25rem 0 0;
}

/* Lot 13d: help of a field (« En savoir plus », no JavaScript) */
.field-help {
  margin-top: 0.15rem;
  font-size: 0.875em;
  color: #495057;
}

.field-help summary {
  cursor: pointer;
  color: #0d6efd;
}

.field-help p,
.field-help ul {
  margin: 0.25rem 0 0;
}

/* Lot 13d: Help page */
.help-guide {
  scroll-margin-top: 1rem;
}

/* Lot 13d: manual key of the two-factor setup, easy to copy by hand */
.authenticator-key {
  font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #212529;
}

/* Lot 13d: separator between day-to-day and administration in the menu (no JavaScript) */
.nav-separator {
  border-left: 1px solid #ced4da;
  margin: 0.5rem 0.5rem;
}

@media (max-width: 575.98px) {
  .nav-separator {
    border-left: 0;
    border-top: 1px solid #ced4da;
    margin: 0.25rem 0;
  }
}

/* Lot 13d: « Mise en route » of the dashboard */
.setup-step.done {
  color: #198754;
}

.setup-advice {
  color: #495057;
}

/* Lot 14: end of service (calendar, printable closures) */
.service-calendar td {
  width: 14.28%;
  vertical-align: top;
  height: 4.5rem;
}

.service-calendar .service-out {
  background: #f8f9fa;
}

.service-calendar .service-today {
  outline: 2px solid #0d6efd;
  outline-offset: -2px;
}

.service-month::first-letter {
  text-transform: uppercase;
}

@media print {
  header,
  footer,
  .page-help,
  .breadcrumb,
  .no-print {
    display: none !important;
  }

  .closure-sheet table {
    font-size: 11pt;
  }
}
