/* L'attribut hidden doit toujours gagner, même combiné à une classe utilitaire posant
   un display explicite (ex: .row { display:flex } de Bootstrap) — sans ça les deux règles
   ont la même priorité d'origine/poids et celle déclarée en dernier dans le CSS l'emporte. */
[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: #e37a00;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
}

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

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

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

.pagination__btn {
  color: #8f8f8f;
}
.pagination__btn--active {
  color: black;
}

.gold {
  color: #e37a00;
}

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