/* BrigitFood — homepage styles (v2)
   References:
   · awesome-design-md / Shopify DESIGN.md — thin-weight display type, pill-only
     buttons, night + cream canvas tracks, stacked tiny shadows on light cards.
   · Dribbble "Ecommerce Website Design for Crockery & Kitchenware" (Musemind) —
     inset rounded photo hero with in-card nav, accent-coloured headline words,
     ✧ section titles, product-card rail with badges and "+ Cart" pills,
     full-width photo statement band, "Explore" category cards, value tiles,
     closing statement with inline image pills.
   Brand: BrigitFood green / leaf / gold from the logo. */

:root {
  /* Night track */
  --night: #0a120d;
  --night-elev: #111c15;
  --surface-dark: #1a2a20;
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --link-mint: #99b3ad;
  --gold: #c9a45c;               /* rare premium touches only */
  --fresh: #6bb244;              /* brand accent (logo leaves, CTAs on dark) — text on it = ink */
  --fresh-hover: #7dc257;

  /* Light track */
  --page: #fbfbf5;               /* canvas-cream */
  --canvas: #ffffff;
  --card: #f6f5ef;               /* product card body */
  --tile: #eef1e6;               /* value tiles */
  --ink: #0c1a11;
  --shade-30: #d4d6d0;
  --shade-50: #676f69;
  --shade-60: #4c544f;
  --hairline: #e3e4dd;
  --aloe: #d6ecc5;               /* fresh tint — featured surfaces */
  --pistachio: #e8f3dd;
  --leaf: #3f7a25;               /* fresh green darkened for text on light (≥ 4.5:1) */

  --primary: #163a1e;
  --primary-pressed: #1f4d29;

  /* One typeface only: SF Pro Display, via the system stack (Apple's licence forbids
     self-hosting the files). No webfonts are loaded; non-Apple devices use their own
     system UI font as a fallback. */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-md: 8px; --r-lg: 12px; --r-xl: 20px; --pill: 9999px;
  /* shadows: light, tinted with the brand leaf green */
  --shadow-rgb: 63, 122, 37;
  --e3: 0 1px 2px rgba(var(--shadow-rgb), 0.06), 0 6px 14px -6px rgba(var(--shadow-rgb), 0.12), 0 0 0 1px rgba(var(--shadow-rgb), 0.07);
  --e4: 0 18px 36px -16px rgba(var(--shadow-rgb), 0.24), 0 0 0 1px rgba(var(--shadow-rgb), 0.06);
  --e-float: 0 20px 44px -18px rgba(var(--shadow-rgb), 0.3), 0 0 0 1px rgba(var(--shadow-rgb), 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
  --inset: clamp(8px, 1vw, 14px);   /* inset of hero / band / footer cards */
  --container: 1320px;
  --gutter: clamp(16px, 3.6vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }   /* nav / anchor links glide to their section */
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; font-weight: 420; line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
em { font-style: normal; font-weight: 500; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--fresh); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--pill); text-decoration: none; font-weight: 550; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.display { font-weight: 330; line-height: 1.04; letter-spacing: -0.005em; }
.display em { color: inherit; }
.lead { font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.6; color: var(--shade-60); max-width: 56ch; }
.on-dark .lead { color: var(--on-dark-2); }

/* Dribbble section title: grey line + dark line with ✧ and an accent-coloured phrase */
.title2 { display: flex; flex-direction: column; font-size: clamp(28px, 3.3vw, 46px); font-weight: 340; line-height: 1.12; letter-spacing: -0.01em; }
.title2__pre { color: var(--shade-50); }
.title2__main { color: var(--ink); display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.28em; }
.title2 .leaf-mark { height: 0.74em; width: auto; aspect-ratio: 207 / 293; align-self: center; color: var(--fresh); flex: none; transform: translateY(-0.04em); }
.on-dark .title2__pre { color: var(--on-dark-2); }
.on-dark .title2__main { color: #fff; }
.on-dark .title2 .leaf-mark { color: var(--fresh); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 3.6vw, 48px); }

/* ---------- Buttons (pill only) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--pill);
  font-size: 16px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  border: 1.5px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-pressed); border-color: var(--primary-pressed); }
.btn--fresh { background: var(--fresh); color: #fff; border-color: var(--fresh); font-weight: 600; }
.btn--fresh:hover { background: var(--fresh-hover); border-color: var(--fresh-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.btn--outline-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link:hover svg { transform: translateX(3px); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer; text-decoration: none; transition: background-color var(--dur); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.28); }
.icon-btn svg { width: 19px; height: 19px; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--pill); background: var(--fresh); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.badge[hidden] { display: none; }

/* ---------- Header (inside the hero card, floats when scrolled) ---------- */
/* Always-fixed header: fully transparent over the top of the hero, turns solid
   brand deep green as soon as the page scrolls. */
.header {
  position: fixed; z-index: 50; top: calc(var(--inset) + 10px); left: calc(var(--inset) + 10px); right: calc(var(--inset) + 10px);
  color: #fff; border-radius: 18px; isolation: isolate;
  background-color: transparent; border: 1px solid transparent; box-shadow: none;
  transition: background-color 350ms var(--ease), border-color 350ms var(--ease), box-shadow 350ms var(--ease);
}
/* gloss layer: vertical sheen + soft diagonal highlight, only visible on the glass state */

.header.is-solid {
  background-color: var(--primary);             /* solid brand deep green, no glass */
  border-color: var(--primary);
  box-shadow: 0 12px 28px -14px rgba(var(--shadow-rgb), 0.35);
}

.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 64px; padding-inline: clamp(8px, 1.6vw, 18px); }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; white-space: nowrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--pill); text-decoration: none; font-size: 15px; font-weight: 450; transition: background-color var(--dur); }
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; justify-self: center; color: #fff; --logo-leaf: var(--fresh); }
.brand__logo { display: block; height: 36px; width: auto; aspect-ratio: 4421 / 1038; }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--shade-50); pointer-events: none; }
.search input { width: clamp(180px, 17vw, 260px); min-height: 44px; padding: 10px 16px 10px 40px; border-radius: var(--pill); border: 0; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 15px; }
.search input::placeholder { color: var(--shade-50); }
.search input:focus { outline: 2px solid var(--fresh); outline-offset: 2px; }
.lang { display: inline-flex; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; }
.lang a, .lang span { display: inline-grid; place-items: center; min-width: 34px; min-height: 44px; border-radius: var(--pill); text-decoration: none; }
.lang a { color: rgba(255, 255, 255, 0.6); }
.lang a:hover { color: #fff; }
.menu-btn { display: none; }
.search-hint { position: absolute; top: calc(100% + 8px); right: 0; width: max(100%, 280px); background: var(--canvas); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--e4); padding: 14px 16px; font-size: 14.5px; }
.search-hint[hidden] { display: none; }
.search-hint a { font-weight: 550; }
@media (max-width: 1259px) {   /* 6 nav items: below 1260px the logo can no longer stay centred, so use the menu button */
  .header__inner { grid-template-columns: auto 1fr; }
  .nav, .header .search, .header .lang { display: none; }
  .brand { justify-self: start; grid-column: 1; grid-row: 1; }
  .header__right { grid-column: 2; }
  .menu-btn { display: inline-grid; }
}

