/* ===== Fonts ===== */
@font-face {
  font-family: "BananaChips";
  src: url("/assets/fonts/BananaChips-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-VariableFont_wdth_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-Italic-VariableFont_wdth_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
}

/* ===== Variables ===== */
:root {
  /* Couleurs */
  --purple: #2F156C;
  --light-purple: #5427BF;
  --orange: #FF8000;
  --yellow: #FFEE00;
  --blue-light: #35b6b4;
  --green: #26D276;
  --lightgrey: #D3D3D3;
  --black: #000000;
  --white: #FFFFFF;

  /* Couleurs de badge pour produit */
  --new: #0066ff; /* Nouveau */
  --recommend: #7c3aed; /* Recommandations */
  --on-sale: #ef4444; /* Prmotion */
  --bestseller: #ff4800; /* Meilleurs ventes */
  --low-stock: #eab308; /* Bentôt épuisé */

  /* Fonts */
  --font-head: "BananaChips", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Taille font header */
  --header-nav-size: 2rem;

  /* Opacity :hover header */
  --header-opacity-nav: .8;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--orange);
  color: var(--purple);
}

html {
  height: 100%;
  overflow-x: clip; /* empêche le scroll horizontal causé par les éléments décoratifs en absolute qui débordent (ex: .product-bg-shape-right) — clip ne crée pas de scroll container, sticky reste OK */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-body);
}

main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== Titres ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.75rem;
}

h3 {
  font-size: 2.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  line-height: 1;
}

/* Spinner inline pour boutons */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Mention TVA pour micro-entrepreneur en franchise en base (art. 293 B CGI) */
.recap-vat-notice {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: #6b7280;
  text-align: right;
  font-style: italic;
  line-height: 1.3;
}

/* Prix barre rouge oblique. Le trait passe AU-DESSUS du texte (::after en
   overlay) et le padding horizontal permet de voir le debut et la fin du trait
   au-dela du texte. Utilise dans le recap commande (promo/crypto) et sur les
   product cards (promo). */
.price-strike {
  position: relative;
  display: inline-block;
}

.price-strike::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -0.2em;
  right: -0.2em;
  height: 2px;
  background: #ff2020;
  border-radius: 999px;
  transform: translateY(-50%) rotate(-15deg);
  pointer-events: none;
}

/* Scroll lock (modales bloquantes) */
body.no-scroll {
  overflow: hidden;
}

/* Lien externe avec icone (ex: pages legales -> Accolade) */
.legal-extlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.legal-extlink svg {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  opacity: 0.75;
}