/* stylelint-disable declaration-no-important -- nécessaire : plusieurs
   composants (ex. .alert plus bas dans ce fichier, .row de Bootstrap)
   posent leur propre display à spécificité égale et gagneraient sinon dans
   la cascade — constaté sur data-cart-moq-error (.alert), qui restait
   visible malgré l'attribut hidden. Une spécificité plus haute ne suffit
   pas à elle seule : .d-flex/.d-none de Bootstrap sont eux-mêmes en
   !important, seul un !important sur [hidden] les bat de façon fiable. */
[hidden] {
  display: none !important;
}
/* stylelint-enable declaration-no-important */

:root {
  /* Bandeau cookies (site-enabled/_shared/assets/cookie-banner.css) : couleur de marque du
     site, identique à .btn-primary plus bas. */
  --cookie-banner-accent: #00514E;
  /* Le fallback partagé (composent-generic.css) fixe --z-drawer à 60, sous le bandeau cookies
     (z-index: 9999, _shared/assets/cookie-banner.css) : le tiroir mobile s'ouvrait donc caché
     derrière le bandeau. Doit rester au-dessus. */
  --z-drawer: 9999;
}

h1 {
  font-size: 32px;
  color: #00514E;
}
h2 {
  font-size: 20px;
}

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

/* 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: 18px;
  font-weight: 600;
  border-radius: 4px;
  &:hover {
    box-shadow: 2px 4px 8px 0 #a0a0a0;
  }
}
.btn-primary {
  background-color: #00514E;
  border-color: #00514E;
  height: 35px;
  width: inherit;
  font-weight: 500;
  border-radius: 4px;
}
.btn-ghost {
  border-color: #00514E;
}

.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: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.breadcrumb__current {
  color: #00514E;
}

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