/* =========================================================================
   Éditions Hashtag — base.css (design system foundation, "La Revue")
   Loaded on every page. Area files (home.css, catalog.css, product.css,
   authors.css, news.css, pages.css, shop-flow.css) build on it and never
   redefine tokens. Mobile first. Breakpoints (not tokenisable in @media):
     md 760px (tablet) · lg 1100px (desktop) · xl 1360px (wide)
   Contents
     1  Tokens              8  Masthead + sticky header + primary nav
     2  @font-face          9  Drawers, scrim, off-canvas menu
     3  Reset              10  Search overlay
     4  Typography         11  Mini-cart (WooCommerce mini-cart.php)
     5  Layout primitives  12  Breadcrumbs, pagination, notices
     6  Section opener     13  Covers, book card, book grid
     7  Buttons, links,    14  Author tile, press quote
        forms             15  Footer + funders band
                          16  Utilities, focus, reduced motion
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Palette — brief, no other hue */
  --c-red: #D91F24;
  --c-ink: #0A0909;
  --c-white: #FFFFFF;
  --c-grey-212: #212121;
  --c-grey-313: #313131;
  --c-grey-383: #383838;
  --c-grey-777: #777777;
  --c-grey-7e7: #7E7E7E;
  --c-grey-9c9: #9C9C9C;
  --c-grey-d2d: #D2D2D2;
  --c-grey-e7e: #E7E7E7;
  --c-grey-f2f: #F2F2F2;

  /* Roles (AA: never #777 / #7E7E7E text under 18px) */
  --color-bg: var(--c-white);
  --color-text: var(--c-ink);              /* 19.9:1 */
  --color-text-strong: var(--c-grey-212);  /* nav, labels 16.1:1 */
  --color-text-muted: var(--c-grey-383);   /* meta, hints, crumbs 11.3:1 */
  --color-text-large-soft: #767676;            /* placeholders / display text >= 18px only (4.54:1; #777 is 4.48:1, QA #79) */
  --color-accent: var(--c-red);            /* 4.9:1 on white: any size on white, never on grey */
  --color-line: var(--c-grey-d2d);         /* hairlines between items */
  --color-line-soft: var(--c-grey-e7e);    /* column rules */
  --color-line-strong: var(--c-ink);       /* structure, control borders */
  --color-panel: var(--c-grey-f2f);        /* image placeholders, quiet panels (no red text on it) */
  --color-inverse-bg: var(--c-ink);
  --color-inverse-text: var(--c-white);
  --color-inverse-muted: rgba(255, 255, 255, .78); /* 13.6:1 on ink */
  --color-scrim: rgba(10, 9, 9, .55);
  --color-cover-edge: rgba(10, 9, 9, .08);
  --color-highlight: rgba(217, 31, 36, .16);

  /* Fonts */
  --font-serif: "Newsreader", "Newsreader Fallback", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Oswald", "Oswald Fallback", "Oswald Fallback Arial", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Type scale — fluid 390 → 1440 */
  --fs-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);    /* 44 → 92  page titles (phones, tablets) */
  --fs-display-lg: clamp(5rem, 2rem + 4.5vw, 7.5rem);       /* 80 → 97 @1440 → 120  page titles, desktop step (>= 1100) */
  --fs-h1: clamp(2.25rem, 1.55rem + 2.9vw, 4.25rem);        /* 36 → 68 */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.75vw, 3rem);         /* 30 → 48 */
  --fs-h3: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);         /* 22 → 28 */
  --fs-h4: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);      /* 19 → 22 */
  --fs-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.5rem);     /* 19 → 24 */
  --fs-lead-lg: 1.4375rem;  /* 23 — intro in the hairline column beside a page title (>= 1100) */
  /* Book card titles — the only sizes a .book-card__title may take */
  --fs-card-s: 1rem;        /* 16 → 18 (md) → 20 (lg)  compact: 3-up shelves, 6-up rows */
  --fs-card-m: 1.1875rem;   /* 19 → 21 (md)            default card */
  --fs-card-l: 1.75rem;     /* 28                      feature card, home Nouveautés (lg) */
  --fs-body: clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);   /* 17 → 19 */
  --fs-small: .9375rem;   /* 15 */
  --fs-meta: .875rem;     /* 14 */
  --fs-label: .8125rem;   /* 13 — Oswald caps */
  --fs-micro: .75rem;     /* 12 — Oswald caps, #383838 minimum */
  --fs-section: 1.125rem; /* 18 → 22 (md) Oswald section titles */
  --fs-ui: 1rem;          /* 16 — buttons, prices */
  --lh-tight: 1.04;
  --lh-heading: 1.14;
  --lh-ui: 1.2;
  --lh-body: 1.58;
  --track-tight: -.015em;
  --track-label: .1em;
  --track-kicker: .16em;
  --track-section: .2em;
  --opsz-display: 72;
  --opsz-heading: 36;
  --opsz-text: 16;

  /* Spacing — 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --gutter: 16px;
  --margin: 20px;
  --section-space: var(--s-8);
  --max: 1312px;
  --measure: 36em;
  --header-h: 60px;
  --mast-h: 60px;         /* desktop: 132px (masthead tier scrolls away) */
  --navbar-h: 0px;        /* desktop: 60px (sticky compact bar incl. its rules) */
  --tap: 44px;
  --control-check: 24px;   /* checkbox / radio box of the shop forms (WCAG 2.5.8: >= 24px) */
  --buybar-h: 74px;       /* product sticky buy bar (phones, tablets), without the safe area */
  --sticky-top: var(--header-h); /* where in-page sticky bars attach (under the header / compact bar) */

  /* Rules */
  --rule-hair: 1px;
  --rule-mid: 2px;
  --rule-bold: 4px;
  --double-w: 44px;       /* section opener double bar */
  --double-h: 7px;        /* 2px + 3px gap + 2px */
  --double-gap: 13px;     /* distance between the double bar and the ink rule */

  /* Radii — printed matter: square */
  --radius-0: 0;
  --radius-control: 2px;
  --radius-pill: 999px;   /* cart count only */

  /* Shadows — ink alpha only */
  --sh-hung:
    0 1px 1px rgba(10, 9, 9, .08),
    0 3px 6px -2px rgba(10, 9, 9, .10),
    0 14px 24px -12px rgba(10, 9, 9, .22),
    0 34px 48px -30px rgba(10, 9, 9, .28);
  --sh-lift:
    0 1px 1px rgba(10, 9, 9, .06),
    0 6px 10px -4px rgba(10, 9, 9, .12),
    0 24px 34px -16px rgba(10, 9, 9, .26),
    0 52px 64px -40px rgba(10, 9, 9, .30);
  --sh-small: 0 1px 1px rgba(10, 9, 9, .10), 0 4px 10px -4px rgba(10, 9, 9, .28);
  --sh-panel: 0 0 0 1px rgba(10, 9, 9, .06), 0 30px 80px -20px rgba(10, 9, 9, .32);
  --sh-bar: 0 -1px 0 var(--c-ink), 0 -12px 28px -16px rgba(10, 9, 9, .35);
  --sh-header: 0 1px 0 var(--c-ink), 0 10px 24px -18px rgba(10, 9, 9, .45);

  /* z-index scale */
  --z-raised: 1;
  --z-sticky: 30;     /* in-page sticky bars (genre bar) */
  --z-buybar: 35;
  --z-header: 40;
  --z-dropdown: 45;
  --z-scrim: 60;
  --z-drawer: 61;
  --z-search: 70;
  --z-skip: 100;

  /* Motion — only transform / opacity / colour animate */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 140ms;
  --dur-mid: 220ms;
  --dur-slow: 320ms;
  --dur-confirm: 2400ms; /* "Ajouté au panier" button state */
  --lift: -4px;          /* cover hover lift */
}

