/* 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: #fd5e0f;
  --font-sans: Arial, sans-serif;
  --font-heading: Arial, sans-serif;
}

*,
*::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: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1f246b;
  background: #fff;
  display: flex;
  flex-direction: column;
}
input {
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
  font-size: 16px;
  height: 35px;
}

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

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

.title {
  font-size: 40px;
}

input,
select,
textarea {
  font-family: Arial, sans-serif;
  font-size: 14px;
  border-radius: 2.5px;
  color: #444;
  &:focus {
    border-color: #ced4da;
  }
}

/* Buttons — complète composent-generic.css : ce que ce site fait différemment
   des autres (poids/taille de police, hover, couleur de marque) */

.cart-item__remove:hover {
  box-shadow: 2px 4px 8px 0 #a0a0a0;
}
.btn-primary {
  font-size: 14px;
  border-radius: 2.5px;
  background-color: #fd5e0f;
  transition: 0.2s all ease;
  font-weight: 500;
  border-color: #fd5e0f;
  padding: 6px 12px;
  width: inherit;
  color: #fff;
}
.btn-ghost {
  border-color: #1f246b;
}

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

button {
  font-family: Arial, sans-serif;
}

.breadcrumb__current {
  color: #1f246b;
}

.breadcrumb {
  padding: 8px 15px;
  margin-bottom: 20px;
  list-style: none;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-top: 40px;
}

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

.cart-item__image {
  margin-right: 15px;
}
.cart-item__meta {
  color: #1a1a1a;
}

/* Pied de tableau du récapitulatif checkout (site-enabled/_shared/assets/cart-checkout.css) : fond clair par
   défaut, séparation par une bordure. */
.il-checkout-s16 {
  background: transparent;
  border-top: 1px solid #e5e7eb;
}

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

.page-title {
  border-bottom: 1px solid #eee;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  text-align: left;
}