/* Cart drawer — slides in from the right (same look as the frites demo page's drawer) */
.cd { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s linear 320ms; }
.cd.is-open { visibility: visible; transition: none; }
.cd__scrim { position: absolute; inset: 0; background: rgba(10, 18, 13, 0.5); opacity: 0; transition: opacity 240ms var(--ease); }
.cd.is-open .cd__scrim { opacity: 1; }
.cd__panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100vw - 20px)); display: flex; flex-direction: column; padding: 18px 20px 20px; border-radius: 24px; background: var(--canvas); color: var(--ink); box-shadow: var(--e-float); transform: translateX(110%); transition: transform 320ms var(--ease); }
.cd.is-open .cd__panel { transform: none; }
.cd__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd__top h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.cd__count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--pill); background: var(--fresh); color: var(--ink); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.cd__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--page); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur); }
.cd__close:hover { background: var(--tile); }
.cd__close svg { width: 20px; height: 20px; }
.cd__ship { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--page); font-size: 13.5px; color: var(--shade-60); }
.cd__ship[hidden] { display: none; }
.cd__ship .is-ok { color: var(--leaf); font-weight: 550; }
.bar { height: 6px; margin-top: 8px; border-radius: var(--pill); background: var(--tile); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--fresh); border-radius: inherit; transition: width 400ms var(--ease); }
.btn.is-disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* Quantity stepper (cards, cart drawer, product page, checkout) */
.qty { display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; border: 1px solid var(--shade-30); border-radius: var(--pill); background: var(--canvas); }
.qty[hidden] { display: none; }
.qty button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color var(--dur); }
.qty button:hover { background: var(--tile); }
.qty button svg { width: 16px; height: 16px; }
.qty span, .qty input { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty input { width: 56px; border: 0; background: transparent; font-size: 17px; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--ink); }
.qty--xs button { width: 30px; height: 30px; }
.qty--xs button svg { width: 14px; height: 14px; }
.qty--xs span { min-width: 22px; font-size: 14px; }
.qty--sm { min-height: 40px; }
.qty--lg { min-height: 52px; padding-inline: 4px; }
.qty--lg button { width: 44px; height: 44px; }
.cd__lines { list-style: none; margin: 14px 0 0; padding: 0 2px 0 0; display: grid; gap: 10px; flex: 1; align-content: start; overflow-y: auto; overscroll-behavior: contain; }
.cd__lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px; border-radius: 16px; background: var(--page); }
.cd__lines img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--pistachio); }
.cdl { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.cdl__name { font-size: 14.5px; font-weight: 500; line-height: 1.3; text-decoration: none; }
a.cdl__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cdl__sub, .cdl__unit { font-size: 12.5px; color: var(--shade-50); }
.cdl .qty { margin-top: 6px; }
.cdl__end { display: grid; justify-items: end; gap: 6px; }
.cdl__end b { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cdl__rm { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--shade-50); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur), color var(--dur); }
.cdl__rm:hover, .cdl__rm:focus-visible { background: #fdecea; color: #b3261e; }
.cdl__rm svg { width: 16px; height: 16px; }
.cd__empty { display: grid; justify-items: start; gap: 14px; margin-top: 18px; padding: 18px; border-radius: 16px; border: 1px dashed var(--shade-30); color: var(--shade-60); }
.cd__empty[hidden], .cd__foot[hidden] { display: none; }
.cd__foot { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.cd__sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cd__sub b { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cd__note { font-size: 13px; color: var(--shade-60); background: var(--tile); border-radius: 12px; padding: 10px 12px; }
.cd__foot .btn { width: 100%; min-height: 52px; }
.cd__continue { justify-self: center; background: none; border: 0; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .cd__panel, .cd__scrim, .cd { transition: none; } }
@media (max-width: 420px) { .cd__lines li { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; } .cd__lines img { width: 52px; height: 52px; } }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 220ms var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(440px, 100vw); background: var(--night); color: #fff; padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 22px; transform: translateX(100%); transition: transform 260ms var(--ease); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.drawer .search input { width: 100%; }
.drawer nav:not(.lang) ul { list-style: none; margin: 0; padding: 0; }
.drawer nav:not(.lang) a { display: flex; justify-content: space-between; align-items: center; min-height: 62px; border-bottom: 1px solid var(--hairline-dark); text-decoration: none; font-size: 28px; font-weight: 330; }
.drawer nav:not(.lang) a svg { width: 22px; height: 22px; color: var(--gold); }
.drawer .btn { width: 100%; }
.drawer .lang { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero { padding: var(--inset) var(--inset) 0; }
.hero__card { position: relative; isolation: isolate; border-radius: var(--r-xl); overflow: hidden; min-height: max(620px, min(94svh, 900px)); color: #fff; display: flex; align-items: flex-end; background: var(--night); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture, .hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; }
.hero__media img, .hero__video { height: 115%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
/* B-roll fades in over the poster once it is actually playing */
.hero__video { opacity: 0; transition: opacity 700ms var(--ease); }
.hero__video.is-playing { opacity: 1; }
.video-toggle { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(10, 18, 13, 0.35); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color var(--dur); }
.video-toggle::after { content: ""; position: absolute; inset: -4px; } /* 48px hit area */
.video-toggle:hover { background: rgba(10, 18, 13, 0.6); }
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.video-toggle .i-play, .video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 16, 11, 0.58); }
.hero__content { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding: 140px clamp(20px, 4vw, 56px) clamp(28px, 4vw, 64px); }
.hero h1 .eyebrow { margin-bottom: clamp(18px, 2vw, 28px); color: rgba(255, 255, 255, 0.86); }
/* "L'approvisionnement" is ~8.7em wide in SF Pro Display 330 — size the line to the column so the SplitText mask never clips it */
.hero h1 .display { display: block; font-size: clamp(40px, calc((100vw - 400px) / 8.9), 92px); max-width: 11em; }
.hero h1 em { color: var(--fresh); }
.hero .lead { margin-top: clamp(18px, 2vw, 26px); color: rgba(255, 255, 255, 0.82); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.6vw, 36px); }
.glass { width: 232px; padding: 18px; border-radius: 14px; background: rgba(22, 42, 30, 0.42); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.glass__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; line-height: 1.3; font-weight: 450; }
.glass__top svg { width: 26px; height: 26px; color: var(--fresh); flex: none; }
.glass__big { margin-top: 36px; font-size: 44px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; color: var(--fresh); }
.glass__small { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; padding-top: 120px; }
  .glass { display: none; }
  .hero h1 .display { font-size: clamp(30px, calc((100vw - 90px) / 8.9), 80px); }
  .hero__media::after { background: rgba(8, 16, 11, 0.6); }
}

/* ---------- Value tiles (own section, separated from the hero) ---------- */
.values-strip { padding-top: clamp(40px, 7vw, 72px); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 18px 24px; background: var(--tile); border-radius: 16px; }
.tile:nth-child(even) { border-radius: var(--pill); }
.tile__icon { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary); flex: none; }
.tile__icon svg { width: 22px; height: 22px; }
.tile p { font-size: 17px; line-height: 1.25; font-weight: 450; }
.tile em { display: block; font-size: 17px; font-weight: 600; color: var(--primary); }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 84px; } }

