/* stylelint-disable-next-line declaration-no-important -- nécessaire : .alert
   (plus bas dans ce fichier) et .row (Bootstrap) posent leur propre display
   à spécificité égale et gagneraient sinon dans la cascade. */
[hidden] {
  /* stylelint-disable-next-line declaration-no-important */
  display: none !important;
}

:root {
  /* Bandeau cookies (site-enabled/_shared/assets/cookie-banner.css) : couleur de marque du
     site, identique à .btn-primary plus bas. */
  --cookie-banner-accent: #4accd4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #4accd4;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-fg);
  box-shadow: 0 0 0 3px rgb(26 26 26/0.08);
}

/* Buttons — complète composent-generic.css : ce que ce site fait différemment
   des autres (poids/taille de police, border-radius, hover, couleur de marque) */
.btn {
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  &:hover {
    box-shadow: 2px 4px 8px 0 #a0a0a0;
  }
}
.btn-primary {
  background-color: #4accd4;
  border-color: #4accd4;
  height: 35px;
  width: inherit;
  font-weight: 500;
}
.btn-ghost {
  border-color: #4accd4;
}

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

input::placeholder {
  color: #999;
  font-size: 14px;
}
.breadcrumb__link--home .bi-house-fill {
  color: #ff803b;
}
.breadcrumb__current {
  color: #4accd4;
}

.pagination__btn--active {
  font-weight: bold;
}

.gold {
  color: #4accd4;
}

.bold-plus {
  font-weight: bold;
}

.sous-prix {
  font-size: 10px;
  color: #5f6372;
  font-style: italic;
}

/* 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);
  }
}