@media (min-width: 760px) {
  :root { --gutter: 24px; --margin: 40px; --section-space: var(--s-9); --header-h: 64px; --mast-h: 64px; --fs-section: 1.375rem; --fs-card-s: 1.125rem; --fs-card-m: 1.3125rem; }
}
@media (min-width: 1100px) {
  :root { --gutter: 32px; --margin: 64px; --section-space: 120px; --mast-h: 132px; --navbar-h: 60px; --header-h: 60px; --sticky-top: var(--navbar-h); --fs-card-s: 1.25rem; }
}

/* -------------------------------------------------------------------------
   2. @font-face — self-hosted variable woff2 (fontsource 5.3.0, OFL)
   Preload: newsreader-latin-opsz-normal.woff2 + oswald-latin-wght-normal.woff2
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-latin-ext-opsz-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-ext-opsz-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("../fonts/oswald-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/oswald-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("../fonts/oswald-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/oswald-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallbacks (QA #91): while the woff2 files load (font-display: swap), text is set in a local
   face scaled to the web font's width and line metrics, so the swap moves nothing. Values measured in Chrome
   on the site's text (dev/shots/fix/s2/fontmetrics.js): Newsreader body copy vs Georgia, Oswald 500 caps vs
   Arial Narrow, then Arial. unicode-range = the web fonts' own ranges: any other script still falls through
   to the same system fonts as before. Once the web fonts are in, these faces are never used. */
@font-face { font-family: "Newsreader Fallback"; font-style: normal; font-weight: 200 500; src: local("Georgia"); size-adjust: 90.86%; ascent-override: 81.44%; descent-override: 28.62%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader Fallback"; font-style: normal; font-weight: 600 800; src: local("Georgia Bold"), local("Georgia-Bold"); size-adjust: 90.86%; ascent-override: 81.44%; descent-override: 28.62%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader Fallback"; font-style: italic; font-weight: 200 800; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 83.97%; ascent-override: 88.13%; descent-override: 30.96%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald Fallback"; font-style: normal; font-weight: 200 700; src: local("Arial Narrow"), local("ArialNarrow"); size-adjust: 95.13%; ascent-override: 125.09%; descent-override: 30.48%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald Fallback Arial"; font-style: normal; font-weight: 200 700; src: local("Arial"), local("ArialMT"); size-adjust: 78.01%; ascent-override: 152.54%; descent-override: 37.17%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* -------------------------------------------------------------------------
   3. Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--sticky-top) + var(--s-4));
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-serif); font-size: var(--fs-body); line-height: var(--lh-body);
  font-optical-sizing: auto; font-variant-numeric: lining-nums; font-kerning: normal;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg { flex: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--fw-regular); }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--color-accent); color: var(--c-white); }

/* -------------------------------------------------------------------------
   4. Typography
   ------------------------------------------------------------------------- */
.kicker {
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-label); line-height: var(--lh-ui);
  letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--color-text-muted);
}
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--color-accent); }
.page-title {
  font-family: var(--font-serif); font-size: var(--fs-display); line-height: 1; font-weight: var(--fw-regular);
  font-variation-settings: "opsz" var(--opsz-display); letter-spacing: -.025em; text-wrap: balance;
}
.heading-1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-variation-settings: "opsz" var(--opsz-display); letter-spacing: var(--track-tight); }
.heading-2 { font-size: var(--fs-h2); line-height: var(--lh-heading); font-variation-settings: "opsz" var(--opsz-display); letter-spacing: -.01em; }
.heading-3 { font-size: var(--fs-h3); line-height: var(--lh-heading); font-variation-settings: "opsz" var(--opsz-heading); }
.heading-4 { font-size: var(--fs-h4); line-height: var(--lh-heading); }
.lead { font-size: var(--fs-lead); line-height: 1.5; }

/* Stored rich text (blurbs, bios, page content). Never justified. */
.rich-text { max-width: var(--measure); }
.rich-text > * + * { margin-top: .9em; }
.rich-text a { text-decoration-color: var(--color-accent); }
.rich-text a:hover { color: var(--color-accent); }
.rich-text strong, .rich-text b { font-weight: var(--fw-semibold); }
.rich-text ul, .rich-text ol { padding-left: 1.2em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li::marker { color: var(--color-accent); }
.rich-text [style] { color: inherit !important; font-family: inherit !important; font-size: inherit !important; background: none !important; }
.rich-text [lang] { font-style: inherit; }

/* Drop cap — only when the server adds .has-dropcap (first character is a letter).
   Always exactly two lines deep, whatever the paragraph's size or line-height:
   initial-letter where supported; elsewhere a float sized from the paragraph's
   line height (lh), whose box (.84 × 2.1lh ≈ 1.76lh) stays inside two lines. */
.has-dropcap > p:first-of-type::first-letter {
  float: left; margin: .05em .08em 0 0; padding: 0;
  font-family: var(--font-serif); font-weight: var(--fw-regular); font-style: normal;
  font-variation-settings: "opsz" var(--opsz-display);
  font-size: 2.1lh; line-height: .84; color: var(--color-accent);
}
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  .has-dropcap > p:first-of-type::first-letter {
    float: none; margin: 0 .1em 0 0; font-size: inherit; line-height: inherit;
    -webkit-initial-letter: 2; initial-letter: 2;
  }
}

/* The "#" device for people: "# Prénom Nom" */
.hash-mark { color: var(--color-accent); font-weight: var(--fw-medium); }

/* -------------------------------------------------------------------------
   5. Layout primitives
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.container--narrow { max-width: calc(880px + 2 * var(--margin)); }
.grid-12 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
@media (min-width: 760px) { .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.stack > * + * { margin-top: var(--stack-space, var(--s-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--s-3)); }
.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
.section { padding-top: var(--section-space); }
.site-main { display: block; padding-bottom: var(--section-space); }

/* -------------------------------------------------------------------------
   6. Section opener — double red hairline over a heavy ink rule
   template-parts/section-heading.php
   ------------------------------------------------------------------------- */
.section-head {
  position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  margin-top: calc(var(--double-h) + var(--double-gap));
  padding-top: var(--s-4); margin-bottom: var(--s-6);
  border-top: var(--rule-bold) solid var(--color-line-strong);
}
.section-head::before {
  content: ""; position: absolute; left: 0; top: calc(-1 * (var(--rule-bold) + var(--double-gap) + var(--double-h)));
  width: var(--double-w); height: var(--double-h);
  border-top: var(--rule-mid) solid var(--color-accent); border-bottom: var(--rule-mid) solid var(--color-accent);
}
.section-head__title {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-section); line-height: 1.25;
  letter-spacing: var(--track-section); text-transform: uppercase; color: var(--c-grey-313);
}
.section-head__count {
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-meta); letter-spacing: .06em;
  color: var(--color-accent); font-variant-numeric: tabular-nums;
}
.section-head__link { margin-left: auto; }
.section-head--small { margin-bottom: var(--s-3); }
.section-head--small .section-head__title { font-size: var(--fs-label); letter-spacing: var(--track-kicker); }
.section-head--inverse { border-top-color: var(--c-white); }
.section-head--inverse .section-head__title { color: var(--c-white); }

