/* Laboratoire ACM replica — base tokens, header, footer, typography */
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-var.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --acm-bg: #ffffff;
  --acm-bg-soft: #f7f5f4;
  --acm-bg-grey: #efefee;
  --acm-ink: #000000;
  --acm-muted: #6c6a6a;
  --acm-muted-2: #5b6770;
  --acm-line: #e3e3e3;
  --acm-blue: #0a83e6;
  --acm-radius: 4px;
  --acm-container: 1400px;
  --acm-gutter: 36px;
  --acm-header-h: 84px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Figtree', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--acm-ink);
  background: var(--acm-bg);
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 500; }
h2 { font-size: 29px; font-weight: 600; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }

.acm-container { max-width: var(--acm-container); margin: 0 auto; padding: 0 var(--acm-gutter); }
.acm-container-fluid { padding: 0 var(--acm-gutter); }

.acm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 2px; border: 1px solid var(--acm-ink);
  background: var(--acm-ink); color: #fff; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.acm-btn:hover { background: #262626; color: #fff; opacity: 1; }
.acm-btn--ghost { background: transparent; color: var(--acm-ink); }
.acm-btn--ghost:hover { background: var(--acm-ink); color: #fff; }
.acm-btn--block { width: 100%; }

.acm-pill {
  display: inline-flex; align-items: center; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--acm-line); background: #fff; font-size: 13px; cursor: pointer;
}
.acm-pill.is-active { background: var(--acm-ink); color: #fff; border-color: var(--acm-ink); }

/* ---------------- announcement ---------------- */
.acm-announce {
  background: var(--acm-ink); color: #fff; text-align: center;
  padding: 12px 20px; font-size: 14px; font-weight: 600; line-height: 1.45;
}
.acm-announce span { display: block; }

/* ---------------- header ---------------- */
/* Source labo-acm.com: header { position: sticky; top: 0; z-index: 40 }.
   z-index is raised above the overlay (110) so the search/menu toggles stay
   clickable while a panel is open - the panels themselves are offset below the
   header by site.js. */
.acm-header { position: sticky; top: 0; z-index: 130; background: #fff; border-bottom: 0; }
.acm-header-inner {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center;
  height: var(--acm-header-h); max-width: var(--acm-container); margin: 0 auto; padding: 0 var(--acm-gutter);
}
.acm-logo { display: block; width: 104px; line-height: 1; }
.acm-logo strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.acm-logo span { display: block; font-size: 6.5px; letter-spacing: .12em; font-weight: 600; margin-top: 1px; }

.acm-nav { display: flex; justify-content: center; gap: clamp(12px, 1.5vw, 28px); min-width: 0; }
.acm-nav > li { list-style: none; position: static; }
.acm-nav a, .acm-nav button {
  font: inherit; font-size: clamp(11px, .85vw, 13px); font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--acm-ink); white-space: nowrap;
}
.acm-nav a:hover, .acm-nav button:hover { opacity: .65; }

.acm-tools { display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-size: 12px; }
.acm-tools button, .acm-tools a { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.acm-tools svg { width: 19px; height: 19px; }
.acm-lang { font-size: 12px; letter-spacing: .04em; font-weight: 500; }
.acm-cart-link { position: relative; }
/* Header badge only: the same class is reused inline by the drawer heading
   ("Mon panier (N)"), where the absolute pill rendered nothing visible. */
.acm-cart-link .acm-cart-count {
  position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--acm-ink); color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px;
}
.acm-panel-head .acm-cart-count { position: static; background: none; color: inherit; font: inherit; padding: 0; }

/* mega menu */
.acm-mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-top: 1px solid var(--acm-line); box-shadow: 0 18px 30px rgba(0,0,0,.09);
  display: none; padding: 34px 0 40px; z-index: 60;
}
.acm-mega.is-open { display: block; }
.acm-mega-inner { max-width: var(--acm-container); margin: 0 auto; padding: 0 var(--acm-gutter); display: grid; gap: 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acm-mega-col h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.acm-mega-col a { display: block; font-size: 14px; padding: 5px 0; color: #1a1a1a; }
.acm-mega-col a.acm-mega-head { font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.acm-mega-card { display: flex; flex-direction: column; gap: 12px; }
.acm-mega-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.acm-mega-card .acm-btn { align-self: flex-start; }
.acm-mega-cta { margin-top: 18px; }

/* mobile menu + cart drawer + search */
.acm-panel {
  position: fixed; inset: 0 0 0 auto; width: 420px; max-width: 92vw; background: #fff; z-index: 120;
  transform: translateX(102%); transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: -12px 0 30px rgba(0,0,0,.12);
}
.acm-panel.is-open { transform: translateX(0); }
.acm-panel--left { inset: 0 auto 0 0; transform: translateX(-102%); width: 390px; }
.acm-panel--left.is-open { transform: translateX(0); }
.acm-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--acm-line); }
.acm-panel-head h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.acm-panel-body { padding: 18px 22px; overflow: auto; flex: 1; }
.acm-panel-foot { padding: 18px 22px; border-top: 1px solid var(--acm-line); }
.acm-close { background: none; border: 0; font-size: 22px; cursor: pointer; line-height: 1; }
.acm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 110; }
.acm-overlay.is-open { opacity: 1; pointer-events: auto; }

