*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100%;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #545859;
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  font-weight: 500;
}
input {
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
  font-size: 16px;
  height: 35px;
}

[hidden] {
  display: none;
}

:root {
  --cookie-banner-accent: #99c221;
  --z-drawer: 9999;
}

h1 {
  font-size: 28px;
  color: #545859;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}

input,
select,
textarea {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

/* Button */
.btn {
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
}
.btn-primary {
  background-color: #99c221;
  border-color: #99c221;
  color: #1a1a1a;
  height: 35px;
  width: inherit;
  font-weight: 500;
  border-radius: 4px;
  &:hover {
    background-color: #e5e1e6;
    border-color: #e5e1e6;
    outline: none;
    color: #fff;
  }
}
.btn-ghost {
  border-color: #99c221;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r);
  flex-shrink: 0;
}
.btn-icon svg {
  width: 20px;
  height: 20px;
}

button {
  font-family: "Roboto", sans-serif;
}

/* Breadcrumb */
.breadcrumb {
  margin-top: 15px;
}
.breadcrumb__current {
  color: #99c221;
}

/* Pagination */
.pagination__btn--active {
  font-weight: bold;
}

.badge-img {
  height: 20px;
}

.page-title {
  font-weight: 600;
}

/* Garde anti double-soumission des formulaires POST.
   Voir assets/js/submit-guard.js et DOCUMENTATION_INTEGRATEURS.md §12.
   Restreint aux boutons pour ne pas cibler tout aria-busy de la page. */
button[aria-busy="true"],
input[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}

.form-spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: form-spin 0.6s linear infinite;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}