/* -------------------------------------------------------------------------
   6b. Page opener — template-parts/page-head.php. The same object on every
   page that has a page title (catalogue, genres, auteur.rices, actualités,
   pages, shop flow, search, 404, single posts): double red hairline, --s-5
   (room for a capital accent: "À propos"), the display title. One scale: --fs-display, then --fs-display-lg >= 1100.
   <header class="page-head [page-head--split] container">
     [<p class="page-head__kicker kicker">…</p>]      bar moves above it
     <h1 class="page-head__title page-title">…</h1>
     [<div class="page-head__intro rich-text">…</div>] hairline column (lg)
     [<div class="page-head__aside">…</div>]         free column (lg)
     [any other child: full width, under the title]
   </header>
   Area files may only place the head's children (grid-column / row) or
   add vertical room around it; they never resize the title or the bar.
   ------------------------------------------------------------------------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-6); }
.page-head__title, .page-head__kicker:first-child { position: relative; padding-top: calc(var(--double-h) + var(--s-5)); }
.page-head__title { overflow-wrap: break-word; hyphens: manual; }
.page-head__title::before, .page-head__kicker:first-child::before {
  content: ""; position: absolute; left: 0; top: 0; width: var(--double-w); height: var(--double-h);
  border-top: var(--rule-mid) solid var(--color-accent); border-bottom: var(--rule-mid) solid var(--color-accent);
}
.page-head__kicker + .page-head__title { margin-top: calc(var(--s-2) - var(--s-5)); padding-top: 0; }
.page-head__kicker + .page-head__title::before { content: none; }
.page-head__intro, .page-head__aside { min-width: 0; }
.page-head__intro { max-width: var(--measure); font-size: var(--fs-lead); line-height: 1.5; }
@media (min-width: 1100px) {
  .page-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-top: var(--s-8); padding-bottom: var(--s-7); }
  .page-head > * { grid-column: 1 / -1; }
  .page-head__title { font-size: var(--fs-display-lg); }
  .page-head--split > .page-head__title { grid-column: 1 / span 6; }
  .page-head--split > .page-head__intro, .page-head--split > .page-head__aside { grid-column: 7 / -1; }
  .page-head__intro { max-width: none; padding-left: var(--s-6); border-left: var(--rule-hair) solid var(--color-line); font-size: var(--fs-lead-lg); }
}

/* -------------------------------------------------------------------------
   7. Buttons, links, form controls
   WooCommerce: .button = secondary (ink outline), .button.alt / .checkout /
   .button--primary = primary (brand red). One primary style site-wide.
   ------------------------------------------------------------------------- */
.button, .wp-element-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 var(--s-5); margin: 0;
  border: var(--rule-mid) solid var(--color-line-strong); border-radius: var(--radius-control);
  background: transparent; color: var(--color-text);
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-ui); line-height: 1;
  letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.button:hover { background: var(--c-ink); color: var(--c-white); }
.button:active { transform: translateY(1px); }
.button .icon { transition: transform var(--dur-mid) var(--ease-out); }
.button:hover .icon--arrow { transform: translateX(3px); }
.button.alt, .button--primary, .button.checkout {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--c-white);
}
.button.alt:hover, .button--primary:hover, .button.checkout:hover,
.button.alt:active, .button--primary:active, .button.checkout:active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
/* "needs a choice": never a grey disabled box — an ink outline, still focusable */
.button.alt.disabled, .button.alt.wc-variation-selection-needed, .button--choose {
  background: var(--c-white); border-color: var(--c-ink); color: var(--c-ink); cursor: pointer;
}
.button.alt.disabled:hover, .button--choose:hover { background: var(--c-ink); color: var(--c-white); }
.button:disabled:not(.alt) { opacity: .45; cursor: not-allowed; }
.button.loading { color: transparent !important; pointer-events: none; }
.button.loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: var(--rule-mid) solid var(--c-white); border-right-color: transparent; border-radius: 50%;
  animation: eh-spin 700ms linear infinite;
}
.button:not(.alt):not(.button--primary).loading::after { border-color: var(--c-ink); border-right-color: transparent; }
/* temporary confirmed state after add-to-cart */
.button.is-added, .button.is-added:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.button--block { width: 100%; }
.button--small { min-height: var(--tap); padding: 0 var(--s-4); font-size: var(--fs-meta); }
.button--inverse { border-color: var(--c-white); color: var(--c-white); }
.button--inverse:hover { background: var(--c-white); color: var(--c-ink); }
@keyframes eh-spin { to { transform: rotate(360deg); } }

/* Text link with an arrow: Oswald caps, red underline grows on hover */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; min-height: var(--tap);
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-small); line-height: 1.2;
  letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none; color: var(--color-text);
  background: linear-gradient(var(--color-accent), var(--color-accent)) left calc(100% - 9px) / 0 var(--rule-mid) no-repeat;
  transition: background-size var(--dur-mid) var(--ease-out), color var(--dur-fast);
}
.link-arrow:hover { background-size: calc(100% - 1.6em) var(--rule-mid); }
.link-arrow .icon { color: var(--color-accent); transition: transform var(--dur-mid) var(--ease-out); }
.link-arrow:hover .icon--arrow { transform: translateX(4px); }
.link-arrow:hover .icon--down { transform: translateY(2px); }
.link-arrow--small { font-size: var(--fs-label); letter-spacing: .12em; }
.link-arrow__count { color: var(--color-accent); font-variant-numeric: tabular-nums; }
.link-arrow--inverse { color: var(--c-white); }

/* Form controls (shop flow, search pages, future forms) */
.form-row { margin: 0 0 var(--s-4); }
.form-row label, .field-label {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-label); line-height: var(--lh-ui);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-text-muted);
}
.form-row .required { color: var(--color-accent); text-decoration: none; }
.input-text, .field, select, textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"]:not(.search-form__field) {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: var(--rule-hair) solid var(--c-grey-777); border-radius: var(--radius-control); background: var(--c-white);
  font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.4; color: var(--color-text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
textarea { min-height: 8em; resize: vertical; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230A0909' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.input-text:hover, .field:hover, select:hover, textarea:hover { border-color: var(--c-ink); }
.input-text:focus, .field:focus, select:focus, textarea:focus, input:focus { outline: none; border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.input-text:focus-visible, .field:focus-visible, select:focus-visible, textarea:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: var(--rule-mid) solid var(--color-accent); outline-offset: 2px; }
::placeholder { color: var(--color-text-muted); opacity: 1; } /* AA at 17px; #777 only on the 28px+ search fields */
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; margin: 0 var(--s-2) 0 0; accent-color: var(--c-ink); vertical-align: -4px; }
.form-row.woocommerce-invalid .input-text, .field[aria-invalid="true"] { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.field-hint { margin-top: var(--s-1); font-size: var(--fs-meta); color: var(--color-text-muted); }

/* Quantity stepper (mini-cart, cart page) */
.qty-stepper { display: inline-flex; align-items: center; border: var(--rule-hair) solid var(--c-ink); border-radius: var(--radius-control); background: var(--c-white); }
.qty-stepper__button {
  width: var(--tap); height: var(--tap); border: 0; padding: 0; background: none; color: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center; transition: color var(--dur-fast);
}
.qty-stepper__button:hover { color: var(--color-accent); }
.qty-stepper__button:disabled { color: var(--c-grey-9c9); cursor: default; }
.qty-stepper__button:focus-visible { outline-offset: -2px; }
.qty-stepper__value {
  min-width: 28px; text-align: center; font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-ui);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   8. Site header — mobile: one sticky row; desktop: centred two-tier
   masthead whose top tier scrolls away, leaving a compact sticky bar
   (mini logo, nav, search, cart). header.php
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header); background: var(--c-white);
  transition: box-shadow var(--dur-mid) var(--ease-out);
}
.site-header.is-stuck { box-shadow: var(--sh-header); }
.masthead { border-bottom: var(--rule-hair) solid var(--c-ink); }
.masthead__inner { height: var(--mast-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.masthead .masthead__social { display: none; }
.masthead__menu { justify-self: start; margin-left: -10px; }
.site-logo { justify-self: center; display: inline-flex; align-items: center; min-height: var(--tap); line-height: 0; }
.site-logo__img { width: 96px; }
.masthead__tools { justify-self: end; display: flex; align-items: center; margin-right: -10px; }
.icon-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; color: var(--c-ink);
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color var(--dur-fast);
}
.icon-button:hover { color: var(--color-accent); }
/* phones: the label stays the accessible name of the icon (visually hidden), it is shown from lg */
.icon-button__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cart-count {
  position: absolute; top: 4px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--c-ink); color: var(--c-white);
  font: var(--fw-medium) 11px/18px var(--font-sans); letter-spacing: 0; text-align: center; font-variant-numeric: tabular-nums;
  transition: transform var(--dur-mid) var(--ease-out), background-color var(--dur-fast);
}
.cart-count[data-count="0"] { display: none; }
.cart-count.is-bumped { transform: scale(1.25); background: var(--color-accent); }
.navbar { display: none; }

