/* 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: #003082;
}

hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eee;
}
hr:not([size]) {
  height: 1px;
}

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

.title {
  font-size: 40px;
}

input,
select,
textarea {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  border-radius: 2.5px;
  color: #444;
}

/* 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: 16px;
  font-weight: 600;
  border-radius: 4px;
  &:hover {
    box-shadow: 2px 4px 8px 0 #a0a0a0;
  }
}
.cart-item__remove:hover {
  box-shadow: 2px 4px 8px 0 #a0a0a0;
}
.btn-primary {
  height: 35px;
  border-radius: 2.5px;
  background-color: white;
  transition: 0.2s all ease;
  font-weight: 500;
  border-color: white;
  padding: 6px 12px;
  width: inherit;
  color: #003082;
}
.btn-ghost {
  border-color: #003082;
}

.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__current {
  color: white;
}

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

.cart-item__image {
  margin-right: 15px;
}
.cart-item__meta {
  color: white;
}

/* Le pied de tableau du récapitulatif checkout (site-enabled/_shared/assets/
   cart-checkout.css, .il-checkout-s16) a un fond clair par défaut — illisible
   sur le thème sombre de parakalo (body en #003082, texte blanc). Fond
   transparent + séparation par bordure, plutôt qu'une couleur en dur. */
.il-checkout-s16 {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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