/* ---------- Sections ---------- */
/* extra breathing room BETWEEN sections (margin, so each section's own box still fits one screen) */
main > section + section, main + .footer-wrap { margin-top: 24px; }
@media (min-width: 1024px) { main > section + section, main + .footer-wrap { margin-top: clamp(32px, 7vh, 88px); } }
/* consecutive padded sections don't stack their padding → every gap is the same size */
.section + .section { padding-top: 0; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--flush-top { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- Rail (scroll-snap carousel) ---------- */
.rail-wrap { position: relative; }
.rail { --cols: 4; --gap: 16px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; list-style: none;
  /* room for the card hover lift + shadow — a scroll container clips overflow on both axes */
  padding: 12px 14px 32px; margin: -12px -14px -16px; scroll-padding-inline: 14px; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; min-width: 0; }
.rail-btn { position: absolute; top: var(--btn-top, 40%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 2px 10px rgba(var(--shadow-rgb), 0.11); display: grid; place-items: center; cursor: pointer; transition: opacity var(--dur), transform var(--dur); }
.rail-btn svg { width: 19px; height: 19px; }
.rail-btn:hover { transform: scale(1.06); }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
.rail-btn--prev { left: 10px; }
.rail-btn--next { right: 10px; }
@media (prefers-reduced-motion: reduce) { .rail { scroll-behavior: auto; } }
@media (max-width: 1100px) { .rail { --cols: 2.4; } }
@media (max-width: 640px) { .rail { --cols: 1.2; --gap: 12px; } .rail-btn { display: none; } }

/* ---------- Range cards (product-card pattern) ---------- */
.pcard { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px rgba(var(--shadow-rgb), 0.03); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease); }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(var(--shadow-rgb), 0.04), 0 2px 4px rgba(var(--shadow-rgb), 0.03), 0 12px 24px -12px rgba(var(--shadow-rgb), 0.14); }
.pcard.is-hit { box-shadow: 0 0 0 2px var(--leaf), 0 12px 24px -12px rgba(var(--shadow-rgb), 0.14); }
@media (hover: none) { .pcard:hover { transform: none; } }
.pcard__media { position: relative; aspect-ratio: 4 / 4.3; overflow: hidden; background: #dcdcd3; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__badge { position: absolute; top: 12px; left: 12px; padding: 3px 12px 4px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, 0.85); color: #fff; background: rgba(10, 18, 13, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 14.5px; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px; flex: 1; }
.pcard__body h3 { font-size: 19px; font-weight: 450; line-height: 1.3; }
.pcard__items { font-size: 14px; color: var(--shade-50); line-height: 1.45; }
.pcard__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard__price { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.add-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: var(--pill); border: 0; background: var(--primary); color: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color var(--dur); }
.add-btn:hover { background: var(--primary-pressed); }
.add-btn svg { width: 16px; height: 16px; }
.add-btn .when-on { display: none; }
.add-btn[aria-pressed="true"] { background: var(--aloe); color: var(--ink); }
.add-btn[aria-pressed="true"] .when-on { display: inline-flex; align-items: center; gap: 6px; }
.add-btn[aria-pressed="true"] .when-off { display: none; }
.add-btn .when-off { display: inline-flex; align-items: center; gap: 6px; }
/* Range card button → the range's own page; its ::after makes the whole card clickable */
.pcard__cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 18px; border-radius: var(--pill); background: var(--primary); color: #fff; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background-color var(--dur); }
.pcard__cta::after { content: ""; position: absolute; inset: 0; }
.pcard__cta svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.pcard:hover .pcard__cta { background: var(--primary-pressed); }
.pcard:hover .pcard__cta svg { transform: translateX(3px); }

/* ---------- Product cards (homepage "Produits phares" rail + catalogue grid) ----------
   Until BrigitFood sends packshots, the media is a flat typographic tile (brand + format). */
.rail--prods { --cols: 5; }
.prod { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--canvas); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px rgba(var(--shadow-rgb), 0.08); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease); }
.prod:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(var(--shadow-rgb), 0.06), 0 2px 4px rgba(var(--shadow-rgb), 0.03), 0 12px 24px -12px rgba(var(--shadow-rgb), 0.16); }
@media (hover: none) { .prod:hover { transform: none; } }
.prod__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--pistachio); }
.prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.prod:hover .prod__media img { transform: scale(1.04); }
.prod__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px 34px; text-align: center; color: var(--primary); }
.prod__ph-brand { font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.prod__ph-fmt { padding: 3px 11px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.8); font-size: 13px; font-weight: 550; }
.prod__ph small { position: absolute; left: 0; right: 0; bottom: 12px; font-size: 11.5px; letter-spacing: 0.03em; color: var(--shade-60); }
.prod__body { display: flex; flex-direction: column; gap: 2px; padding: 14px; flex: 1; }
.prod__brand { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); }
.prod__name { font-size: 16px; font-weight: 500; line-height: 1.3; }
.prod__name a { text-decoration: none; }
.prod__name a::after { content: ""; position: absolute; inset: 0; }   /* whole card opens the product page */
.prod:hover .prod__name a { text-decoration: underline; text-underline-offset: 3px; }
.prod .add-btn { position: relative; z-index: 1; }
.prod__fmt { font-size: 13.5px; color: var(--shade-50); }
.prod__foot { margin-top: auto; padding-top: 12px; display: grid; gap: 10px; }
.prod__price { font-size: 13px; color: var(--shade-50); }
.prod__price b { font-size: 17px; font-weight: 600; color: var(--primary); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.prod__from { font-size: 13px; }
.prod .add-btn { width: 100%; justify-content: center; text-decoration: none; }
.prod .add-btn svg { width: 16px; height: 16px; }
.cart-ctl { position: relative; z-index: 1; }
.cart-ctl [hidden], .add-btn[hidden] { display: none !important; }   /* .add-btn's display would override [hidden] */
.cart-ctl .qty { width: 100%; }
@media (max-width: 1100px) { .rail--prods { --cols: 3.3; } }
@media (max-width: 640px) { .rail--prods { --cols: 1.75; } }

/* ---------- Statement band (full-width photo) ---------- */
.band { padding: 0 var(--inset); }
.band__card { position: relative; isolation: isolate; border-radius: var(--r-xl); overflow: hidden; min-height: clamp(560px, 82svh, 820px); display: flex; align-items: flex-end; color: #fff; background: var(--night); }
.band__media { position: absolute; inset: 0; z-index: -1; }
.band__media img { width: 100%; height: 125%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.band__media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 16, 11, 0.64); }
.band__content { width: 100%; padding: clamp(28px, 4vw, 56px); }
.band__eyebrow { color: rgba(255, 255, 255, 0.86); }
.band__statement { margin-top: 18px; max-width: 30ch; font-size: clamp(26px, 3.1vw, 44px); font-weight: 350; line-height: 1.22; letter-spacing: -0.005em; }
.band__statement em { color: var(--fresh); }
.band__steps { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline-dark); }
.band__steps li { padding: 20px 24px 0 0; }
.band__steps li + li { padding-left: 24px; border-left: 1px solid var(--hairline-dark); }
.band__steps .n { color: var(--gold); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.band__steps h3 { font-size: 18px; font-weight: 500; margin-top: 4px; }
.band__steps p { color: rgba(255, 255, 255, 0.74); font-size: 15px; margin-top: 6px; max-width: 38ch; }
@media (max-width: 820px) {
  .band__steps { grid-template-columns: 1fr; }
  .band__steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline-dark); margin-top: 18px; }
}