@media (min-width: 1100px) {
  /* the whole header sticks with a negative top: the masthead tier scrolls away, the navbar stays */
  .site-header { top: calc(-1 * var(--mast-h)); }
  .site-header.is-stuck { box-shadow: 0 12px 24px -20px rgba(10, 9, 9, .5); }
  .masthead { border-bottom: 0; }
  .masthead__menu { display: none; }
  .masthead .masthead__social { display: flex; gap: 0; margin-left: -12px; }
  .masthead__social a { display: inline-flex; width: var(--tap); height: var(--tap); align-items: center; justify-content: center; color: var(--c-ink); transition: color var(--dur-fast); }
  .masthead__social a:hover { color: var(--color-accent); }
  .site-logo__img { width: 252px; }
  .masthead__tools { gap: var(--s-4); margin-right: 0; }
  .icon-button--labelled { padding: 0 2px; }
  .icon-button--labelled .icon-button__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; display: inline; font: var(--fw-medium) var(--fs-meta)/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
  .masthead__tools .icon-button--cart { padding-right: 24px; }
  .masthead__tools .cart-count { top: 13px; right: 0; }

  .navbar { display: block; border-top: var(--rule-hair) solid var(--c-ink); border-bottom: var(--rule-bold) solid var(--c-ink); background: var(--c-white); }
  .navbar__inner { position: relative; display: flex; align-items: center; justify-content: center; height: calc(var(--navbar-h) - var(--rule-hair) - var(--rule-bold)); }
  .navbar__logo, .navbar__tools {
    position: absolute; top: 0; bottom: 0; display: flex; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), visibility 0s linear var(--dur-mid);
  }
  .navbar__logo { left: var(--margin); transform: translateX(-8px); }
  .navbar__logo-img { width: 92px; }
  .navbar__tools { right: calc(var(--margin) - 10px); gap: var(--s-1); transform: translateX(8px); }
  .navbar__tools .cart-count { top: 4px; }
  .site-header.is-stuck .navbar__logo, .site-header.is-stuck .navbar__tools { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
/* Logged-in visitors: WordPress' admin bar is fixed from 601px (46px, then 32px from 783px). The header and
   every in-page sticky bar (they all attach at --sticky-top) stick under it. Below 601px it scrolls away. */
@media (min-width: 601px) {
  body.admin-bar { --admin-bar-h: var(--wp-admin--admin-bar--height, 32px); --sticky-top: calc(var(--header-h) + var(--admin-bar-h)); }
  .admin-bar .site-header { top: var(--admin-bar-h); }
}
@media (min-width: 1100px) {
  body.admin-bar { --sticky-top: calc(var(--navbar-h) + var(--admin-bar-h)); }
  .admin-bar .site-header { top: calc(var(--admin-bar-h) - var(--mast-h)); }
}

/* Primary nav — wp_nav_menu( primary ) classes */
.primary-nav__list { display: flex; align-items: center; }
.primary-nav__list > .menu-item { position: relative; display: flex; align-items: center; }
.primary-nav__list > .menu-item + .menu-item::before { content: ""; width: var(--rule-mid); height: 16px; background: var(--color-accent); }
.primary-nav__list > .menu-item > a {
  display: inline-flex; align-items: center; height: 54px; padding: 0 20px; white-space: nowrap;
  font: var(--fw-medium) var(--fs-small)/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--color-text-strong);
  background: linear-gradient(var(--color-accent), var(--color-accent)) center calc(100% - 13px) / 0 var(--rule-mid) no-repeat;
  transition: background-size var(--dur-mid) var(--ease-out), color var(--dur-fast), padding var(--dur-mid) var(--ease-out);
}
.primary-nav__list > .menu-item > a:hover, .primary-nav__list > .menu-item > a[aria-current], .primary-nav__list > .current-menu-ancestor > a { color: var(--c-ink); background-size: calc(100% - 40px) var(--rule-mid); }
.primary-nav__list > .menu-item-has-children > a { padding-right: 2px; }
/* the stuck bar also holds the compact logo and the tools: where the centred menu leaves them no clear air
   (main.js adds .is-nav-snug, about 1100–1175px with the six-item menu) its links draw closer while stuck */