.acm-mobile-nav { list-style: none; margin: 0; padding: 0; }
.acm-mobile-nav > li { border-bottom: 1px solid var(--acm-line); }
.acm-mobile-nav > li > a, .acm-mobile-nav > li > button {
  display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 15px 0;
  font: inherit; font-size: 15px; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left;
}
.acm-mobile-sub { display: none; padding: 0 0 14px 12px; }
.acm-mobile-sub.is-open { display: block; }
.acm-mobile-sub a { display: block; padding: 7px 0; font-size: 14px; color: #2a2a2a; }

/* cart drawer items */
.acm-drawer-item { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--acm-line); }
.acm-drawer-item img { width: 74px; height: 74px; object-fit: cover; background: var(--acm-bg-soft); }
.acm-drawer-item h4 { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.acm-drawer-qty { display: inline-flex; align-items: center; border: 1px solid var(--acm-line); }
.acm-drawer-qty button { width: 26px; height: 26px; background: #fff; border: 0; cursor: pointer; font-size: 14px; }
.acm-drawer-qty span { min-width: 26px; text-align: center; font-size: 12px; }

/* ---------------- footer ---------------- */
.acm-pillars { background: var(--acm-bg-soft); border-top: 1px solid var(--acm-line); }
.acm-pillars-inner { max-width: var(--acm-container); margin: 0 auto; padding: 26px var(--acm-gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; font-size: 12.5px; line-height: 1.6; }
.acm-pillars-inner b { display: block; font-weight: 600; }
.acm-pillars-inner a { text-decoration: underline; }

.acm-footer { background: var(--acm-ink); color: #fff; }
.acm-footer-inner { max-width: var(--acm-container); margin: 0 auto; padding: 48px var(--acm-gutter) 30px; display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 30px; }
.acm-footer h4 { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.acm-footer ul { list-style: none; margin: 0 0 26px; padding: 0; }
.acm-footer li { margin-bottom: 8px; }
.acm-footer a { color: #fff; font-size: 13px; }
.acm-social { display: flex; gap: 12px; margin-top: 8px; }
.acm-social a { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.35); display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; }
.acm-social svg { width: 14px; height: 14px; fill: #fff; }
.acm-newsletter input[type=email] { width: 100%; background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 12px 14px; font: inherit; font-size: 13px; }
.acm-newsletter button { margin-top: 10px; background: #fff; color: #000; border: 0; padding: 11px 26px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.acm-newsletter p { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 12px; line-height: 1.5; }

.acm-recycle { border-top: 1px solid rgba(255,255,255,.18); padding: 22px 0; }
.acm-recycle-inner { max-width: var(--acm-container); margin: 0 auto; padding: 0 var(--acm-gutter); display: flex; gap: 28px; align-items: center; font-size: 11.5px; color: rgba(255,255,255,.8); flex-wrap: wrap; }
.acm-bottom { border-top: 1px solid rgba(255,255,255,.18); }
.acm-bottom-inner { max-width: var(--acm-container); margin: 0 auto; padding: 16px var(--acm-gutter); display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: rgba(255,255,255,.8); }

/* notices */
.acm-main { min-height: 40vh; }
.acm-flash { max-width: var(--acm-container); margin: 16px auto 0; padding: 0 var(--acm-gutter); }

@media (max-width: 1220px) {
  .acm-header-inner { grid-template-columns: 1fr auto; height: 66px; }
  .acm-nav { display: none; }
  .acm-mega { display: none !important; }
  /* keep the header above the overlay/panels so the burger can toggle them closed;
     site.js offsets the slide-in panels below the sticky header. */
  .acm-header { z-index: 130; }
  .acm-footer-inner { grid-template-columns: 1fr 1fr; }
  .acm-pillars-inner { grid-template-columns: 1fr; gap: 16px; text-align: left; }
}

@media (max-width: 640px) {
  :root { --acm-gutter: 18px; }
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
  .acm-footer-inner { grid-template-columns: 1fr; }
  .acm-mega { display: none !important; }
}


/* cart drawer must paint above the sticky header (z 130) so its close button and
   first line stay clickable */
.acm-panel--cart { z-index: 140; }