/* ---------- Sector cards ("Explore" category pattern) ---------- */
/* Sectors: two flex rows — 3 cards, then 2 wider ones */
.sectors-flex { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sectors-flex > li { flex: 1 1 calc((100% - 24px) / 3); min-width: 0; display: flex; }
.sectors-flex > li:nth-child(n + 4) { flex-basis: calc((100% - 12px) / 2); }
.sectors-flex .scard { flex: 1; }
@media (max-width: 900px) {
  .sectors-flex > li, .sectors-flex > li:nth-child(n + 4) { flex-basis: calc((100% - 12px) / 2); }
  .sectors-flex > li:last-child { flex-basis: 100%; }
}
@media (max-width: 560px) { .sectors-flex > li, .sectors-flex > li:nth-child(n + 4) { flex-basis: 100%; } }
.scard { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; min-height: clamp(340px, 32vw, 460px); padding: 28px 24px; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--night); }
.scard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.scard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 16, 11, 0.48); transition: background-color 350ms var(--ease); }
.scard:hover img { transform: scale(1.05); }
.scard__body { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 36ch; }
.scard h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
/* description: collapsed, opens smoothly on hover / keyboard focus (grid 0fr → 1fr) */
.scard__more { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -14px; transition: grid-template-rows 380ms var(--ease), opacity 300ms var(--ease), margin-top 380ms var(--ease); }
.scard__more p { min-height: 0; overflow: hidden; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.88); }
.scard:hover .scard__more, .scard:focus-within .scard__more { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.scard:hover::after, .scard:focus-within::after { background: rgba(8, 16, 11, 0.62); }
@media (hover: none) {   /* touch: no hover, so the description is always shown */
  .scard__more { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
  .scard__more p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .scard::after { background: rgba(8, 16, 11, 0.56); }
}
@media (prefers-reduced-motion: reduce) { .scard__more, .scard::after { transition: none; } }
.scard .btn { flex: none; }
.scard .btn::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */

/* ---------- Vision (night, inset card) ---------- */
.vision { padding: 0 var(--inset); }
.vision__card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--night); color: #fff; padding-block: clamp(80px, 10vw, 144px); }
.vision__mark { position: absolute; right: -2%; top: 50%; width: min(420px, 50vw); height: auto; aspect-ratio: 1 / 1.6; transform: translateY(-50%); color: #fff; --logo-leaf: var(--fresh); opacity: 0.07; pointer-events: none; }
.vision blockquote { margin: 26px 0 0; max-width: 21ch; font-size: clamp(34px, 4.9vw, 70px); font-weight: 330; line-height: 1.06; letter-spacing: -0.01em; }
.vision blockquote em { color: var(--gold); }
.vision .eyebrow { color: rgba(255, 255, 255, 0.86); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--hairline-dark); }
.pillars > div { padding: 26px 28px 0 0; }
.pillars > div + div { padding-left: 28px; border-left: 1px solid var(--hairline-dark); }
.pillars h3 { font-size: 26px; }
.pillars h3 em { color: var(--gold); }
.pillars p { color: var(--on-dark-2); margin-top: 8px; max-width: 34ch; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline-dark); margin-top: 22px; }
}

/* ---------- Reasons ---------- */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reasons li { background: var(--canvas); border-radius: var(--r-lg); box-shadow: var(--e3); padding: 28px; display: flex; flex-direction: column; min-height: 250px; }
.reasons li.is-featured { background: var(--aloe); box-shadow: none; }
.reasons .tile__icon { background: var(--tile); }
.reasons li.is-featured .tile__icon { background: #fff; }
.reasons h3 { margin-top: auto; padding-top: 28px; font-size: 21px; font-weight: 450; }
.reasons p { color: var(--shade-60); margin-top: 8px; }
.reasons li.is-featured p { color: var(--ink); }
@media (max-width: 960px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } .reasons li { min-height: 0; } }