.is-nav-snug.is-stuck .primary-nav__list > .menu-item > a { padding: 0 13px; }
.is-nav-snug.is-stuck .primary-nav__list > .menu-item-has-children > a { padding-right: 2px; }
.is-nav-snug.is-stuck .primary-nav__list > .menu-item > a:hover, .is-nav-snug.is-stuck .primary-nav__list > .menu-item > a[aria-current], .is-nav-snug.is-stuck .primary-nav__list > .current-menu-ancestor > a { background-size: calc(100% - 26px) var(--rule-mid); }
.is-nav-snug.is-stuck .sub-menu-toggle { margin-right: 6px; }
/* a menu longer than the bar (more items added in Apparence → Menus): main.js adds .is-nav-tight */
.is-nav-tight .primary-nav__list > .menu-item > a { padding: 0 10px; letter-spacing: .1em; }
.is-nav-tight .primary-nav__list > .menu-item-has-children > a { padding-right: 2px; }
.is-nav-tight .primary-nav__list > .menu-item > a:hover, .is-nav-tight .primary-nav__list > .menu-item > a[aria-current], .is-nav-tight .primary-nav__list > .current-menu-ancestor > a { background-size: calc(100% - 20px) var(--rule-mid); }
.is-nav-tight .sub-menu-toggle { margin-right: 4px; }
.sub-menu-toggle {
  width: 32px; height: var(--tap); margin-right: 10px; padding: 0; border: 0; background: none; color: var(--color-text-strong);
  display: inline-flex; align-items: center; justify-content: center;
}
.sub-menu-toggle .icon { transition: transform var(--dur-mid) var(--ease-out); }
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 8px; z-index: var(--z-dropdown); min-width: 280px; padding: var(--s-2) 0;
  background: var(--c-white); border: var(--rule-hair) solid var(--c-ink); border-top: var(--rule-bold) solid var(--c-ink); box-shadow: var(--sh-panel);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), visibility 0s linear var(--dur-mid);
}
.primary-nav .menu-item-has-children:hover > .sub-menu, .primary-nav .menu-item-has-children:focus-within > .sub-menu, .primary-nav .menu-item-has-children.is-open > .sub-menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.primary-nav .menu-item-has-children:hover .sub-menu-toggle .icon, .primary-nav .menu-item-has-children.is-open .sub-menu-toggle .icon { transform: rotate(180deg); }
.primary-nav .sub-menu a {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); min-height: var(--tap); padding: 11px 20px;
  font: var(--fw-regular) 1.25rem/1.2 var(--font-serif); text-decoration: none; transition: color var(--dur-fast);
}
.primary-nav .sub-menu a:hover { color: var(--color-accent); }
.menu-count { font: var(--fw-medium) var(--fs-label)/1 var(--font-sans); letter-spacing: .06em; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   9. Drawers (menu, mini-cart), scrim
   ------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: var(--color-scrim); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: var(--z-drawer); width: min(88vw, 420px);
  display: flex; flex-direction: column; background: var(--c-white); box-shadow: var(--sh-panel);
  transition: transform var(--dur-slow) var(--ease-out);
}
.drawer--left { left: 0; transform: translateX(-102%); }
.drawer--right { right: 0; transform: translateX(102%); width: min(92vw, 440px); }
.drawer.is-open { transform: none; }
.drawer:focus { outline: none; }
.drawer__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h);
  padding: 0 8px 0 var(--margin); border-bottom: var(--rule-bold) solid var(--c-ink);
}
.drawer__logo { width: 92px; }
.drawer__title { font: var(--fw-semibold) var(--fs-section)/1 var(--font-sans); letter-spacing: var(--track-section); text-transform: uppercase; }
.drawer__count { color: var(--color-accent); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-3) var(--margin) var(--s-5); }
.drawer__foot { flex: none; padding: var(--s-4) var(--margin) calc(var(--s-5) + env(safe-area-inset-bottom)); border-top: var(--rule-hair) solid var(--c-ink); }
.drawer__foot .kicker { margin-bottom: var(--s-1); }

/* Off-canvas menu: table of contents (no numbers), genres with counts */
.drawer-nav__list > .menu-item { border-bottom: var(--rule-hair) solid var(--color-line); }
.drawer-nav__list > .menu-item > a {
  display: flex; align-items: center; min-height: 60px; padding: 12px 0;
  font: var(--fw-regular) 1.75rem/1.1 var(--font-serif); font-variation-settings: "opsz" 48; letter-spacing: -.005em; text-decoration: none;
  transition: color var(--dur-fast);
}
.drawer-nav__list > .menu-item > a:hover, .drawer-nav__list a[aria-current] { color: var(--color-accent); }
.drawer-nav__list .sub-menu { padding: 0 0 var(--s-3) var(--s-4); margin-top: -6px; border-left: var(--rule-mid) solid var(--color-accent); margin-left: 2px; margin-bottom: var(--s-3); }
.drawer-nav__list .sub-menu a {
  display: flex; align-items: baseline; justify-content: space-between; min-height: var(--tap); padding: 12px 0 10px;
  font: var(--fw-medium) var(--fs-small)/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--c-grey-313); transition: color var(--dur-fast);
}
.drawer-nav__list .sub-menu a:hover { color: var(--color-accent); }
.drawer-nav__minor { display: flex; gap: var(--s-5); margin-bottom: var(--s-3); }
.drawer-nav__minor a { display: inline-flex; align-items: center; min-height: var(--tap); font: italic var(--fw-regular) 1.1875rem/1 var(--font-serif); text-decoration-color: var(--color-accent); }
.drawer-nav__minor a:hover { color: var(--color-accent); }

.social-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.social-links a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); text-decoration: none; transition: color var(--dur-fast); }
.social-links a:hover { color: var(--color-accent); }
.social-links--labelled a { font: var(--fw-medium) var(--fs-label)/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }

/* -------------------------------------------------------------------------
   10. Search overlay + result rows (search page rows reuse .search-result)
   ------------------------------------------------------------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: var(--z-search); overflow-y: auto; overscroll-behavior: contain; background: var(--c-white);
  opacity: 0; transform: translateY(-12px); transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.search-overlay.is-open { opacity: 1; transform: none; }
.search-overlay__inner { max-width: calc(920px + 2 * var(--margin)); padding-top: var(--s-3); padding-bottom: var(--s-8); }
.search-form { display: flex; align-items: center; gap: var(--s-2); padding-bottom: var(--s-2); border-bottom: var(--rule-bold) solid var(--c-ink); transition: border-color var(--dur-fast); }
.search-form:focus-within { border-bottom-color: var(--color-accent); }
.search-form > .icon { color: var(--color-accent); }
.search-form__field {
  flex: 1 1 auto; min-width: 0; height: 64px; padding: 0; border: 0; border-radius: 0; background: none; outline: none; box-shadow: none;
  font: var(--fw-regular) 1.75rem/1 var(--font-serif); font-variation-settings: "opsz" 60; color: var(--c-ink);
  -webkit-appearance: none; appearance: none;
}
.search-form__field:focus { box-shadow: none; }
.search-form__field::placeholder { color: var(--color-text-large-soft); font-style: italic; }
.search-form__field::-webkit-search-cancel-button { display: none; }
.search-form__submit { display: none; }
.search-overlay__close { margin-right: -10px; }
.search-results__count { margin: var(--s-4) 0 var(--s-2); min-height: 1.2em; }
.search-result { border-bottom: var(--rule-hair) solid var(--color-line); }
.search-result__link { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-3) 0; text-decoration: none; }
.search-result__cover { width: 44px; height: auto; aspect-ratio: 5 / 8; object-fit: cover; box-shadow: var(--sh-small); }
.search-result__author { display: block; font: var(--fw-medium) var(--fs-micro)/1.3 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-accent); }
.search-result__title { display: block; margin-top: 2px; font: var(--fw-regular) 1.1875rem/1.2 var(--font-serif); font-variation-settings: "opsz" 24; text-wrap: balance; }
.search-result__price { align-self: center; font: var(--fw-medium) var(--fs-small)/1 var(--font-sans); letter-spacing: .03em; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.search-result__link:hover .search-result__title { text-decoration: underline; text-decoration-color: var(--color-accent); }
.search-result__link:focus-visible { outline-offset: 2px; }
.search-result mark { background: none; color: inherit; box-shadow: inset 0 -.32em 0 var(--color-highlight); }
.search-results__empty { margin-top: var(--s-5); font-size: var(--fs-lead); font-style: italic; color: var(--color-text-muted); }
@media (min-width: 760px) {
  .search-overlay__inner { padding-top: var(--s-7); }
  .search-form__field { height: 88px; font-size: 3rem; }
  .search-form__submit { display: inline-flex; }
  .search-result__link { grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s-5); }
  .search-result__cover { width: 52px; }
  .search-result__title { font-size: 1.375rem; }
}

/* -------------------------------------------------------------------------
   11. Mini-cart — drawer#mini-cart > .widget_shopping_cart_content (fragment)
   Classes of WooCommerce 7.4 cart/mini-cart.php; theme filters add
   .mini-cart-item__* spans and the .qty-stepper (see DESIGN-SYSTEM.md).
   ------------------------------------------------------------------------- */
