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

:root {
  --cookie-banner-accent: #f04f23;
  --c-fg: #333;
  --z-drawer: 9999;
  --orange: #f04f23;
  --orange-dark: #d63f16;
  --orange-10: rgba(240, 79, 35, 0.1);
  --orange-20: rgba(240, 79, 35, 0.2);
  --vert: #3fcf40;
  --vert-dark: #279a28;
  --vert-10: rgba(63, 207, 64, 0.1);
  --noir: #1a1a1a;
  --gris-texte: #5a5a5a;
  --gris-bord: #e4e4e4;
  --gris-bg: #f2f2f2;
  --blanc: #ffffff;
  --ivoire: #faf8f5;
  --peche-clair: #fdf1ec;
  --r: 8px;
  --max: 1440px;
}

*,
*::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: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
h1 {
  font-size: 36px;
}
h2 {
  font-size: 20px;
}
p {
  font-weight: 400;
}

input,
select,
textarea {
  font-family: "Raleway", sans-serif;
  font-size: 14px;
}
/* Mobile : 16 px minimum, sinon Safari (iPhone) zoome la page au toucher d'un champ. */
@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  select.select,
  textarea {
    font-size: 16px;
  }
}

/* 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: 15px;
  font-weight: 600;
}
.btn-primary {
  background-color: var(--orange);
  border-color: var(--orange);
  height: auto;
  width: inherit;
  font-weight: 500;
  padding: 15px;
}
.btn-ghost {
  border-color: var(--orange);
}

/* Boutons blanc et contour blanc : appels à l'action sur fond orange. */
.btn.btn-blanc,
.btn.btn-contour {
  display: inline-block;
  margin: 4px;
  font-size: 14px;
  border-radius: var(--r);
  transition: 0.18s;
}
.btn.btn-blanc {
  margin-right: 10px;
  padding: 12px 28px;
  font-weight: 800;
  color: var(--orange-dark);
  background: #fff;
  transition: opacity 0.18s;
}
.btn.btn-contour {
  padding: 11px 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  &:hover {
    border-color: #fff;
  }
}

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

.breadcrumb {
  gap: inherit;
}

.breadcrumb__link,
.breadcrumb__sep,
.breadcrumb__current {
  color: #333;
}

.breadcrumb__current {
  color: #333;
  font-size: 14px;
  font-weight: 400;
}

/* Séparateur « / » : le ">" du gabarit est masqué et remplacé (fil d'Ariane de toutes les pages). */
.breadcrumb__sep {
  font-size: 0;
}
.breadcrumb__sep::after {
  content: "/";
  font-size: 13px;
  margin: 0 6px;
}

/* Pagination en texte : « Page 1 | 2 | 3 | 10 | 20 | 32 », centrée sous la liste. */
.pagination {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
}
.pagination__current {
  color: var(--noir);
}
.pagination .categ {
  color: var(--orange);
}

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

.badge-img {
  height: 23px;
  max-width: 50px;
}

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

.nav-checkout {
  margin-top: 20px;
}

/* Bandeau des quatre atouts (accueil, fiche produit, panier, coordonnées). */
.reassurance {
  padding: 15px;
  background-color: #f5fcfe;
}