/* ---------- Commitments ---------- */
.commit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.commit li { padding: 26px 22px 0 0; }
.commit li + li { padding-left: 22px; border-left: 1px solid var(--hairline); }
.commit .n { display: block; font-size: 40px; font-weight: 300; line-height: 1; color: var(--leaf); font-variant-numeric: tabular-nums; }
.commit h3 { margin-top: 18px; font-size: 19px; font-weight: 500; }
.commit p { margin-top: 8px; color: var(--shade-60); font-size: 15px; }
@media (max-width: 1000px) {
  .commit { grid-template-columns: repeat(2, 1fr); }
  .commit li, .commit li + li { padding: 24px 20px 24px 0; border-left: 0; border-bottom: 1px solid var(--hairline); }
  .commit li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--hairline); }
}
@media (max-width: 520px) { .commit { grid-template-columns: 1fr; } .commit li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .lead { margin-top: 20px; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding: 18px 0; font-size: 19px; font-weight: 450; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform var(--dur) var(--ease), background-color var(--dur), color var(--dur); }
.faq .plus svg { width: 16px; height: 16px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq details p { padding: 0 56px 26px 0; color: var(--shade-60); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Form fields (checkout) ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 550; }
.field .req { color: #b3261e; margin-left: 2px; }
.field .hint { font-weight: 420; color: var(--shade-50); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--canvas); border: 1px solid var(--shade-30); border-radius: var(--r-md); font-size: 16px; transition: border-color var(--dur), box-shadow var(--dur); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--shade-50); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--aloe); }
.field .error { display: none; font-size: 13.5px; font-weight: 550; color: #b3261e; }
.field.is-invalid input, .field.is-invalid select { border-color: #b3261e; }
.field.is-invalid .error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- Closing statement with inline image pills ---------- */
.closing { text-align: center; }
.closing__text { max-width: 26ch; margin-inline: auto; font-size: clamp(28px, 3.9vw, 56px); font-weight: 330; line-height: 1.24; letter-spacing: -0.01em; }
.closing__text em { color: var(--leaf); }
.pill-img { display: inline-block; width: 1.9em; height: 0.92em; vertical-align: -0.08em; border-radius: var(--pill); overflow: hidden; margin-inline: 0.06em; background: var(--tile); }
.pill-img img { width: 100%; height: 100%; object-fit: cover; }
.closing .btn { margin-top: clamp(28px, 3vw, 40px); }

/* ---------- Footer (night inset card) ---------- */
.footer-wrap { padding: 0 var(--inset) var(--inset); }
.footer { border-radius: var(--r-xl); background: var(--primary); color: #fff; padding-top: clamp(56px, 7vw, 96px); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 2.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__ranges ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.footer .brand { justify-self: start; }
.footer__about { margin-top: 18px; max-width: 34ch; color: var(--on-dark-2); font-size: 15px; }
.footer h4 { font-size: 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--link-mint); text-decoration: none; }
.footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer address { font-style: normal; margin-top: 14px; display: grid; gap: 12px; color: var(--link-mint); }
.footer address span { display: flex; gap: 10px; align-items: flex-start; }
.footer address svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin-top: -6px; color: #fff; font-weight: 500; text-decoration: none; }
.footer__social svg { color: var(--fresh); }
.footer__social:hover { text-decoration: underline; text-underline-offset: 4px; }
.todo { color: var(--gold); font-weight: 550; }
/* Giant footer-wide wordmark, closing the page */
.footer__giant { padding: clamp(24px, 4vw, 56px) clamp(14px, 2.4vw, 32px) clamp(14px, 2.4vw, 32px); color: #fff; --logo-leaf: var(--fresh); overflow: hidden; }
.footer__giant svg { display: block; width: 100%; height: auto; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; border-top: 1px solid var(--hairline-dark); color: var(--on-dark-2); font-size: 13px; }
.footer__bottom .values { font-size: 13px; letter-spacing: 0.04em; color: var(--gold); }
.footer__blog { color: #fff; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child, .footer__ranges { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .footer__grid > div { grid-column: 1 / -1; } .footer__sectors ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } }

/* ---------- Desktop: every section fits one landscape viewport ----------
   Vertical rhythm scales with the viewport HEIGHT (vh) instead of fixed px, and the tall
   blocks (hero, sectors, reasons) are sized so each section ≤ 100svh. */
@media (min-width: 1024px) {
  .section { padding-block: clamp(72px, 12vh, 128px); }
  .section--flush-top { padding-top: clamp(48px, 7vh, 88px); }
  .values-strip { padding-top: clamp(72px, 12vh, 128px); }
  .section-head { margin-bottom: clamp(20px, 3.4vh, 40px); }
  /* hero is its own full screen; the value tiles live in the next section */
  .hero__card { min-height: 0; height: calc(100svh - 2 * var(--inset)); max-height: 980px; }
  .hero__content { padding-top: 110px; }
  .tile { min-height: 92px; padding: 14px 22px; }
  /* sectors: two rows that always fit under the title */
  /* taller photos: each row of cards fits a screen on its own */
  .sectors-flex .scard { min-height: 0; height: clamp(340px, 44vh, 480px); }
  /* reasons */
  .reasons li { min-height: 0; padding: 24px; }
  .reasons h3 { padding-top: 18px; }
  /* vision */
  .vision__card { padding-block: clamp(56px, 10vh, 120px); }
  .pillars { margin-top: clamp(32px, 5vh, 72px); }
  /* band */
  .band__card { min-height: min(82svh, 780px); }
  /* FAQ + closing */
  .faq summary { min-height: 60px; padding: 12px 0; }
  /* footer giant wordmark: cap its height so the footer stays within one screen */
  .footer { padding-top: clamp(40px, 6vh, 80px); }
  .footer__grid { padding-bottom: 32px; }
  .footer__giant svg { max-height: 26vh; width: auto; max-width: 100%; margin-inline: auto; }
}

/* Short laptop screens (≤ 800px tall): the headline also scales with viewport height */
@media (min-width: 1024px) and (max-height: 800px) {
  .section { padding-block: clamp(56px, 9vh, 80px); }
  .reasons li { padding: 20px; }
  .reasons { gap: 12px; }
  .hero h1 .display { font-size: clamp(40px, min(calc((100vw - 400px) / 8.9), 10.5vh), 92px); }
  .hero__content { padding-top: clamp(80px, 12vh, 110px); padding-bottom: 28px; }
  .hero h1 .eyebrow { margin-bottom: 14px; }
  .hero .lead { margin-top: 14px; font-size: 16px; }
  .hero__actions { margin-top: 20px; }
  .pcard__media { aspect-ratio: 4 / 3.4; }
  .sectors-flex .scard p { margin-top: 6px; }
  .sectors-flex .scard .btn { margin-top: 12px; }
  .field textarea { min-height: 60px; }
}

/* ---------- Mobile (≤ 600px) ---------- */
@media (max-width: 600px) {
  /* Header: logo + cart + menu only */
  .header { top: calc(var(--inset) + 6px); left: calc(var(--inset) + 6px); right: calc(var(--inset) + 6px); border-radius: 14px; }
  .header__inner { min-height: 58px; padding-inline: 10px 6px; gap: 8px; }
  .header__right { gap: 6px; }
  .brand__logo { height: 32px; }

  /* Hero: photo visible at the top, copy on a dark fade below — no more empty blurred card */
  .hero__card { min-height: 0; border-radius: 16px; }
  .hero__media img, .hero__video { object-position: 50% 30%; } /* portrait cut; 115% height keeps parallax edges hidden */
  .video-toggle { top: 78px; bottom: auto; right: 12px; }
  .hero__media::after { background: rgba(8, 16, 11, 0.6); }
  .hero__content { padding: clamp(230px, 64vw, 320px) 20px 28px; gap: 0; }
  .hero h1 .eyebrow { font-size: 11px; letter-spacing: 0.06em; line-height: 1.4; margin-bottom: 14px; align-items: flex-start; }
  .hero .lead { font-size: 16px; margin-top: 14px; }
  .hero__actions { flex-direction: column; gap: 10px; margin-top: 22px; }
  .hero__actions .btn { width: 100%; }

  /* Value tiles: compact 2 × 2 grid instead of a long stack */
  .values-strip { padding-top: 80px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile, .tile:nth-child(even) { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; border-radius: 14px; }
  .tile__icon { width: 38px; height: 38px; }
  .tile__icon svg { width: 18px; height: 18px; }
  .tile p { font-size: 14.5px; }
  .tile em { font-size: 16.5px; }

  /* Sections */
  .section { padding-block: 80px; }
  .section--flush-top { padding-top: 64px; }
  .section-head { margin-bottom: 20px; gap: 8px 20px; }
  .title2 { font-size: clamp(25px, 7.2vw, 30px); }

  /* Product cards: shorter media, tighter body */
  .pcard__media { aspect-ratio: 4 / 3; }
  .pcard__body { padding: 14px; }
  .pcard__body h3 { font-size: 18px; }
  .rail-wrap { margin-inline: calc(var(--gutter) * -1); }
  .rail { padding-inline: var(--gutter); margin-inline: 0; scroll-padding-inline: var(--gutter); }

  /* Band + sectors + vision */
  .band__card { min-height: 0; border-radius: 16px; }
  .band__content { padding: 180px 20px 24px; }
  .band__media::after { background: rgba(8, 16, 11, 0.68); }
  .band__statement { font-size: 24px; }
  .band__steps { margin-top: 24px; }
  .band__steps li { padding-top: 16px; }
  .scard { min-height: 360px; }
  .vision__card { border-radius: 16px; padding-block: 64px; }
  .vision blockquote { font-size: 31px; }
  .pillars h3 { font-size: 22px; }

  /* Cards, lists, FAQ */
  .reasons li { padding: 22px; }
  .reasons h3 { padding-top: 18px; font-size: 19px; }
  .commit .n { font-size: 32px; }
  .faq summary { font-size: 17px; min-height: 64px; }
  .faq details p { padding: 0 0 20px; }
  .faq .plus { width: 36px; height: 36px; }

  /* Quote */

  /* Closing + footer */
  .closing__text { font-size: 27px; line-height: 1.3; }
  .closing .btn { width: 100%; max-width: 360px; }
  .footer { border-radius: 16px; }
  .footer__grid { gap: 28px; }
}
@media (max-width: 360px) {
  .brand__logo { height: 28px; }
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- Back to top (bottom right, ring = scroll progress) ---------- */
.to-top { position: fixed; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); z-index: 45; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--e-float); opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease), background-color var(--dur), bottom 300ms var(--ease); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary-pressed); }
.to-top:hover > svg:last-child { transform: translateY(-2px); }
.to-top > svg:last-child { width: 22px; height: 22px; transition: transform var(--dur) var(--ease); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.to-top__ring circle { fill: none; stroke: var(--fresh); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--progress, 100); }
.to-top.is-lifted { bottom: 92px; }   /* product page: sits above the sticky add-to-cart bar */
@media (prefers-reduced-motion: reduce) { .to-top, .to-top > svg:last-child { transition: none; } }

/* ---------- Motion helpers (GSAP) ---------- */
.split-line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
@media (prefers-reduced-motion: reduce) {
  .pcard__media img, .scard img { transition: none; }
  .pcard:hover { transform: none; }
}

/* ---------- Breadcrumb (catalogue + product page) ---------- */
.crumbs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 18px 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13.5px; color: var(--shade-50); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--shade-30); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Catalogue page (produits/) ---------- */
.cat-page .header { position: sticky; top: 10px; margin: 10px var(--inset) 0; left: auto; right: auto; }
.cat-main { padding-bottom: clamp(56px, 8vw, 104px); }
.cat-head { display: grid; gap: 14px; padding-block: clamp(8px, 2vw, 24px) clamp(20px, 3vw, 32px); }
.cat-head .title2 { font-size: clamp(32px, 4.2vw, 58px); }
/* Catalogue + range pages: range list and search in a sticky left sidebar, products on the right */
.cat-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); align-items: start; gap: clamp(28px, 3.4vw, 48px); margin-top: 8px; }
.cat-side { position: sticky; top: 96px; display: grid; gap: 20px; max-height: calc(100svh - 112px); overflow-y: auto; overscroll-behavior: contain; padding: 4px; margin: -4px; scrollbar-width: thin; }
.cat-nav__title { padding: 0 14px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shade-50); }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 10px 8px 14px; border-radius: 12px; color: inherit; text-decoration: none; font-size: 15px; font-weight: 450; line-height: 1.25; transition: background-color var(--dur), color var(--dur); }
.cat-link:hover { background: var(--tile); }
.cat-link__n { flex: none; min-width: 26px; height: 24px; padding: 0 7px; border-radius: var(--pill); background: var(--tile); color: var(--shade-60); font-size: 12px; font-weight: 650; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.cat-link[aria-current="page"] { background: var(--primary); color: #fff; font-weight: 500; }
.cat-link[aria-current="page"] .cat-link__n { background: var(--fresh); color: var(--ink); }
.cat-search { position: relative; }
.cat-search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--shade-50); pointer-events: none; }
.cat-search input { width: 100%; min-height: 44px; padding: 10px 16px 10px 40px; border-radius: var(--pill); border: 1px solid var(--shade-30); background: var(--canvas); font-size: 15px; }
.cat-search input:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.cat-results { min-width: 0; }
.cat-status { font-size: 14px; color: var(--shade-50); min-height: 22px; }
.cat-results .cat-status + .cat-groups > .cat-group:first-child { margin-top: 12px; }
.cat-results > .cat-groups:first-child > .cat-group:first-child { margin-top: 0; }
@media (max-width: 900px) {
  /* no room for a sidebar: the range list becomes a scrollable chip row above the products */
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }   /* minmax(0,…): the chip row must not widen the page */
  .cat-side { position: static; min-width: 0; max-height: none; overflow: visible; gap: 12px; padding: 0; margin: 0; }
  .cat-nav { min-width: 0; }
  .cat-nav { order: -1; }
  .cat-nav__title { display: none; }
  .cat-nav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
  .cat-nav ul::-webkit-scrollbar { display: none; }
  .cat-nav li { flex: none; }
  .cat-link { gap: 8px; padding: 8px 10px 8px 16px; border: 1px solid var(--shade-30); border-radius: var(--pill); background: var(--canvas); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
  .cat-link[aria-current="page"] { border-color: var(--primary); }
}
.cat-group { margin-top: clamp(28px, 4vw, 48px); scroll-margin-top: 100px; }
.cat-group[hidden], .cat-grid > li[hidden] { display: none; }
.cat-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.cat-group__head h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 450; line-height: 1.2; letter-spacing: -0.01em; }
.cat-group__head h2 a { text-decoration: none; }
.cat-group__head h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cat-group__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14.5px; font-weight: 500; color: var(--leaf); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cat-group__more svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.cat-group__more:hover svg { transform: translateX(3px); }
.cat-group__n { font-size: 14px; color: var(--shade-50); }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 20px 22px; border-radius: var(--r-lg); border: 1px dashed var(--shade-30); color: var(--shade-60); }
.cat-none { margin-top: 32px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--tile); }
.cat-none[hidden] { display: none; }
.cat-none a { font-weight: 550; }
.cat-cta { margin-top: clamp(48px, 7vw, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--primary); color: #fff; }
.cat-cta h2 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 340; line-height: 1.2; letter-spacing: -0.01em; }
.cat-cta p { margin-top: 8px; color: rgba(255, 255, 255, 0.8); max-width: 52ch; }
/* Range page header: title + intro + "+ Devis" for the whole range, photo on the right */
.range-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(8px, 2vw, 24px) clamp(24px, 3.4vw, 40px); }
.range-head__eyebrow { color: var(--leaf); }
.range-head__title { margin-top: 12px; font-size: clamp(34px, 4.6vw, 64px); font-weight: 340; line-height: 1.06; letter-spacing: -0.02em; }
.range-head .lead { margin-top: 18px; }
.range-head__media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: #dcdcd3; }
.range-head__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .range-head { grid-template-columns: 1fr; }
  .range-head__media { order: -1; aspect-ratio: 16 / 9; }
}