.mini-cart .widget_shopping_cart_content { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.mini-cart__added {
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 2px var(--s-2); padding: var(--s-3) var(--margin);
  background: var(--c-ink); color: var(--c-white);
  font: var(--fw-medium) var(--fs-label)/1.3 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase;
  animation: eh-strip-in var(--dur-slow) var(--ease-out);
}
.mini-cart__added .icon { color: var(--color-accent); }
.mini-cart__added-title { flex-basis: 100%; padding-left: 28px; font: italic var(--fw-regular) 1rem/1.3 var(--font-serif); letter-spacing: 0; text-transform: none; color: var(--color-inverse-muted); }
.mini-cart__added-title:empty { display: none; }
@keyframes eh-strip-in { from { opacity: 0; transform: translateY(-6px); } }
.woocommerce-mini-cart { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--margin); }
.woocommerce-mini-cart-item { position: relative; padding: var(--s-5) 0 var(--s-5) calc(60px + var(--s-4)); border-bottom: var(--rule-hair) solid var(--color-line); min-height: calc(96px + 2 * var(--s-5)); }
.woocommerce-mini-cart-item > a:not(.remove) { display: flex; flex-direction: column; min-height: var(--tap); padding-right: var(--tap); text-decoration: none; }
.woocommerce-mini-cart-item img { position: absolute; left: 0; top: var(--s-5); width: 60px; height: auto; aspect-ratio: 5 / 8; object-fit: cover; box-shadow: var(--sh-small); }
.mini-cart-item__author { font: var(--fw-medium) var(--fs-micro)/1.3 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-accent); }
.mini-cart-item__title { margin-top: 2px; font: var(--fw-regular) 1.1875rem/1.18 var(--font-serif); font-variation-settings: "opsz" 24; text-wrap: balance; }
.woocommerce-mini-cart-item > a:not(.remove):hover .mini-cart-item__title { text-decoration: underline; text-decoration-color: var(--color-accent); }
.woocommerce-mini-cart-item dl.variation { margin: var(--s-1) 0 0; font-size: var(--fs-small); color: var(--color-text-muted); }
.woocommerce-mini-cart-item dl.variation dt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.woocommerce-mini-cart-item dl.variation dd, .woocommerce-mini-cart-item dl.variation p { margin: 0; }
.woocommerce-mini-cart-item .quantity { margin-top: var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.mini-cart-item__line-total { font: var(--fw-medium) 1.0625rem/1 var(--font-sans); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.woocommerce-mini-cart-item .remove {
  position: absolute; top: calc(var(--s-5) - 12px); right: -10px; width: var(--tap); height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--color-text-muted);
  font: var(--fw-regular) 1.5rem/1 var(--font-sans); transition: color var(--dur-fast);
}
.woocommerce-mini-cart-item .remove:hover { color: var(--color-accent); }
.woocommerce-mini-cart-item.is-updating { opacity: .5; pointer-events: none; } /* a line being removed */
/* quantity being sent (main.js): the stepper keeps counting taps, the line total waits for the server */
.woocommerce-mini-cart-item[aria-busy="true"] .mini-cart-item__line-total { opacity: .45; transition: opacity var(--dur-fast); }
.woocommerce-mini-cart__total {
  flex: none; display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: var(--s-4) var(--margin) var(--s-3);
  border-top: var(--rule-bold) solid var(--c-ink);
  font: var(--fw-medium) var(--fs-ui)/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
}
.woocommerce-mini-cart__total strong { font-weight: var(--fw-medium); }
.woocommerce-mini-cart__total .amount { font-size: 1.375rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.woocommerce-mini-cart__buttons { flex: none; display: grid; gap: var(--s-2); margin: 0; padding: 0 var(--margin) calc(var(--s-4) + env(safe-area-inset-bottom)); }
.woocommerce-mini-cart__buttons .checkout { order: -1; }
.woocommerce-mini-cart__empty-message { padding: var(--s-7) var(--margin) var(--s-5); font-size: var(--fs-lead); font-style: italic; color: var(--color-text-muted); }
.mini-cart__empty-action { padding: 0 var(--margin); }

/* -------------------------------------------------------------------------
   12. Breadcrumbs, pagination, notices
   ------------------------------------------------------------------------- */
.breadcrumbs ol { display: flex; flex-wrap: nowrap; align-items: center; min-width: 0; font: var(--fw-medium) var(--fs-micro)/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; flex: none; }
.breadcrumbs li:last-child { flex: 0 1 auto; }
.breadcrumbs li + li::before { content: "›"; padding: 0 .6em; color: var(--color-accent); letter-spacing: 0; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--c-grey-212); text-decoration: none; transition: color var(--dur-fast); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs [aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* paginate_links( array( 'type' => 'list' ) ) inside nav.pagination */
.pagination { margin-top: var(--s-8); border-top: var(--rule-hair) solid var(--c-ink); padding-top: var(--s-4); }
.pagination ul.page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-1); }
.pagination .page-numbers li { display: flex; }
.pagination a.page-numbers, .pagination span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); height: var(--tap); padding: 0 var(--s-2);
  font: var(--fw-medium) var(--fs-ui)/1 var(--font-sans); letter-spacing: .06em; text-decoration: none; font-variant-numeric: tabular-nums;
  border-bottom: var(--rule-mid) solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast);
}
.pagination a.page-numbers:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.pagination span.page-numbers.current { color: var(--c-white); background: var(--c-ink); }
.pagination .page-numbers.dots { min-width: 24px; color: var(--color-text-muted); }
.pagination .prev, .pagination .next { text-transform: uppercase; letter-spacing: var(--track-label); font-size: var(--fs-meta); padding: 0 var(--s-3); }

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4);
  margin: 0 0 var(--s-5); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); list-style: none;
  border: var(--rule-hair) solid var(--c-ink); border-left: var(--rule-bold) solid var(--c-ink); background: var(--c-white);
  font-size: var(--fs-small); line-height: 1.45;
}
.woocommerce-message { border-left-color: var(--c-ink); }
.woocommerce-error { border-color: var(--color-accent); border-left-color: var(--color-accent); }
.woocommerce-error li + li { margin-top: var(--s-1); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: var(--tap); font-size: var(--fs-meta); }

/* -------------------------------------------------------------------------
   13. Covers, book card, book grid
   .cover = the book object. Always 5:8, whatever the file: the catalogue's
   files run from 0.61 to 0.67 (w/h), so the image is centre-cropped to the
   5:8 box (at most 3 % per side) and every cover in a row has the same size.
   .cover-frame = the 5:8 slot of a card; the cover fills it.
   Every small cover (cart, mini-cart, checkout, search, buy bar) follows the
   same 5:8 rule on its own <img>.
   ------------------------------------------------------------------------- */
.cover-frame { position: relative; display: flex; align-items: flex-end; justify-content: flex-start; aspect-ratio: 5 / 8; width: 100%; }
.cover {
  position: relative; display: block; flex: none;
  width: 100%; aspect-ratio: 5 / 8;
  background: var(--color-panel); box-shadow: var(--sh-hung);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.cover__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--color-cover-edge); pointer-events: none; }
/* no cover file (eh_cover_placeholder()): the title on the panel colour, in the same 5:8 object */
.cover--placeholder { display: flex; align-items: center; justify-content: center; padding: 14% 12%; overflow: hidden; }
.cover__placeholder-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
  font: italic var(--fw-regular) 1rem/1.25 var(--font-serif); color: var(--color-text-muted); text-align: center; text-wrap: balance; overflow-wrap: anywhere;
}

