/* ============================================================
   impressions.be — base.css  v1.0
   Reset léger + typographie + motifs signature
   (repère de calage, traits de coupe, échantillon, boutons, prix)
   Dépend de : fonts/fonts.css, css/impressions-tokens.css
   ============================================================ */

/* ---- Reset léger ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }

/* ---- Typographie ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-strong);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

/* Eyebrow — mono, uppercase, lettre-espacé */
.ip-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Repère de calage — cercle plein, CSS pur, aucun asset ---- */
.ip-repere {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--ip-bleu);
}

/* ---- Traits de coupe aux 4 coins — CSS pur ---- */
.ip-coupe { position: relative; }
.ip-coupe .c {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 1;
  pointer-events: none;
}
.ip-coupe .c::before,
.ip-coupe .c::after {
  content: '';
  position: absolute;
  background: var(--ip-graphite);
  opacity: 0.45;
}
.ip-coupe .c::before { width: 1px; height: 100%; top: 0; }
.ip-coupe .c::after  { height: 1px; width: 100%; left: 0; }
.ip-coupe .c.tl { top: 0;    left: 0;  }
.ip-coupe .c.tr { top: 0;    right: 0; }
.ip-coupe .c.tr::before { right: 0; left: auto; }
.ip-coupe .c.bl { bottom: 0; left: 0;  }
.ip-coupe .c.bl::after  { bottom: 0; top: auto; }
.ip-coupe .c.br { bottom: 0; right: 0; }
.ip-coupe .c.br::before { right: 0; left: auto; }
.ip-coupe .c.br::after  { bottom: 0; top: auto; right: 0; }

/* ---- Échantillon visuel de marque (placeholder en attendant les photos) ---- */
.ip-echantillon {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-filigrane);
}
.ip-echantillon--encre { background: var(--ip-encre); }
.ip-echantillon--kraft { background: #D9CDB4; }
.ip-echantillon__bande {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
}
.ip-echantillon__cmyk {
  position: absolute;
  left: 8px; right: 0; bottom: 0;
  height: 8px;
  display: flex;
}
.ip-echantillon__cmyk span:nth-child(1) { flex: 1; background: var(--ip-cyan); }
.ip-echantillon__cmyk span:nth-child(2) { flex: 1; background: var(--ip-magenta); }
.ip-echantillon__cmyk span:nth-child(3) { flex: 1; background: var(--ip-jaune); }
.ip-echantillon__cmyk span:nth-child(4) { flex: 1; background: var(--ip-encre); }
.ip-echantillon__label {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--ip-encre);
  letter-spacing: var(--ls-display);
  text-align: center;
  padding: 0 18px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}
.ip-echantillon--encre .ip-echantillon__label { color: var(--ip-papier); }

/* ---- Boutons ---- */
.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 11px 20px;
  border-radius: var(--radius-1);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    background   var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color        var(--dur-fast) var(--ease);
  min-height: var(--tap-min);
  white-space: nowrap;
}
.ip-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.ip-btn--primary { background: var(--ip-bleu); color: #fff; border-color: var(--ip-bleu); }
.ip-btn--primary:hover  { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.ip-btn--primary:active { background: var(--accent-press); border-color: var(--accent-press); }

.ip-btn--secondary { background: transparent; color: var(--ip-encre); border-color: var(--ip-encre); }
.ip-btn--secondary:hover  { background: var(--ip-encre); color: var(--ip-papier); }
.ip-btn--secondary:active { opacity: 0.85; }

.ip-btn--ghost { background: transparent; color: var(--ip-encre); border-color: transparent; padding: 11px 12px; }
.ip-btn--ghost:hover { background: var(--ip-filigrane); }

.ip-btn--lg { font-size: var(--fs-body); padding: 14px 28px; }

/* ---- Prix ---- */
.ip-price {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-mono);
  color: var(--text-strong);
}
.ip-price--from::before {
  content: 'à partir de ';
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}
.ip-price--htva::after {
  content: ' HTVA';
  font-weight: var(--fw-regular);
  color: var(--text-muted);
  font-size: 0.85em;
}
.ip-price--sm { font-size: var(--fs-xs); }

/* ---- Accessibilité ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
  }
}

/* ---- Défilement doux (respecte prefers-reduced-motion via la media query existante) ---- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