/* Product page (produits/<product>/) */
.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4.4vw, 72px); padding-block: 8px clamp(48px, 7vw, 96px); }
.pp__media { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: var(--pistachio); }
.pp__media img { width: 100%; height: 100%; object-fit: cover; }
.pp__media .prod__ph { gap: 18px; }
.pp__media .prod__ph-brand { font-size: clamp(34px, 4.4vw, 60px); }
.pp__media .prod__ph-fmt { padding: 6px 16px; font-size: 16px; }
.pp__media .prod__ph small { bottom: 22px; font-size: 13px; }
.pp__info { padding-top: clamp(0px, 1vw, 12px); }
.pp__title { font-size: clamp(32px, 3.8vw, 52px); font-weight: 340; line-height: 1.08; letter-spacing: -0.02em; }
.pp__brand { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leaf); }
.pp__name { display: block; }
.pp__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pp__fmt, .pp__range { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 14px; border-radius: var(--pill); font-size: 14px; font-weight: 500; }
.pp__fmt { background: var(--pistachio); color: var(--primary); }
.pp__range { border: 1px solid var(--shade-30); text-decoration: none; }
.pp__range:hover { border-color: var(--ink); }
.pp__price { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.pp__price p { font-size: 16px; color: var(--shade-50); }
.pp__price p b { font-size: clamp(34px, 3.2vw, 44px); font-weight: 600; color: var(--primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pp__price small { display: block; margin-top: 4px; font-size: 14px; color: var(--shade-50); }
.demo-tag { display: inline-block; padding: 1px 8px; border-radius: var(--pill); background: #fbf3e2; color: #6b5320; font-size: 12.5px; font-weight: 550; }
.pp__buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pp__buy .add-btn--lg { flex: 1 1 220px; justify-content: center; }
.pp__added { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 14.5px; color: var(--leaf); font-weight: 550; }
.pp__added[hidden] { display: none; }
.pp__added svg { width: 18px; height: 18px; }
.pp__added a { color: var(--ink); }
.pp__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.add-btn--lg { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.pp__actions .btn { min-height: 52px; }
.pp__h2 { margin-top: 32px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shade-50); }
.pp__facts { margin: 10px 0 0; display: grid; }
.pp__facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.pp__facts dt { color: var(--shade-50); }
.pp__facts dd { margin: 0; font-weight: 500; }
.pp__facts a { text-underline-offset: 3px; }
.pp__assure { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.pp__assure li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--shade-60); }
.pp__assure svg { width: 20px; height: 20px; flex: none; color: var(--leaf); }
.pp-related { padding-top: clamp(8px, 2vw, 24px); }
@media (max-width: 900px) {
  .pp { grid-template-columns: 1fr; }
  .pp__media { max-width: 560px; }
}
@media (max-width: 560px) {
  .pp__actions > * { width: 100%; justify-content: center; }
  .pp__facts > div { grid-template-columns: 120px 1fr; }
}

@media (max-width: 760px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod__body { padding: 12px; }
  .prod__name { font-size: 15px; }
  .prod__ph-brand { font-size: 18px; }
  .prod .add-btn { min-height: 44px; }
  .cat-page .crumbs-row { padding-block: 22px 10px; }
  .cat-cta .btn { width: 100%; }
}
@media (max-width: 600px) {
  .cat-page .header { top: 6px; margin: 6px var(--inset) 0; }
}

/* ---------- Checkout (commande/) ---------- */
.co-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-block: clamp(8px, 2vw, 20px) clamp(20px, 3vw, 32px); }
.co-head .title2 { font-size: clamp(32px, 4vw, 54px); }
.co-demo { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: #fbf3e2; color: #6b5320; font-size: 13.5px; font-weight: 500; }
.co-demo svg { width: 16px; height: 16px; flex: none; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); align-items: start; gap: clamp(24px, 3.4vw, 48px); }
.co__form { display: grid; gap: 18px; }
.co__form[hidden], .co__summary[hidden] { display: none; }
.co__box { margin: 0; padding: clamp(20px, 2.6vw, 30px); border: 0; border-radius: var(--r-lg); background: var(--canvas); box-shadow: var(--e3); }
.co__box legend { float: left; width: 100%; margin-bottom: 18px; padding: 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; }
.co__grid { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co__box .field textarea { min-height: 88px; }
.co__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 450 !important; cursor: pointer; }
.co-check input { width: 20px !important; height: 20px; min-height: 0 !important; margin: 2px 0 0; padding: 0; accent-color: var(--primary); flex: none; box-shadow: none !important; }
.co__summary { position: sticky; top: 96px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--canvas); box-shadow: var(--e3); }
.co__summary h2 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; }
.co__lines { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; max-height: min(46vh, 420px); overflow-y: auto; }
.co__lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.co__lines img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--pistachio); }
.col { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.col__name { font-size: 14.5px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.col__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.col__sub, .col__unit { font-size: 12.5px; color: var(--shade-50); }
.col .qty { margin-top: 4px; }
.col__end { display: grid; justify-items: end; gap: 6px; }
.col__end b { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col__rm { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--shade-60); cursor: pointer; display: grid; place-items: center; }
.col__rm:hover { background: var(--tile); color: #b3261e; }
.col__rm svg { width: 15px; height: 15px; }
.co__ship { margin-top: 16px; font-size: 13.5px; color: var(--shade-60); }
.co__ship.is-ok { color: var(--leaf); font-weight: 550; }
.co__totals { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--hairline); display: grid; gap: 8px; }
.co__totals > div { display: flex; justify-content: space-between; gap: 16px; }
.co__totals dt { color: var(--shade-60); }
.co__totals dd { margin: 0; font-weight: 550; font-variant-numeric: tabular-nums; }
.co__total { margin-top: 6px; padding-top: 12px; border-top: 2px solid var(--primary); }
.co__total dt, .co__total dd { color: var(--ink); font-size: 19px; font-weight: 650; }
.co__submit { width: 100%; margin-top: 18px; min-height: 54px; font-size: 16px; }
.co__submit[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.co__note { display: flex; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--shade-50); }
.co__note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.co__empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 16px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); border: 1px dashed var(--shade-30); }
.co__empty[hidden] { display: none; }
.co__empty p { font-size: 18px; }
@media (max-width: 960px) {
  .co { grid-template-columns: minmax(0, 1fr); }
  .co__summary { position: static; }
  .co__lines { max-height: none; }
}
@media (max-width: 560px) { .co__grid { grid-template-columns: 1fr; } }