/* The drawn "#" (Dièse): two red horizontals (.cover::before) and two ink verticals (.cover::after)
   overshooting the corners. It is the hover state AND the keyboard focus indicator of a card. */
.book-card { position: relative; min-width: 0; }
.book-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; outline: none; -webkit-tap-highlight-color: transparent; }
.book-card .cover { --hash-o: 10px; --hash-in: 6px; outline: var(--rule-hair) solid var(--color-cover-edge); outline-offset: -1px; }
.book-card .cover::before, .book-card .cover::after { content: ""; position: absolute; z-index: var(--z-raised); pointer-events: none; transition: transform var(--dur-slow) var(--ease-out); }
.book-card .cover::before {
  left: calc(-1 * var(--hash-o)); right: calc(-1 * var(--hash-o)); top: var(--hash-in); bottom: var(--hash-in);
  border-top: var(--rule-mid) solid var(--color-accent); border-bottom: var(--rule-mid) solid var(--color-accent);
  transform: scaleX(0);
}
.book-card .cover::after {
  inset: calc(-1 * var(--hash-o)) var(--hash-in); box-shadow: none;
  border-left: var(--rule-hair) solid var(--c-ink); border-right: var(--rule-hair) solid var(--c-ink);
  transform: scaleY(0); transition-delay: 60ms;
}
.book-card__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: var(--s-4); font: var(--fw-medium) var(--fs-micro)/1.35 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; }
.book-card__genre { color: var(--color-text-muted); }
.book-card__author { color: var(--color-accent); }
.book-card__title {
  margin-top: var(--s-1); font: var(--fw-regular) var(--fs-card-m)/1.16 var(--font-serif); font-variation-settings: "opsz" 28; letter-spacing: -.003em;
  overflow-wrap: break-word; hyphens: manual; text-wrap: balance;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .16em;
  transition: text-decoration-color var(--dur-fast);
}
.book-card__price { margin-top: auto; padding-top: var(--s-2); font: var(--fw-medium) var(--fs-small)/1.2 var(--font-sans); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
/* "Prix" before the price of a card (the paper edition): the small-caps label of the fiche technique */
.price-label { margin-right: .35em; font-size: var(--fs-micro); font-weight: var(--fw-medium); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-text-muted); }

/* --compact: 3-up shelves on phones (À paraître, Nouveautés on 404 / search / empty cart) */
.book-card--compact .book-card__meta { margin-top: var(--s-3); }
.book-card--compact .book-card__title { font-size: var(--fs-card-s); line-height: 1.18; }
.book-card--compact .book-card__price { font-size: var(--fs-label); }
.book-card--compact .cover { --hash-o: 7px; --hash-in: 4px; }
@media (min-width: 1100px) {
  .book-card--compact .book-card__price { font-size: var(--fs-small); }
  .book-card--compact .cover { --hash-o: 10px; --hash-in: 6px; }
}
/* --feature: one book set horizontally (cover | meta, title, price), the grid's full width.
   Home: first Nouveauté on phones. Author page: the author's only book. */
.book-card--feature { grid-column: 1 / -1; }
.book-card--feature .book-card__link { display: grid; grid-template-columns: 46% minmax(0, 1fr); grid-template-rows: 1fr auto auto auto; column-gap: var(--s-5); }
.book-card--feature .cover-frame { grid-column: 1; grid-row: 1 / span 4; }
.book-card--feature .book-card__meta { grid-column: 2; grid-row: 2; margin-top: 0; }
.book-card--feature .book-card__title { grid-column: 2; grid-row: 3; font-size: var(--fs-card-l); line-height: 1.08; font-variation-settings: "opsz" 48; }
.book-card--feature .book-card__price { grid-column: 2; grid-row: 4; margin-top: 0; padding-top: var(--s-3); font-size: var(--fs-ui); }
@media (hover: hover) {
  .book-card__link:hover .cover { transform: translateY(var(--lift)); box-shadow: var(--sh-lift); }
  .book-card__link:hover .cover::before { transform: scaleX(1); }
  .book-card__link:hover .cover::after { transform: scaleY(1); }
  .book-card__link:hover .book-card__title { text-decoration-color: var(--color-accent); }
}
.book-card__link:focus-visible .cover { transform: translateY(var(--lift)); box-shadow: var(--sh-lift); }
.book-card__link:focus-visible .cover::before { transform: scaleX(1); }
.book-card__link:focus-visible .cover::after { transform: scaleY(1); }
.book-card__link:focus-visible .book-card__title { text-decoration-color: var(--color-accent); }
@media (forced-colors: active) { .book-card__link:focus-visible { outline: 2px solid CanvasText; outline-offset: 4px; } }

/* Book grids (catalogue, genre, author, search, related rows) */
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-7); }
.book-grid > .book-card { padding-bottom: var(--s-1); }
@media (min-width: 760px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-8); } }
@media (min-width: 1100px) {
  .book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* newspaper column rules between cards (centred in the gutter, first column excluded) */
  .book-grid > .book-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-.5 * var(--gutter)); width: var(--rule-hair); background: var(--color-line-soft); }
  .book-grid--5 > .book-card:nth-child(5n + 1)::before, .book-grid--catalog > .book-card:nth-child(5n + 1)::before { content: none; }
}
.book-grid > .book-card--feature::before { content: none !important; } /* a full-width card has no column rule */
/* one-row shelves: 2 then 3 then 6 columns, extras hidden on small screens (no swipe-only rows) */
.book-grid--row > .book-card:nth-child(n + 5) { display: none; }
@media (min-width: 760px) { .book-grid--row > .book-card:nth-child(n + 5) { display: block; } }
@media (min-width: 1100px) {
  .book-grid--row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .book-grid--row > .book-card::before { content: ""; }
  .book-grid--row > .book-card:first-child::before { content: none; }
}

/* -------------------------------------------------------------------------
   14. Author tile (base), press quote (shared by home + product + posts)
   ------------------------------------------------------------------------- */
.author-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); }
@media (min-width: 760px) { .author-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.author-tile__link { display: block; text-decoration: none; }
.author-tile__photo { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--color-panel); }
.author-tile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.04); transition: transform var(--dur-slow) var(--ease-out); }
.author-tile__name { display: block; margin-top: var(--s-3); font: var(--fw-regular) 1.25rem/1.2 var(--font-serif); font-variation-settings: "opsz" 28; text-wrap: balance; transition: color var(--dur-fast); }
.author-tile__link:hover img { transform: scale(1.025); }
.author-tile__link:hover .author-tile__name { color: var(--color-accent); }
.author-tile__link:focus-visible { outline-offset: 4px; }
@media (min-width: 760px) { .author-tile__name { font-size: 1.5rem; } }