/* ---------- Thank-you page (commande/merci/) ---------- */
.ty { padding-block: clamp(16px, 3vw, 40px) 0; }
.ty__head { display: grid; justify-items: start; gap: 12px; max-width: 760px; }
.ty__head[hidden] { display: none; }
.ty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--pistachio); color: var(--leaf); }
.ty__icon svg { width: 30px; height: 30px; }
.ty__head .title2 { font-size: clamp(32px, 4vw, 54px); }
.ty__num { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--primary); }
.ty__next { color: var(--shade-60); }
.ty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ty__actions .btn svg:first-child { width: 18px; height: 18px; }
.ty__invoice { margin-top: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); overflow-x: auto; box-shadow: var(--e3); background: #fff; }
.ty__invoice:empty { display: none; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .header, .drawer, .footer-wrap, .to-top, .skip-link, .crumbs-row, .ty__head, .cat-cta { display: none !important; }
  .cat-main { padding: 0; }
  .ty { padding: 0; }
  .ty__invoice { margin: 0; box-shadow: none; border-radius: 0; overflow: visible; }
}


/* ---------- Blog (blog/) ---------- */
.blog-head { display: grid; gap: 14px; padding-block: clamp(8px, 2vw, 24px) clamp(24px, 3.4vw, 40px); }
.blog-head .title2 { font-size: clamp(32px, 4.2vw, 58px); }
.bcard { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--canvas); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px rgba(var(--shadow-rgb), 0.08); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease); }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(var(--shadow-rgb), 0.06), 0 12px 24px -12px rgba(var(--shadow-rgb), 0.16); }
@media (hover: none) { .bcard:hover { transform: none; } }
.bcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tile); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.bcard:hover .bcard__media img { transform: scale(1.04); }
.bcard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.bcard__meta, .post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--shade-50); }
.bcard__cat { padding: 3px 11px; border-radius: var(--pill); background: var(--pistachio); color: var(--primary); font-weight: 550; }
.bcard__title { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.bcard__title a { text-decoration: none; }
.bcard__title a::after { content: ""; position: absolute; inset: 0; }   /* whole card opens the article */
.bcard:hover .bcard__title a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bcard__excerpt { color: var(--shade-60); font-size: 15px; }
.bcard__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--leaf); }
.bcard__more svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.bcard:hover .bcard__more svg { transform: translateX(3px); }
.bcard--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.bcard--featured .bcard__media { aspect-ratio: auto; min-height: 340px; }
.bcard--featured .bcard__body { justify-content: center; padding: clamp(24px, 3.4vw, 48px); gap: 14px; }
.bcard--featured .bcard__title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; line-height: 1.18; }
.bcard--featured .bcard__excerpt { font-size: 16.5px; }
.blog-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 900px) { .bcard--featured { grid-template-columns: 1fr; } .bcard--featured .bcard__media { min-height: 0; aspect-ratio: 16 / 9; } }

/* Article page */
.post__head { display: grid; gap: 14px; max-width: 860px; padding-block: clamp(8px, 2vw, 24px) clamp(20px, 3vw, 32px); }
.post__title { font-size: clamp(32px, 4vw, 56px); font-weight: 340; line-height: 1.1; letter-spacing: -0.02em; }
.post__hero { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 7; background: var(--tile); }
.post__hero img { width: 100%; height: 100%; object-fit: cover; }
.post__layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: start; gap: clamp(28px, 5vw, 80px); margin-top: clamp(28px, 4vw, 48px); }
.post__toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.post__toc p { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shade-50); }
.post__toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--hairline); }
.post__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--shade-60); text-decoration: none; line-height: 1.35; }
.post__toc a:hover { color: var(--ink); border-left-color: var(--fresh); }
.post__body { font-size: 17px; line-height: 1.7; color: var(--ink); }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 { margin-top: 1.9em; font-size: clamp(22px, 2vw, 27px); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; scroll-margin-top: 110px; }
.post__body p, .post__body li { color: var(--shade-60); }
.post__body b { color: var(--ink); font-weight: 600; }
.post__body ul { padding-left: 1.2em; display: grid; gap: 8px; }
.post__body li::marker { color: var(--fresh); }
.post__body a { color: var(--leaf); text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 500; }
.post__body .callout { margin-top: 2em; padding: 20px 22px; border-radius: var(--r-lg); background: var(--pistachio); }
.post__body .callout p { color: var(--ink); }
.post-rel { margin-top: clamp(56px, 8vw, 96px); }
@media (max-width: 900px) {
  .post__layout { grid-template-columns: minmax(0, 1fr); }
  .post__toc { position: static; padding: 16px 18px; border-radius: var(--r-lg); background: var(--card); }
  .post__toc ol { border-left: 0; }
  .post__toc a { padding-left: 0; border-left: 0; }
  .post__hero { aspect-ratio: 16 / 9; }
}