.press-quote__text {
  position: relative; quotes: none; hanging-punctuation: first;
  font: var(--fw-regular) 1.25rem/1.42 var(--font-serif); font-variation-settings: "opsz" 24; color: var(--c-ink); text-wrap: pretty;
}
.press-quote__text em, .press-quote__text i { font-style: italic; }
.press-quote__text strong, .press-quote__text b { font-weight: var(--fw-semibold); }
.press-quote__mark { color: var(--color-accent); font-weight: var(--fw-medium); font-style: normal; }
.press-quote__mark--open { display: inline-block; margin-left: -.62em; width: .62em; white-space: nowrap; } /* stored "« " + NBSP stays on the first line */
.press-quote { padding-left: .62em; }
.press-quote__source { margin-top: var(--s-3); font-size: var(--fs-small); line-height: 1.45; color: var(--color-text-muted); }
.press-quote__source strong, .press-quote__source b { font: var(--fw-semibold) var(--fs-label)/1.3 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--c-ink); }
.press-quote__source a { color: var(--c-ink); text-decoration-color: var(--color-accent); }
.press-quote__source a:hover { color: var(--color-accent); }
/* a source that is only a link (an Instagram handle) is a 44px target; the trim keeps the line rhythm */
.press-quote__source > a:only-child { --tap-trim: calc((var(--tap) - 1lh) / -2); display: inline-flex; align-items: center; min-height: var(--tap); margin-block: var(--tap-trim); }
.press-quote--display .press-quote__text { font-size: 1.5rem; line-height: 1.32; font-variation-settings: "opsz" 36; }
/* stored inline styles are neutralised; the client's "source in red" (#ff0000) maps to the brand red */
.press-quote [style], .press-item [style] { font-weight: inherit !important; padding-left: 0 !important; text-align: inherit !important; color: inherit !important; }
.press-quote [style*="ff0000"], .press-quote [style*="FF0000"], .press-item [style*="ff0000"], .press-item [style*="FF0000"] { color: var(--color-accent) !important; }
/* the theme normaliser turns that stored red into class eh-source (inc/content-filters.php) */
.press-quote .eh-source, .press-item .eh-source { color: var(--color-accent); }
.nowrap { white-space: nowrap; }

/* -------------------------------------------------------------------------
   15. Footer + funders band — footer.php
   ------------------------------------------------------------------------- */
.site-footer { border-top: var(--rule-bold) solid var(--c-ink); }
.site-footer__follow { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6) 0 var(--s-5); border-bottom: var(--rule-hair) solid var(--c-ink); }
.site-footer__heading { font: var(--fw-semibold) var(--fs-section)/1.2 var(--font-sans); letter-spacing: var(--track-section); text-transform: uppercase; color: var(--c-grey-313); }
.social-links--footer { flex-direction: column; gap: 0; }
.social-links--footer li + li { border-top: var(--rule-hair) solid var(--color-line); }
.social-links--footer a { width: 100%; min-height: 52px; gap: 14px; font: var(--fw-medium) var(--fs-ui)/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6) 0 var(--s-7); }
.site-footer__logo { width: 150px; margin-bottom: var(--s-4); }
.site-footer__address { display: flex; flex-direction: column; font-size: var(--fs-small); line-height: 1.55; color: var(--color-text-muted); }
.site-footer__address a { --tap-trim: calc((var(--tap) - 1lh) / -2); align-self: flex-start; display: inline-flex; align-items: center; min-height: var(--tap); margin-block: var(--tap-trim); color: var(--c-ink); text-decoration-color: var(--color-accent); overflow-wrap: anywhere; } /* the e-mail may break under a text-spacing override (WCAG 1.4.12) */
.site-footer__address a:hover { color: var(--color-accent); }
.site-footer__menu { columns: 2; column-gap: var(--gutter); }
.site-footer__menu > .menu-item { break-inside: avoid; }
.site-footer__menu a { display: flex; align-items: center; min-height: var(--tap); font: var(--fw-medium) var(--fs-meta)/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--c-grey-212); transition: color var(--dur-fast); }
.site-footer__menu .sub-menu { padding-bottom: var(--s-2); }
.site-footer__menu .sub-menu a { font: var(--fw-regular) 1.0625rem/1.2 var(--font-serif); letter-spacing: 0; text-transform: none; color: var(--color-text-muted); }
.site-footer__menu a:hover, .site-footer__menu a[aria-current] { color: var(--color-accent); }
.footer-menu { display: flex; gap: var(--s-5); }
.footer-menu a { display: inline-flex; align-items: center; min-height: var(--tap); font: italic var(--fw-regular) 1.25rem/1.2 var(--font-serif); white-space: nowrap; text-decoration-color: var(--color-accent); }
.footer-menu a:hover { color: var(--color-accent); }
.funders { background: var(--c-red); }
.funders__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; justify-items: center; gap: var(--s-6) var(--gutter); padding-block: var(--s-6); }
.funders__item { display: flex; align-items: center; justify-content: center; min-height: 56px; }
.funders__item img { height: auto; }
.funders__item--canada img { width: 128px; }
.funders__item--sodec img { width: 136px; }
.funders__item--cac img { width: 150px; }
.funders__item--seal img { width: 52px; }
@media (min-width: 760px) {
  .site-footer__follow { flex-direction: row; align-items: center; justify-content: space-between; }
  .social-links--footer { flex-direction: row; gap: var(--s-6); }
  .social-links--footer li + li { border-top: 0; }
  .social-links--footer a { width: auto; }
  .site-footer__grid { grid-template-columns: 5fr 5fr 3fr; }
  .funders__list { display: flex; justify-content: space-evenly; gap: var(--s-6); padding-block: var(--s-5); }
  .funders__item--cac img { width: 196px; }
}
@media (min-width: 1100px) {
  .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .site-footer__brand { grid-column: 1 / span 4; }
  .site-footer__nav { grid-column: 6 / span 4; }
  .site-footer__minor { grid-column: 11 / -1; }
  .site-footer__minor .footer-menu { flex-direction: column; gap: 0; }
  .site-footer__logo { width: 180px; }
  .funders__list { justify-content: space-between; max-width: calc(1040px + 2 * var(--margin)); }
}

/* -------------------------------------------------------------------------
   16. Utilities, focus, reduced motion
   ------------------------------------------------------------------------- */
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link.screen-reader-text:focus {
  position: fixed !important; left: 8px; top: 8px; z-index: var(--z-skip); width: auto; height: auto; margin: 0; clip: auto; clip-path: none;
  padding: 12px 16px; background: var(--c-ink); color: var(--c-white); text-decoration: none;
  font: var(--fw-medium) var(--fs-meta)/1 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase;
}
.hidden { display: none !important; }
.u-tabular { font-variant-numeric: tabular-nums lining-nums; }
.u-nowrap { white-space: nowrap; }
.u-measure { max-width: var(--measure); }

/* Focus: always visible, brand red, 2px, offset */
:focus { outline: none; }
:focus-visible { outline: var(--rule-mid) solid var(--color-accent); outline-offset: 3px; }
.book-card__link:focus-visible { outline: none; }
[tabindex="-1"]:focus-visible { outline: none; }
.is-flash { animation: eh-flash 1200ms var(--ease-out); }
@keyframes eh-flash { 0%, 40% { background-color: var(--color-highlight); } 100% { background-color: transparent; } }

/* Print (QA #89, shared layer): no site chrome, ink text, readable links. Area files add their own
   print rules (product: every press quote, buy controls hidden, author band on white). */
@media print {
  .skip-link, .site-header, .scrim, .drawer, .search-overlay, .breadcrumbs,
  .site-footer__follow, .site-footer__nav, .site-footer__minor, .funders, .pagination { display: none !important; }
  html, body { background: #fff !important; }
  body { overflow: visible; font-size: 11pt; }
  *, *::before, *::after { color: #000 !important; box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  a { text-decoration: underline; }
  .rich-text a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
  .site-main { padding-bottom: 0; }
  .site-footer { border-top-width: var(--rule-hair); }
  .site-footer__grid { padding-block: var(--s-4); }
  h1, h2, h3, h4, .section-head { break-after: avoid; }
  img, .cover, .press-quote, .book-card { break-inside: avoid; }
  p { orphans: 3; widows: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
